Esempio n. 1
0
        public unsafe void W(string p0, string p1, global::Java.Lang.Throwable p2)
        {
            if (id_w_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_w_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "w", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            IntPtr  native_p1 = JNIEnv.NewString(p1);
            JValue *__args    = stackalloc JValue [3];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(native_p1);
            __args [2] = new JValue(p2);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_w_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
            JNIEnv.DeleteLocalRef(native_p1);
        }
        public unsafe void Debug(string suffix, string message, global::Java.Lang.Throwable t)
        {
            const string __id           = "debug.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V";
            IntPtr       native_suffix  = JNIEnv.NewString(suffix);
            IntPtr       native_message = JNIEnv.NewString(message);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(native_suffix);
                __args [1] = new JniArgumentValue(native_message);
                __args [2] = new JniArgumentValue((t == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)t).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_suffix);
                JNIEnv.DeleteLocalRef(native_message);
            }
        }
        public static unsafe void W(string p0, global::Java.Lang.Throwable p1)
        {
            if (id_w_Ljava_lang_String_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_w_Ljava_lang_String_Ljava_lang_Throwable_ = JNIEnv.GetStaticMethodID(class_ref, "w", "(Ljava/lang/String;Ljava/lang/Throwable;)V");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                JNIEnv.CallStaticVoidMethod(class_ref, id_w_Ljava_lang_String_Ljava_lang_Throwable_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Esempio n. 4
0
        public static unsafe void W(string tag, string msg, global::Java.Lang.Throwable tr)
        {
            const string __id       = "w.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V";
            IntPtr       native_tag = JNIEnv.NewString(tag);
            IntPtr       native_msg = JNIEnv.NewString(msg);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(native_tag);
                __args [1] = new JniArgumentValue(native_msg);
                __args [2] = new JniArgumentValue((tr == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)tr).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_tag);
                JNIEnv.DeleteLocalRef(native_msg);
            }
        }
Esempio n. 5
0
        public static unsafe void SendAsyncException(global::Java.Lang.Throwable p0, global::System.Collections.Generic.IDictionary <string, string> p1)
        {
            if (id_sendAsyncException_Ljava_lang_Throwable_Ljava_util_Map_ == IntPtr.Zero)
            {
                id_sendAsyncException_Ljava_lang_Throwable_Ljava_util_Map_ = JNIEnv.GetStaticMethodID(class_ref, "sendAsyncException", "(Ljava/lang/Throwable;Ljava/util/Map;)V");
            }
            IntPtr native_p1 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                JNIEnv.CallStaticVoidMethod(class_ref, id_sendAsyncException_Ljava_lang_Throwable_Ljava_util_Map_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Esempio n. 6
0
        public virtual void OnFailure(global::Java.Lang.Throwable p0, string p1)
        {
            if (id_onFailure_Ljava_lang_Throwable_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_onFailure_Ljava_lang_Throwable_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onFailure", "(Ljava/lang/Throwable;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_onFailure_Ljava_lang_Throwable_Ljava_lang_String_, new JValue(p0), new JValue(native_p1));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onFailure", "(Ljava/lang/Throwable;Ljava/lang/String;)V"), new JValue(p0), new JValue(native_p1));
            }
            JNIEnv.DeleteLocalRef(native_p1);
        }
        public static unsafe void ErrorPII(string tag, string errorMessage, global::Java.Lang.Throwable exception)
        {
            const string __id                = "errorPII.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V";
            IntPtr       native_tag          = JNIEnv.NewString(tag);
            IntPtr       native_errorMessage = JNIEnv.NewString(errorMessage);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(native_tag);
                __args [1] = new JniArgumentValue(native_errorMessage);
                __args [2] = new JniArgumentValue((exception == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)exception).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_tag);
                JNIEnv.DeleteLocalRef(native_errorMessage);
                global::System.GC.KeepAlive(exception);
            }
        }
        public unsafe InvalidHandshakeException(global::Java.Lang.Throwable t)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/Throwable;)V";

            if (((global::Java.Lang.Throwable) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((t == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)t).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Esempio n. 9
0
        public unsafe int W(global::Java.Lang.Throwable throwable, global::Java.Lang.Object format, params global::Java.Lang.Object[] args)
        {
            const string __id        = "w.(Ljava/lang/Throwable;Ljava/lang/Object;[Ljava/lang/Object;)I";
            IntPtr       native_args = JNIEnv.NewArray(args);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((throwable == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)throwable).Handle);
                __args [1] = new JniArgumentValue((format == null) ? IntPtr.Zero : ((global::Java.Lang.Object)format).Handle);
                __args [2] = new JniArgumentValue(native_args);
                var __rm = _members.InstanceMethods.InvokeNonvirtualInt32Method(__id, this, __args);
                return(__rm);
            } finally {
                if (args != null)
                {
                    JNIEnv.CopyArray(native_args, args);
                    JNIEnv.DeleteLocalRef(native_args);
                }
            }
        }
        public unsafe ThrowableFailureEvent(global::Java.Lang.Throwable throwable, bool suppressErrorUi)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/Throwable;Z)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((throwable == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)throwable).Handle);
                __args [1] = new JniArgumentValue(suppressErrorUi);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public unsafe SpeechError(global::Java.Lang.Throwable p0, int p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/Throwable;I)V";

            if (((global::Java.Lang.Throwable) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)p0).Handle);
                __args [1] = new JniArgumentValue(p1);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(p0);
            }
        }
