public unsafe FrameworkMediaDrm(global::Java.Util.UUID 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 (GetType() != typeof(FrameworkMediaDrm)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/util/UUID;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/util/UUID;)V", __args); return; } if (id_ctor_Ljava_util_UUID_ == IntPtr.Zero) { id_ctor_Ljava_util_UUID_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/util/UUID;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_util_UUID_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_util_UUID_, __args); } finally { } }
static void n_OnCharacteristicWrite_Lcom_thalmic_myo_internal_ble_Address_Ljava_util_UUID_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, bool p2) { global::Com.Thalmic.Myo.Internal.Ble.BleGattCallback __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.BleGattCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Thalmic.Myo.Internal.Ble.Address p0 = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.Address> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p1 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnCharacteristicWrite(p0, p1, p2); }
public override unsafe void 鷭(global::Android.Bluetooth.BluetoothGatt p0, global::Java.Util.UUID p1, byte[] p2, int p3, int p4, global::System.Collections.Generic.IList <global::Android.Bluetooth.BluetoothGattDescriptor> p5) { if (id_鷭_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_ == IntPtr.Zero) { id_鷭_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_ = JNIEnv.GetMethodID(class_ref, "鷭", "(Landroid/bluetooth/BluetoothGatt;Ljava/util/UUID;[BIILjava/util/List;)V"); } IntPtr native_p2 = JNIEnv.NewArray(p2); IntPtr native_p5 = global::Android.Runtime.JavaList <global::Android.Bluetooth.BluetoothGattDescriptor> .ToLocalJniHandle(p5); try { JValue *__args = stackalloc JValue [6]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); __args [5] = new JValue(native_p5); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_鷭_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "鷭", "(Landroid/bluetooth/BluetoothGatt;Ljava/util/UUID;[BIILjava/util/List;)V"), __args); } } finally { if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } JNIEnv.DeleteLocalRef(native_p5); } }
static void n_OnBleScan_Lcom_thalmic_myo_internal_ble_Address_ILjava_util_UUID_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2) { global::Com.Thalmic.Myo.Internal.Ble.IBleManagerBleScanCallback __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.IBleManagerBleScanCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Thalmic.Myo.Internal.Ble.Address p0 = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.Address> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p2 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p2, JniHandleOwnership.DoNotTransfer); __this.OnBleScan(p0, p1, p2); }
static IntPtr n_Get_Ljava_util_UUID_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Google.Android.Exoplayer.Drm.IDrmInitData __this = global::Java.Lang.Object.GetObject <global::Com.Google.Android.Exoplayer.Drm.IDrmInitData> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p0 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Get(p0)); return(__ret); }
static void n_SetCharacteristicNotification_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ZZ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, bool p3, bool p4) { global::Com.Thalmic.Myo.Internal.Ble.IBleGatt __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.IBleGatt> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p1 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p1, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p2 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p2, JniHandleOwnership.DoNotTransfer); __this.SetCharacteristicNotification(p0, p1, p2, p3, p4); }
static void n_Invoke鷭_Ljava_util_UUID_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Qcl.VH.MD.And.AndBaseGattClient __this = global::Java.Lang.Object.GetObject <global::Com.Qcl.VH.MD.And.AndBaseGattClient> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p0 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p0, JniHandleOwnership.DoNotTransfer); byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte)); __this.Invoke鷭(p0, p1); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } }
public void ReadCharacteristic(string p0, global::Java.Util.UUID p1, global::Java.Util.UUID p2) { if (id_readCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ == IntPtr.Zero) { id_readCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ = JNIEnv.GetMethodID(class_ref, "readCharacteristic", "(Ljava/lang/String;Ljava/util/UUID;Ljava/util/UUID;)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); JNIEnv.CallVoidMethod(Handle, id_readCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_, new JValue(native_p0), new JValue(p1), new JValue(p2)); JNIEnv.DeleteLocalRef(native_p0); }
public void SetCharacteristicNotification(string p0, global::Java.Util.UUID p1, global::Java.Util.UUID p2, bool p3, bool p4) { if (id_setCharacteristicNotification_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ZZ == IntPtr.Zero) { id_setCharacteristicNotification_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ZZ = JNIEnv.GetMethodID(class_ref, "setCharacteristicNotification", "(Ljava/lang/String;Ljava/util/UUID;Ljava/util/UUID;ZZ)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); JNIEnv.CallVoidMethod(Handle, id_setCharacteristicNotification_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_ZZ, new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)); JNIEnv.DeleteLocalRef(native_p0); }
public unsafe void SetRequestCorrelationId(global::Java.Util.UUID p0) { if (id_setRequestCorrelationId_Ljava_util_UUID_ == IntPtr.Zero) { id_setRequestCorrelationId_Ljava_util_UUID_ = JNIEnv.GetMethodID(class_ref, "setRequestCorrelationId", "(Ljava/util/UUID;)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_setRequestCorrelationId_Ljava_util_UUID_, __args); }
public virtual unsafe void SetRequestCorrelationId(global::Java.Util.UUID requestCorrelationId) { const string __id = "setRequestCorrelationId.(Ljava/util/UUID;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((requestCorrelationId == null) ? IntPtr.Zero : ((global::Java.Lang.Object)requestCorrelationId).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { global::System.GC.KeepAlive(requestCorrelationId); } }
static void n_OnCharacteristicChanged_Lcom_thalmic_myo_internal_ble_Address_Ljava_util_UUID_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2) { global::Com.Thalmic.Myo.Internal.Ble.BleGattCallback __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.BleGattCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Thalmic.Myo.Internal.Ble.Address p0 = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.Address> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p1 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p1, JniHandleOwnership.DoNotTransfer); byte[] p2 = (byte[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(byte)); __this.OnCharacteristicChanged(p0, p1, p2); if (p2 != null) { JNIEnv.CopyArray(p2, native_p2); } }
public virtual unsafe bool ContainsCharacter(global::Java.Util.UUID serviceId, global::Java.Util.UUID characterId) { const string __id = "containsCharacter.(Ljava/util/UUID;Ljava/util/UUID;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((serviceId == null) ? IntPtr.Zero : ((global::Java.Lang.Object)serviceId).Handle); __args [1] = new JniArgumentValue((characterId == null) ? IntPtr.Zero : ((global::Java.Lang.Object)characterId).Handle); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod(__id, this, __args); return(__rm); } finally { } }
public virtual unsafe void ReadCharacteristic(global::Java.Util.UUID service, global::Java.Util.UUID character, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.CharacterRead.ICharacterReadListener listener, bool loggable) { const string __id = "readCharacteristic.(Ljava/util/UUID;Ljava/util/UUID;Lcom/vivalnk/sdk/common/ble/connect/request/CharacterRead$CharacterReadListener;Z)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue((service == null) ? IntPtr.Zero : ((global::Java.Lang.Object)service).Handle); __args [1] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle); __args [2] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle); __args [3] = new JniArgumentValue(loggable); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
static void n_鷭_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, int p3, int p4, IntPtr native_p5) { global::Com.Qcl.VH.Ble.BloodGlucoseGattClient __this = global::Java.Lang.Object.GetObject <global::Com.Qcl.VH.Ble.BloodGlucoseGattClient> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Bluetooth.BluetoothGatt p0 = global::Java.Lang.Object.GetObject <global::Android.Bluetooth.BluetoothGatt> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p1 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p1, JniHandleOwnership.DoNotTransfer); byte[] p2 = (byte[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(byte)); var p5 = global::Android.Runtime.JavaList <global::Android.Bluetooth.BluetoothGattDescriptor> .FromJniHandle(native_p5, JniHandleOwnership.DoNotTransfer); __this.鷭(p0, p1, p2, p3, p4, p5); if (p2 != null) { JNIEnv.CopyArray(p2, native_p2); } }
public static unsafe void LogTokenResultError(global::Java.Util.UUID correlationId, global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.TokenResult tokenResult) { const string __id = "logTokenResultError.(Ljava/util/UUID;Lcom/microsoft/identity/common/internal/providers/oauth2/TokenResult;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((correlationId == null) ? IntPtr.Zero : ((global::Java.Lang.Object)correlationId).Handle); __args [1] = new JniArgumentValue((tokenResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object)tokenResult).Handle); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { global::System.GC.KeepAlive(correlationId); global::System.GC.KeepAlive(tokenResult); } }
public unsafe void Put(global::Java.Util.UUID p0, global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData p1) { if (id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ == IntPtr.Zero) { id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ = JNIEnv.GetMethodID(class_ref, "put", "(Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_put_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args); } finally { } }
static void n_WriteCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3) { global::Com.Thalmic.Myo.Internal.Ble.IBleGatt __this = global::Java.Lang.Object.GetObject <global::Com.Thalmic.Myo.Internal.Ble.IBleGatt> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p1 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p1, JniHandleOwnership.DoNotTransfer); global::Java.Util.UUID p2 = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (native_p2, JniHandleOwnership.DoNotTransfer); byte[] p3 = (byte[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(byte)); __this.WriteCharacteristic(p0, p1, p2, p3); if (p3 != null) { JNIEnv.CopyArray(p3, native_p3); } }
public unsafe void ReadCharacteristic(global::Java.Util.UUID p0, global::Java.Util.UUID p1, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.CharacterRead.ICharacterReadListener p2, bool p3) { if (id_readCharacteristic_Ljava_util_UUID_Ljava_util_UUID_Lcom_vivalnk_sdk_common_ble_connect_request_CharacterRead_CharacterReadListener_Z == IntPtr.Zero) { id_readCharacteristic_Ljava_util_UUID_Ljava_util_UUID_Lcom_vivalnk_sdk_common_ble_connect_request_CharacterRead_CharacterReadListener_Z = JNIEnv.GetMethodID(class_ref, "readCharacteristic", "(Ljava/util/UUID;Ljava/util/UUID;Lcom/vivalnk/sdk/common/ble/connect/request/CharacterRead$CharacterReadListener;Z)V"); } JValue *__args = stackalloc JValue [4]; __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); __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle); __args [3] = new JValue(p3); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_readCharacteristic_Ljava_util_UUID_Ljava_util_UUID_Lcom_vivalnk_sdk_common_ble_connect_request_CharacterRead_CharacterReadListener_Z, __args); }
public unsafe void SetCharacteristicNotification(global::Java.Util.UUID p0, global::Java.Util.UUID p1, bool p2, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.NotifyRequest.INotifyChangeListener p3, bool p4) { if (id_setCharacteristicNotification_Ljava_util_UUID_Ljava_util_UUID_ZLcom_vivalnk_sdk_common_ble_connect_request_NotifyRequest_NotifyChangeListener_Z == IntPtr.Zero) { id_setCharacteristicNotification_Ljava_util_UUID_Ljava_util_UUID_ZLcom_vivalnk_sdk_common_ble_connect_request_NotifyRequest_NotifyChangeListener_Z = JNIEnv.GetMethodID(class_ref, "setCharacteristicNotification", "(Ljava/util/UUID;Ljava/util/UUID;ZLcom/vivalnk/sdk/common/ble/connect/request/NotifyRequest$NotifyChangeListener;Z)V"); } JValue *__args = stackalloc JValue [5]; __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); __args [2] = new JValue(p2); __args [3] = new JValue((p3 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p3).Handle); __args [4] = new JValue(p4); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setCharacteristicNotification_Ljava_util_UUID_Ljava_util_UUID_ZLcom_vivalnk_sdk_common_ble_connect_request_NotifyRequest_NotifyChangeListener_Z, __args); }
public void WriteCharacteristic(string p0, global::Java.Util.UUID p1, global::Java.Util.UUID p2, byte[] p3) { if (id_writeCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_arrayB == IntPtr.Zero) { id_writeCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_arrayB = JNIEnv.GetMethodID(class_ref, "writeCharacteristic", "(Ljava/lang/String;Ljava/util/UUID;Ljava/util/UUID;[B)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p3 = JNIEnv.NewArray(p3); JNIEnv.CallVoidMethod(Handle, id_writeCharacteristic_Ljava_lang_String_Ljava_util_UUID_Ljava_util_UUID_arrayB, new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(native_p3)); JNIEnv.DeleteLocalRef(native_p0); if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } }
public static global::Java.Util.UUID GetUuidFromBytes(byte[] p0, int p1) { if (id_getUuidFromBytes_arrayBI == IntPtr.Zero) { id_getUuidFromBytes_arrayBI = JNIEnv.GetStaticMethodID(class_ref, "getUuidFromBytes", "([BI)Ljava/util/UUID;"); } IntPtr native_p0 = JNIEnv.NewArray(p0); try { global::Java.Util.UUID __ret = global::Java.Lang.Object.GetObject <global::Java.Util.UUID> (JNIEnv.CallStaticObjectMethod(class_ref, id_getUuidFromBytes_arrayBI, new JValue(native_p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { if (p0 != null) { JNIEnv.CopyArray(native_p0, p0); JNIEnv.DeleteLocalRef(native_p0); } } }
public unsafe void WriteCharacteristic(global::Java.Util.UUID p0, global::Java.Util.UUID p1, byte[] p2, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.CharacterWrite.ICharacterWriteListener p3, bool p4) { if (id_writeCharacteristic_Ljava_util_UUID_Ljava_util_UUID_arrayBLcom_vivalnk_sdk_common_ble_connect_request_CharacterWrite_CharacterWriteListener_Z == IntPtr.Zero) { id_writeCharacteristic_Ljava_util_UUID_Ljava_util_UUID_arrayBLcom_vivalnk_sdk_common_ble_connect_request_CharacterWrite_CharacterWriteListener_Z = JNIEnv.GetMethodID(class_ref, "writeCharacteristic", "(Ljava/util/UUID;Ljava/util/UUID;[BLcom/vivalnk/sdk/common/ble/connect/request/CharacterWrite$CharacterWriteListener;Z)V"); } IntPtr native_p2 = JNIEnv.NewArray(p2); JValue *__args = stackalloc JValue [5]; __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); __args [2] = new JValue(native_p2); __args [3] = new JValue((p3 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p3).Handle); __args [4] = new JValue(p4); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_writeCharacteristic_Ljava_util_UUID_Ljava_util_UUID_arrayBLcom_vivalnk_sdk_common_ble_connect_request_CharacterWrite_CharacterWriteListener_Z, __args); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } }
protected override sealed unsafe void 鷭(global::Java.Util.UUID p0, byte[] p1) { if (id_鷭_Ljava_util_UUID_arrayB == IntPtr.Zero) { id_鷭_Ljava_util_UUID_arrayB = JNIEnv.GetMethodID(class_ref, "鷭", "(Ljava/util/UUID;[B)V"); } IntPtr native_p1 = JNIEnv.NewArray(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); JNIEnv.CallVoidMethod(Handle, id_鷭_Ljava_util_UUID_arrayB, __args); } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } } }
public virtual unsafe void WriteCharacteristicReliable(global::Java.Util.UUID service, global::Java.Util.UUID character, byte[] value, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.CharacterWriteReliable.ICharacterWriteReliableListener listener, bool loggable) { const string __id = "writeCharacteristicReliable.(Ljava/util/UUID;Ljava/util/UUID;[BLcom/vivalnk/sdk/common/ble/connect/request/CharacterWriteReliable$CharacterWriteReliableListener;Z)V"; IntPtr native_value = JNIEnv.NewArray(value); try { JniArgumentValue *__args = stackalloc JniArgumentValue [5]; __args [0] = new JniArgumentValue((service == null) ? IntPtr.Zero : ((global::Java.Lang.Object)service).Handle); __args [1] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle); __args [2] = new JniArgumentValue(native_value); __args [3] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle); __args [4] = new JniArgumentValue(loggable); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { if (value != null) { JNIEnv.CopyArray(native_value, value); JNIEnv.DeleteLocalRef(native_value); } } }
public unsafe ProtectionElement(global::Java.Util.UUID p0, byte[] p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p1 = JNIEnv.NewArray(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); if (GetType() != typeof(ProtectionElement)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/util/UUID;[B)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/util/UUID;[B)V", __args); return; } if (id_ctor_Ljava_util_UUID_arrayB == IntPtr.Zero) { id_ctor_Ljava_util_UUID_arrayB = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/util/UUID;[B)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_util_UUID_arrayB, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_util_UUID_arrayB, __args); } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } } }
public unsafe BleGattService(global::Java.Util.UUID uuid, global::System.Collections.Generic.IDictionary <global::Java.Util.UUID, global::Android.Bluetooth.BluetoothGattCharacteristic> characters) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Ljava/util/UUID;Ljava/util/Map;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_characters = global::Android.Runtime.JavaDictionary <global::Java.Util.UUID, global::Android.Bluetooth.BluetoothGattCharacteristic> .ToLocalJniHandle(characters); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((uuid == null) ? IntPtr.Zero : ((global::Java.Lang.Object)uuid).Handle); __args [1] = new JniArgumentValue(native_characters); 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_characters); } }
public unsafe ContentProtection(string p0, global::Java.Util.UUID p1, global::Com.Google.Android.Exoplayer.Drm.DrmInitDataSchemeInitData p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (GetType() != typeof(ContentProtection)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V", __args); return; } if (id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ == IntPtr.Zero) { id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/util/UUID;Lcom/google/android/exoplayer/drm/DrmInitData$SchemeInitData;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_util_UUID_Lcom_google_android_exoplayer_drm_DrmInitData_SchemeInitData_, __args); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public virtual unsafe global::Android.Bluetooth.BluetoothGattCharacteristic GetCharacter(global::Java.Util.UUID service, global::Java.Util.UUID character) { const string __id = "getCharacter.(Ljava/util/UUID;Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattCharacteristic;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((service == null) ? IntPtr.Zero : ((global::Java.Lang.Object)service).Handle); __args [1] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Android.Bluetooth.BluetoothGattCharacteristic> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public unsafe NotifyRequest(string mac, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Base.IORequestOptions requestOptions, global::Com.Vivalnk.Sdk.Common.Ble.Connect.Request.NotifyRequest.INotifyChangeListener listener, global::Java.Util.UUID service, global::Java.Util.UUID character, bool enable) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Ljava/lang/String;Lcom/vivalnk/sdk/common/ble/connect/base/IORequestOptions;Lcom/vivalnk/sdk/common/ble/connect/request/NotifyRequest$NotifyChangeListener;Ljava/util/UUID;Ljava/util/UUID;Z)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_mac = JNIEnv.NewString(mac); try { JniArgumentValue *__args = stackalloc JniArgumentValue [6]; __args [0] = new JniArgumentValue(native_mac); __args [1] = new JniArgumentValue((requestOptions == null) ? IntPtr.Zero : ((global::Java.Lang.Object)requestOptions).Handle); __args [2] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle); __args [3] = new JniArgumentValue((service == null) ? IntPtr.Zero : ((global::Java.Lang.Object)service).Handle); __args [4] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle); __args [5] = new JniArgumentValue(enable); 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_mac); } }