Searched refs:ConnectionState (Results 1 – 1 of 1) sorted by relevance
93 private enum ConnectionState { enum in BleConnection188 private final AtomicReference<ConnectionState> state;197 state = new AtomicReference<>(ConnectionState.UNINITIALIZED); in BleConnection()202 ConnectionState.UNINITIALIZED, in connect()203 ConnectionState.GATT_CONNECTING)) { in connect()212 state.set(ConnectionState.DISCONNECTED); in connect()225 if (!state.compareAndSet(ConnectionState.PENDING_RESPONSE, ConnectionState.READY) in maybeSendNextCommand()227 || !state.compareAndSet(ConnectionState.READY, in maybeSendNextCommand()228 ConnectionState.PENDING_RESPONSE)) { in maybeSendNextCommand()251 if (state.compareAndSet(ConnectionState.READY, ConnectionState.PENDING_RESPONSE)) { in writeCharacteristic()[all …]