Home
last modified time | relevance | path

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

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteStateMachineTest.java501 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_EARPIECE, in testInitializationWithEarpieceNoHeadsetNoBluetooth() local
503 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceNoHeadsetNoBluetooth()
509 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_WIRED_HEADSET, in testInitializationWithEarpieceAndHeadsetNoBluetooth() local
511 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndHeadsetNoBluetooth()
517 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testInitializationWithEarpieceAndHeadsetAndBluetooth() local
520 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndHeadsetAndBluetooth()
526 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testInitializationWithEarpieceAndBluetoothNoHeadset() local
529 initializationTestHelper(expectedState, CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED); in testInitializationWithEarpieceAndBluetoothNoHeadset()
535 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_SPEAKER, in testInitializationWithNoEarpieceNoHeadsetNoBluetooth() local
537 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/services/Car/tests/carservice_test/src/com/android/car/
DCarPowerManagementTest.java263 private void assertResponse(int expectedState, int expectedParam, boolean checkParam) in assertResponse() argument
266 DEFAULT_WAIT_TIMEOUT_MS, expectedState); in assertResponse()
268 assertEquals(expectedState, last[0]); in assertResponse()
275 private void assertResponseTransient(int expectedState, int expectedParam, boolean checkParam) in assertResponseTransient() argument
278 DEFAULT_WAIT_TIMEOUT_MS, expectedState); in assertResponseTransient()
280 if (expectedState != aState[0]) continue; in assertResponseTransient()
286 fail("Did not find expected state: " + expectedState); in assertResponseTransient()
312 boolean waitForDisplayState(boolean expectedState) in waitForDisplayState() argument
314 if (expectedState == mDisplayOn) { in waitForDisplayState()
319 return expectedState == mDisplayOn; in waitForDisplayState()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBackground.java63 protected void goToOverviewUnchecked(int expectedState) { in goToOverviewUnchecked() argument
108 mLauncher.swipeToState(startX, startY, endX, endY, 10, expectedState); in goToOverviewUnchecked()
134 protected void quickSwitchToPreviousApp(int expectedState) { in quickSwitchToPreviousApp() argument
158 mLauncher.swipeToState(startX, startY, endX, endY, 20, expectedState); in quickSwitchToPreviousApp()
DLauncherInstrumentation.java778 void swipeToState(int startX, int startY, int endX, int endY, int steps, int expectedState) { in swipeToState() argument
784 TestProtocol.stateOrdinalToString(expectedState), in swipeToState()
/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/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java657 private void assertStateReceived(int expectedState, int expectedParam) throws Exception { in assertStateReceived() argument
659 assertThat(state[0]).isEqualTo(expectedState); in assertStateReceived()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java613 private int verifyVoiceRecognitionBroadcast(int expectedBroadcastIndex, int expectedState) { in verifyVoiceRecognitionBroadcast() argument
622 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()