Searched refs:characteristic (Results 1 – 6 of 6) sorted by relevance
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() local279 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 …]
556 … private void writeCharacteristic(BluetoothGattCharacteristic characteristic, String writeValue) { in writeCharacteristic() argument557 if (characteristic != null) { in writeCharacteristic()558 characteristic.setValue(writeValue); in writeCharacteristic()559 mBluetoothGatt.writeCharacteristic(characteristic); in writeCharacteristic()564 BluetoothGattCharacteristic characteristic = getCharacteristic(uid); in writeCharacteristic() local565 if (characteristic != null){ in writeCharacteristic()566 writeCharacteristic(characteristic, writeValue); in writeCharacteristic()571 BluetoothGattCharacteristic characteristic = getCharacteristic(uuid); in readCharacteristic() local572 if (characteristic != null) { in readCharacteristic()573 mBluetoothGatt.readCharacteristic(characteristic); in readCharacteristic()[all …]
612 BluetoothGattCharacteristic characteristic = mService.getCharacteristic(uuid); in getCharacteristic() local613 if (characteristic == null) { in getCharacteristic()616 return characteristic; in getCharacteristic()622 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); in getDescriptor() local623 if (characteristic != null) { in getDescriptor()624 descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID); in getDescriptor()737 BluetoothGattCharacteristic characteristic = in createService() local739 characteristic.setValue(WRITE_VALUE.getBytes()); in createService()743 characteristic.addDescriptor(descriptor); in createService()746 characteristic.addDescriptor(descriptor_permission); in createService()[all …]
228 BluetoothGattCharacteristic characteristic = null; in getCharacteristic() local232 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() local244 if (characteristic != null) { in getDescriptor()245 descriptor = characteristic.getDescriptor(uid); in getDescriptor()262 BluetoothGattCharacteristic characteristic; in startEncryptedAction() local268 characteristic = getCharacteristic(CHARACTERISTIC_ENCRYPTED_WRITE_UUID); in startEncryptedAction()269 characteristic.setValue(WRITE_VALUE); in startEncryptedAction()[all …]
283 BluetoothGattCharacteristic characteristic = getCharacteristic(uuid); in readCharacteristic() local284 if (characteristic != null) { in readCharacteristic()285 mBluetoothGatt.readCharacteristic(characteristic); in readCharacteristic()355 BluetoothGattCharacteristic characteristic = null; in getCharacteristic() local359 characteristic = service.getCharacteristic(uuid); in getCharacteristic()360 if (characteristic == null) { in getCharacteristic()364 return characteristic; in getCharacteristic()437 BluetoothGattCharacteristic characteristic, int status) {438 UUID uid = characteristic.getUuid();443 String value = characteristic.getStringValue(0);[all …]
396 BluetoothGattCharacteristic characteristic = in createService() local398 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 …]