Loading jni/com_android_bluetooth_gatt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -1054,7 +1054,7 @@ static void gattClientExecuteWriteNative(JNIEnv* env, jobject object, } static void gattClientWriteDescriptorNative(JNIEnv* env, jobject object, jint conn_id, jint handle, jint write_type, jint auth_req, jbyteArray value) jint conn_id, jint handle, jint auth_req, jbyteArray value) { if (!sGattIf) return; Loading @@ -1070,7 +1070,7 @@ static void gattClientWriteDescriptorNative(JNIEnv* env, jobject object, std::vector<uint8_t> vect_val(p_value, p_value + len); env->ReleaseByteArrayElements(value, p_value, 0); sGattIf->client->write_descriptor(conn_id, handle, write_type, auth_req, sGattIf->client->write_descriptor(conn_id, handle, auth_req, std::move(vect_val)); } Loading Loading @@ -1684,7 +1684,7 @@ static JNINativeMethod sMethods[] = { {"gattClientReadCharacteristicNative", "(III)V", (void *) gattClientReadCharacteristicNative}, {"gattClientReadDescriptorNative", "(III)V", (void *) gattClientReadDescriptorNative}, {"gattClientWriteCharacteristicNative", "(IIII[B)V", (void *) gattClientWriteCharacteristicNative}, {"gattClientWriteDescriptorNative", "(IIII[B)V", (void *) gattClientWriteDescriptorNative}, {"gattClientWriteDescriptorNative", "(III[B)V", (void *) gattClientWriteDescriptorNative}, {"gattClientExecuteWriteNative", "(IZ)V", (void *) gattClientExecuteWriteNative}, {"gattClientRegisterForNotificationsNative", "(ILjava/lang/String;IZ)V", (void *) gattClientRegisterForNotificationsNative}, {"gattClientReadRemoteRssiNative", "(ILjava/lang/String;)V", (void *) gattClientReadRemoteRssiNative}, Loading src/com/android/bluetooth/gatt/GattService.java +5 −5 Original line number Diff line number Diff line Loading @@ -378,10 +378,10 @@ public class GattService extends ProfileService { } public void writeDescriptor(int clientIf, String address, int handle, int writeType, int authReq, byte[] value) { int authReq, byte[] value) { GattService service = getService(); if (service == null) return; service.writeDescriptor(clientIf, address, handle, writeType, authReq, value); service.writeDescriptor(clientIf, address, handle, authReq, value); } public void beginReliableWrite(int clientIf, String address) { Loading Loading @@ -1433,7 +1433,7 @@ public class GattService extends ProfileService { }; void writeDescriptor(int clientIf, String address, int handle, int writeType, int authReq, byte[] value) { int authReq, byte[] value) { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (VDBG) Log.d(TAG, "writeDescriptor() - address=" + address); Loading @@ -1448,7 +1448,7 @@ public class GattService extends ProfileService { return; } gattClientWriteDescriptorNative(connId, handle, writeType, authReq, value); gattClientWriteDescriptorNative(connId, handle, authReq, value); } void beginReliableWrite(int clientIf, String address) { Loading Loading @@ -2138,7 +2138,7 @@ public class GattService extends ProfileService { int handle, int write_type, int auth_req, byte[] value); private native void gattClientWriteDescriptorNative(int conn_id, int handle, int write_type, int auth_req, byte[] value); int auth_req, byte[] value); private native void gattClientExecuteWriteNative(int conn_id, boolean execute); Loading Loading
jni/com_android_bluetooth_gatt.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -1054,7 +1054,7 @@ static void gattClientExecuteWriteNative(JNIEnv* env, jobject object, } static void gattClientWriteDescriptorNative(JNIEnv* env, jobject object, jint conn_id, jint handle, jint write_type, jint auth_req, jbyteArray value) jint conn_id, jint handle, jint auth_req, jbyteArray value) { if (!sGattIf) return; Loading @@ -1070,7 +1070,7 @@ static void gattClientWriteDescriptorNative(JNIEnv* env, jobject object, std::vector<uint8_t> vect_val(p_value, p_value + len); env->ReleaseByteArrayElements(value, p_value, 0); sGattIf->client->write_descriptor(conn_id, handle, write_type, auth_req, sGattIf->client->write_descriptor(conn_id, handle, auth_req, std::move(vect_val)); } Loading Loading @@ -1684,7 +1684,7 @@ static JNINativeMethod sMethods[] = { {"gattClientReadCharacteristicNative", "(III)V", (void *) gattClientReadCharacteristicNative}, {"gattClientReadDescriptorNative", "(III)V", (void *) gattClientReadDescriptorNative}, {"gattClientWriteCharacteristicNative", "(IIII[B)V", (void *) gattClientWriteCharacteristicNative}, {"gattClientWriteDescriptorNative", "(IIII[B)V", (void *) gattClientWriteDescriptorNative}, {"gattClientWriteDescriptorNative", "(III[B)V", (void *) gattClientWriteDescriptorNative}, {"gattClientExecuteWriteNative", "(IZ)V", (void *) gattClientExecuteWriteNative}, {"gattClientRegisterForNotificationsNative", "(ILjava/lang/String;IZ)V", (void *) gattClientRegisterForNotificationsNative}, {"gattClientReadRemoteRssiNative", "(ILjava/lang/String;)V", (void *) gattClientReadRemoteRssiNative}, Loading
src/com/android/bluetooth/gatt/GattService.java +5 −5 Original line number Diff line number Diff line Loading @@ -378,10 +378,10 @@ public class GattService extends ProfileService { } public void writeDescriptor(int clientIf, String address, int handle, int writeType, int authReq, byte[] value) { int authReq, byte[] value) { GattService service = getService(); if (service == null) return; service.writeDescriptor(clientIf, address, handle, writeType, authReq, value); service.writeDescriptor(clientIf, address, handle, authReq, value); } public void beginReliableWrite(int clientIf, String address) { Loading Loading @@ -1433,7 +1433,7 @@ public class GattService extends ProfileService { }; void writeDescriptor(int clientIf, String address, int handle, int writeType, int authReq, byte[] value) { int authReq, byte[] value) { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (VDBG) Log.d(TAG, "writeDescriptor() - address=" + address); Loading @@ -1448,7 +1448,7 @@ public class GattService extends ProfileService { return; } gattClientWriteDescriptorNative(connId, handle, writeType, authReq, value); gattClientWriteDescriptorNative(connId, handle, authReq, value); } void beginReliableWrite(int clientIf, String address) { Loading Loading @@ -2138,7 +2138,7 @@ public class GattService extends ProfileService { int handle, int write_type, int auth_req, byte[] value); private native void gattClientWriteDescriptorNative(int conn_id, int handle, int write_type, int auth_req, byte[] value); int auth_req, byte[] value); private native void gattClientExecuteWriteNative(int conn_id, boolean execute); Loading