public virtual unsafe bool HandleRequest(global::Com.Facebook.Stetho.Server.SocketLike p0, global::Com.Facebook.Stetho.Server.Http.LightHttpRequest p1, global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p2)
        {
            if (id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_ == IntPtr.Zero)
            {
                id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_ = JNIEnv.GetMethodID(class_ref, "handleRequest", "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/http/LightHttpRequest;Lcom/facebook/stetho/server/http/LightHttpResponse;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleRequest", "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/http/LightHttpRequest;Lcom/facebook/stetho/server/http/LightHttpResponse;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Exemple #2
0
        public unsafe SocketLike(global::Com.Facebook.Stetho.Server.SocketLike p0, global::Com.Facebook.Stetho.Server.LeakyBufferedInputStream 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(SocketLike))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_LeakyBufferedInputStream_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_LeakyBufferedInputStream_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_LeakyBufferedInputStream_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_LeakyBufferedInputStream_, __args);
            } finally {
            }
        }
        static bool n_HandleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Websocket.WebSocketHandler    __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.WebSocketHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.SocketLike             p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.Http.LightHttpRequest  p1     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p2     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpResponse> (native_p2, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.HandleRequest(p0, p1, p2);

            return(__ret);
        }
Exemple #4
0
        public unsafe void OnAccepted(global::Com.Facebook.Stetho.Server.SocketLike p0)
        {
            if (id_onAccepted_Lcom_facebook_stetho_server_SocketLike_ == IntPtr.Zero)
            {
                id_onAccepted_Lcom_facebook_stetho_server_SocketLike_ = JNIEnv.GetMethodID(class_ref, "onAccepted", "(Lcom/facebook/stetho/server/SocketLike;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onAccepted_Lcom_facebook_stetho_server_SocketLike_, __args);
        }
Exemple #5
0
        public virtual unsafe void OnAccepted(global::Com.Facebook.Stetho.Server.SocketLike p0)
        {
            if (id_onAccepted_Lcom_facebook_stetho_server_SocketLike_ == IntPtr.Zero)
            {
                id_onAccepted_Lcom_facebook_stetho_server_SocketLike_ = JNIEnv.GetMethodID(class_ref, "onAccepted", "(Lcom/facebook/stetho/server/SocketLike;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onAccepted_Lcom_facebook_stetho_server_SocketLike_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onAccepted", "(Lcom/facebook/stetho/server/SocketLike;)V"), __args);
                }
            } finally {
            }
        }
Exemple #6
0
 static IntPtr n_GetOutput(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Server.SocketLike __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.OutputStreamAdapter.ToLocalJniHandle(__this.Output));
 }
Exemple #7
0
 static void n_OnAccepted_Lcom_facebook_stetho_server_SocketLike_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Dumpapp.DumpappSocketLikeHandler __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Dumpapp.DumpappSocketLikeHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.SocketLike p0 = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnAccepted(p0);
 }
Exemple #8
0
 static void n_Serve_Lcom_facebook_stetho_server_SocketLike_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Server.Http.LightHttpServer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.SocketLike           p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Serve(p0);
 }