Exemplo n.º 1
0
        public static unsafe int FindNalUnit(byte[] p0, int p1, int p2, bool[] p3)
        {
            if (id_findNalUnit_arrayBIIarrayZ == IntPtr.Zero)
            {
                id_findNalUnit_arrayBIIarrayZ = JNIEnv.GetStaticMethodID(class_ref, "findNalUnit", "([BII[Z)I");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);
            IntPtr native_p3 = JNIEnv.NewArray(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_findNalUnit_arrayBIIarrayZ, __args);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
            }
        }
Exemplo n.º 2
0
        public static unsafe int SureRead(global::System.IO.Stream p0, byte[] p1, int p2)
        {
            if (id_sureRead_Ljava_io_InputStream_arrayBI == IntPtr.Zero)
            {
                id_sureRead_Ljava_io_InputStream_arrayBI = JNIEnv.GetStaticMethodID(class_ref, "sureRead", "(Ljava/io/InputStream;[BI)I");
            }
            IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(p0);
            IntPtr native_p1 = JNIEnv.NewArray(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_sureRead_Ljava_io_InputStream_arrayBI, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
Exemplo n.º 3
0
        public static unsafe int SendMMS(string p0, string p1, string p2, string p3)
        {
            if (id_sendMMS_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_sendMMS_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "sendMMS", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);
            IntPtr native_p3 = JNIEnv.NewString(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_sendMMS_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        public static unsafe int Invoke鷭(byte[] p0, int p1, params byte[] p2)
        {
            if (id_鷭_arrayBIarrayB == IntPtr.Zero)
            {
                id_鷭_arrayBIarrayB = JNIEnv.GetStaticMethodID(class_ref, "鷭", "([BI[B)I");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);
            IntPtr native_p2 = JNIEnv.NewArray(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_鷭_arrayBIarrayB, __args);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }
        }
        public static unsafe int LogPushWithBack(long p0, byte[] p1, long p2, string p3, string p4, long p5)
        {
            if (id_LogPushWithBack_JarrayBJLjava_lang_String_Ljava_lang_String_J == IntPtr.Zero)
            {
                id_LogPushWithBack_JarrayBJLjava_lang_String_Ljava_lang_String_J = JNIEnv.GetStaticMethodID(class_ref, "LogPushWithBack", "(J[BJLjava/lang/String;Ljava/lang/String;J)I");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);
            IntPtr native_p3 = JNIEnv.NewString(p3);
            IntPtr native_p4 = JNIEnv.NewString(p4);

            try {
                JValue *__args = stackalloc JValue [6];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(p5);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_LogPushWithBack_JarrayBJLjava_lang_String_Ljava_lang_String_J, __args);
                return(__ret);
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
                JNIEnv.DeleteLocalRef(native_p3);
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }
Exemplo n.º 6
0
 public static int ConvertUnsignedToInt(sbyte p0, sbyte p1)
 {
     if (id_convertUnsignedToInt_BB == IntPtr.Zero)
     {
         id_convertUnsignedToInt_BB = JNIEnv.GetStaticMethodID(class_ref, "convertUnsignedToInt", "(BB)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_convertUnsignedToInt_BB, new JValue(p0), new JValue(p1)));
 }
 protected static int ToDigit(char p0, int p1)
 {
     if (id_toDigit_CI == IntPtr.Zero)
     {
         id_toDigit_CI = JNIEnv.GetStaticMethodID(class_ref, "toDigit", "(CI)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_toDigit_CI, new JValue(p0), new JValue(p1)));
 }
 public static int GetUbyteInt(sbyte p0)
 {
     if (id_getUbyteInt_B == IntPtr.Zero)
     {
         id_getUbyteInt_B = JNIEnv.GetStaticMethodID(class_ref, "getUbyteInt", "(B)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_getUbyteInt_B, new JValue(p0)));
 }
 public static int DefaultTTL()
 {
     if (id_defaultTTL == IntPtr.Zero)
     {
         id_defaultTTL = JNIEnv.GetStaticMethodID(class_ref, "defaultTTL", "()I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_defaultTTL));
 }
Exemplo n.º 10
0
 public static int DecodeZigZag32(int p0)
 {
     if (id_decodeZigZag32_I == IntPtr.Zero)
     {
         id_decodeZigZag32_I = JNIEnv.GetStaticMethodID(class_ref, "decodeZigZag32", "(I)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_decodeZigZag32_I, new JValue(p0)));
 }
Exemplo n.º 11
0
 public static int CommandCacheUnexpectedEvents()
 {
     if (id_commandCacheUnexpectedEvents == IntPtr.Zero)
     {
         id_commandCacheUnexpectedEvents = JNIEnv.GetStaticMethodID(class_ref, "commandCacheUnexpectedEvents", "()I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_commandCacheUnexpectedEvents));
 }
Exemplo n.º 12
0
 public static int GetNextSquareNumberAbove(float factor)
 {
     if (id_getNextSquareNumberAbove_F == IntPtr.Zero)
     {
         id_getNextSquareNumberAbove_F = JNIEnv.GetStaticMethodID(class_ref, "getNextSquareNumberAbove", "(F)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_getNextSquareNumberAbove_F, new JValue(factor)));
 }
 public static int Clamp(int p0, int p1, int p2)
 {
     if (id_clamp_III == IntPtr.Zero)
     {
         id_clamp_III = JNIEnv.GetStaticMethodID(class_ref, "clamp", "(III)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_clamp_III, new JValue(p0), new JValue(p1), new JValue(p2)));
 }
 public static int ColorSum(int p0, int p1, bool p2)
 {
     if (id_ColorSum_IIZ == IntPtr.Zero)
     {
         id_ColorSum_IIZ = JNIEnv.GetStaticMethodID(class_ref, "ColorSum", "(IIZ)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_ColorSum_IIZ, new JValue(p0), new JValue(p1), new JValue(p2)));
 }
 public static int Average(int p0, int p1)
 {
     if (id_average_II == IntPtr.Zero)
     {
         id_average_II = JNIEnv.GetStaticMethodID(class_ref, "average", "(II)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_average_II, new JValue(p0), new JValue(p1)));
 }
 public static int ClippedColorPart(int p0)
 {
     if (id_ClippedColorPart_I == IntPtr.Zero)
     {
         id_ClippedColorPart_I = JNIEnv.GetStaticMethodID(class_ref, "ClippedColorPart", "(I)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_ClippedColorPart_I, new JValue(p0)));
 }
Exemplo n.º 17
0
 public static int TotalNotifications()
 {
     if (id_totalNotifications == IntPtr.Zero)
     {
         id_totalNotifications = JNIEnv.GetStaticMethodID(class_ref, "totalNotifications", "()I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_totalNotifications));
 }
Exemplo n.º 18
0
 public static int SetPushHistoryLength(int p0)
 {
     if (id_setPushHistoryLength_I == IntPtr.Zero)
     {
         id_setPushHistoryLength_I = JNIEnv.GetStaticMethodID(class_ref, "setPushHistoryLength", "(I)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_setPushHistoryLength_I, new JValue(p0)));
 }
Exemplo n.º 19
0
 public static int NumKeyValueCacheFiles()
 {
     if (id_numKeyValueCacheFiles == IntPtr.Zero)
     {
         id_numKeyValueCacheFiles = JNIEnv.GetStaticMethodID(class_ref, "numKeyValueCacheFiles", "()I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_numKeyValueCacheFiles));
 }
Exemplo n.º 20
0
 public static int ConsecutiveFailures()
 {
     if (id_consecutiveFailures == IntPtr.Zero)
     {
         id_consecutiveFailures = JNIEnv.GetStaticMethodID(class_ref, "consecutiveFailures", "()I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_consecutiveFailures));
 }
Exemplo n.º 21
0
 public static int MapSize(int levelOfDetail)
 {
     if (id_MapSize_I == IntPtr.Zero)
     {
         id_MapSize_I = JNIEnv.GetStaticMethodID(class_ref, "MapSize", "(I)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_MapSize_I, new JValue(levelOfDetail)));
 }
Exemplo n.º 22
0
 public static int Mod(int number, int modulus)
 {
     if (id_mod_II == IntPtr.Zero)
     {
         id_mod_II = JNIEnv.GetStaticMethodID(class_ref, "mod", "(II)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_mod_II, new JValue(number), new JValue(modulus)));
 }
 public static int PlaySound(int p0, int p1)
 {
     if (id_playSound_II == IntPtr.Zero)
     {
         id_playSound_II = JNIEnv.GetStaticMethodID(class_ref, "playSound", "(II)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_playSound_II, new JValue(p0), new JValue(p1)));
 }
Exemplo n.º 24
0
 public static int LabelValue(int p0)
 {
     if (id_labelValue_I == IntPtr.Zero)
     {
         id_labelValue_I = JNIEnv.GetStaticMethodID(class_ref, "labelValue", "(I)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_labelValue_I, new JValue(p0)));
 }
Exemplo n.º 25
0
 public static int Add(Adder self, int a, int b)
 {
     if (id_sadd == IntPtr.Zero)
     {
         id_sadd = JNIEnv.GetStaticMethodID(class_ref, "add", "(Lmono/android/test/Adder;II)I");
     }
     return(JNIEnv.CallStaticIntMethod(class_ref, id_sadd,
                                       new JValue(JNIEnv.ToJniHandle(self)), new JValue(a), new JValue(b)));
 }
        public static int GetIntervalSeconds(global::Java.Util.Date p0, global::Java.Util.Date p1)
        {
            if (id_getIntervalSeconds_Ljava_util_Date_Ljava_util_Date_ == IntPtr.Zero)
            {
                id_getIntervalSeconds_Ljava_util_Date_Ljava_util_Date_ = JNIEnv.GetStaticMethodID(class_ref, "getIntervalSeconds", "(Ljava/util/Date;Ljava/util/Date;)I");
            }
            int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_getIntervalSeconds_Ljava_util_Date_Ljava_util_Date_, new JValue(p0), new JValue(p1));

            return(__ret);
        }
Exemplo n.º 27
0
        public static int GetPositionForView(global::Android.Widget.AdapterView p0, global::Android.Views.View p1)
        {
            if (id_getPositionForView_Landroid_widget_AdapterView_Landroid_view_View_ == IntPtr.Zero)
            {
                id_getPositionForView_Landroid_widget_AdapterView_Landroid_view_View_ = JNIEnv.GetStaticMethodID(class_ref, "getPositionForView", "(Landroid/widget/AdapterView;Landroid/view/View;)I");
            }
            int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_getPositionForView_Landroid_widget_AdapterView_Landroid_view_View_, new JValue(p0), new JValue(p1));

            return(__ret);
        }
        public static int GetTimeZone(global::Android.Content.Context p0)
        {
            if (id_getTimeZone_Landroid_content_Context_ == IntPtr.Zero)
            {
                id_getTimeZone_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "getTimeZone", "(Landroid/content/Context;)I");
            }
            int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_getTimeZone_Landroid_content_Context_, new JValue(p0));

            return(__ret);
        }
        public static int ComputeSampleSize(global::Android.Graphics.BitmapFactory.Options p0, int p1, int p2)
        {
            if (id_computeSampleSize_Landroid_graphics_BitmapFactory_Options_II == IntPtr.Zero)
            {
                id_computeSampleSize_Landroid_graphics_BitmapFactory_Options_II = JNIEnv.GetStaticMethodID(class_ref, "computeSampleSize", "(Landroid/graphics/BitmapFactory$Options;II)I");
            }
            int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_computeSampleSize_Landroid_graphics_BitmapFactory_Options_II, new JValue(p0), new JValue(p1), new JValue(p2));

            return(__ret);
        }
Exemplo n.º 30
0
 protected static unsafe int A()
 {
     if (id_a == IntPtr.Zero)
     {
         id_a = JNIEnv.GetStaticMethodID(class_ref, "a", "()I");
     }
     try {
         return(JNIEnv.CallStaticIntMethod(class_ref, id_a));
     } finally {
     }
 }