public BackgroundJob(global::Com.Android.Camera.MonitoredActivity p0, global::Java.Lang.IRunnable p1, global::Android.App.ProgressDialog p2, global::Android.OS.Handler p3) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (Handle != IntPtr.Zero)
                {
                    return;
                }

                if (GetType() != typeof(BackgroundJob))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/android/camera/MonitoredActivity;Ljava/lang/Runnable;Landroid/app/ProgressDialog;Landroid/os/Handler;)V", new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3)),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lcom/android/camera/MonitoredActivity;Ljava/lang/Runnable;Landroid/app/ProgressDialog;Landroid/os/Handler;)V", new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
                    return;
                }

                if (id_ctor_Lcom_android_camera_MonitoredActivity_Ljava_lang_Runnable_Landroid_app_ProgressDialog_Landroid_os_Handler_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_android_camera_MonitoredActivity_Ljava_lang_Runnable_Landroid_app_ProgressDialog_Landroid_os_Handler_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/android/camera/MonitoredActivity;Ljava/lang/Runnable;Landroid/app/ProgressDialog;Landroid/os/Handler;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_android_camera_MonitoredActivity_Ljava_lang_Runnable_Landroid_app_ProgressDialog_Landroid_os_Handler_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3)),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_android_camera_MonitoredActivity_Ljava_lang_Runnable_Landroid_app_ProgressDialog_Landroid_os_Handler_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3));
            }
Ejemplo n.º 2
0
        static void n_SetStartCallback_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            VectorAnimation __this = Java.Lang.Object.GetObject <VectorAnimation> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.IRunnable p0 = Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.SetStartCallback(p0);
        }
        static void n_SetOnEmitCallback_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            MacroObject __this = Java.Lang.Object.GetObject <MacroObject> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.IRunnable p0 = Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.SetOnEmitCallback(p0);
        }
 static void n_UnscheduleDrawable_Landroid_graphics_drawable_Drawable_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_who, IntPtr native_what)
 {
     global::Com.Facebook.Drawee.Drawable.ArrayDrawable __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Drawable.ArrayDrawable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Drawables.Drawable        who    = global::Java.Lang.Object.GetObject <global::Android.Graphics.Drawables.Drawable> (native_who, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.IRunnable what = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_what, JniHandleOwnership.DoNotTransfer);
     __this.UnscheduleDrawable(who, what);
 }
        public unsafe SynchronizedInternetConnectionCallback(global::Java.Lang.IRunnable 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 (((object)this).GetType() != typeof(SynchronizedInternetConnectionCallback))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/Runnable;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/Runnable;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_Runnable_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/Runnable;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_Runnable_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_Runnable_, __args);
            } finally {
            }
        }
Ejemplo n.º 6
0
 static void n_CancelDelayedRequest_Lcom_liveperson_infra_network_socket_BaseSocketRequest_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Liveperson.Infra.Network.Socket.SocketManager     __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Socket.SocketManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Liveperson.Infra.Network.Socket.BaseSocketRequest p0     = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Network.Socket.BaseSocketRequest> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.IRunnable p1 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.CancelDelayedRequest(p0, p1);
 }
        public unsafe NV21Buffer(byte[] data, int width, int height, global::Java.Lang.IRunnable releaseCallback)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "([BIILjava/lang/Runnable;)V";

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

            IntPtr native_data = JNIEnv.NewArray(data);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue(native_data);
                __args [1] = new JniArgumentValue(width);
                __args [2] = new JniArgumentValue(height);
                __args [3] = new JniArgumentValue((releaseCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)releaseCallback).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                if (data != null)
                {
                    JNIEnv.CopyArray(native_data, data);
                    JNIEnv.DeleteLocalRef(native_data);
                }
            }
        }
