Home
last modified time | relevance | path

Searched refs:ROUTE_BLUETOOTH (Results 1 – 24 of 24) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java213 doReturn(params.initialRoute == CallAudioState.ROUTE_BLUETOOTH) in setupMocksForParams()
215 doReturn((params.availableRoutes & CallAudioState.ROUTE_BLUETOOTH) != 0 in setupMocksForParams()
216 || (params.expectedAvailableRoutes & CallAudioState.ROUTE_BLUETOOTH) != 0) in setupMocksForParams()
295 if (mParams.initialRoute == CallAudioState.ROUTE_BLUETOOTH) { in testActiveTransition()
383 doReturn((mParams.availableRoutes & CallAudioState.ROUTE_BLUETOOTH) != 0 || in testQuiescentTransition()
384 (mParams.expectedAvailableRoutes & CallAudioState.ROUTE_BLUETOOTH) != 0) in testQuiescentTransition()
438 CallAudioState.ROUTE_BLUETOOTH, // initialRoute in testParametersCollection()
439 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH, // availableRoutes in testParametersCollection()
444 CallAudioState.ROUTE_WIRED_HEADSET | CallAudioState.ROUTE_BLUETOOTH, // expectedAvai in testParametersCollection()
475 CallAudioState.ROUTE_WIRED_HEADSET | CallAudioState.ROUTE_BLUETOOTH, // availableRou in testParametersCollection()
[all …]
DCallAudioRouteStateMachineTest.java450 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOff()
451 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH); in testUserBluetoothSwitchOff()
462 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH); in testUserBluetoothSwitchOff()
498 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOffAndOnAgain()
499 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH); in testUserBluetoothSwitchOffAndOnAgain()
512 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOffAndOnAgain()
535 CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOffAndOnAgain()
536 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH, in testUserBluetoothSwitchOffAndOnAgain()
580 CallAudioState initState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testBluetoothRinging()
581 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH); in testBluetoothRinging()
[all …]
DCallAudioRouteControllerTest.java282 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testActiveDeactivateBluetoothDevice()
283 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testActiveDeactivateBluetoothDevice()
291 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testActiveDeactivateBluetoothDevice()
308 CallAudioState expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testSwitchFocusForBluetoothDeviceSupportInbandRinging()
309 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testSwitchFocusForBluetoothDeviceSupportInbandRinging()
449 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testSwitchBluetooth()
457 expectedState = new CallAudioState(false, CallAudioState.ROUTE_BLUETOOTH, in testSwitchBluetooth()
458 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testSwitchBluetooth()
583 CallAudioState.ROUTE_EARPIECE | CallAudioState.ROUTE_BLUETOOTH in testIgnoreAutoRouteToWatch()
592 | CallAudioState.ROUTE_BLUETOOTH, null, BLUETOOTH_DEVICES); in testIgnoreAutoRouteToWatch()
[all …]
DCallEndpointControllerTest.java73 CallAudioState.ROUTE_BLUETOOTH, CallAudioState.ROUTE_ALL, bluetoothDevice1,
76 CallAudioState.ROUTE_BLUETOOTH, CallAudioState.ROUTE_ALL, bluetoothDevice2,
79 CallAudioState.ROUTE_BLUETOOTH, CallAudioState.ROUTE_ALL, bluetoothDevice1,
215 verify(mCallAudioManager, times(1)).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testSwitchFromEarpieceToBluetooth()
254 .setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testBtDeviceSwitch()
352 verify(mCallAudioManager).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testEndpointChangeRequest()
363 verify(mCallAudioManager, never()).setAudioRoute(eq(CallAudioState.ROUTE_BLUETOOTH), in testEndpointChangeRequest_EndpointDoesNotExist()
/packages/apps/Dialer/java/com/android/incallui/speakerbuttonlogic/
DSpeakerButtonInfo.java46 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in SpeakerButtonInfo()
47 == CallAudioState.ROUTE_BLUETOOTH) { in SpeakerButtonInfo()
51 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in SpeakerButtonInfo()
52 == CallAudioState.ROUTE_BLUETOOTH) { in SpeakerButtonInfo()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java112 public static final int ROUTE_BLUETOOTH = CallAudioState.ROUTE_BLUETOOTH; field in CallAudioRouteStateMachine
129 put(CallAudioState.ROUTE_BLUETOOTH, LogUtils.Events.AUDIO_ROUTE_BT);
221 addedRoutes |= ROUTE_BLUETOOTH; in processMessage()
223 removedRoutes |= ROUTE_BLUETOOTH; in processMessage()
322 if ((mAvailableRoutes & ROUTE_BLUETOOTH) != 0) { in processMessage()
419 if ((mAvailableRoutes & ROUTE_BLUETOOTH) != 0) { in processMessage()
557 if ((mAvailableRoutes & ROUTE_BLUETOOTH) != 0) { in processMessage()
649 if ((mAvailableRoutes & ROUTE_BLUETOOTH) != 0) { in processMessage()
757 mAvailableRoutes |= ROUTE_BLUETOOTH; in enter()
759 CallAudioState newState = new CallAudioState(mIsMuted, ROUTE_BLUETOOTH, in enter()
[all …]
DCallEndpointController.java68 mRouteToTypeMap.put(CallAudioState.ROUTE_BLUETOOTH, CallEndpoint.TYPE_BLUETOOTH); in CallEndpointController()
75 mTypeToRouteMap.put(CallEndpoint.TYPE_BLUETOOTH, CallAudioState.ROUTE_BLUETOOTH); in CallEndpointController()
97 (route == CallAudioState.ROUTE_BLUETOOTH && bluetoothAddress == null)) { in requestCallEndpointChange()
135 if (requestedRoute != CallAudioState.ROUTE_BLUETOOTH) { in isCurrentEndpointRequestedEndpoint()
385 if (newState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) { in isEndpointChanged()
DCallAudioRouteController.java74 ROUTE_MAP.put(AudioRoute.TYPE_BLUETOOTH_SCO, CallAudioState.ROUTE_BLUETOOTH); in ROUTE_MAP.put() argument
75 ROUTE_MAP.put(AudioRoute.TYPE_BLUETOOTH_HA, CallAudioState.ROUTE_BLUETOOTH); in ROUTE_MAP.put() argument
76 ROUTE_MAP.put(AudioRoute.TYPE_BLUETOOTH_LE, CallAudioState.ROUTE_BLUETOOTH); in ROUTE_MAP.put() argument
941 if (route == CallAudioState.ROUTE_BLUETOOTH) { in onCurrentRouteChanged()
DCallAudioManager.java470 case CallAudioState.ROUTE_BLUETOOTH: in setAudioRoute()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSpeakerButtonController.java74 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in setAudioState()
75 == CallAudioState.ROUTE_BLUETOOTH) { in setAudioState()
79 if ((audioState.getRoute() & CallAudioState.ROUTE_BLUETOOTH) in setAudioState()
80 == CallAudioState.ROUTE_BLUETOOTH) { in setAudioState()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java31 | CallAudioState.ROUTE_BLUETOOTH
100 return CallAudioState.ROUTE_BLUETOOTH; in getApproximatedAudioRoute()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DAudioSelectMenu.java62 initItem(bluetoothButton, CallAudioState.ROUTE_BLUETOOTH, audioState); in AudioSelectMenu()
81 bluetoothButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH); in setAudioState()
/packages/apps/Dialer/java/com/android/incallui/audioroute/
DAudioRouteSelectorDialogFragment.java106 (audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH) in onCreateView()
119 CallAudioState.ROUTE_BLUETOOTH, in onCreateView()
194 .onAudioRouteSelected(CallAudioState.ROUTE_BLUETOOTH); in createBluetoothItem()
/packages/apps/Dialer/java/com/android/incallui/
DReturnToCallActionReceiver.java81 if ((audioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in toggleSpeaker()
82 == CallAudioState.ROUTE_BLUETOOTH) { in toggleSpeaker()
DAudioRouteSelectorActivity.java58 } else if (audioRoute == CallAudioState.ROUTE_BLUETOOTH) { in onAudioRouteSelected()
DProximitySensor.java223 || CallAudioState.ROUTE_BLUETOOTH == audioRoute in updateProximitySensorMode()
DStatusBarNotifier.java974 if ((callAudioState.getSupportedRouteMask() & CallAudioState.ROUTE_BLUETOOTH) in addSpeakerAction()
975 == CallAudioState.ROUTE_BLUETOOTH) { in addSpeakerAction()
DCallButtonPresenter.java200 if (0 != (CallAudioState.ROUTE_BLUETOOTH & audioState.getSupportedRouteMask())) { in toggleSpeakerphone()
DInCallActivity.java279 if (audioRoute != CallAudioState.ROUTE_BLUETOOTH in setWindowFlags()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallListAdapter.java112 connection.setAudioRoute(CallAudioState.ROUTE_BLUETOOTH);
179 case CallAudioState.ROUTE_BLUETOOTH: in getView()
DTestInCallUI.java314 case CallAudioState.ROUTE_BLUETOOTH: in updateCallAudioState()
/packages/modules/Bluetooth/android/pandora/server/src/
DHfp.kt142 inCallService.setAudioRoute(CallAudioState.ROUTE_BLUETOOTH) in setAudioPath()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeInCallUI.java192 case CallAudioState.ROUTE_BLUETOOTH: in updateCallAudioState()
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java1596 if (0 != (CallAudioState.ROUTE_BLUETOOTH & audioState.getSupportedRouteMask())) { in onUpgradedToVideo()