/aosp14/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 157 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 161 if (ni != null && expectedState.equals(ni.getState())) { in waitForNetworkState() 176 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 180 if (state == expectedState) { in waitForWifiState() 185 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 188 logv("waitForWifiState interim: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 195 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument 199 if (state == expectedState) { in waitForWifiApState() 205 expectedState, state)); in waitForWifiApState() 209 expectedState, state)); in waitForWifiApState()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerBaseTest.java | 229 protected String mountObb(String obbFilePath, int expectedState) { in mountObb() argument 230 return doMountObb(obbFilePath, expectedState); in mountObb() 277 protected String doMountObb_noThrow(String obbFilePath, int expectedState) { in doMountObb_noThrow() argument 285 success &= (expectedState == obbListener.state()); in doMountObb_noThrow() 287 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow() 309 protected String doMountObb(String obbFilePath, int expectedState) { in doMountObb() argument 317 assertEquals("OBB mount state not what was expected!", expectedState, in doMountObb() 320 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb() 324 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb() 329 assertEquals("Mount state is not what was expected!", expectedState, in doMountObb()
|
/aosp14/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | ConnectionUtil.java | 437 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 443 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState() 453 " to be " + expectedState.toString()); in waitForNetworkState() 472 (mNetworkInfo.getState() != expectedState)) { in waitForNetworkState() 488 public boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 494 if (mWifiState != expectedState) { in waitForWifiState() 500 Log.v(LOG_TAG, "Wait for wifi state to be: " + expectedState); in waitForWifiState() 507 if (mWifiState != expectedState) { in waitForWifiState()
|
/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
H A D | ActivityThreadClientTest.java | 263 ActivityClientRecord r, int expectedState) throws Exception { in recreateAndVerifyRelaunched() argument 270 PollingCheck.check("Waiting for the expected state " + expectedState + " timeout", in recreateAndVerifyRelaunched() 272 () -> expectedState == r.getLifecycleState()); in recreateAndVerifyRelaunched() 273 assertEquals(expectedState, r.getLifecycleState()); in recreateAndVerifyRelaunched()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
H A D | OverlayActorEnforcerTests.kt | 61 val expectedState = testCase.state.takeUnless { type == Params.Type.ALLOWED } regex 65 return Params(caseIndex, expectedState, testName, type, case) 319 assertThat(testState.toResult()).isEqualTo(params.expectedState) 327 var expectedState: ActorState,
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BstatsCpuTimesValidationTest.java | 591 final String expectedState = "(" + state + ")"; in assertProcState() local 595 return expectedState.equals(actualState) ? null in assertProcState() 596 : "expected=" + expectedState + ", actual" + actualState; in assertProcState() 600 private void assertProcState(int expectedState) throws Exception { in assertProcState() argument 605 return (actualState == expectedState) ? null in assertProcState() 606 : "expected=" + getStateName(BatteryStats.Uid.class, expectedState) in assertProcState()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationGestureHandlerTest.java | 335 private void check(boolean condition, int expectedState) { in check() argument 337 fail("Expected to be in state " + stateToString(expectedState) + stateDump()); in check()
|
H A D | FullScreenMagnificationGestureHandlerTest.java | 866 private void check(boolean condition, int expectedState) { in check() argument 868 fail("Expected to be in state " + stateToString(expectedState) + stateDump()); in check()
|
/aosp14/frameworks/base/tests/vcn/java/com/android/server/vcn/ |
H A D | VcnGatewayConnectionTestBase.java | 359 @NonNull State expectedState) { in verifySafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent() 371 assertEquals(expectedState, mGatewayConnection.getCurrentState()); in verifySafeModeTimeoutNotifiesCallbackAndUnregistersNetworkAgent()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
H A D | DeviceIdleControllerTest.java | 2589 private void verifyStateConditions(int expectedState) { in verifyStateConditions() argument 2592 "Expected " + stateToString(expectedState) + " but was " + stateToString(curState), in verifyStateConditions() 2593 expectedState, curState); in verifyStateConditions() 2595 switch (expectedState) { in verifyStateConditions() 2675 fail("Conditions for " + stateToString(expectedState) + " unknown."); in verifyStateConditions()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | WindowStateTests.java | 1019 final InsetsState expectedState = new InsetsState(app.getInsetsState(), in testSetFreezeInsetsState() local 1022 assertEquals(expectedState, app.getFrozenInsetsState()); in testSetFreezeInsetsState() 1024 assertEquals(expectedState, app.getInsetsState()); in testSetFreezeInsetsState()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | TimeZoneDetectorStrategyImplTest.java | 1625 MetricsTimeZoneDetectorState expectedState = in assertMetricsState() local 1631 assertEquals(expectedState, actualState); in assertMetricsState()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
H A D | LocationTimeZoneProviderControllerTest.java | 1489 @State String expectedState) { in assertControllerState() argument 1490 assertEquals(expectedState, controller.getStateForTests().getControllerState()); in assertControllerState()
|