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

Method run

android/src/IOIOAgent.java:229–247  ·  view source on GitHub ↗

The connection thread.

()

Source from the content-addressed store, hash-verified

227 * The connection thread.
228 */
229 @Override public void run() {
230 IOIO ioio = null;
231
232 while (true) {
233 if (ioio != null && (ioio.getState() != IOIO.State.CONNECTED ||
234 !enabledFlag)) {
235 synchronousClose(ioio);
236 ioio = null;
237 } else if (ioio == null && enabledFlag && !shutdownFlag)
238 ioio = synchronousOpen();
239
240 if (shutdownFlag) {
241 synchronousClose(ioio);
242 return;
243 }
244
245 idle(ioio);
246 }
247 }
248}

Callers

nothing calls this directly

Calls 4

synchronousCloseMethod · 0.95
synchronousOpenMethod · 0.95
idleMethod · 0.95
getStateMethod · 0.65

Tested by

no test coverage detected