public unsafe ForwardingTimeout(global::Okio.Timeout p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (GetType() != typeof(ForwardingTimeout))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lokio/Timeout;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lokio/Timeout;)V", __args);
                    return;
                }

                if (id_ctor_Lokio_Timeout_ == IntPtr.Zero)
                {
                    id_ctor_Lokio_Timeout_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lokio/Timeout;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lokio_Timeout_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lokio_Timeout_, __args);
            } finally {
            }
        }
Esempio n. 2
0
        static IntPtr n_InvokeTimeout_JLjava_util_concurrent_TimeUnit_(IntPtr jnienv, IntPtr native__this, long timeout, IntPtr native_unit)
        {
            global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Util.Concurrent.TimeUnit unit = global::Java.Lang.Object.GetObject <global::Java.Util.Concurrent.TimeUnit> (native_unit, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.InvokeTimeout(timeout, unit));

            return(__ret);
        }
        public unsafe global::Okio.ForwardingTimeout SetDelegate(global::Okio.Timeout @delegate)
        {
            const string __id = "setDelegate.(Lokio/Timeout;)Lokio/ForwardingTimeout;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((@delegate == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@delegate).Handle);
                var __rm = _members.InstanceMethods.InvokeNonvirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okio.ForwardingTimeout> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
 public unsafe global::Okio.ForwardingTimeout SetDelegate(global::Okio.Timeout p0)
 {
     if (id_setDelegate_Lokio_Timeout_ == IntPtr.Zero)
     {
         id_setDelegate_Lokio_Timeout_ = JNIEnv.GetMethodID(class_ref, "setDelegate", "(Lokio/Timeout;)Lokio/ForwardingTimeout;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Okio.ForwardingTimeout __ret = global::Java.Lang.Object.GetObject <global::Okio.ForwardingTimeout> (JNIEnv.CallObjectMethod(Handle, id_setDelegate_Lokio_Timeout_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public unsafe global::Okio.Timeout Deadline(long p0, global::Java.Util.Concurrent.TimeUnit p1)
 {
     if (id_deadline_JLjava_util_concurrent_TimeUnit_ == IntPtr.Zero)
     {
         id_deadline_JLjava_util_concurrent_TimeUnit_ = JNIEnv.GetMethodID(class_ref, "deadline", "(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Okio.Timeout __ret = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (JNIEnv.CallObjectMethod(Handle, id_deadline_JLjava_util_concurrent_TimeUnit_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public unsafe ForwardingTimeout(global::Okio.Timeout @delegate)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokio/Timeout;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((@delegate == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@delegate).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Esempio n. 7
0
 static bool n_HasDeadline(IntPtr jnienv, IntPtr native__this)
 {
     global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.HasDeadline);
 }
Esempio n. 8
0
 static long n_TimeoutNanos(IntPtr jnienv, IntPtr native__this)
 {
     global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.TimeoutNanos());
 }
Esempio n. 9
0
 static void n_ThrowIfReached(IntPtr jnienv, IntPtr native__this)
 {
     global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.ThrowIfReached();
 }
Esempio n. 10
0
 static IntPtr n_DeadlineNanoTime_J(IntPtr jnienv, IntPtr native__this, long deadlineNanoTime)
 {
     global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.DeadlineNanoTime(deadlineNanoTime)));
 }
Esempio n. 11
0
 static IntPtr n_ClearTimeout(IntPtr jnienv, IntPtr native__this)
 {
     global::Okio.Timeout __this = global::Java.Lang.Object.GetObject <global::Okio.Timeout> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.ClearTimeout()));
 }