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.java24 import com.android.server.telecom.CallAudioModeStateMachine;
25 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs;
54 public CallAudioModeStateMachine.MessageArgs externalState;
62 CallAudioModeStateMachine.MessageArgs externalState, String in ModeTestParameters()
132 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in modeTransitionTest()
141 == CallAudioModeStateMachine.ENTER_AUDIO_PROCESSING_FOCUS_FOR_TESTING) { in modeTransitionTest()
143 .thenReturn(CallAudioModeStateMachine.NEW_AUDIO_MODE_FOR_AUDIO_PROCESSING); in modeTransitionTest()
149 && mParams.messageType != CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE) { in modeTransitionTest()
151 sm.sendMessage(CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE); in modeTransitionTest()
212 CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING, // initialAudioState in generateTestCases()
[all …]
DCallAudioManagerTest.java26 import com.android.server.telecom.CallAudioModeStateMachine;
27 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs;
34 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
71 @Mock private CallAudioModeStateMachine mCallAudioModeStateMachine;
116 ArgumentCaptor<CallAudioModeStateMachine.MessageArgs> captor = makeNewCaptor(); in testUnmuteOfSecondIncomingCall()
126 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); in testUnmuteOfSecondIncomingCall()
127 CallAudioModeStateMachine.MessageArgs correctArgs = in testUnmuteOfSecondIncomingCall()
139 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); in testUnmuteOfSecondIncomingCall()
179 ArgumentCaptor<CallAudioModeStateMachine.MessageArgs> captor = makeNewCaptor();
188 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture());
[all …]
DCallAudioModeStateMachineTest.java24 import com.android.server.telecom.CallAudioModeStateMachine;
26 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
74 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testNoFocusWhenRingerSilenced()
77 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testNoFocusWhenRingerSilenced()
83 sm.sendMessage(CallAudioModeStateMachine.NEW_RINGING_CALL, new Builder() in testNoFocusWhenRingerSilenced()
93 assertEquals(CallAudioModeStateMachine.RING_STATE_NAME, sm.getCurrentStateName()); in testNoFocusWhenRingerSilenced()
106 CallAudioModeStateMachine sm = new CallAudioModeStateMachine(mSystemStateHelper, in testNoRingWhenDeviceIsAtEar()
109 sm.sendMessage(CallAudioModeStateMachine.ABANDON_FOCUS_FOR_TESTING); in testNoRingWhenDeviceIsAtEar()
110 sm.sendMessage(CallAudioModeStateMachine.NEW_HOLDING_CALL, new Builder() in testNoRingWhenDeviceIsAtEar()
119 assertEquals(CallAudioModeStateMachine.TONE_HOLD_STATE_NAME, sm.getCurrentStateName()); in testNoRingWhenDeviceIsAtEar()
[all …]
DVideoCallTests.java34 import com.android.server.telecom.CallAudioModeStateMachine;
263 CallAudioModeStateMachine camsm = mTelecomSystem.getCallsManager() in verifyAudioRoute()
DTelecomSystemTest.java73 import com.android.server.telecom.CallAudioModeStateMachine;
512 new CallAudioModeStateMachine.Factory() { in setupTelecomSystem()
514 public CallAudioModeStateMachine create(SystemStateHelper systemStateHelper, in setupTelecomSystem()
516 return new CallAudioModeStateMachine(systemStateHelper, am, in setupTelecomSystem()
DCallsManagerTest.java64 import com.android.server.telecom.CallAudioModeStateMachine;
193 @Mock private CallAudioModeStateMachine mCallAudioModeStateMachine;
194 @Mock private CallAudioModeStateMachine.Factory mCallAudioModeStateMachineFactory;
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java29 import com.android.server.telecom.CallAudioModeStateMachine.MessageArgs.Builder;
53 private final CallAudioModeStateMachine mCallAudioModeStateMachine;
68 CallAudioModeStateMachine callAudioModeStateMachine, in CallAudioManager()
286 CallAudioModeStateMachine.FOREGROUND_VOIP_MODE_CHANGE, in onIsVoipAudioModeChanged()
377 CallAudioModeStateMachine.RINGER_MODE_CHANGE, makeArgsForModeStateMachine()); in onRingerModeChange()
491 CallAudioModeStateMachine.AUDIO_OPERATIONS_COMPLETE, makeArgsForModeStateMachine()); in notifyAudioOperationsComplete()
500 public CallAudioModeStateMachine getCallAudioModeStateMachine() { in getCallAudioModeStateMachine()
550 isTonePlaying ? CallAudioModeStateMachine.TONE_STARTED_PLAYING in setIsTonePlaying()
551 : CallAudioModeStateMachine.TONE_STOPPED_PLAYING, in setIsTonePlaying()
621 CallAudioModeStateMachine.NO_MORE_AUDIO_PROCESSING_CALLS, in onCallLeavingAudioProcessing()
[all …]
DCallAudioModeStateMachine.java32 public class CallAudioModeStateMachine extends StateMachine { class
34 public CallAudioModeStateMachine create(SystemStateHelper systemStateHelper, in create()
36 return new CallAudioModeStateMachine(systemStateHelper, am); in create()
664 private static final String LOG_TAG = CallAudioModeStateMachine.class.getSimpleName();
680 public CallAudioModeStateMachine(SystemStateHelper systemStateHelper, in CallAudioModeStateMachine() method in CallAudioModeStateMachine
682 super(CallAudioModeStateMachine.class.getSimpleName()); in CallAudioModeStateMachine()
693 public CallAudioModeStateMachine(SystemStateHelper systemStateHelper, in CallAudioModeStateMachine() method in CallAudioModeStateMachine
695 super(CallAudioModeStateMachine.class.getSimpleName(), looper); in CallAudioModeStateMachine()
DTelecomSystem.java205 CallAudioModeStateMachine.Factory callAudioModeStateMachineFactory, in TelecomSystem()
DCallsManager.java481 CallAudioModeStateMachine.Factory callAudioModeStateMachineFactory, in CallsManager()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java36 import com.android.server.telecom.CallAudioModeStateMachine;
179 new CallAudioModeStateMachine.Factory(), in initializeTelecomSystem()