MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / enableNotification

Method enableNotification

android/src/BluetoothSensor.java:128–137  ·  view source on GitHub ↗
(BluetoothGattCharacteristic c)

Source from the content-addressed store, hash-verified

126 }
127
128 private void enableNotification(BluetoothGattCharacteristic c) {
129 synchronized(enableNotificationQueue) {
130 if (currentEnableNotification == null) {
131 currentEnableNotification = c;
132 if (!doEnableNotification(c))
133 currentEnableNotification = null;
134 } else
135 enableNotificationQueue.add(c);
136 }
137 }
138
139 private void readHeartRateMeasurement(BluetoothGattCharacteristic c) {
140 int offset = 0;

Callers 1

onServicesDiscoveredMethod · 0.95

Calls 2

doEnableNotificationMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected