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

Method submitError

android/src/BluetoothSensor.java:104–116  ·  view source on GitHub ↗
(String msg)

Source from the content-addressed store, hash-verified

102 }
103
104 private void submitError(String msg) {
105 haveFlytecMovement = false;
106 flytecSatellites = 0;
107 state = STATE_FAILED;
108
109 if (safeDestruct.increment()) {
110 try {
111 listener.onSensorError(msg);
112 } finally {
113 safeDestruct.decrement();
114 }
115 }
116 }
117
118 private boolean doEnableNotification(BluetoothGattCharacteristic c) {
119 BluetoothGattDescriptor d = c.getDescriptor(BluetoothUuids.CLIENT_CHARACTERISTIC_CONFIGURATION);

Callers 2

onServicesDiscoveredMethod · 0.95

Calls 3

incrementMethod · 0.80
decrementMethod · 0.80
onSensorErrorMethod · 0.65

Tested by

no test coverage detected