Esempio n. 12
0
        public virtual void OnFailure(global::Java.Lang.Throwable p0, global::System.Collections.Generic.IDictionary <string, string> p1, string p2)
        {
            if (id_onFailure_Ljava_lang_Throwable_Ljava_util_Map_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_onFailure_Ljava_lang_Throwable_Ljava_util_Map_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onFailure", "(Ljava/lang/Throwable;Ljava/util/Map;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(p1);

            IntPtr native_p2 = JNIEnv.NewString(p2);

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_onFailure_Ljava_lang_Throwable_Ljava_util_Map_Ljava_lang_String_, new JValue(p0), new JValue(native_p1), new JValue(native_p2));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onFailure", "(Ljava/lang/Throwable;Ljava/util/Map;Ljava/lang/String;)V"), new JValue(p0), new JValue(native_p1), new JValue(native_p2));
            }
            JNIEnv.DeleteLocalRef(native_p1);
            JNIEnv.DeleteLocalRef(native_p2);
        }
Esempio n. 13
0
        public virtual unsafe void RegisterError(global::Java.Lang.Throwable p0)
        {
            if (id_registerError_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_registerError_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "registerError", "(Ljava/lang/Throwable;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_registerError_Ljava_lang_Throwable_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "registerError", "(Ljava/lang/Throwable;)V"), __args);
                }
            } finally {
            }
        }
Esempio n. 14
0
        protected virtual unsafe void OnUploadFailed(global::Java.Lang.Throwable p0)
        {
            if (id_onUploadFailed_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_onUploadFailed_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "onUploadFailed", "(Ljava/lang/Throwable;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onUploadFailed_Ljava_lang_Throwable_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onUploadFailed", "(Ljava/lang/Throwable;)V"), __args);
                }
            } finally {
            }
        }
            protected virtual unsafe void HandleWrap(global::Java.Lang.Throwable p0)
            {
                if (id_handle_Ljava_lang_Throwable_ == IntPtr.Zero)
                {
                    id_handle_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "handle", "(Ljava/lang/Throwable;)V");
                }
                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(p0);

                    if (GetType() == ThresholdType)
                    {
                        JNIEnv.CallVoidMethod(Handle, id_handle_Ljava_lang_Throwable_, __args);
                    }
                    else
                    {
                        JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handle", "(Ljava/lang/Throwable;)V"), __args);
                    }
                } finally {
                }
            }
