Home
last modified time | relevance | path

Searched refs:characteristic (Results 1 – 9 of 9) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleEncryptedServerService.java184 …BluetoothGattCharacteristic characteristic = mService.getCharacteristic(CHARACTERISTIC_ENCRYPTED_R… in resetValues()
185 characteristic.setValue(WRITE_VALUE.getBytes()); in resetValues()
186 characteristic = mService.getCharacteristic(CHARACTERISTIC_UUID); in resetValues()
187characteristic.getDescriptor(DESCRIPTOR_ENCRYPTED_READ_UUID).setValue(WRITE_VALUE.getBytes()); in resetValues()
275 BluetoothGattCharacteristic characteristic = in createService() local
279 characteristic.addDescriptor(descriptor); in createService()
283 characteristic.addDescriptor(descriptor); in createService()
285 characteristic.addDescriptor(descriptor); in createService()
286 service.addCharacteristic(characteristic); in createService()
289characteristic = new BluetoothGattCharacteristic(CHARACTERISTIC_ENCRYPTED_READ_UUID, 0x0A, 0x02); in createService()
[all …]
DBleClientService.java637 private void writeCharacteristic(BluetoothGattCharacteristic characteristic, in writeCharacteristic() argument
639 if (characteristic != null) { in writeCharacteristic()
644 characteristic.setValue(writeValue); in writeCharacteristic()
645 mBluetoothGatt.writeCharacteristic(characteristic, writeValue.getBytes(), in writeCharacteristic()
646 characteristic.getWriteType()); in writeCharacteristic()
651 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() local
652 if (characteristic != null) { in writeCharacteristic()
653 writeCharacteristic(characteristic, writeValue); in writeCharacteristic()
658 BluetoothGattCharacteristic characteristic = getCharacteristic(uuid); in readCharacteristic() local
659 if (characteristic != null) { in readCharacteristic()
[all …]
DBleServerService.java603 BluetoothGattCharacteristic characteristic = mService.getCharacteristic(uuid); in getCharacteristic() local
604 if (characteristic == null) { in getCharacteristic()
607 return characteristic; in getCharacteristic()
613 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); in getDescriptor() local
614 if (characteristic != null) { in getDescriptor()
615 descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID); in getDescriptor()
730 BluetoothGattCharacteristic characteristic = in createService() local
732 characteristic.setValue(WRITE_VALUE.getBytes()); in createService()
736 characteristic.addDescriptor(descriptor); in createService()
740 characteristic.addDescriptor(descriptor_permission); in createService()
[all …]
DBleEncryptedClientService.java228 BluetoothGattCharacteristic characteristic = null; in getCharacteristic() local
232 characteristic = service.getCharacteristic(uuid); in getCharacteristic()
233 if (characteristic == null) { in getCharacteristic()
237 return characteristic; in getCharacteristic()
243 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); in getDescriptor() local
244 if (characteristic != null) { in getDescriptor()
245 descriptor = characteristic.getDescriptor(uid); in getDescriptor()
262 BluetoothGattCharacteristic characteristic; in startEncryptedAction() local
268 characteristic = getCharacteristic(CHARACTERISTIC_ENCRYPTED_WRITE_UUID); in startEncryptedAction()
269 characteristic.setValue(WRITE_VALUE); in startEncryptedAction()
[all …]
DBleCocClientService.java281 BluetoothGattCharacteristic characteristic = getCharacteristic(uuid); in readCharacteristic() local
282 if (characteristic != null) { in readCharacteristic()
283 mBluetoothGatt.readCharacteristic(characteristic); in readCharacteristic()
353 BluetoothGattCharacteristic characteristic = null; in getCharacteristic() local
357 characteristic = service.getCharacteristic(uuid); in getCharacteristic()
358 if (characteristic == null) { in getCharacteristic()
362 return characteristic; in getCharacteristic()
435 BluetoothGattCharacteristic characteristic, int status) {
436 UUID uid = characteristic.getUuid();
441 String value = characteristic.getStringValue(0);
[all …]
DBleCocServerService.java396 BluetoothGattCharacteristic characteristic = in createService() local
398 characteristic.setValue(WRITE_VALUE.getBytes()); in createService()
402 characteristic.addDescriptor(descriptor); in createService()
406 characteristic.addDescriptor(descriptor_permission); in createService()
409 characteristic.addDescriptor(descriptor_permission); in createService()
411 service.addCharacteristic(characteristic); in createService()
484 BluetoothGattCharacteristic characteristic) {
498 byte[] buf = characteristic.getValue();
506 Log.d(TAG, "sent whole data: " + (new String(characteristic.getValue())));
510 value = characteristic.getValue();
[all …]
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothGattServerTest.java132 BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(TEST_UUID, in getService() local
137 service.addCharacteristic(characteristic); in getService()
177 BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(TEST_UUID, in notifyCharacteristicChanged_withValueOverMaxLength() local
181 service.addCharacteristic(characteristic); in notifyCharacteristicChanged_withValueOverMaxLength()
188 () -> mBluetoothGattServer.notifyCharacteristicChanged(testDevice, characteristic, in notifyCharacteristicChanged_withValueOverMaxLength()
DBasicBluetoothGattTest.java144 BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(TEST_UUID, in writeCharacteristic_withValueOverMaxLength() local
148 service.addCharacteristic(characteristic); in writeCharacteristic_withValueOverMaxLength()
155 characteristic, value, BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT)); in writeCharacteristic_withValueOverMaxLength()
DBluetoothGattServerCallbackTest.java62 int offset, BluetoothGattCharacteristic characteristic) {
67 BluetoothGattCharacteristic characteristic,