Home
last modified time | relevance | path

Searched refs:initState (Results 1 – 3 of 3) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteStateMachineTest.java176 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_SPEAKER, in testSpeakerPersistence() local
178 stateMachine.initialize(initState); in testSpeakerPersistence()
188 verifyNewSystemCallAudioState(initState, expectedMiddleState); in testSpeakerPersistence()
194 verifyNewSystemCallAudioState(expectedMiddleState, initState); in testSpeakerPersistence()
215 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOff() local
217 stateMachine.initialize(initState); in testUserBluetoothSwitchOff()
230 verifyNewSystemCallAudioState(initState, expectedEndState); in testUserBluetoothSwitchOff()
260 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOffAndOnAgain() local
262 stateMachine.initialize(initState); in testUserBluetoothSwitchOffAndOnAgain()
278 verifyNewSystemCallAudioState(initState, expectedMidState); in testUserBluetoothSwitchOffAndOnAgain()
[all …]
DCallAudioRouteTransitionTests.java274 final CallAudioState initState = new CallAudioState(false, in testActiveTransition() local
277 stateMachine.initialize(initState); in testActiveTransition()
343 verifyNewSystemCallAudioState(initState, expectedState); in testActiveTransition()
371 CallAudioState initState = new CallAudioState(false, in testQuiescentTransition() local
374 stateMachine.initialize(initState); in testQuiescentTransition()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1494 CallAudioState initState = getInitialAudioState(); in initialize() local
1495 initialize(initState); in initialize()
1498 public void initialize(CallAudioState initState) { in initialize() argument
1499 if ((initState.getRoute() & getCurrentCallSupportedRoutes()) == 0) { in initialize()
1501 " routes are: %d", initState.getRoute(), getCurrentCallSupportedRoutes()); in initialize()
1504 mCurrentCallAudioState = initState; in initialize()
1505 mLastKnownCallAudioState = initState; in initialize()
1506 mDeviceSupportedRoutes = initState.getSupportedRouteMask(); in initialize()
1508 mIsMuted = initState.isMuted(); in initialize()
1515 mStatusBarNotifier.notifyMute(initState.isMuted()); in initialize()
[all …]