Ejemplo n.º 8
0
        static void n_SetOnStartRunnable_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            JoystickView __this = Java.Lang.Object.GetObject <JoystickView> (native__this, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.IRunnable p0 = Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.SetOnStartRunnable(p0);
        }
        public unsafe Stepper(global::Android.Views.View p0, global::Java.Lang.IRunnable 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(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(Stepper))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/view/View;Ljava/lang/Runnable;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/view/View;Ljava/lang/Runnable;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_view_View_Ljava_lang_Runnable_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_view_View_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/view/View;Ljava/lang/Runnable;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_view_View_Ljava_lang_Runnable_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_view_View_Ljava_lang_Runnable_, __args);
            } finally {
            }
        }
 static void n_PostResponse_Lcom_mopub_volley_Request_Lcom_mopub_volley_Response_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::MoPub.Volley.IResponseDelivery __this = global::Java.Lang.Object.GetObject <global::MoPub.Volley.IResponseDelivery> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Request           p0     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Request> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::MoPub.Volley.Response          p1     = global::Java.Lang.Object.GetObject <global::MoPub.Volley.Response> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.IRunnable            p2     = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.PostResponse(p0, p1, p2);
 }
        static IntPtr n_SetPreQueryOnBackground_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Infra.Database.DataBaseCommand __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Database.DataBaseCommand> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable p0 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetPreQueryOnBackground(p0));

            return(__ret);
        }
            static IntPtr n_NewThread_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                global::Com.Bumptech.Glide.Load.Engine.Executor.FifoPriorityThreadPoolExecutor.DefaultThreadFactory __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Engine.Executor.FifoPriorityThreadPoolExecutor.DefaultThreadFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Java.Lang.IRunnable p0 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewThread(p0));

                return(__ret);
            }
Ejemplo n.º 13
0
        static IntPtr n_NewThread_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::BE.Abeel.Concurrency.DaemonThreadFactory __this = global::Java.Lang.Object.GetObject <global::BE.Abeel.Concurrency.DaemonThreadFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable p0 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewThread(p0));

            return(__ret);
        }
Ejemplo n.º 14
0
        static bool n_RunOnFirstFix_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_runnable)
        {
            global::Osmdroid.Api.IMyLocationOverlay __this   = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable             runnable = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_runnable, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.RunOnFirstFix(runnable);

            return(__ret);
        }
            static IntPtr n_NewThread_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                global::Com.Alibaba.Sdk.Android.Push.Common.Util.ThreadPoolFactory.ScheduledThreadFactory __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Sdk.Android.Push.Common.Util.ThreadPoolFactory.ScheduledThreadFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Java.Lang.IRunnable p0 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewThread(p0));

                return(__ret);
            }
            static IntPtr n_NewThread_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                global::Com.Nostra13.Universalimageloader.Core.DefaultConfigurationFactory.DefaultThreadFactory __this = global::Java.Lang.Object.GetObject <global::Com.Nostra13.Universalimageloader.Core.DefaultConfigurationFactory.DefaultThreadFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Java.Lang.IRunnable p0 = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_p0, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewThread(p0));

                return(__ret);
            }
Ejemplo n.º 17
0
        static IntPtr n_Submit_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_task)
        {
            global::Com.Facebook.Common.Executors.IHandlerExecutorService __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Common.Executors.IHandlerExecutorService>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable task = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable>(native_task, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Submit(task));

            return(__ret);
        }
Ejemplo n.º 18
0
        static IntPtr n_NewThread_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_pRunnable)
        {
            global::Osmdroid.TileProvider.Modules.ConfigurablePriorityThreadFactory __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.Modules.ConfigurablePriorityThreadFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable pRunnable = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_pRunnable, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewThread(pRunnable));

            return(__ret);
        }
Ejemplo n.º 19
0
            static IntPtr n_SetBuffer_Ljava_nio_ByteBuffer_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_buffer, IntPtr native_releaseCallback)
            {
                global::Org.Webrtc.EncodedImage.Builder __this          = global::Java.Lang.Object.GetObject <global::Org.Webrtc.EncodedImage.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Java.Nio.ByteBuffer             buffer          = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_buffer, JniHandleOwnership.DoNotTransfer);
                global::Java.Lang.IRunnable             releaseCallback = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_releaseCallback, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetBuffer(buffer, releaseCallback));

                return(__ret);
            }
