Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java533 public int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetService.BluetoothHeadsetBinder
538 return service.getAudioState(device); in getAudioState()
946 return stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_CONNECTED; in isAudioConnected()
950 int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetService
957 return stateMachine.getAudioState(); in getAudioState()
1065 if (getAudioState(mActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice()
1089 if (getAudioState(previousActiveDevice) != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in setActiveDevice()
1154 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in connectAudio()
1172 if (stateMachine.getAudioState() != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in getNonIdleAudioDevices()
1207 if (stateMachine.getAudioState() == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in disconnectAudio()
DHeadsetStateMachine.java226 ProfileService.println(sb, " mAudioState: " + getAudioState()); in dump()
1428 public synchronized int getAudioState() { in getAudioState() method in HeadsetStateMachine
1615 if (getAudioState() == BluetoothHeadset.STATE_AUDIO_CONNECTED) { in processNoiseReductionEvent()
1877 if (getAudioState() == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in processKeyPressed()
1885 } 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()
185 mHeadsetService.getAudioState(mCurrentDevice)); in testGetHeadsetService()
434 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withOneDevice()
445 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withOneDevice()
505 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
513 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
519 when(mStateMachines.get(mCurrentDevice).getAudioState()).thenReturn( in testConnectAudio_withMultipleDevices()
583 when(mStateMachines.get(firstDevice).getAudioState()).thenReturn( in testConnectAudio_connectTwoAudioChannelsShouldFail()
592 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.java1406 inCallService.onCallAudioStateChanged(mCallsManager.getAudioState()); in onConnected()
DCallsManager.java1015 public CallAudioState getAudioState() { in getAudioState() method in CallsManager
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java296 public int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientService.BluetoothHeadsetClientBinder
301 return service.getAudioState(device); in getAudioState()
585 int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientService
592 return sm.getAudioState(device); in getAudioState()
898 int audioState = entry.getValue().getAudioState(entry.getKey()); in isScoRouted()
DHeadsetClientStateMachine.java1875 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()
DCallButtonPresenter.java177 return AudioModeProvider.getInstance().getAudioState(); in getCurrentAudioState()
286 previousMuteState = AudioModeProvider.getInstance().getAudioState().isMuted(); in addCallClicked()
548 && AudioModeProvider.getInstance().getAudioState().isMuted() != previousMuteState) { in refreshMuteState()
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()
DStatusBarNotifier.java279 final CallAudioState callAudioState = AudioModeProvider.getInstance().getAudioState(); in buildAndSendNotification()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java121 when(mHeadsetProxy.getAudioState(DEVICE1)) in testAudioOnDeviceWithScoOffActiveDevice()
183 when(mHeadsetProxy.getAudioState(hfpActiveDevice)) in setupConnectedDevices()
DBasicCallTests.java1129 assertTrue(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
1139 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
1146 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
DBluetoothRouteTransitionTests.java344 when(mHeadsetProxy.getAudioState(audioOnDevice)) in setupConnectedDevices()
DInCallControllerTests.java371 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/Dialer/java/com/android/incallui/callpending/
DCallPendingActivity.java275 return AudioModeProvider.getInstance().getAudioState(); in newInCallButtonUiDelegate()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java235 int audioState = mBluetoothHeadsetClient.getAudioState(device); in getAudioRoute()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java708 if (bluetoothHeadset.getAudioState(hfpAudioOnDevice)
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java1587 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in onUpgradedToVideo()