Home
last modified time | relevance | path

Searched refs:getAudioState (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java564 public int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetService.BluetoothHeadsetBinder
569 return service.getAudioState(device); in getAudioState()
1016 return stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_CONNECTED; in isAudioConnected()
1020 int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetService
1027 return stateMachine.getAudioState(); in getAudioState()
1135 if (getAudioState(mActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice()
1159 if (getAudioState(previousActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice()
1224 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in connectAudio()
1242 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in getNonIdleAudioDevices()
1277 if (stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in disconnectAudio()
DHeadsetStateMachine.java229 ProfileService.println(sb, " mAudioState: " + getAudioState()); in dump()
1457 public synchronized int getAudioState() { in getAudioState() method in HeadsetStateMachine
1643 if (getAudioState() == BluetoothHeadset.STATE_AUDIO_CONNECTED) { in processNoiseReductionEvent()
1914 if (getAudioState() == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in processKeyPressed()
1922 } else if (getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in processKeyPressed()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java139 doReturn(BluetoothHeadset.STATE_AUDIO_DISCONNECTED).when(stateMachine).getAudioState(); in setUp()
183 mHeadsetService.getAudioState(mCurrentDevice)); in testGetHeadsetService()
424 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withOneDevice()
435 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withOneDevice()
495 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
503 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
509 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
573 when(mStateMachines.get(firstDevice).getAudioState()).thenReturn( in testConnectAudio_connectTwoAudioChannelsShouldFail()
582 when(mStateMachines.get(firstDevice).getAudioState()).thenReturn( in testConnectAudio_connectTwoAudioChannelsShouldFail()
DHeadsetServiceAndStateMachineTest.java272 mHeadsetService.getAudioState(device)); in testGetHeadsetService()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothHeadsetProxy.java60 public int getAudioState(BluetoothDevice device) { in getAudioState() method in BluetoothHeadsetProxy
61 return mBluetoothHeadset.getAudioState(device); in getAudioState()
DInCallController.java1625 inCallService.onCallAudioStateChanged(mCallsManager.getAudioState()); in onConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java302 public int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientService.BluetoothHeadsetClientBinder
307 return service.getAudioState(device); in getAudioState()
651 int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientService
658 return sm.getAudioState(device); in getAudioState()
984 int audioState = entry.getValue().getAudioState(entry.getKey()); in isScoRouted()
DHeadsetClientStateMachine.java1804 synchronized int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientStateMachine
/packages/apps/Dialer/java/com/android/incallui/
DReturnToCallActionReceiver.java79 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in toggleSpeaker()
118 boolean shouldMute = !AudioModeProvider.getInstance().getAudioState().isMuted(); in toggleMute()
DAudioRouteSelectorActivity.java41 AudioRouteSelectorDialogFragment.newInstance(AudioModeProvider.getInstance().getAudioState()) in onCreate()
DProximitySensor.java218 final int audioRoute = audioModeProvider.getAudioState().getRoute(); in updateProximitySensorMode()
DReturnToCallController.java102 audioState = AudioModeProvider.getInstance().getAudioState(); in ReturnToCallController()
DInCallActivity.java292 return AudioModeProvider.getInstance().getAudioState().getRoute(); in getAudioRoute()
740 .mute(!AudioModeProvider.getInstance().getAudioState().isMuted()); in onKeyDown()
DCallButtonPresenter.java184 return AudioModeProvider.getInstance().getAudioState(); in getCurrentAudioState()
DStatusBarNotifier.java279 final CallAudioState callAudioState = AudioModeProvider.getInstance().getAudioState(); in buildAndSendNotification()
DInCallPresenter.java2048 if (!AudioModeProvider.getInstance().getAudioState().isMuted()) { in addCallClicked()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java128 when(mHeadsetProxy.getAudioState(DEVICE1)) in testAudioOnDeviceWithScoOffActiveDevice()
190 when(mHeadsetProxy.getAudioState(hfpActiveDevice)) in setupConnectedDevices()
DBluetoothRouteTransitionTests.java349 when(mHeadsetProxy.getAudioState(nullable(BluetoothDevice.class))) in setupConnectedDevices()
353 when(mHeadsetProxy.getAudioState(audioOnDevice)) in setupConnectedDevices()
DBasicCallTests.java1146 assertTrue(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
1156 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
1163 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
DInCallControllerTests.java507 when(mMockCallsManager.getAudioState()).thenReturn(null); in testBindToService_DefaultDialer_FallBackToSystem()
/packages/apps/Dialer/java/com/android/incallui/audiomode/
DAudioModeProvider.java64 public CallAudioState getAudioState() { in getAudioState() method in AudioModeProvider
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java232 int audioState = mBluetoothHeadsetClient.getAudioState(device); in getAudioRoute()
/packages/apps/Dialer/java/com/android/incallui/callpending/
DCallPendingActivity.java272 return AudioModeProvider.getInstance().getAudioState(); in newInCallButtonUiDelegate()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java718 if (bluetoothHeadset.getAudioState(hfpAudioOnDevice)
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java1594 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in onUpgradedToVideo()

12