Ejemplo n.º 20
0
        static IntPtr n_ScheduleWithFixedDelay_Ljava_lang_Runnable_JJLjava_util_concurrent_TimeUnit_(IntPtr jnienv, IntPtr native__this, IntPtr native_command, long initialDelay, long delay, IntPtr native_unit)
        {
            global::Com.Facebook.Common.Executors.IHandlerExecutorService __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Common.Executors.IHandlerExecutorService>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable           command = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable>(native_command, 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.ScheduleWithFixedDelay(command, initialDelay, delay, unit));

            return(__ret);
        }
        static IntPtr n_NewTaskFor_Ljava_lang_Runnable_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_runnable, IntPtr native_value)
        {
            global::Com.Facebook.Common.Executors.HandlerExecutorServiceImpl __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Common.Executors.HandlerExecutorServiceImpl>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable runnable = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable>(native_runnable, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object    value    = global::Java.Lang.Object.GetObject <global::Java.Lang.Object>(native_value, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewTaskFor(runnable, value));

            return(__ret);
        }
Ejemplo n.º 22
0
        public bool RunOnFirstFix(global::Java.Lang.IRunnable runnable)
        {
            if (id_runOnFirstFix_Ljava_lang_Runnable_ == IntPtr.Zero)
            {
                id_runOnFirstFix_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "runOnFirstFix", "(Ljava/lang/Runnable;)Z");
            }
            bool __ret = JNIEnv.CallBooleanMethod(Handle, id_runOnFirstFix_Ljava_lang_Runnable_, new JValue(runnable));

            return(__ret);
        }
        public unsafe void RemoveCallbacks(global::Java.Lang.IRunnable p0)
        {
            if (id_removeCallbacks_Ljava_lang_Runnable_ == IntPtr.Zero)
            {
                id_removeCallbacks_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "removeCallbacks", "(Ljava/lang/Runnable;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_removeCallbacks_Ljava_lang_Runnable_, __args);
        }
Ejemplo n.º 24
0
        public unsafe void Execute(global::Java.Lang.IRunnable command)
        {
            if (id_execute_Ljava_lang_Runnable_ == IntPtr.Zero)
            {
                id_execute_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "execute", "(Ljava/lang/Runnable;)V");
            }
            JValue *__args = stackalloc JValue[1];

            __args[0] = new JValue(command);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_execute_Ljava_lang_Runnable_, __args);
        }
        public override unsafe void QueueEvent(global::Java.Lang.IRunnable runnable)
        {
            const string __id = "queueEvent.(Ljava/lang/Runnable;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((runnable == null) ? IntPtr.Zero : ((global::Java.Lang.Object)runnable).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe void QueueEvent(global::Java.Lang.IRunnable p0)
        {
            if (id_queueEvent_Ljava_lang_Runnable_ == IntPtr.Zero)
            {
                id_queueEvent_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "queueEvent", "(Ljava/lang/Runnable;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_queueEvent_Ljava_lang_Runnable_, __args);
        }
Ejemplo n.º 27
0
        public unsafe void SetIdleCallback(global::Java.Lang.IRunnable idleCallback)
        {
            const string __id = "setIdleCallback.(Ljava/lang/Runnable;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((idleCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)idleCallback).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe void PostDelayed(global::Java.Lang.IRunnable p0, long p1)
        {
            if (id_postDelayed_Ljava_lang_Runnable_J == IntPtr.Zero)
            {
                id_postDelayed_Ljava_lang_Runnable_J = JNIEnv.GetMethodID(class_ref, "postDelayed", "(Ljava/lang/Runnable;J)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_postDelayed_Ljava_lang_Runnable_J, __args);
        }
Ejemplo n.º 29
0
        public unsafe global::Java.Util.Concurrent.IFuture Submit(global::Java.Lang.IRunnable task)
        {
            if (id_submit_Ljava_lang_Runnable_ == IntPtr.Zero)
            {
                id_submit_Ljava_lang_Runnable_ = JNIEnv.GetMethodID(class_ref, "submit", "(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;");
            }
            JValue *__args = stackalloc JValue[1];

            __args[0] = new JValue(task);
            global::Java.Util.Concurrent.IFuture __ret = global::Java.Lang.Object.GetObject <global::Java.Util.Concurrent.IFuture>(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_submit_Ljava_lang_Runnable_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Ejemplo n.º 30
0
        public virtual unsafe void Lock(global::Java.Lang.IRunnable onLock, bool block)
        {
            const string __id = "lock.(Ljava/lang/Runnable;Z)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((onLock == null) ? IntPtr.Zero : ((global::Java.Lang.Object)onLock).Handle);
                __args [1] = new JniArgumentValue(block);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }