static IntPtr n_Deduplicate_Lokhttp3_ConnectionPool_Lokhttp3_Address_Lokhttp3_internal_connection_StreamAllocation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Okhttp3.Internal.Internal __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Internal> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.ConnectionPool    p0     = global::Java.Lang.Object.GetObject <global::Okhttp3.ConnectionPool> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Address           p1     = global::Java.Lang.Object.GetObject <global::Okhttp3.Address> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Internal.Connection.StreamAllocation p2 = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Connection.StreamAllocation> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Deduplicate(p0, p1, p2));

            return(__ret);
        }
Esempio n. 2
0
        public unsafe Http2xStream(global::Okhttp3.OkHttpClient client, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Framed.FramedConnection framedConnection)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/framed/FramedConnection;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((framedConnection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)framedConnection).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public unsafe RealInterceptorChain(global::System.Collections.Generic.IList <global::Okhttp3.IInterceptor> interceptors, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Http.IHttpStream httpStream, global::Okhttp3.IConnection connection, int index, global::Okhttp3.Request request)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/util/List;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpStream;Lokhttp3/Connection;ILokhttp3/Request;)V";

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

            IntPtr native_interceptors = global::Android.Runtime.JavaList <global::Okhttp3.IInterceptor> .ToLocalJniHandle(interceptors);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue(native_interceptors);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((httpStream == null) ? IntPtr.Zero : ((global::Java.Lang.Object)httpStream).Handle);
                __args [3] = new JniArgumentValue((connection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connection).Handle);
                __args [4] = new JniArgumentValue(index);
                __args [5] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).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_interceptors);
            }
        }
        public unsafe global::Okhttp3.Response Proceed(global::Okhttp3.Request request, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation, global::Okhttp3.Internal.Http.IHttpStream httpStream, global::Okhttp3.IConnection connection)
        {
            const string __id = "proceed.(Lokhttp3/Request;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpStream;Lokhttp3/Connection;)Lokhttp3/Response;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [2] = new JniArgumentValue((httpStream == null) ? IntPtr.Zero : ((global::Java.Lang.Object)httpStream).Handle);
                __args [3] = new JniArgumentValue((connection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connection).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public override unsafe global::Okhttp3.Internal.Connection.RealConnection Get(global::Okhttp3.ConnectionPool p0, global::Okhttp3.Address p1, global::Okhttp3.Internal.Connection.StreamAllocation p2, global::Okhttp3.Route p3)
        {
            const string __id = "get.(Lokhttp3/ConnectionPool;Lokhttp3/Address;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/Route;)Lokhttp3/internal/connection/RealConnection;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                __args [3] = new JniArgumentValue((p3 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p3).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Connection.RealConnection> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
 public abstract global::Okhttp3.Internal.Connection.RealConnection Get(global::Okhttp3.ConnectionPool p0, global::Okhttp3.Address p1, global::Okhttp3.Internal.Connection.StreamAllocation p2, global::Okhttp3.Route p3);
 public abstract global::Java.Net.Socket Deduplicate(global::Okhttp3.ConnectionPool p0, global::Okhttp3.Address p1, global::Okhttp3.Internal.Connection.StreamAllocation p2);
        public unsafe global::Okhttp3.Internal.WS.RealWebSocket.Streams NewWebSocketStreams(global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation)
        {
            const string __id = "newWebSocketStreams.(Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/ws/RealWebSocket$Streams;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.WS.RealWebSocket.Streams> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        public unsafe global::Okhttp3.Internal.Http.IHttpCodec NewCodec(global::Okhttp3.OkHttpClient client, global::Okhttp3.IInterceptorChain chain, global::Okhttp3.Internal.Connection.StreamAllocation streamAllocation)
        {
            const string __id = "newCodec.(Lokhttp3/OkHttpClient;Lokhttp3/Interceptor$Chain;Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/http/HttpCodec;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((client == null) ? IntPtr.Zero : ((global::Java.Lang.Object)client).Handle);
                __args [1] = new JniArgumentValue((chain == null) ? IntPtr.Zero : ((global::Java.Lang.Object)chain).Handle);
                __args [2] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.IHttpCodec> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }