Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt243 expectedState: Map<String, Pair<Boolean, Int>> in assertGroupPermState()
247 assertThat(perms.keys).isEqualTo(expectedState.keys) in assertGroupPermState()
249 for ((permName, state) in expectedState) { in assertGroupPermState()
361 val expectedState = mutableMapOf(FG_PERM_NAME to (true to newFlags)) in grantOnePermTest() constant
362 assertGroupPermState(newGroup, expectedState) in grantOnePermTest()
391 val expectedState = mutableMapOf(FG_PERM_NAME to (true to newFlags), in grantTwoPermTest() constant
393 assertGroupPermState(newGroup, expectedState) in grantTwoPermTest()
417 val expectedState = mutableMapOf(FG_PERM_NAME_NO_APP_OP to (true to newFlags)) in grantNoAppOpPerm() constant
418 assertGroupPermState(newGroup, expectedState) in grantNoAppOpPerm()
443 val expectedState = mutableMapOf(FG_PERM_NAME to (true to NO_FLAGS), in grantBgPermTest() constant
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java292 private void assertResponse(int expectedState, int expectedParam, boolean checkParam) in assertResponse() argument
295 DEFAULT_WAIT_TIMEOUT_MS, expectedState); in assertResponse()
297 assertEquals(expectedState, last[0]); in assertResponse()
304 private void assertResponseTransient(int expectedState, int expectedParam, boolean checkParam) in assertResponseTransient() argument
307 DEFAULT_WAIT_TIMEOUT_MS, expectedState); in assertResponseTransient()
309 if (expectedState != aState[0]) continue; in assertResponseTransient()
315 fail("Did not find expected state: " + expectedState); in assertResponseTransient()
340 boolean waitForDisplayState(boolean expectedState) throws Exception { in waitForDisplayState() argument
341 if (expectedState == mDisplayOn) { in waitForDisplayState()
346 return expectedState == mDisplayOn; in waitForDisplayState()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteStateMachineTest.java582 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_EARPIECE, in testInitializationWithEarpieceNoHeadsetNoBluetooth() local
584 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceNoHeadsetNoBluetooth()
590 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_WIRED_HEADSET, in testInitializationWithEarpieceAndHeadsetNoBluetooth() local
592 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndHeadsetNoBluetooth()
598 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testInitializationWithEarpieceAndHeadsetAndBluetooth() local
601 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndHeadsetAndBluetooth()
607 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testInitializationWithEarpieceAndBluetoothNoHeadset() local
610 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndBluetoothNoHeadset()
616 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_SPEAKER, in testInitializationWithNoEarpieceNoHeadsetNoBluetooth() local
618 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_DISABLED); in testInitializationWithNoEarpieceNoHeadsetNoBluetooth()
[all …]
DCallAudioRouteTransitionTests.java340 CallAudioState expectedState = new CallAudioState(false, mParams.expectedRoute, in testActiveTransition() local
343 verifyNewSystemCallAudioState(initState, expectedState); in testActiveTransition()
392 CallAudioState expectedState = new CallAudioState(false, expectedRoute, in testQuiescentTransition() local
395 assertEquals(expectedState, stateMachine.getCurrentCallAudioState()); in testQuiescentTransition()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapTtlsHandshakeStateTest.java292 Class<? extends EapMethodState> expectedState) in testHandshake() argument
300 expectedState); in testHandshake()
319 Class<? extends EapMethodState> expectedState) in testHandshake() argument
328 assertTrue(expectedState.isInstance(mStateMachine.getState())); in testHandshake()
DEapTtlsTunnelStateTest.java336 Class<? extends EapMethodState> expectedState) in processMessageAndVerifyEapResponse() argument
349 assertTrue(expectedState.isInstance(mStateMachine.getState())); in processMessageAndVerifyEapResponse()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java1036 void runToState(Runnable command, int expectedState, boolean requireEvent, String actionName) { in runToState() argument
1038 runToState(command, expectedState, actionName); in runToState()
1044 void runToState(Runnable command, int expectedState, String actionName) { in runToState() argument
1048 event -> isSwitchToStateEvent(event, expectedState, actualEvents), in runToState()
1050 + TestProtocol.stateOrdinalToString(expectedState) in runToState()
1056 AccessibilityEvent event, int expectedState, List<Integer> actualEvents) { in isSwitchToStateEvent() argument
1062 return actualState == expectedState; in isSwitchToStateEvent()
1065 void swipeToState(int startX, int startY, int endX, int endY, int steps, int expectedState, in swipeToState() argument
1069 expectedState, in swipeToState() local
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionTestHelpers.java106 protected void updateState(final Action action, final int expectedState, in updateState() argument
109 super.updateState(action, expectedState, state); in updateState()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java438 final State expectedState; in checkForAvailabilityInResultData() local
441 expectedState = State.CONNECTED; in checkForAvailabilityInResultData()
444 expectedState = State.DISCONNECTED; in checkForAvailabilityInResultData()
452 if (expectedState != state || expectedDetailedState != detailedState) { in checkForAvailabilityInResultData()
454 expectedState, expectedDetailedState, state, detailedState)); in checkForAvailabilityInResultData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java417 private void assertStateReceived(int expectedState, int expectedParam) throws Exception { in assertStateReceived() argument
419 assertThat(state).asList().containsExactly(expectedState, expectedParam).inOrder(); in assertStateReceived()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java617 private int verifyVoiceRecognitionBroadcast(int expectedBroadcastIndex, int expectedState) { in verifyVoiceRecognitionBroadcast() argument
626 Assert.assertEquals(expectedState, state); in verifyVoiceRecognitionBroadcast()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerFragmentTest.java675 private void assertStateEquals(Timer.State expectedState, int index) { in assertStateEquals() argument
679 assertSame(expectedState, actualState); in assertStateEquals()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java634 private void assertStateReceived(int expectedState, int expectedParam) throws Exception { in assertStateReceived() argument
636 assertThat(state[0]).isEqualTo(expectedState); in assertStateReceived()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java1145 Class<?> expectedState, in verifyRekeyChildLocalCreateHandlesResponse() argument
1150 assertTrue(expectedState.isInstance(mChildSessionStateMachine.getCurrentState())); in verifyRekeyChildLocalCreateHandlesResponse()
DIkeSessionStateMachineTest.java6049 IkeNetworkCallbackBase callback, IkeSaRecord rekeySaRecord, State expectedState) in verifySetNetwork() argument
6051 verifySetNetwork(callback, rekeySaRecord, expectedState, true /* isIpv4 */); in verifySetNetwork()
6057 State expectedState, in verifySetNetwork() argument
6088 assertEquals(expectedState, mIkeSessionStateMachine.getCurrentState()); in verifySetNetwork()