示例#1
0
        public virtual unsafe float GetFloat(string p0)
        {
            if (id_getFloat_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getFloat_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "getFloat", "(Ljava/lang/String;)F");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);

                float __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallFloatMethod(((global::Java.Lang.Object) this).Handle, id_getFloat_Ljava_lang_String_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualFloatMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getFloat", "(Ljava/lang/String;)F"), __args);
                }
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
示例#2
0
        protected virtual float GetAdjustedScale(int p0, int p1)
        {
            if (id_getAdjustedScale_II == IntPtr.Zero)
            {
                id_getAdjustedScale_II = JNIEnv.GetMethodID(class_ref, "getAdjustedScale", "(II)F");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallFloatMethod(Handle, id_getAdjustedScale_II, new JValue(p0), new JValue(p1)));
            }
            else
            {
                return(JNIEnv.CallNonvirtualFloatMethod(Handle, ThresholdClass, id_getAdjustedScale_II, new JValue(p0), new JValue(p1)));
            }
        }
        public virtual float GetRotationRate()
        {
            if (id_getRotationRate == IntPtr.Zero)
            {
                id_getRotationRate = JNIEnv.GetMethodID(class_ref, "getRotationRate", "()F");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallFloatMethod(Handle, id_getRotationRate));
            }
            else
            {
                return(JNIEnv.CallNonvirtualFloatMethod(Handle, ThresholdClass, id_getRotationRate));
            }
        }
示例#4
0
 public virtual unsafe float ReadFloatLE()
 {
     if (id_readFloatLE == IntPtr.Zero)
     {
         id_readFloatLE = JNIEnv.GetMethodID(class_ref, "readFloatLE", "()F");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallFloatMethod(((global::Java.Lang.Object) this).Handle, id_readFloatLE));
         }
         else
         {
             return(JNIEnv.CallNonvirtualFloatMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "readFloatLE", "()F")));
         }
     } finally {
     }
 }
        protected virtual float GetHalfDiffX(global::System.Collections.Generic.IList <global::Java.Lang.Float> p0, int p1, int p2)
        {
            if (id_getHalfDiffX_Ljava_util_List_II == IntPtr.Zero)
            {
                id_getHalfDiffX_Ljava_util_List_II = JNIEnv.GetMethodID(class_ref, "getHalfDiffX", "(Ljava/util/List;II)F");
            }
            IntPtr native_p0 = global::Android.Runtime.JavaList <global::Java.Lang.Float> .ToLocalJniHandle(p0);

            float __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallFloatMethod(Handle, id_getHalfDiffX_Ljava_util_List_II, new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualFloatMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getHalfDiffX", "(Ljava/util/List;II)F"), new JValue(native_p0), new JValue(p1), new JValue(p2));
            }
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        public virtual unsafe float GetFloat(int key)
        {
            if (id_getFloat_I == IntPtr.Zero)
            {
                id_getFloat_I = JNIEnv.GetMethodID(class_ref, "getFloat", "(I)F");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(key);

                if (((object)this).GetType() == ThresholdType)
                {
                    return(JNIEnv.CallFloatMethod(((global::Java.Lang.Object) this).Handle, id_getFloat_I, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualFloatMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getFloat", "(I)F"), __args));
                }
            } finally {
            }
        }
示例#7
0
        public virtual float GetFloat(string p0)
        {
            if (id_getFloat_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getFloat_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "getFloat", "(Ljava/lang/String;)F");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            float __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallFloatMethod(Handle, id_getFloat_Ljava_lang_String_, new JValue(native_p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualFloatMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getFloat", "(Ljava/lang/String;)F"), new JValue(native_p0));
            }
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
示例#8
0
                public override unsafe float GetAlpha(global::Android.Views.View p0)
                {
                    if (id_getAlpha_Landroid_view_View_ == IntPtr.Zero)
                    {
                        id_getAlpha_Landroid_view_View_ = JNIEnv.GetMethodID(class_ref, "getAlpha", "(Landroid/view/View;)F");
                    }
                    try {
                        JValue *__args = stackalloc JValue [1];
                        __args [0] = new JValue(p0);

                        float __ret;
                        if (GetType() == ThresholdType)
                        {
                            __ret = JNIEnv.CallFloatMethod(((global::Java.Lang.Object) this).Handle, id_getAlpha_Landroid_view_View_, __args);
                        }
                        else
                        {
                            __ret = JNIEnv.CallNonvirtualFloatMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getAlpha", "(Landroid/view/View;)F"), __args);
                        }
                        return(__ret);
                    } finally {
                    }
                }