Home
last modified time | relevance | path

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

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteStateMachineTest.java57 import com.android.server.telecom.CallAudioRouteStateMachine;
161 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testEarpieceAutodetect()
168 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT, in testEarpieceAutodetect()
183 CallAudioRouteStateMachine stateMachine = new CallAudioRouteStateMachine( in testTrackedCallsReceiveAudioRouteChange()
190 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT, in testTrackedCallsReceiveAudioRouteChange()
208 CallAudioRouteStateMachine.ROUTE_EARPIECE); in testTrackedCallsReceiveAudioRouteChange()
211 stateMachine.sendMessageWithSessionInfo(CallAudioRouteStateMachine.SWITCH_SPEAKER, in testTrackedCallsReceiveAudioRouteChange()
212 CallAudioRouteStateMachine.SPEAKER_ON); in testTrackedCallsReceiveAudioRouteChange()
215 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in testTrackedCallsReceiveAudioRouteChange()
222 CallAudioRouteStateMachine.ROUTE_SPEAKER); in testTrackedCallsReceiveAudioRouteChange()
[all …]
DCallAudioRouteTransitionTests.java46 import com.android.server.telecom.CallAudioRouteStateMachine;
210 private void setupMocksForParams(final CallAudioRouteStateMachine sm, in setupMocksForParams()
227 sm.sendMessageWithSessionInfo(CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in setupMocksForParams()
234 if (params.action == CallAudioRouteStateMachine.SPEAKER_ON) { in setupMocksForParams()
236 } else if (params.action == CallAudioRouteStateMachine.SPEAKER_OFF) { in setupMocksForParams()
246 private void sendActionToStateMachine(CallAudioRouteStateMachine sm) { in sendActionToStateMachine()
250 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in sendActionToStateMachine()
252 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_PRESENT); in sendActionToStateMachine()
256 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in sendActionToStateMachine()
258 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_GONE); in sendActionToStateMachine()
[all …]
DCallAudioRoutePeripheralAdapterTest.java31 import com.android.server.telecom.CallAudioRouteStateMachine;
47 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
107 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in testOnBluetoothDeviceListChanged()
115 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_PRESENT); in testOnBluetoothActiveDevicePresent()
123 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_GONE); in testOnBluetoothActiveDeviceGone()
131 CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in testOnBluetoothAudioConnected()
140 CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in testOnBluetoothAudioConnecting()
149 CallAudioRouteStateMachine.BT_AUDIO_DISCONNECTED); in testOnBluetoothAudioDisconnected()
158 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in testOnUnexpectedBluetoothStateChange()
174 CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET); in testOnWiredHeadsetPluggedInChangedPlugged()
[all …]
DCallAudioManagerTest.java52 import com.android.server.telecom.CallAudioRouteStateMachine;
79 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
177 .filter(value -> value == CallAudioRouteStateMachine.MUTE_ON || in testUnmuteOfSecondIncomingCall()
178 value == CallAudioRouteStateMachine.MUTE_OFF) in testUnmuteOfSecondIncomingCall()
182 assertTrue(values.contains(CallAudioRouteStateMachine.MUTE_ON)); in testUnmuteOfSecondIncomingCall()
183 assertTrue(values.contains(CallAudioRouteStateMachine.MUTE_OFF)); in testUnmuteOfSecondIncomingCall()
185 assertTrue(values.indexOf(CallAudioRouteStateMachine.MUTE_ON) < values in testUnmuteOfSecondIncomingCall()
186 .lastIndexOf(CallAudioRouteStateMachine.MUTE_OFF)); in testUnmuteOfSecondIncomingCall()
272 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE);
337 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE);
[all …]
DCallAudioModeStateMachineTest.java44 import com.android.server.telecom.CallAudioRouteStateMachine;
62 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
253 CallAudioRouteStateMachine.RINGING_FOCUS); in testRegainFocusWhenHfpIsConnectedSilenced()
284 CallAudioRouteStateMachine.RINGING_FOCUS); in testDoNotRingTwiceWhenHfpConnected()
322 CallAudioRouteStateMachine.RINGING_FOCUS); in testStartRingingAfterHfpConnectedIfNotAlreadyPlaying()
DVideoCallTests.java37 import com.android.server.telecom.CallAudioRouteStateMachine;
269 cara.sendMessage(CallAudioRouteStateMachine.RUN_RUNNABLE, (Runnable) () -> { in verifyAudioRoute()
DInCallTonePlayerTest.java42 import com.android.server.telecom.CallAudioRouteStateMachine;
66 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
DTelecomSystemTest.java76 import com.android.server.telecom.CallAudioRouteStateMachine;
537 new CallAudioRouteStateMachine.Factory() { in setupTelecomSystem()
539 public CallAudioRouteStateMachine create( in setupTelecomSystem()
550 return new CallAudioRouteStateMachine(context, in setupTelecomSystem()
557 CallAudioRouteStateMachine.EARPIECE_FORCE_ENABLED, in setupTelecomSystem()
DAnalyticsTests.java58 import com.android.server.telecom.CallAudioRouteStateMachine;
409 String logEvent = CallAudioRouteStateMachine.AUDIO_ROUTE_TO_LOG_EVENT.get(route);
DCallsManagerTest.java99 import com.android.server.telecom.CallAudioRouteStateMachine;
298 @Mock private CallAudioRouteStateMachine mCallAudioRouteStateMachine;
299 @Mock private CallAudioRouteStateMachine.Factory mCallAudioRouteStateMachineFactory;
1580 .sendMessageWithSessionInfo(CallAudioRouteStateMachine.TOGGLE_MUTE); in testToggleMuteWhenHeadsetMediaButtonLongPressDuringOngoingCall()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRoutePeripheralAdapter.java64 CallAudioRouteStateMachine.BLUETOOTH_DEVICE_LIST_CHANGED); in onBluetoothDeviceListChanged()
70 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_PRESENT); in onBluetoothActiveDevicePresent()
76 CallAudioRouteStateMachine.BT_ACTIVE_DEVICE_GONE); in onBluetoothActiveDeviceGone()
83 CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in onBluetoothAudioConnected()
91 CallAudioRouteStateMachine.BT_AUDIO_CONNECTED); in onBluetoothAudioConnecting()
98 CallAudioRouteStateMachine.BT_AUDIO_DISCONNECTED); in onBluetoothAudioDisconnected()
104 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in onUnexpectedBluetoothStateChange()
115 CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET); in onWiredHeadsetPluggedInChanged()
118 CallAudioRouteStateMachine.DISCONNECT_WIRED_HEADSET); in onWiredHeadsetPluggedInChanged()
125 isDocked ? CallAudioRouteStateMachine.CONNECT_DOCK in onDockChanged()
[all …]
DCallAudioManager.java239 CallAudioRouteStateMachine.SWITCH_SPEAKER); in onExternalCallChanged()
391 CallAudioRouteStateMachine.UPDATE_SYSTEM_AUDIO_ROUTE); in onConnectionServiceChanged()
409 CallAudioRouteStateMachine.SWITCH_SPEAKER); in onVideoStateChanged()
436 CallAudioRouteStateMachine.TOGGLE_MUTE); in toggleMute()
456 ? CallAudioRouteStateMachine.MUTE_ON : CallAudioRouteStateMachine.MUTE_OFF); in mute()
472 CallAudioRouteStateMachine.USER_SWITCH_BLUETOOTH, 0, bluetoothAddress); in setAudioRoute()
476 CallAudioRouteStateMachine.USER_SWITCH_SPEAKER); in setAudioRoute()
480 CallAudioRouteStateMachine.USER_SWITCH_HEADSET); in setAudioRoute()
484 CallAudioRouteStateMachine.USER_SWITCH_EARPIECE); in setAudioRoute()
488 CallAudioRouteStateMachine.USER_SWITCH_BASELINE_ROUTE, in setAudioRoute()
[all …]
DCallAudioModeStateMachine.java293 CallAudioRouteStateMachine.NO_FOCUS); in enter()
296 CallAudioRouteStateMachine.NO_FOCUS); in enter()
379 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.NO_FOCUS); in enter()
481 CallAudioRouteStateMachine.RINGING_FOCUS); in tryStartRinging()
580 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
668 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
745 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
747 CallAudioRouteStateMachine.STREAMING_FORCE_ENABLED); in enter()
752 CallAudioRouteStateMachine.STREAMING_FORCE_DISABLED); in preExit()
827 mCallAudioManager.setCallAudioRouteFocusState(CallAudioRouteStateMachine.ACTIVE_FOCUS); in enter()
DCallAudioRouteStateMachine.java77 public class CallAudioRouteStateMachine extends StateMachine implements CallAudioRouteAdapter { class
80 public CallAudioRouteStateMachine create( in create()
91 return new CallAudioRouteStateMachine(context, in create()
145 public static final String NAME = CallAudioRouteStateMachine.class.getName();
1523 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
1550 public CallAudioRouteStateMachine( in CallAudioRouteStateMachine() method in CallAudioRouteStateMachine
DTelecomSystem.java220 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in TelecomSystem()
DCallsManager.java600 CallAudioRouteStateMachine.Factory callAudioRouteStateMachineFactory, in CallsManager()
654 CallAudioRouteStateMachine.EARPIECE_AUTO_DETECT, in CallsManager()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java41 import com.android.server.telecom.CallAudioRouteStateMachine;
190 new CallAudioRouteStateMachine.Factory(),