Esempio n. 16
0
            public unsafe void E(global::Java.Lang.Throwable p0, string p1, params global::Java.Lang.Object[] p2)
            {
                if (id_e_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_ == IntPtr.Zero)
                {
                    id_e_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "e", "(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V");
                }
                IntPtr  native_p1 = JNIEnv.NewString(p1);
                IntPtr  native_p2 = JNIEnv.NewArray(p2);
                JValue *__args    = stackalloc JValue [3];

                __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)p0).Handle);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_e_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_, __args);
                JNIEnv.DeleteLocalRef(native_p1);
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }
Esempio n. 17
0
        public static unsafe void E(global::Java.Lang.Throwable e, string format, params global::Java.Lang.Object[] args)
        {
            const string __id          = "e.(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V";
            IntPtr       native_format = JNIEnv.NewString(format);
            IntPtr       native_args   = JNIEnv.NewArray(args);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((e == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)e).Handle);
                __args [1] = new JniArgumentValue(native_format);
                __args [2] = new JniArgumentValue(native_args);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_format);
                if (args != null)
                {
                    JNIEnv.CopyArray(native_args, args);
                    JNIEnv.DeleteLocalRef(native_args);
                }
            }
        }
Esempio n. 18
0
        public static unsafe global::Java.Lang.StackTraceElement[] Extract(global::Java.Lang.Throwable p0, string p1, int p2, global::System.Collections.Generic.IList <string> p3)
        {
            if (id_extract_Ljava_lang_Throwable_Ljava_lang_String_ILjava_util_List_ == IntPtr.Zero)
            {
                id_extract_Ljava_lang_Throwable_Ljava_lang_String_ILjava_util_List_ = JNIEnv.GetStaticMethodID(class_ref, "extract", "(Ljava/lang/Throwable;Ljava/lang/String;ILjava/util/List;)[Ljava/lang/StackTraceElement;");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p3 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p3);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);
                global::Java.Lang.StackTraceElement[] __ret = (global::Java.Lang.StackTraceElement[])JNIEnv.GetArray(JNIEnv.CallStaticObjectMethod(class_ref, id_extract_Ljava_lang_Throwable_Ljava_lang_String_ILjava_util_List_, __args), JniHandleOwnership.TransferLocalRef, typeof(global::Java.Lang.StackTraceElement));
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p3);
            }
        }
        public unsafe RpcException(global::Java.Lang.Integer p0, string p1, global::Java.Lang.Throwable p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (this.Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p1 = JNIEnv.NewString(p1);

            try
            {
                JValue *__args = stackalloc JValue[3];
                __args[0] = new JValue(p0);
                __args[1] = new JValue(native_p1);
                __args[2] = new JValue(p2);
                if (((object)this).GetType() != typeof(RpcException))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/Throwable;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(this.Handle, "(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/Throwable;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_Integer_Ljava_lang_String_Ljava_lang_Throwable_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_Integer_Ljava_lang_String_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/Throwable;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_Integer_Ljava_lang_String_Ljava_lang_Throwable_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(this.Handle, class_ref, id_ctor_Ljava_lang_Integer_Ljava_lang_String_Ljava_lang_Throwable_, __args);
            }
            finally
            {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Esempio n. 20
0
        public virtual unsafe void UncaughtException(global::Java.Lang.Thread p0, global::Java.Lang.Throwable p1)
        {
            if (id_uncaughtException_Ljava_lang_Thread_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_uncaughtException_Ljava_lang_Thread_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "uncaughtException", "(Ljava/lang/Thread;Ljava/lang/Throwable;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_uncaughtException_Ljava_lang_Thread_Ljava_lang_Throwable_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "uncaughtException", "(Ljava/lang/Thread;Ljava/lang/Throwable;)V"), __args);
                }
            } finally {
            }
        }
Esempio n. 21
0
        public MacroCommandCreationException(string p0, global::Java.Lang.Throwable p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);;

            if (GetType() != typeof(MacroCommandCreationException))
            {
                SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Ljava/lang/String;Ljava/lang/Throwable;)V", new JValue(native_p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
                JNIEnv.DeleteLocalRef(native_p0);
                return;
            }

            if (id_ctor_Ljava_lang_String_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_ctor_Ljava_lang_String_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/Throwable;)V");
            }
            SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_Throwable_, new JValue(native_p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
        }
Esempio n. 22
0
        public unsafe JsonParseException(string msg, global::Java.Lang.Throwable cause)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/String;Ljava/lang/Throwable;)V";

            if (((global::Java.Lang.Throwable) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_msg = JNIEnv.NewString(msg);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_msg);
                __args [1] = new JniArgumentValue((cause == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)cause).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_msg);
            }
        }
        public static unsafe void W(global::Java.Lang.Throwable p0, string p1, params global:: Java.Lang.Object[] p2)
        {
            if (id_w_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_ == IntPtr.Zero)
            {
                id_w_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_ = JNIEnv.GetStaticMethodID(class_ref, "w", "(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewArray(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                JNIEnv.CallStaticVoidMethod(class_ref, id_w_Ljava_lang_Throwable_Ljava_lang_String_arrayLjava_lang_Object_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }
        }
        public new virtual unsafe int Handle(global::Java.Lang.Object o, global::Java.Lang.Throwable t)
        {
            if (id_handle_Ljava_lang_Object_Ljava_lang_Throwable_ == IntPtr.Zero)
            {
                id_handle_Ljava_lang_Object_Ljava_lang_Throwable_ = JNIEnv.GetMethodID(class_ref, "handle", "(Ljava/lang/Object;Ljava/lang/Throwable;)I");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(o);
                __args [1] = new JValue(t);

                int __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_handle_Ljava_lang_Object_Ljava_lang_Throwable_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handle", "(Ljava/lang/Object;Ljava/lang/Throwable;)I"), __args);
                }
                return(__ret);
            } finally {
            }
        }
        public unsafe InvalidDataException(int closecode, string s, global::Java.Lang.Throwable t)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(ILjava/lang/String;Ljava/lang/Throwable;)V";

            if (((global::Java.Lang.Throwable) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_s = JNIEnv.NewString(s);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(closecode);
                __args [1] = new JniArgumentValue(native_s);
                __args [2] = new JniArgumentValue((t == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)t).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_s);
            }
        }
 public SQLFeatureNotSupportedException(string reason, string SQLState, int vendorCode, global::Java.Lang.Throwable cause) : base(global::Codemesh.JuggerNET.JNIHandle.NULL)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[4];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(reason).Add(SQLState).Add(vendorCode).Add(cause))
     {
         JObject = (long)_cmj_ctr7.CallObject(this, cmj_jmargs);
     }
 }
Esempio n. 27
0
 static void n_OnUploadFailed_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Messaging.Background.Filesharing.BaseUploadTask __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Background.Filesharing.BaseUploadTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnUploadFailed(p0);
 }
Esempio n. 28
0
 public DataTruncation(int index, bool parameter, bool read, int dataSize, int transferSize, global::Java.Lang.Throwable cause) : base(global::Codemesh.JuggerNET.JNIHandle.NULL)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[6];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(index).Add(parameter).Add(read).Add(dataSize).Add(transferSize).Add(cause))
     {
         JObject = (long)_cmj_ctr1.CallObject(this, cmj_jmargs);
     }
 }
        public virtual unsafe void Log(global::Java.Util.Logging.Level level, string msg, global::Java.Lang.Throwable th)
        {
            const string __id       = "log.(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V";
            IntPtr       native_msg = JNIEnv.NewString(msg);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((level == null) ? IntPtr.Zero : ((global::Java.Lang.Object)level).Handle);
                __args [1] = new JniArgumentValue(native_msg);
                __args [2] = new JniArgumentValue((th == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)th).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_msg);
            }
        }
Esempio n. 30
0
 public FailedEventArgs(global::Java.Lang.Throwable p0)
 {
     this.p0 = p0;
 }