Home
last modified time | relevance | path

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

/frameworks/av/include/media/
DMicrophoneInfo.h42 MicrophoneInfo(audio_microphone_characteristic_t& characteristic) { in MicrophoneInfo() argument
43 mDeviceId = String16(&characteristic.device_id[0]); in MicrophoneInfo()
44 mPortId = characteristic.id; in MicrophoneInfo()
45 mType = characteristic.device; in MicrophoneInfo()
46 mAddress = String16(&characteristic.address[0]); in MicrophoneInfo()
47 mDeviceLocation = characteristic.location; in MicrophoneInfo()
48 mDeviceGroup = characteristic.group; in MicrophoneInfo()
49 mIndexInTheGroup = characteristic.index_in_the_group; in MicrophoneInfo()
50 mGeometricLocation.push_back(characteristic.geometric_location.x); in MicrophoneInfo()
51 mGeometricLocation.push_back(characteristic.geometric_location.y); in MicrophoneInfo()
[all …]
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothMidiDevice.java118 BluetoothGattCharacteristic characteristic
120 if (characteristic != null) {
122 mCharacteristic = characteristic;
132 mBluetoothGatt.readCharacteristic(characteristic);
143 BluetoothGattCharacteristic characteristic,
148 mBluetoothGatt.setCharacteristicNotification(characteristic, true);
152 int originalWriteType = characteristic.getWriteType();
153 characteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
155 BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
165 characteristic.setWriteType(originalWriteType);
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGatt.java381 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice,
383 if (characteristic == null) {
393 if (status == 0) characteristic.setValue(value);
394 callback.onCharacteristicRead(BluetoothGatt.this, characteristic,
421 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice,
423 if (characteristic == null) return;
432 characteristic.getWriteType(), authReq,
433 characteristic.getValue());
448 callback.onCharacteristicWrite(BluetoothGatt.this, characteristic,
468 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice,
[all …]
DBluetoothGattService.java244 public boolean addCharacteristic(BluetoothGattCharacteristic characteristic) { in addCharacteristic() argument
245 mCharacteristics.add(characteristic); in addCharacteristic()
246 characteristic.setService(this); in addCharacteristic()
256 for (BluetoothGattCharacteristic characteristic : mCharacteristics) { in getCharacteristic()
257 if (uuid.equals(characteristic.getUuid()) in getCharacteristic()
258 && characteristic.getInstanceId() == instanceId) { in getCharacteristic()
259 return characteristic; in getCharacteristic()
366 for (BluetoothGattCharacteristic characteristic : mCharacteristics) { in getCharacteristic()
367 if (uuid.equals(characteristic.getUuid())) { in getCharacteristic()
368 return characteristic; in getCharacteristic()
DBluetoothGattDescriptor.java148 /*package*/ BluetoothGattDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, in BluetoothGattDescriptor() argument
150 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor()
160 private void initDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, in initDescriptor() argument
162 mCharacteristic = characteristic; in initDescriptor()
212 /*package*/ void setCharacteristic(BluetoothGattCharacteristic characteristic) { in setCharacteristic() argument
213 mCharacteristic = characteristic; in setCharacteristic()
DBluetoothGattCallback.java86 public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, in onCharacteristicRead() argument
105 BluetoothGattCharacteristic characteristic, int status) { in onCharacteristicWrite() argument
116 BluetoothGattCharacteristic characteristic) { in onCharacteristicChanged() argument
DBluetoothGattServer.java155 BluetoothGattCharacteristic characteristic = getCharacteristicByHandle(handle);
156 if (characteristic == null) {
163 characteristic);
203 BluetoothGattCharacteristic characteristic = getCharacteristicByHandle(handle);
204 if (characteristic == null) {
210 mCallback.onCharacteristicWriteRequest(device, transId, characteristic,
671 BluetoothGattCharacteristic characteristic, boolean confirm) { in notifyCharacteristicChanged() argument
675 BluetoothGattService service = characteristic.getService(); in notifyCharacteristicChanged()
678 if (characteristic.getValue() == null) { in notifyCharacteristicChanged()
685 characteristic.getInstanceId(), confirm, in notifyCharacteristicChanged()
[all …]
DBluetoothGattServerCallback.java58 int offset, BluetoothGattCharacteristic characteristic) { in onCharacteristicReadRequest() argument
76 BluetoothGattCharacteristic characteristic, in onCharacteristicWriteRequest() argument