Home | History | Annotate | Download | only in bluetoothmidiservice

Lines Matching refs:characteristic

58     // Bluetooth MIDI Gatt characteristic UUID
61 // Descriptor UUID for enabling characteristic changed notifications
121 for (BluetoothGattCharacteristic characteristic : characteristics) {
122 if (MIDI_CHARACTERISTIC.equals(characteristic.getUuid())) {
124 mCharacteristic = characteristic;
126 // Specification says to read the characteristic first and then
128 mBluetoothGatt.readCharacteristic(characteristic);
143 BluetoothGattCharacteristic characteristic,
147 // switch to receiving notifications after initial characteristic read
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);
170 BluetoothGattCharacteristic characteristic,
178 BluetoothGattCharacteristic characteristic) {
180 logByteArray("Received ", characteristic.getValue(), 0,
181 characteristic.getValue().length);
183 mPacketDecoder.decodePacket(characteristic.getValue(), mOutputReceiver);