Home
last modified time | relevance | path

Searched refs:expectedState (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java153 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
157 if (ni != null && expectedState.equals(ni.getState())) { in waitForNetworkState()
172 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
176 if (state == expectedState) { in waitForWifiState()
181 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state); in waitForWifiState()
184 logv("waitForWifiState interim: expected=%d, actual=%d", expectedState, state); in waitForWifiState()
191 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
195 if (state == expectedState) { in waitForWifiApState()
201 expectedState, state)); in waitForWifiApState()
205 expectedState, state)); in waitForWifiApState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java129 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/
DStorageManagerBaseTest.java276 protected String mountObb(String obbFilePath, String key, int expectedState) { in mountObb() argument
277 return doMountObb(obbFilePath, key, expectedState); in mountObb()
324 protected String doMountObb_noThrow(String obbFilePath, String key, int expectedState) { in doMountObb_noThrow() argument
332 success &= (expectedState == obbListener.state()); in doMountObb_noThrow()
334 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow()
357 protected String doMountObb(String obbFilePath, String key, int expectedState) { in doMountObb() argument
365 assertEquals("OBB mount state not what was expected!", expectedState, obbListener.state()); in doMountObb()
367 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb()
371 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb()
376 assertEquals("Mount state is not what was expected!", expectedState, obbListener.state()); in doMountObb()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
DNetworkStateTrackerTest.java65 NetworkState expectedState = new NetworkState(false, false, true, false); in testGetInitialState_nullNetworkInfoSdk15() local
66 assertThat(mTracker.getInitialState(), is(expectedState)); in testGetInitialState_nullNetworkInfoSdk15()
73 NetworkState expectedState = new NetworkState(false, false, false, false); in testGetInitialState_nullNetworkInfo() local
74 assertThat(mTracker.getInitialState(), is(expectedState)); in testGetInitialState_nullNetworkInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkServiceTest.java134 NetworkRegistrationState expectedState = new NetworkRegistrationState( in testGetNetworkRegistrationState() local
142 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationState()
157 expectedState = new NetworkRegistrationState( in testGetNetworkRegistrationState()
164 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationState()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java434 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/av/media/libaaudio/tests/
Dtest_various.cpp55 aaudio_stream_state_t expectedState) { in checkStateTransition() argument
139 ASSERT_EQ(originalState, expectedState); in checkStateTransition()
141 EXPECT_EQ(expectedState, state); in checkStateTransition()
142 if (state != expectedState) { in checkStateTransition()
144 AAudio_convertStreamStateToText(expectedState), in checkStateTransition()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp66 void expectVSyncSetEnabledCallReceived(bool expectedState);
127 void EventThreadTest::expectVSyncSetEnabledCallReceived(bool expectedState) { in expectVSyncSetEnabledCallReceived() argument
130 EXPECT_EQ(expectedState, std::get<0>(args.value())); in expectVSyncSetEnabledCallReceived()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java697 final String expectedState = "(" + state + ")"; in assertProcState() local
701 return expectedState.equals(actualState) ? null in assertProcState()
702 : "expected=" + expectedState + ", actual" + actualState; in assertProcState()
706 private void assertProcState(int expectedState) throws Exception { in assertProcState() argument
711 return (actualState == expectedState) ? null in assertProcState()
712 : "expected=" + getStateName(BatteryStats.Uid.class, expectedState) in assertProcState()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationGestureHandlerTest.java489 private void check(boolean condition, int expectedState) {
491 fail("Expected to be in state " + stateToString(expectedState) + stateDump());