Searched refs:expectedState (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 163 if (ni != null && expectedState.equals(ni.getState())) { in waitForNetworkState() 178 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 182 if (state == expectedState) { in waitForWifiState() 187 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 190 logv("waitForWifiState interim: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 197 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument 201 if (state == expectedState) { in waitForWifiApState() 207 expectedState, state)); in waitForWifiApState() 211 expectedState, state)); in waitForWifiApState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 129 int expectedState) { in mountObb() argument 139 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb() 146 assertEquals(expectedState, observer.getState()); in mountObb() 161 final ObbObserver observer, int expectedState, boolean checkPath) { in waitForObbActionCompletion() argument 171 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion() 182 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() argument 191 assertEquals(expectedState, observer.getState()); in unmountObb() 193 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb()
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 304 protected String mountObb(String obbFilePath, String key, int expectedState) { in mountObb() argument 305 return doMountObb(obbFilePath, key, expectedState); in mountObb() 352 protected String doMountObb_noThrow(String obbFilePath, String key, int expectedState) { in doMountObb_noThrow() argument 360 success &= (expectedState == obbListener.state()); in doMountObb_noThrow() 362 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow() 385 protected String doMountObb(String obbFilePath, String key, int expectedState) { in doMountObb() argument 393 assertEquals("OBB mount state not what was expected!", expectedState, obbListener.state()); in doMountObb() 395 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb() 399 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb() 404 assertEquals("Mount state is not what was expected!", expectedState, obbListener.state()); in doMountObb()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 434 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 440 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState() 450 " to be " + expectedState.toString()); in waitForNetworkState() 469 (mNetworkInfo.getState() != expectedState)) { in waitForNetworkState() 485 public boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 491 if (mWifiState != expectedState) { in waitForWifiState() 497 Log.v(LOG_TAG, "Wait for wifi state to be: " + expectedState); in waitForWifiState() 504 if (mWifiState != expectedState) { in waitForWifiState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 402 final NetworkInfo.State expectedState = NetworkInfo.State.CONNECTED; in checkForAvailability() local 409 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailability() 411 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailability()
|