Searched refs:ConnectionStatus (Results 1 – 5 of 5) sorted by relevance
80 public static final class ConnectionStatus { class in ConnectionManager92 private final ConnectionStatus mConnectionStatus = new ConnectionStatus();95 private final List<Consumer<ConnectionStatus>> mConnectionCallbacks = new ArrayList<>();115 public void addConnectionCallback(Consumer<ConnectionStatus> callback) { in addConnectionCallback()122 public void removeConnectionCallback(Consumer<ConnectionStatus> callback) { in removeConnectionCallback()129 public ConnectionStatus getConnectionStatus() { in getConnectionStatus()153 return mConnectionStatus.state == ConnectionStatus.State.CONNECTED; in isConnected()209 mConnectionStatus.state = ConnectionStatus.State.CONNECTED; in onSocketAvailable()216 mConnectionStatus.state = ConnectionStatus.State.INITIALIZED; in onInitialized()223 mConnectionStatus.state = ConnectionStatus.State.CONNECTING; in onConnecting()[all …]
44 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =
85 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =87 if (status.state == ConnectionManager.ConnectionStatus.State.DISCONNECTED) {
81 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =83 if (status.state == ConnectionManager.ConnectionStatus.State.CONNECTED) {
154 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =156 if (status.state != ConnectionManager.ConnectionStatus.State.CONNECTED) {