Searched refs:characteristic (Results 1 – 6 of 6) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleEncryptedServerService.java | 184 …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() 187 … characteristic.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() 289 … characteristic = new BluetoothGattCharacteristic(CHARACTERISTIC_ENCRYPTED_READ_UUID, 0x0A, 0x02); in createService() [all …]
|
D | BleClientService.java | 535 … private void writeCharacteristic(BluetoothGattCharacteristic characteristic, String writeValue) { in writeCharacteristic() argument 536 if (characteristic != null) { in writeCharacteristic() 537 characteristic.setValue(writeValue); in writeCharacteristic() 538 mBluetoothGatt.writeCharacteristic(characteristic); in writeCharacteristic() 543 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() local 544 if (characteristic != null){ in writeCharacteristic() 545 writeCharacteristic(characteristic, writeValue); in writeCharacteristic() 550 BluetoothGattCharacteristic characteristic = getCharacteristic(uuid); in readCharacteristic() local 551 if (characteristic != null) { in readCharacteristic() 552 mBluetoothGatt.readCharacteristic(characteristic); in readCharacteristic() [all …]
|
D | BleServerService.java | 590 BluetoothGattCharacteristic characteristic = mService.getCharacteristic(uuid); in getCharacteristic() local 591 if (characteristic == null) { in getCharacteristic() 594 return characteristic; in getCharacteristic() 600 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); in getDescriptor() local 601 if (characteristic != null) { in getDescriptor() 602 descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID); in getDescriptor() 704 BluetoothGattCharacteristic characteristic = in createService() local 706 characteristic.setValue(WRITE_VALUE.getBytes()); in createService() 710 characteristic.addDescriptor(descriptor); in createService() 713 characteristic.addDescriptor(descriptor_permission); in createService() [all …]
|
D | BleEncryptedClientService.java | 228 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 …]
|
D | BleConnectionPriorityServerService.java | 238 BluetoothGattCharacteristic characteristic = in createService() local 241 characteristic.addDescriptor(descriptor); in createService() 242 service.addCharacteristic(characteristic); in createService() 243 characteristic = new BluetoothGattCharacteristic(START_CHARACTERISTIC_UUID, 0x0A, 0x11); in createService() 244 characteristic.addDescriptor(descriptor); in createService() 245 service.addCharacteristic(characteristic); in createService() 246 characteristic = new BluetoothGattCharacteristic(STOP_CHARACTERISTIC_UUID, 0x0A, 0x11); in createService() 247 characteristic.addDescriptor(descriptor); in createService() 248 service.addCharacteristic(characteristic); in createService() 285 BluetoothGattCharacteristic characteristic, [all …]
|
D | BleConnectionPriorityClientService.java | 292 BluetoothGattCharacteristic characteristic = null; in getCharacteristic() local 296 characteristic = service.getCharacteristic(uuid); in getCharacteristic() 297 if (characteristic == null) { in getCharacteristic() 301 return characteristic; in getCharacteristic() 305 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() local 306 if (characteristic != null){ in writeCharacteristic() 307 characteristic.setValue(writeValue); in writeCharacteristic() 308 mBluetoothGatt.writeCharacteristic(characteristic); in writeCharacteristic() 383 …onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) { 384 String value = characteristic.getStringValue(0); [all …]
|