/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 564 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()
|
D | HeadsetStateMachine.java | 229 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/ |
D | HeadsetServiceTest.java | 139 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()
|
D | HeadsetServiceAndStateMachineTest.java | 272 mHeadsetService.getAudioState(device)); in testGetHeadsetService()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothHeadsetProxy.java | 60 public int getAudioState(BluetoothDevice device) { in getAudioState() method in BluetoothHeadsetProxy 61 return mBluetoothHeadset.getAudioState(device); in getAudioState()
|
D | InCallController.java | 1625 inCallService.onCallAudioStateChanged(mCallsManager.getAudioState()); in onConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 302 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()
|
D | HeadsetClientStateMachine.java | 1804 synchronized int getAudioState(BluetoothDevice device) { in getAudioState() method in HeadsetClientStateMachine
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ReturnToCallActionReceiver.java | 79 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in toggleSpeaker() 118 boolean shouldMute = !AudioModeProvider.getInstance().getAudioState().isMuted(); in toggleMute()
|
D | AudioRouteSelectorActivity.java | 41 AudioRouteSelectorDialogFragment.newInstance(AudioModeProvider.getInstance().getAudioState()) in onCreate()
|
D | ProximitySensor.java | 218 final int audioRoute = audioModeProvider.getAudioState().getRoute(); in updateProximitySensorMode()
|
D | ReturnToCallController.java | 102 audioState = AudioModeProvider.getInstance().getAudioState(); in ReturnToCallController()
|
D | InCallActivity.java | 292 return AudioModeProvider.getInstance().getAudioState().getRoute(); in getAudioRoute() 740 .mute(!AudioModeProvider.getInstance().getAudioState().isMuted()); in onKeyDown()
|
D | CallButtonPresenter.java | 184 return AudioModeProvider.getInstance().getAudioState(); in getCurrentAudioState()
|
D | StatusBarNotifier.java | 279 final CallAudioState callAudioState = AudioModeProvider.getInstance().getAudioState(); in buildAndSendNotification()
|
D | InCallPresenter.java | 2048 if (!AudioModeProvider.getInstance().getAudioState().isMuted()) { in addCallClicked()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 128 when(mHeadsetProxy.getAudioState(DEVICE1)) in testAudioOnDeviceWithScoOffActiveDevice() 190 when(mHeadsetProxy.getAudioState(hfpActiveDevice)) in setupConnectedDevices()
|
D | BluetoothRouteTransitionTests.java | 349 when(mHeadsetProxy.getAudioState(nullable(BluetoothDevice.class))) in setupConnectedDevices() 353 when(mHeadsetProxy.getAudioState(audioOnDevice)) in setupConnectedDevices()
|
D | BasicCallTests.java | 1146 assertTrue(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall() 1156 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall() 1163 assertFalse(mTelecomSystem.getCallsManager().getAudioState().isMuted()); in testUnmuteDuringEmergencyCall()
|
D | InCallControllerTests.java | 507 when(mMockCallsManager.getAudioState()).thenReturn(null); in testBindToService_DefaultDialer_FallBackToSystem()
|
/packages/apps/Dialer/java/com/android/incallui/audiomode/ |
D | AudioModeProvider.java | 64 public CallAudioState getAudioState() { in getAudioState() method in AudioModeProvider
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | UiCallManager.java | 232 int audioState = mBluetoothHeadsetClient.getAudioState(device); in getAudioRoute()
|
/packages/apps/Dialer/java/com/android/incallui/callpending/ |
D | CallPendingActivity.java | 272 return AudioModeProvider.getInstance().getAudioState(); in newInCallButtonUiDelegate()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothRouteManager.java | 718 if (bluetoothHeadset.getAudioState(hfpAudioOnDevice)
|
/packages/apps/Dialer/java/com/android/incallui/call/ |
D | DialerCall.java | 1594 CallAudioState audioState = AudioModeProvider.getInstance().getAudioState(); in onUpgradedToVideo()
|