(BluetoothGattCharacteristic c)
| 116 | } |
| 117 | |
| 118 | private boolean doEnableNotification(BluetoothGattCharacteristic c) { |
| 119 | BluetoothGattDescriptor d = c.getDescriptor(BluetoothUuids.CLIENT_CHARACTERISTIC_CONFIGURATION); |
| 120 | if (d == null) |
| 121 | return false; |
| 122 | |
| 123 | gatt.setCharacteristicNotification(c, true); |
| 124 | d.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); |
| 125 | return gatt.writeDescriptor(d); |
| 126 | } |
| 127 | |
| 128 | private void enableNotification(BluetoothGattCharacteristic c) { |
| 129 | synchronized(enableNotificationQueue) { |
no outgoing calls
no test coverage detected