Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAudioRoutingManagerTest.java245 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in a2dpOnlyDeviceConnected_setActiveShouldNotBeCalled()
319 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in headsetActiveDeviceSelected_setActive()
392 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in hfpActivatedAfterA2dpActivated_shouldNotActivateA2dpAgain()
394 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in hfpActivatedAfterA2dpActivated_shouldNotActivateA2dpAgain()
419 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)).isEmpty(); in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
420 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)).isEmpty(); in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
426 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
428 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
441 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in a2dpHeadsetActivated_whileActivatingAnotherA2dpHeadset()
443 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in a2dpHeadsetActivated_whileActivatingAnotherA2dpHeadset()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceControllerTest.java93 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in updateState_noActiveDevice_setDisable()
103 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in updateState_codecSupported_setEnable()
115 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in updateState_codecNotSupported_setDisable()
127 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in updateState_codecSupportedAndEnabled_checked()
141 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in updateState_codecSupportedAndDisabled_notChecked()
155 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in onPreferenceChange_disable_verifyFlow()
169 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in onPreferenceChange_enable_verifyFlow()
DBluetoothQualityDialogPreferenceControllerTest.java97 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
DBluetoothSampleRateDialogPreferenceControllerTest.java99 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
DBluetoothChannelModeDialogPreferenceControllerTest.java98 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
DBluetoothBitPerSampleDialogPreferenceControllerTest.java98 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
DAbstractBluetoothListPreferenceControllerTest.java110 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java363 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()
388 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
419 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
452 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
483 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName()
507 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in updateState_leAudioDeviceActive_shouldSetActivatedDeviceName()
543 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
546 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
558 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_headsetDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
560 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveDevice_headsetDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
[all …]
DMediaOutputPreferenceControllerTest.java320 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()
341 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in updateState_withActiveLeAudioDevice_setActivatedDeviceName()
513 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
515 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
527 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
529 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice()
541 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_onlyLeAudioDeviceActive_returnLeAudioDevice()
543 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveDevice_onlyLeAudioDeviceActive_returnLeAudioDevice()
DAudioOutputSwitchPreferenceControllerTest.java334 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
352 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
370 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
386 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_noActiveDevice_returnNull()
531 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveLeAudioDevice_noActiveDevice_returnNull()
540 when(mLeAudioProfile.getActiveDevices()).thenReturn(mLeAudioActiveDevices); in findActiveLeAudioDevice_withActiveDevice_returnActiveDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java900 assertThat(mService.getActiveDevices()).contains(mRightDevice); in testConnectionStateChangedActiveDevice()
903 assertThat(mServiceBinder.getActiveDevices(null)).doesNotContain(mLeftDevice); in testConnectionStateChangedActiveDevice()
907 assertThat(mService.getActiveDevices()).containsExactly(mRightDevice, mLeftDevice); in testConnectionStateChangedActiveDevice()
913 assertThat(mService.getActiveDevices()).doesNotContain(mRightDevice); in testConnectionStateChangedActiveDevice()
914 assertThat(mService.getActiveDevices()).contains(mLeftDevice); in testConnectionStateChangedActiveDevice()
918 assertThat(mService.getActiveDevices()).containsNoneOf(mRightDevice, mLeftDevice); in testConnectionStateChangedActiveDevice()
939 assertThat(mService.getActiveDevices()).contains(mRightDevice); in testConnectionStateChangedAnotherActiveDevice()
940 assertThat(mService.getActiveDevices()).doesNotContain(mLeftDevice); in testConnectionStateChangedAnotherActiveDevice()
944 assertThat(mService.getActiveDevices()).containsExactly(mRightDevice, mLeftDevice); in testConnectionStateChangedAnotherActiveDevice()
950 assertThat(mService.getActiveDevices()).containsNoneOf(mRightDevice, mLeftDevice); in testConnectionStateChangedAnotherActiveDevice()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteTransitionTests.java308 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEADSET))) in testTransitions()
322 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEARING_AID))) in testTransitions()
324 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.LE_AUDIO))) in testTransitions()
329 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEADSET))) in testTransitions()
397 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEADSET))) in setupConnectedDevices()
402 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEADSET))) in setupConnectedDevices()
DBluetoothRouteManagerTest.java327 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEADSET))) in setupConnectedDevices()
334 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.HEARING_AID))) in setupConnectedDevices()
336 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.LE_AUDIO))) in setupConnectedDevices()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java193 List<BluetoothDevice> getActiveDevices(int profile) { in getActiveDevices() method in AudioRoutingManager
319 List<BluetoothDevice> a2dpActiveDevices = getActiveDevices(BluetoothProfile.A2DP); in onModeChanged()
320 List<BluetoothDevice> hfpActiveDevices = getActiveDevices(BluetoothProfile.HEADSET); in onModeChanged()
685 if (!getActiveDevices(p).isEmpty()) { in shouldActivateWhenConnected()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioBinderTest.java191 public void getActiveDevices() { in getActiveDevices() method in LeAudioBinderTest
194 mBinder.getActiveDevices(source); in getActiveDevices()
195 verify(mLeAudioService).getActiveDevices(); in getActiveDevices()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothHearingAid.aidl43 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
DIBluetoothLeAudio.aidl51 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java306 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
325 List<BluetoothDevice> activeDevices = leAudioProfile.getActiveDevices(); in findActiveLeAudioDevice()
DMediaOutputPreferenceController.java224 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothPreferenceController.java106 mBluetoothAdapter.getActiveDevices(BluetoothProfile.A2DP); in getA2dpActiveDevice()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java290 bluetoothAdapter.getActiveDevices(BluetoothProfile.HEARING_AID); in processMessage()
1091 for (BluetoothDevice device : bluetoothAdapter.getActiveDevices(
1112 List<BluetoothDevice> hearingAidsActiveDevices = bluetoothAdapter.getActiveDevices(
1136 for (BluetoothDevice device : bluetoothAdapter.getActiveDevices(
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java623 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in HearingAidService
1038 public List<BluetoothDevice> getActiveDevices(AttributionSource source) { in getActiveDevices() method in HearingAidService.BluetoothHearingAidBinder
1044 return service.getActiveDevices(); in getActiveDevices()
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java222 mBluetoothAdapter.getActiveDevices(BluetoothProfile.A2DP); in getA2dpActiveDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoryUtils.java195 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothHearingAid.java549 public @NonNull List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in BluetoothHearingAid
558 service.getActiveDevices(mAttributionSource), mAttributionSource); in getActiveDevices()

12