Home
last modified time | relevance | path

Searched refs:CallAudioModeStateMachine (Results 1 – 11 of 11) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeTransitionTests.java36 import com.android.server.telecom.CallAudioModeStateMachine;
37 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs;
57 public CallAudioModeStateMachine.MessageArgs externalState;
65 CallAudioModeStateMachine.MessageArgs externalState, String in ModeTestParameters()
136 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in modeTransitionTest()
146 == CallAudioModeStateMachine.ENTER_AUDIO_PROCESSING_FOCUS_FOR_TESTING) { in modeTransitionTest()
148 .thenReturn(CallAudioModeStateMachine.NEW_AUDIO_MODE_FOR_AUDIO_PROCESSING); in modeTransitionTest()
154 && mParams.messageType != CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE) { in modeTransitionTest()
156 sm.sendMessage(CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE); in modeTransitionTest()
217 CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING, // initialAudioState in generateTestCases()
[all …]
DCallAudioModeStateMachineTest.java19 import static com.android.server.telecom.CallAudioModeStateMachine.CALL_AUDIO_FOCUS_REQUEST;
20 import static com.android.server.telecom.CallAudioModeStateMachine.RING_AUDIO_FOCUS_REQUEST;
42 import com.android.server.telecom.CallAudioModeStateMachine;
43 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
89 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testNoFocusWhenRingerSilenced()
92 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testNoFocusWhenRingerSilenced()
98 sm.sendMessage(CallAudioModeStateMachine.NEW_RINGING_CALL, new Builder() in testNoFocusWhenRingerSilenced()
108 assertEquals(CallAudioModeStateMachine.RING_STATE_NAME, sm.getCurrentStateName()); in testNoFocusWhenRingerSilenced()
121 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testSwitchToStreamingMode()
124 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testSwitchToStreamingMode()
[all …]
DCallAudioManagerTest.java49 import com.android.server.telecom.CallAudioModeStateMachine;
50 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs;
51 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
81 @Mock private CallAudioModeStateMachine mCallAudioModeStateMachine;
130 ArgumentCaptor<CallAudioModeStateMachine.MessageArgs> captor = makeNewCaptor(); in testUnmuteOfSecondIncomingCall()
140 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); in testUnmuteOfSecondIncomingCall()
141 CallAudioModeStateMachine.MessageArgs correctArgs = in testUnmuteOfSecondIncomingCall()
153 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); in testUnmuteOfSecondIncomingCall()
193 ArgumentCaptor<CallAudioModeStateMachine.MessageArgs> captor = makeNewCaptor();
202 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture());
[all …]
DVideoCallTests.java35 import com.android.server.telecom.CallAudioModeStateMachine;
265 CallAudioModeStateMachine camsm = mTelecomSystem.getCallsManager() in verifyAudioRoute()
DTelecomSystemTest.java75 import com.android.server.telecom.CallAudioModeStateMachine;
564 new CallAudioModeStateMachine.Factory() { in setupTelecomSystem()
566 public CallAudioModeStateMachine create(SystemStateHelper systemStateHelper, in setupTelecomSystem()
570 return new CallAudioModeStateMachine(systemStateHelper, am, in setupTelecomSystem()
DCallsManagerTest.java98 import com.android.server.telecom.CallAudioModeStateMachine;
300 @Mock private CallAudioModeStateMachine mCallAudioModeStateMachine;
301 @Mock private CallAudioModeStateMachine.Factory mCallAudioModeStateMachineFactory;
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java33 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
61 private final CallAudioModeStateMachine mCallAudioModeStateMachine;
82 CallAudioModeStateMachine callAudioModeStateMachine, in CallAudioManager()
255 CallAudioModeStateMachine.START_CALL_STREAMING, in onCallStreamingStateChanged()
265 CallAudioModeStateMachine.STOP_CALL_STREAMING, in onCallStreamingStateChanged()
351 CallAudioModeStateMachine.FOREGROUND_VOIP_MODE_CHANGE, in onIsVoipAudioModeChanged()
442 CallAudioModeStateMachine.RINGER_MODE_CHANGE, makeArgsForModeStateMachine()); in onRingerModeChange()
585 CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE, makeArgsForModeStateMachine()); in notifyAudioOperationsComplete()
594 public CallAudioModeStateMachine getCallAudioModeStateMachine() { in getCallAudioModeStateMachine()
645 isTonePlaying ? CallAudioModeStateMachine.TONE_STARTED_PLAYING in setIsTonePlaying()
[all …]
DCallAudioModeStateMachine.java36 public class CallAudioModeStateMachine extends StateMachine { class
43 public CallAudioModeStateMachine create(SystemStateHelper systemStateHelper, in create()
46 return new CallAudioModeStateMachine(systemStateHelper, am, in create()
883 private static final String LOG_TAG = CallAudioModeStateMachine.class.getSimpleName();
902 public CallAudioModeStateMachine(SystemStateHelper systemStateHelper, in CallAudioModeStateMachine() method in CallAudioModeStateMachine
905 super(CallAudioModeStateMachine.class.getSimpleName()); in CallAudioModeStateMachine()
918 public CallAudioModeStateMachine(SystemStateHelper systemStateHelper, in CallAudioModeStateMachine() method in CallAudioModeStateMachine
921 super(CallAudioModeStateMachine.class.getSimpleName(), looper); in CallAudioModeStateMachine()
DTelecomSystem.java221 CallAudioModeStateMachine.Factory callAudioModeStateMachineFactory, in TelecomSystem()
DCallsManager.java601 CallAudioModeStateMachine.Factory callAudioModeStateMachineFactory, in CallsManager()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java40 import com.android.server.telecom.CallAudioModeStateMachine;
191 new CallAudioModeStateMachine.Factory(),