Home
last modified time | relevance | path

Searched refs:ConnectionStatus (Results 1 – 5 of 5) sorted by relevance

/development/samples/VirtualDeviceManager/common/src/com/example/android/vdmdemo/common/
DConnectionManager.java80 public static final class ConnectionStatus { class in ConnectionManager
92 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 …]
DConnectivityFragment.java44 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/
DImmersiveActivity.java85 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =
87 if (status.state == ConnectionManager.ConnectionStatus.State.DISCONNECTED) {
DMainActivity.java81 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =
83 if (status.state == ConnectionManager.ConnectionStatus.State.CONNECTED) {
/development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/
DVdmService.java154 private final Consumer<ConnectionManager.ConnectionStatus> mConnectionCallback =
156 if (status.state != ConnectionManager.ConnectionStatus.State.CONNECTED) {