Ejemplo n.º 1
0
        static IntPtr n_Authenticate_Lokhttp3_Route_Lokhttp3_Response_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Okhttp3.IAuthenticator __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IAuthenticator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Route          p0     = global::Java.Lang.Object.GetObject <global::Okhttp3.Route> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Response       p1     = global::Java.Lang.Object.GetObject <global::Okhttp3.Response> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Authenticate(p0, p1));

            return(__ret);
        }
        public unsafe void Failed(global::Okhttp3.Route failedRoute)
        {
            const string __id = "failed.(Lokhttp3/Route;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((failedRoute == null) ? IntPtr.Zero : ((global::Java.Lang.Object)failedRoute).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
        static IntPtr n_Get_Lokhttp3_ConnectionPool_Lokhttp3_Address_Lokhttp3_internal_connection_StreamAllocation_Lokhttp3_Route_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3)
        {
            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);
            global::Okhttp3.Route p3 = global::Java.Lang.Object.GetObject <global::Okhttp3.Route> (native_p3, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret             = JNIEnv.ToLocalJniHandle(__this.Get(p0, p1, p2, p3));

            return(__ret);
        }
        public unsafe bool ShouldPostpone(global::Okhttp3.Route route)
        {
            const string __id = "shouldPostpone.(Lokhttp3/Route;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((route == null) ? IntPtr.Zero : ((global::Java.Lang.Object)route).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
        public unsafe void ConnectFailed(global::Okhttp3.Route failedRoute, global::Java.IO.IOException failure)
        {
            const string __id = "connectFailed.(Lokhttp3/Route;Ljava/io/IOException;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((failedRoute == null) ? IntPtr.Zero : ((global::Java.Lang.Object)failedRoute).Handle);
                __args [1] = new JniArgumentValue((failure == null) ? IntPtr.Zero : ((global::Java.Lang.Throwable)failure).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe bool IsEligible(global::Okhttp3.Address address, global::Okhttp3.Route route)
        {
            const string __id = "isEligible.(Lokhttp3/Address;Lokhttp3/Route;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((address == null) ? IntPtr.Zero : ((global::Java.Lang.Object)address).Handle);
                __args [1] = new JniArgumentValue((route == null) ? IntPtr.Zero : ((global::Java.Lang.Object)route).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
Ejemplo n.º 7
0
        public unsafe global::Okhttp3.Request Authenticate(global::Okhttp3.Route p0, global::Okhttp3.Response p1)
        {
            if (id_authenticate_Lokhttp3_Route_Lokhttp3_Response_ == IntPtr.Zero)
            {
                id_authenticate_Lokhttp3_Route_Lokhttp3_Response_ = JNIEnv.GetMethodID(class_ref, "authenticate", "(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            global::Okhttp3.Request __ret = global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_authenticate_Lokhttp3_Route_Lokhttp3_Response_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Ejemplo n.º 8
0
        public unsafe global::Okhttp3.Request Authenticate(global::Okhttp3.Route route, global::Okhttp3.Response response)
        {
            const string __id = "authenticate.(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((route == null) ? IntPtr.Zero : ((global::Java.Lang.Object)route).Handle);
                __args [1] = new JniArgumentValue((response == null) ? IntPtr.Zero : ((global::Java.Lang.Object)response).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Request> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Ejemplo n.º 9
0
        public unsafe RealConnection(global::Okhttp3.Route route)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/Route;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((route == null) ? IntPtr.Zero : ((global::Java.Lang.Object)route).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } 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 static unsafe global::Okhttp3.Internal.Connection.RealConnection TestConnection(global::Okhttp3.ConnectionPool connectionPool, global::Okhttp3.Route route, global::Java.Net.Socket socket, long idleAtNanos)
        {
            const string __id = "testConnection.(Lokhttp3/ConnectionPool;Lokhttp3/Route;Ljava/net/Socket;J)Lokhttp3/internal/connection/RealConnection;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((connectionPool == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connectionPool).Handle);
                __args [1] = new JniArgumentValue((route == null) ? IntPtr.Zero : ((global::Java.Lang.Object)route).Handle);
                __args [2] = new JniArgumentValue((socket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)socket).Handle);
                __args [3] = new JniArgumentValue(idleAtNanos);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Connection.RealConnection> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }