static void n_InvokeMethod_Ljava_lang_String_Ljava_lang_Object_Lcom_facebook_stetho_inspector_jsonrpc_PendingRequestCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.Object p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback p2 = (global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.IPendingRequestCallback> (native_p2, JniHandleOwnership.DoNotTransfer);
            __this.InvokeMethod(p0, p1, p2);
        }
        static IntPtr n_CanInspectWorkers_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Facebook.Stetho.Inspector.Protocol.Module.Worker __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Protocol.Module.Worker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer    p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Org.Json.JSONObject p1 = global::Java.Lang.Object.GetObject <global::Org.Json.JSONObject> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CanInspectWorkers(p0, p1));

            return(__ret);
        }
Пример #3
0
        public unsafe void OnPeerRegistered(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0)
        {
            if (id_onPeerRegistered_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ == IntPtr.Zero)
            {
                id_onPeerRegistered_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ = JNIEnv.GetMethodID(class_ref, "onPeerRegistered", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onPeerRegistered_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_, __args);
        }
        static IntPtr n_Dispatch_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Ljava_lang_String_Lorg_json_JSONObject_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Inspector.MethodDispatcher    __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.MethodDispatcher> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            global::Org.Json.JSONObject p2 = global::Java.Lang.Object.GetObject <global::Org.Json.JSONObject> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Dispatch(p0, p1, p2));

            return(__ret);
        }
Пример #5
0
        public unsafe void OnResponse(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0, global::Com.Facebook.Stetho.Inspector.Jsonrpc.Protocol.JsonRpcResponse p1)
        {
            if (id_onResponse_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_jsonrpc_protocol_JsonRpcResponse_ == IntPtr.Zero)
            {
                id_onResponse_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_jsonrpc_protocol_JsonRpcResponse_ = JNIEnv.GetMethodID(class_ref, "onResponse", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lcom/facebook/stetho/inspector/jsonrpc/protocol/JsonRpcResponse;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onResponse_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_jsonrpc_protocol_JsonRpcResponse_, __args);
        }
Пример #6
0
 public unsafe void StartScreencast(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0, global::Com.Facebook.Stetho.Inspector.Protocol.Module.Page.StartScreencastRequest p1)
 {
     if (id_startScreencast_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_protocol_module_Page_StartScreencastRequest_ == IntPtr.Zero)
     {
         id_startScreencast_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_protocol_module_Page_StartScreencastRequest_ = JNIEnv.GetMethodID(class_ref, "startScreencast", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lcom/facebook/stetho/inspector/protocol/module/Page$StartScreencastRequest;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_startScreencast_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lcom_facebook_stetho_inspector_protocol_module_Page_StartScreencastRequest_, __args);
     } finally {
     }
 }
Пример #7
0
        protected virtual unsafe void OnPeerRemoved(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0)
        {
            if (id_onPeerRemoved_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ == IntPtr.Zero)
            {
                id_onPeerRemoved_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ = JNIEnv.GetMethodID(class_ref, "onPeerRemoved", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onPeerRemoved_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onPeerRemoved", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe void SetSamplingInterval(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0, global::Org.Json.JSONObject p1)
        {
            if (id_setSamplingInterval_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_ == IntPtr.Zero)
            {
                id_setSamplingInterval_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_ = JNIEnv.GetMethodID(class_ref, "setSamplingInterval", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lorg/json/JSONObject;)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_setSamplingInterval_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setSamplingInterval", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lorg/json/JSONObject;)V"), __args);
                }
            } finally {
            }
        }
Пример #9
0
        public virtual unsafe bool AddPeer(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0)
        {
            if (id_addPeer_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ == IntPtr.Zero)
            {
                id_addPeer_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ = JNIEnv.GetMethodID(class_ref, "addPeer", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_addPeer_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addPeer", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
            public virtual unsafe global::Org.Json.JSONObject Invoke(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0, global::Org.Json.JSONObject p1)
            {
                if (id_invoke_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_ == IntPtr.Zero)
                {
                    id_invoke_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_ = JNIEnv.GetMethodID(class_ref, "invoke", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lorg/json/JSONObject;)Lorg/json/JSONObject;");
                }
                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(p1);

                    global::Org.Json.JSONObject __ret;
                    if (GetType() == ThresholdType)
                    {
                        __ret = global::Java.Lang.Object.GetObject <global::Org.Json.JSONObject> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_invoke_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_Lorg_json_JSONObject_, __args), JniHandleOwnership.TransferLocalRef);
                    }
                    else
                    {
                        __ret = global::Java.Lang.Object.GetObject <global::Org.Json.JSONObject> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "invoke", "(Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;Lorg/json/JSONObject;)Lorg/json/JSONObject;"), __args), JniHandleOwnership.TransferLocalRef);
                    }
                    return(__ret);
                } finally {
                }
            }
 static void n_InvokeDisconnectReceivers(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.InvokeDisconnectReceivers();
 }
Пример #12
0
 static void n_OnPeerRegistered_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Helper.IPeerRegistrationListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0 = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnPeerRegistered(p0);
 }
Пример #13
0
 public PeerUnregisteredEventArgs(global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer p0)
 {
     this.p0 = p0;
 }
Пример #14
0
 static void n_RemovePeer_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.Helper.ChromePeerManager __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Helper.ChromePeerManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer      p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.RemovePeer(p0);
 }
 static void n_UnregisterDisconnectReceiver_Lcom_facebook_stetho_inspector_jsonrpc_DisconnectReceiver_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer         __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.IDisconnectReceiver p0     = (global::Com.Facebook.Stetho.Inspector.Jsonrpc.IDisconnectReceiver)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.IDisconnectReceiver> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.UnregisterDisconnectReceiver(p0);
 }
Пример #16
0
            public unsafe UnregisterOnDisconnect(global::Com.Facebook.Stetho.Inspector.Helper.ChromePeerManager __self, global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer 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(__self);
                    __args [1] = new JValue(p1);
                    if (GetType() != typeof(UnregisterOnDisconnect))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_facebook_stetho_inspector_helper_ChromePeerManager_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_facebook_stetho_inspector_helper_ChromePeerManager_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/facebook/stetho/inspector/helper/ChromePeerManager;Lcom/facebook/stetho/inspector/jsonrpc/JsonRpcPeer;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_facebook_stetho_inspector_helper_ChromePeerManager_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_facebook_stetho_inspector_helper_ChromePeerManager_Lcom_facebook_stetho_inspector_jsonrpc_JsonRpcPeer_, __args);
                } finally {
                }
            }
 static IntPtr n_GetAndRemovePendingRequest_J(IntPtr jnienv, IntPtr native__this, long p0)
 {
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.GetAndRemovePendingRequest(p0)));
 }
 static IntPtr n_GetWebSocket(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Jsonrpc.JsonRpcPeer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.WebSocket));
 }