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.java30 import com.android.server.telecom.CallAudioRouteStateMachine;
136 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testEarpieceAutodetect()
143 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT, in testEarpieceAutodetect()
155 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testSpeakerPersistence()
162 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in testSpeakerPersistence()
180 stateMachine.sendMessageWithSessionInfo(CallAudioRouteStateMachine.SWITCH_FOCUS, in testSpeakerPersistence()
181 CallAudioRouteStateMachine.ACTIVE_FOCUS); in testSpeakerPersistence()
182 stateMachine.sendMessageWithSessionInfo(CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET); in testSpeakerPersistence()
192 CallAudioRouteStateMachine.DISCONNECT_WIRED_HEADSET); in testSpeakerPersistence()
200 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testUserBluetoothSwitchOff()
[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 …]
DVideoCallTests.java35 import com.android.server.telecom.CallAudioRouteStateMachine;
261 CallAudioRouteStateMachine carsm = mTelecomSystem.getCallsManager() in verifyAudioRoute()
267 carsm.sendMessage(CallAudioRouteStateMachine.RUN_RUNNABLE, (Runnable) () -> { in verifyAudioRoute()
DCallAudioModeStateMachineTest.java25 import com.android.server.telecom.CallAudioRouteStateMachine;
180 CallAudioRouteStateMachine.RINGING_FOCUS); in testRegainFocusWhenHfpIsConnectedSilenced()
DTelecomSystemTest.java74 import com.android.server.telecom.CallAudioRouteStateMachine;
491 new CallAudioRouteStateMachine.Factory() { in setupTelecomSystem()
493 public CallAudioRouteStateMachine create( in setupTelecomSystem()
501 return new CallAudioRouteStateMachine(context, in setupTelecomSystem()
508 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in setupTelecomSystem()
DAnalyticsTests.java53 import com.android.server.telecom.CallAudioRouteStateMachine;
395 String logEvent = CallAudioRouteStateMachine.AUDIO_ROUTE_TO_LOG_EVENT.get(route);
DCallsManagerTest.java65 import com.android.server.telecom.CallAudioRouteStateMachine;
191 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
192 @Mock private CallAudioRouteStateMachine.Factory mCallAudioRouteStateMachineFactory;
990 .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()
326 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in onConnectionServiceChanged()
344 CallAudioRouteStateMachine.SWITCH_SPEAKER); in onVideoStateChanged()
371 CallAudioRouteStateMachine.TOGGLE_MUTE); in toggleMute()
391 ? CallAudioRouteStateMachine.MUTE_ON : CallAudioRouteStateMachine.MUTE_OFF); in mute()
406 CallAudioRouteStateMachine.USER_SWITCH_BLUETOOTH, 0, bluetoothAddress); in setAudioRoute()
410 CallAudioRouteStateMachine.USER_SWITCH_SPEAKER); in setAudioRoute()
414 CallAudioRouteStateMachine.USER_SWITCH_HEADSET); in setAudioRoute()
[all …]
DCallAudioModeStateMachine.java231 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
294 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
366 CallAudioRouteStateMachine.RINGING_FOCUS); in tryStartRinging()
451 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
532 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
608 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();
1401 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
1423 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
DTelecomSystem.java204 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in TelecomSystem()
DCallsManager.java480 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in CallsManager()
506 CallAudioRouteStateMachine callAudioRouteStateMachine = in CallsManager()
514 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT in CallsManager()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java37 import com.android.server.telecom.CallAudioRouteStateMachine;
178 new CallAudioRouteStateMachine.Factory(), in initializeTelecomSystem()