Lines Matching defs:descriptor
265 * A new GATT descriptor has been discovered.
266 * Finally, add the descriptor to the related characteristic.
471 BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
473 if (descriptor == null) return;
475 if (status == 0) descriptor.setValue(value);
494 mCallback.onDescriptorRead(BluetoothGatt.this, descriptor, status);
526 BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
528 if (descriptor == null) return;
538 AUTHENTICATION_MITM, descriptor.getValue());
548 mCallback.onDescriptorWrite(BluetoothGatt.this, descriptor, status);
961 * Reads the value for a given descriptor from the associated remote device.
969 * @param descriptor Descriptor value to read from the remote device
972 public boolean readDescriptor(BluetoothGattDescriptor descriptor) {
973 if (VDBG) Log.d(TAG, "readDescriptor() - uuid: " + descriptor.getUuid());
976 BluetoothGattCharacteristic characteristic = descriptor.getCharacteristic();
994 descriptor.getInstanceId(), new ParcelUuid(descriptor.getUuid()),
1006 * Write the value of a given descriptor to the associated remote device.
1013 * @param descriptor Descriptor to write to the associated remote device
1016 public boolean writeDescriptor(BluetoothGattDescriptor descriptor) {
1017 if (VDBG) Log.d(TAG, "writeDescriptor() - uuid: " + descriptor.getUuid());
1020 BluetoothGattCharacteristic characteristic = descriptor.getCharacteristic();
1038 descriptor.getInstanceId(), new ParcelUuid(descriptor.getUuid()),
1040 descriptor.getValue());