static void n_SetLockFile_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_path) { global::Com.Mob.Tools.Utils.FileLocker __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Utils.FileLocker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string path = JNIEnv.GetString(native_path, JniHandleOwnership.DoNotTransfer); __this.SetLockFile(path); }
static bool n_Run_Lcom_mob_tools_utils_FileLocker_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mob.Commons.ILockAction __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Commons.ILockAction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mob.Tools.Utils.FileLocker p0 = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Utils.FileLocker> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Run(p0); return(__ret); }
public unsafe bool Run(global::Com.Mob.Tools.Utils.FileLocker p0) { if (id_run_Lcom_mob_tools_utils_FileLocker_ == IntPtr.Zero) { id_run_Lcom_mob_tools_utils_FileLocker_ = JNIEnv.GetMethodID(class_ref, "run", "(Lcom/mob/tools/utils/FileLocker;)Z"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_run_Lcom_mob_tools_utils_FileLocker_, __args); return(__ret); }
static bool n_Lock_ZJJ(IntPtr jnienv, IntPtr native__this, bool block, long timeout, long sleepInterval) { global::Com.Mob.Tools.Utils.FileLocker __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Utils.FileLocker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Lock(block, timeout, sleepInterval)); }
static void n_Unlock(IntPtr jnienv, IntPtr native__this) { global::Com.Mob.Tools.Utils.FileLocker __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Utils.FileLocker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Unlock(); }
static void n_Lock_Ljava_lang_Runnable_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_onLock, bool block) { global::Com.Mob.Tools.Utils.FileLocker __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Utils.FileLocker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.IRunnable onLock = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_onLock, JniHandleOwnership.DoNotTransfer); __this.Lock(onLock, block); }