Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java197 eq(mHeadsetService.getActiveDevice())); in setUp()
406 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(activeDevice); in testVirtualCall_normalStartStop()
445 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(activeDevice); in testVirtualCall_preemptedByTelecomCall()
489 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(activeDevice); in testVirtualCall_rejectedWhenThereIsTelecomCall()
518 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(activeDevice); in testDialingOutCall_NormalDialingOut()
560 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(dialingOutDevice); in testDialingOutCall_NormalDialingOut()
612 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(activeDevice); in testDialingOutCall_DialingOutPreemptVirtualCall()
660 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(device); in testVoiceRecognition_SingleHfInitiatedSuccess()
683 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(device); in testVoiceRecognition_SingleHfInitiatedSuccess_ScoManagedByAudio()
707 assertThat(mHeadsetService.getActiveDevice()).isEqualTo(device); in testVoiceRecognition_SingleHfStopSuccess()
[all …]
DHeadsetServiceTest.java1179 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1181 Assert.assertNull(mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1185 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1189 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1191 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1195 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
1218 Assert.assertEquals(null, mHeadsetService.getActiveDevice()); in testSetActiveDevice_AudioNotAllowed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java280 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
302 when(mHeadsetProfile.getActiveDevice()).thenReturn(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
322 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary()
518 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyHeadsetDeviceActive_returnHeadsetDevice()
526 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
545 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
559 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_headsetDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
573 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_onlyLeAudioDeviceActive_returnLeAudioDevice()
DMediaOutputPreferenceControllerTest.java282 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary()
302 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName()
492 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice()
500 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
514 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
528 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
542 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_onlyLeAudioDeviceActive_returnLeAudioDevice()
DAudioOutputSwitchPreferenceControllerTest.java333 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
351 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
369 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
385 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java141 private UsbDevice getActiveDevice() { in getActiveDevice() method in UsbHostController
155 UsbDevice activeDevice = getActiveDevice(); in deviceMatchedActiveDevice()
207 getActiveDevice(), settings, DISPATCH_RETRY_ATTEMPTS, false); in applyDeviceSettings()
286 if (getActiveDevice() == null) { in doHandleDeviceRemoved()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DBluetoothHeadsetProxy.java86 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy
87 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
DHeadsetService.java810 public BluetoothDevice getActiveDevice(AttributionSource source) { in getActiveDevice() method in HeadsetService.BluetoothHeadsetBinder
816 return service.getActiveDevice(); in getActiveDevice()
1529 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in HeadsetService
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java760 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSetSilenceMode()
763 assertThat(mA2dpService.getActiveDevice()).isNull(); in testSetSilenceMode()
768 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSetSilenceMode()
772 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSetSilenceMode()
775 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSetSilenceMode()
780 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSetSilenceMode()
798 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testRemoveActiveDevice_whenStopAudioIsFalse_suppressNoisyIntent()
828 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testRemoveActiveDevice_whenStopAudioIsFalse_doesNotSuppressNoisyIntent()
997 assertThat(mA2dpService.getActiveDevice()).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()
1005 assertThat(mA2dpService.getActiveDevice()).isEqualTo(sTestDevice); in testSendPreferredAudioProfileChangeToAudioFramework()
[all …]
DA2dpServiceBinderTest.java141 public void getActiveDevice() { in getActiveDevice() method in A2dpServiceBinderTest
142 mBinder.getActiveDevice(sSource); in getActiveDevice()
143 verify(mA2dpService).getActiveDevice(); in getActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java202 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in AvrcpControllerService
218 BluetoothDevice currentActiveDevice = getActiveDevice(); in setActiveDevice()
457 if (getActiveDevice() == null) { in onConnectionStateChanged()
462 if (device.equals(getActiveDevice())) { in onConnectionStateChanged()
515 BluetoothDevice device = getActiveDevice(); in onAudioFocusStateChanged()
716 if (device.equals(getActiveDevice())) { in removeStateMachine()
/packages/apps/Settings/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceController.java197 if (headsetProfile != null && headsetProfile.getActiveDevice() != null) { in findActiveDevice()
198 return headsetProfile.getActiveDevice(); in findActiveDevice()
DMediaOutputPreferenceController.java209 if (a2dpProfile != null && a2dpProfile.getActiveDevice() != null) { in findActiveDevice()
210 return a2dpProfile.getActiveDevice(); in findActiveDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkServiceTest.java245 assertThat(mService.getActiveDevice()).isNotEqualTo(mDevice1); in testSetActiveDevice()
247 assertThat(mService.getActiveDevice()).isEqualTo(mDevice1); in testSetActiveDevice()
254 assertThat(mService.getActiveDevice()).isNull(); in testSetActiveDeviceNullDevice()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothA2dp.aidl45 BluetoothDevice getActiveDevice(in AttributionSource attributionSource); in getActiveDevice() method
DIBluetoothHeadset.aidl80 BluetoothDevice getActiveDevice(in AttributionSource attributionSource); in getActiveDevice() method
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java151 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpSinkService
494 ProfileService.println(sb, "Active Device = " + getActiveDevice()); in dump()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerServiceTest.java167 assertThat(mService.getActiveDevice()).isNull(); in setActiveDevice_whenA2dpSinkServiceIsNotInitailized_returnsFalse()
526 when(mA2dpSinkService.getActiveDevice()).thenReturn(mRemoteDevice); in testActiveDeviceMaintainsAudioFocusWhenOtherDeviceConnects_audioFocusMaintained()
/packages/apps/Settings/src/com/android/settings/panel/
DVolumePanel.java198 return a2dpProfile.getActiveDevice(); in findActiveDevice()
/packages/modules/Bluetooth/android/pandora/server/src/
DHfp.kt141 check(bluetoothHfp.getActiveDevice() != null) in setAudioPath()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothA2dp.java494 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothA2dp
503 service.getActiveDevice(mAttributionSource), mAttributionSource); in getActiveDevice()
DBluetoothHeadset.java1284 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadset
1293 service.getActiveDevice(mAttributionSource), mAttributionSource); in getActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java644 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService
1475 public BluetoothDevice getActiveDevice(AttributionSource source) { in getActiveDevice() method in A2dpService.BluetoothA2dpBinder
1481 return service.getActiveDevice(); in getActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java285 return service.getActiveDevice(); in getA2dpActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java4493 && mA2dpService.getActiveDevice() != null in sendPreferredAudioProfileChangeToAudioFramework()
4494 && groupDevices.contains(mA2dpService.getActiveDevice())) { in sendPreferredAudioProfileChangeToAudioFramework()
4508 && mHeadsetService.getActiveDevice() != null in sendPreferredAudioProfileChangeToAudioFramework()
4509 && groupDevices.contains(mHeadsetService.getActiveDevice())) { in sendPreferredAudioProfileChangeToAudioFramework()
5171 BluetoothDevice activeHfpDevice = mHeadsetService.getActiveDevice(); in isAllSupportedClassicAudioProfilesActive()
5177 BluetoothDevice activeA2dpDevice = mA2dpService.getActiveDevice(); in isAllSupportedClassicAudioProfilesActive()
5201 BluetoothDevice device = mHeadsetService.getActiveDevice(); in getActiveDevices()
5212 BluetoothDevice device = mA2dpService.getActiveDevice(); in getActiveDevices()

12