Exemplo n.º 1
0
        public unsafe LightHttpServer(global::Com.Facebook.Stetho.Server.Http.HandlerRegistry p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

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

                if (id_ctor_Lcom_facebook_stetho_server_http_HandlerRegistry_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_facebook_stetho_server_http_HandlerRegistry_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/facebook/stetho/server/http/HandlerRegistry;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_facebook_stetho_server_http_HandlerRegistry_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_facebook_stetho_server_http_HandlerRegistry_, __args);
            } finally {
            }
        }
 static void n_Register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Facebook.Stetho.Server.Http.HandlerRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.HandlerRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.Http.IPathMatcher    p0     = (global::Com.Facebook.Stetho.Server.Http.IPathMatcher)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IPathMatcher> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.Http.IHttpHandler    p1     = (global::Com.Facebook.Stetho.Server.Http.IHttpHandler)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IHttpHandler> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Register(p0, p1);
 }
        static IntPtr n_Lookup_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Facebook.Stetho.Server.Http.HandlerRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.HandlerRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0    = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Lookup(p0));

            return(__ret);
        }
Exemplo n.º 4
0
        public virtual unsafe void Register(global::Com.Facebook.Stetho.Server.Http.HandlerRegistry p0)
        {
            if (id_register_Lcom_facebook_stetho_server_http_HandlerRegistry_ == IntPtr.Zero)
            {
                id_register_Lcom_facebook_stetho_server_http_HandlerRegistry_ = JNIEnv.GetMethodID(class_ref, "register", "(Lcom/facebook/stetho/server/http/HandlerRegistry;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_register_Lcom_facebook_stetho_server_http_HandlerRegistry_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "register", "(Lcom/facebook/stetho/server/http/HandlerRegistry;)V"), __args);
                }
            } finally {
            }
        }
Exemplo n.º 5
0
 static void n_Register_Lcom_facebook_stetho_server_http_HandlerRegistry_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.ChromeDiscoveryHandler __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.ChromeDiscoveryHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Server.Http.HandlerRegistry      p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.HandlerRegistry> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Register(p0);
 }