Exemplo n.º 1
0
            public static unsafe global::Org.Jcodec.Common.Logging.Logger.Level ValueOf(string p0)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorg/jcodec/common/logging/Logger$Level;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Org.Jcodec.Common.Logging.Logger.Level __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Logging.Logger.Level> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
Exemplo n.º 2
0
            public unsafe Message(global::Org.Jcodec.Common.Logging.Logger.Level p0, string p1, string p2, string p3, int p4, string p5)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                IntPtr native_p1 = JNIEnv.NewString(p1);
                IntPtr native_p2 = JNIEnv.NewString(p2);
                IntPtr native_p3 = JNIEnv.NewString(p3);
                IntPtr native_p5 = JNIEnv.NewString(p5);

                try {
                    JValue *__args = stackalloc JValue [6];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(native_p1);
                    __args [2] = new JValue(native_p2);
                    __args [3] = new JValue(native_p3);
                    __args [4] = new JValue(p4);
                    __args [5] = new JValue(native_p5);
                    if (GetType() != typeof(Message))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/logging/Logger$Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/logging/Logger$Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V", __args);
                        return;
                    }

                    if (id_ctor_Lorg_jcodec_common_logging_Logger_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_ == IntPtr.Zero)
                    {
                        id_ctor_Lorg_jcodec_common_logging_Logger_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/logging/Logger$Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_logging_Logger_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_logging_Logger_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_, __args);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p1);
                    JNIEnv.DeleteLocalRef(native_p2);
                    JNIEnv.DeleteLocalRef(native_p3);
                    JNIEnv.DeleteLocalRef(native_p5);
                }
            }