Home
last modified time | relevance | path

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

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java42 import com.android.server.telecom.CallAudioRouteStateMachine;
201 private void setupMocksForParams(final CallAudioRouteStateMachine sm, in setupMocksForParams()
218 sm.sendMessageWithSessionInfo(CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in setupMocksForParams()
225 if (params.action == CallAudioRouteStateMachine.SPEAKER_ON) { in setupMocksForParams()
227 } else if (params.action == CallAudioRouteStateMachine.SPEAKER_OFF) { in setupMocksForParams()
237 private void sendActionToStateMachine(CallAudioRouteStateMachine sm) { in sendActionToStateMachine()
241 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in sendActionToStateMachine()
243 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_PRESENT); in sendActionToStateMachine()
247 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in sendActionToStateMachine()
249 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_GONE); in sendActionToStateMachine()
[all …]
DCallAudioRouteStateMachineTest.java33 import com.android.server.telecom.CallAudioRouteStateMachine;
139 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testEarpieceAutodetect()
146 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT, in testEarpieceAutodetect()
158 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testStreamRingMuteChange()
165 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in testStreamRingMuteChange()
201 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testSpeakerPersistence()
208 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in testSpeakerPersistence()
226 stateMachine.sendMessageWithSessionInfo(CallAudioRouteStateMachine.SWITCH_FOCUS, in testSpeakerPersistence()
227 CallAudioRouteStateMachine.ACTIVE_FOCUS); in testSpeakerPersistence()
228 stateMachine.sendMessageWithSessionInfo(CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET); in testSpeakerPersistence()
[all …]
DCallAudioManagerTest.java28 import com.android.server.telecom.CallAudioRouteStateMachine;
69 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
163 .filter(value -> value == CallAudioRouteStateMachine.MUTE_ON || in testUnmuteOfSecondIncomingCall()
164 value == CallAudioRouteStateMachine.MUTE_OFF) in testUnmuteOfSecondIncomingCall()
168 assertTrue(values.contains(CallAudioRouteStateMachine.MUTE_ON)); in testUnmuteOfSecondIncomingCall()
169 assertTrue(values.contains(CallAudioRouteStateMachine.MUTE_OFF)); in testUnmuteOfSecondIncomingCall()
171 assertTrue(values.indexOf(CallAudioRouteStateMachine.MUTE_ON) < values in testUnmuteOfSecondIncomingCall()
172 .lastIndexOf(CallAudioRouteStateMachine.MUTE_OFF)); in testUnmuteOfSecondIncomingCall()
258 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE);
342 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE);
[all …]
DCallAudioModeStateMachineTest.java25 import com.android.server.telecom.CallAudioRouteStateMachine;
180 CallAudioRouteStateMachine.RINGING_FOCUS); in testRegainFocusWhenHfpIsConnectedSilenced()
211 CallAudioRouteStateMachine.RINGING_FOCUS); in testDoNotRingTwiceWhenHfpConnected()
249 CallAudioRouteStateMachine.RINGING_FOCUS); in testStartRingingAfterHfpConnectedIfNotAlreadyPlaying()
DVideoCallTests.java35 import com.android.server.telecom.CallAudioRouteStateMachine;
261 CallAudioRouteStateMachine carsm = mTelecomSystem.getCallsManager() in verifyAudioRoute()
267 carsm.sendMessage(CallAudioRouteStateMachine.RUN_RUNNABLE, (Runnable) () -> { in verifyAudioRoute()
DTelecomSystemTest.java74 import com.android.server.telecom.CallAudioRouteStateMachine;
490 new CallAudioRouteStateMachine.Factory() { in setupTelecomSystem()
492 public CallAudioRouteStateMachine create( in setupTelecomSystem()
500 return new CallAudioRouteStateMachine(context, in setupTelecomSystem()
507 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in setupTelecomSystem()
DAnalyticsTests.java57 import com.android.server.telecom.CallAudioRouteStateMachine;
406 String logEvent = CallAudioRouteStateMachine.AUDIO_ROUTE_TO_LOG_EVENT.get(route);
DCallsManagerTest.java75 import com.android.server.telecom.CallAudioRouteStateMachine;
203 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
204 @Mock private CallAudioRouteStateMachine.Factory mCallAudioRouteStateMachineFactory;
1001 .sendMessageWithSessionInfo(CallAudioRouteStateMachine.TOGGLE_MUTE); in testToggleMuteWhenHeadsetMediaButtonLongPressDuringOngoingCall()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRoutePeripheralAdapter.java28 private final CallAudioRouteStateMachine mCallAudioRouteStateMachine;
32 CallAudioRouteStateMachine callAudioRouteStateMachine, in CallAudioRoutePeripheralAdapter()
51 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in onBluetoothDeviceListChanged()
57 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_PRESENT); in onBluetoothActiveDevicePresent()
63 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_GONE); in onBluetoothActiveDeviceGone()
69 CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in onBluetoothAudioConnected()
75 CallAudioRouteStateMachine.BT_AUDIO_DISCONNECTED); in onBluetoothAudioDisconnected()
81 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in onUnexpectedBluetoothStateChange()
92 CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET); in onWiredHeadsetPluggedInChanged()
95 CallAudioRouteStateMachine.DISCONNECT_WIRED_HEADSET); in onWiredHeadsetPluggedInChanged()
[all …]
DCallAudioManager.java52 private final CallAudioRouteStateMachine mCallAudioRouteStateMachine;
66 public CallAudioManager(CallAudioRouteStateMachine callAudioRouteStateMachine, in CallAudioManager()
212 CallAudioRouteStateMachine.SWITCH_SPEAKER); in onExternalCallChanged()
334 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in onConnectionServiceChanged()
352 CallAudioRouteStateMachine.SWITCH_SPEAKER); in onVideoStateChanged()
379 CallAudioRouteStateMachine.TOGGLE_MUTE); in toggleMute()
399 ? CallAudioRouteStateMachine.MUTE_ON : CallAudioRouteStateMachine.MUTE_OFF); in mute()
414 CallAudioRouteStateMachine.USER_SWITCH_BLUETOOTH, 0, bluetoothAddress); in setAudioRoute()
418 CallAudioRouteStateMachine.USER_SWITCH_SPEAKER); in setAudioRoute()
422 CallAudioRouteStateMachine.USER_SWITCH_HEADSET); in setAudioRoute()
[all …]
DCallAudioModeStateMachine.java231 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
294 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
376 CallAudioRouteStateMachine.RINGING_FOCUS); in tryStartRinging()
463 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
544 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
620 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
DCallAudioRouteStateMachine.java73 public class CallAudioRouteStateMachine extends StateMachine { class
76 public CallAudioRouteStateMachine create( in create()
84 return new CallAudioRouteStateMachine(context, in create()
224 public static final String NAME = CallAudioRouteStateMachine.class.getName();
1431 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
1453 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
DTelecomSystem.java205 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in TelecomSystem()
DCallsManager.java489 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in CallsManager()
514 CallAudioRouteStateMachine callAudioRouteStateMachine = in CallsManager()
522 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT in CallsManager()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java38 import com.android.server.telecom.CallAudioRouteStateMachine;
178 new CallAudioRouteStateMachine.Factory(),