public unsafe WorkerThread(global::Android.Net.LocalSocket p0, global::Com.Facebook.Stetho.Server.ISocketHandler p1)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(p1);
                    if (GetType() != typeof(WorkerThread))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/SocketHandler;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/SocketHandler;)V", __args);
                        return;
                    }

                    if (id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_SocketHandler_ == IntPtr.Zero)
                    {
                        id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_SocketHandler_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/SocketHandler;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_SocketHandler_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_SocketHandler_, __args);
                } finally {
                }
            }
        public unsafe LocalSocketServer(string p0, string p1, global::Com.Facebook.Stetho.Server.ISocketHandler p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                if (GetType() != typeof(LocalSocketServer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/stetho/server/SocketHandler;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/stetho/server/SocketHandler;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_facebook_stetho_server_SocketHandler_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_facebook_stetho_server_SocketHandler_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/stetho/server/SocketHandler;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_facebook_stetho_server_SocketHandler_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_facebook_stetho_server_SocketHandler_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 static void n_OnAccepted_Landroid_net_LocalSocket_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Server.ISocketHandler __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.ISocketHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Net.LocalSocket p0 = global::Java.Lang.Object.GetObject <global::Android.Net.LocalSocket> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnAccepted(p0);
 }