/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
ConnectivityManagerMobileTest.java | 58 State.CONNECTED, LONG_TIMEOUT)) { 63 fail("Device is not connected to Mobile, setUp failed"); 89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); 106 // verify that the device is still connected to MOBILE 123 assertTrue("wifi not connected", waitForNetworkState( 124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); 146 // verify wifi connected as reported by ConnectivityManager 147 assertTrue("wifi not connected", waitForNetworkState( 148 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); 159 assertTrue("mobile not connected after wifi disable", waitForNetworkState [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
NetworkInfo_StateTest.java | 25 assertEquals(State.CONNECTED, State.valueOf("CONNECTED")); 37 assertEquals(State.CONNECTED, expected[1]);
|
NetworkInfoTest.java | 59 if (State.CONNECTED == netInfo.getState()) { 63 || State.CONNECTED == netInfo.getState()); 67 || DetailedState.CONNECTED == netInfo.getDetailedState());
|
NetworkInfo_DetailedStateTest.java | 27 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED")); 46 assertEquals(DetailedState.CONNECTED, expected[5]);
|
ConnectivityManagerTest.java | 134 assertTrue(ni.getState() == State.CONNECTED); 146 assertTrue(ni.getState() == State.CONNECTED); 273 // Make sure WiFi is connected to an access point to start with. 279 // network even if it was already connected as a state-based action when the callback 312 ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); 329 // Make sure WiFi is connected to an access point to start with. 335 // network even if it was already connected as a state-based action when the callback 353 /** Enable WiFi and wait for it to become connected to a network. */ 356 ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); 361 boolean connected = false [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverClient.java | 37 private static final int CONNECTED = 2; 81 mState = CONNECTED; 103 if (mState != CONNECTED) { 104 throw new IOException("Socket not connected");
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushClient.java | 40 private static final int CONNECTED = 2; 84 mState = CONNECTED; 91 if (mState != CONNECTED) { 92 Log.e(TAG, "Not connected to NPP.");
|
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/connectivity/ |
ConnectivityTest.java | 53 assertEquals( NetworkInfo.State.CONNECTED, networkInfo.getState());
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepClient.java | 47 private static final int CONNECTED = 2; 97 if (mState != CONNECTED) { 98 throw new IOException("Socket not connected."); 116 if (mState != CONNECTED) { 117 throw new IOException("Socket not connected."); 179 mState = CONNECTED;
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
DdmServer.java | 34 private static final int CONNECTED = 1; 115 case CONNECTED: 116 handler.connected();
|
/frameworks/base/core/java/android/net/ |
NetworkInfo.java | 44 * <tr><td><code>CONNECTED</code></td><td><code>CONNECTED</code></td></tr> 52 CONNECTING, CONNECTED, SUSPENDED, DISCONNECTING, DISCONNECTED, UNKNOWN 72 CONNECTED, 105 stateMap.put(DetailedState.CONNECTED, State.CONNECTED); 241 return mState == State.CONNECTED || mState == State.CONNECTING; 253 return mState == State.CONNECTED;
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
NetworkState.java | 99 Log.v(LOG_TAG, "Transition to CONNECTED"); 140 // Transition from CONNECTED -> DISCONNECTED: CONNECTED->DISCONNECTING->DISCONNECTED 143 if (mStateDepository.get(0) != State.CONNECTED) { 144 str.append(String.format(" Initial state should be CONNECTED, but it is %s.", 159 if ((preState == State.CONNECTED) && ((curState == State.DISCONNECTING) || 201 (curState == State.CONNECTED) || (curState == State.DISCONNECTED))) { 203 } else if ((preState == State.CONNECTING) && (curState == State.CONNECTED)) { 205 } else if ((preState == State.CONNECTED) && (curState == State.CONNECTED)) { [all...] |
/frameworks/ex/common/java/com/android/common/ |
NetworkConnectivityListener.java | 80 mState = State.CONNECTED; 112 CONNECTED,
|
/frameworks/base/core/java/com/android/internal/net/ |
LegacyVpnInfo.java | 82 case CONNECTED:
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiStressTest.java | 216 assertTrue("wifi not connected", waitForNetworkState(ConnectivityManager.TYPE_WIFI, 217 State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); 219 assertTrue("Wi-Fi is connected, but no data connection.", pingTest()); 227 // 5. Wake up the device, verify Wi-Fi is enabled and connected. 253 waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.CONNECTED, 265 assertEquals("mobile not connected", State.CONNECTED, 272 // Measure the time for Wi-Fi to get connected 276 assertTrue("screen on: wifi not connected before timeout", 277 waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
WpsDialog.java | 74 CONNECTED, //WPS + IP config is done 245 case CONNECTED: 267 if (state == DetailedState.CONNECTED && 273 updateDialog(DialogState.CONNECTED, msg);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
P2pBroadcastReceiverTest.java | 116 * Wait until a station gets connected. 129 if (dev.status == WifiP2pDevice.CONNECTED) { 160 if (dev.status != WifiP2pDevice.CONNECTED) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNetworkInfo.java | 56 return isConnected ? NetworkInfo.State.CONNECTED :
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
RTSPSource.h | 73 CONNECTED,
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
DctConstants.java | 29 * CONNECTED: IP connection is setup 38 * CONNECTED : CONNECTED or DISCONNECTING 44 CONNECTED,
|
PhoneConstants.java | 41 * <li>CONNECTED = IP traffic should be available</li> 50 CONNECTED, CONNECTING, DISCONNECTED, SUSPENDED;
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeSystemFacade.java | 51 info.setDetailedState(DetailedState.CONNECTED, null, null);
|
/hardware/libhardware/tests/camera2/ |
camera2_utils.cpp | 385 mState = CONNECTED; 395 mState = CONNECTED; 405 mState = CONNECTED; 420 mState = CONNECTED; 434 mState = CONNECTED; 447 mState = CONNECTED; 473 if (mState >= CONNECTED) {
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiManagerTest.java | 107 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) 187 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) return; 191 && mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) 193 assertTrue(mNetworkInfo.getState() == NetworkInfo.State.CONNECTED); 450 * To pass this CTS test, a connected WiFi link is required.
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyNetworkMonitor.java | 50 if (NetworkInfo.State.CONNECTED == ni.getState()) { 51 if (LDEBUG) System.out.println("Network connected"); 54 if (LDEBUG) System.out.println("Network not connected"); 104 + (mElapsedTime - mMobileElapsedTime - mWifiElapsedTime) + "ms not connected)");
|