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/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java187 protected String mountObb(String obbFilePath, String key, int expectedState) { in mountObb() argument
188 return doMountObb(obbFilePath, key, expectedState); in mountObb()
235 protected String doMountObb_noThrow(String obbFilePath, String key, int expectedState) { in doMountObb_noThrow() argument
243 success &= (expectedState == obbListener.state()); in doMountObb_noThrow()
245 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow()
268 protected String doMountObb(String obbFilePath, String key, int expectedState) { in doMountObb() argument
276 assertEquals("OBB mount state not what was expected!", expectedState, in doMountObb()
279 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb()
283 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb()
288 assertEquals("Mount state is not what was expected!", expectedState, in doMountObb()
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkServiceTest.java139 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo() local
147 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfo()
166 expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo()
174 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfo()
/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.cpp72 void expectVSyncSetEnabledCallReceived(bool expectedState);
148 void EventThreadTest::expectVSyncSetEnabledCallReceived(bool expectedState) { in expectVSyncSetEnabledCallReceived() argument
151 EXPECT_EQ(expectedState, std::get<0>(args.value())); in expectVSyncSetEnabledCallReceived()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBstatsCpuTimesValidationTest.java699 final String expectedState = "(" + state + ")"; in assertProcState() local
703 return expectedState.equals(actualState) ? null in assertProcState()
704 : "expected=" + expectedState + ", actual" + actualState; in assertProcState()
708 private void assertProcState(int expectedState) throws Exception { in assertProcState() argument
713 return (actualState == expectedState) ? null in assertProcState()
714 : "expected=" + getStateName(BatteryStats.Uid.class, expectedState) in assertProcState()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationGestureHandlerTest.java529 private void check(boolean condition, int expectedState) {
531 fail("Expected to be in state " + stateToString(expectedState) + stateDump());
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java1733 private void verifyStateConditions(int expectedState) { in verifyStateConditions() argument
1736 "Expected " + stateToString(expectedState) + " but was " + stateToString(curState), in verifyStateConditions()
1737 expectedState, curState); in verifyStateConditions()
1739 switch (expectedState) { in verifyStateConditions()
1812 fail("Conditions for " + stateToString(expectedState) + " unknown."); in verifyStateConditions()