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

Method run

android/src/BluetoothClientPort.java:85–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Override public void run() {
86 try {
87 BluetoothSocket socket = this.socket;
88 if (socket != null) {
89 socket.connect();
90 this.socket = null;
91 setPort(new BluetoothPort(socket));
92 }
93 } catch (Exception e) {
94 Log.e(TAG, "Failed to connect to Bluetooth", e);
95 error(e.getMessage());
96 } finally {
97 socket = null;
98 thread = null;
99 stateChanged();
100 }
101 }
102}

Callers

nothing calls this directly

Calls 4

setPortMethod · 0.80
connectMethod · 0.45
errorMethod · 0.45
stateChangedMethod · 0.45

Tested by

no test coverage detected