/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AudioRoutingManagerTest.java | 245 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/ |
D | BluetoothHDAudioPreferenceControllerTest.java | 93 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()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 97 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 99 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 98 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 98 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
|
D | AbstractBluetoothListPreferenceControllerTest.java | 110 when(mBluetoothAdapter.getActiveDevices(eq(BluetoothProfile.A2DP))) in setup()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 363 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 …]
|
D | MediaOutputPreferenceControllerTest.java | 320 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()
|
D | AudioOutputSwitchPreferenceControllerTest.java | 334 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/ |
D | HearingAidServiceTest.java | 900 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/ |
D | BluetoothRouteTransitionTests.java | 308 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()
|
D | BluetoothRouteManagerTest.java | 327 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/ |
D | AudioRoutingManager.java | 193 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/ |
D | LeAudioBinderTest.java | 191 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/ |
D | IBluetoothHearingAid.aidl | 43 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
|
D | IBluetoothLeAudio.aidl | 51 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | AudioSwitchPreferenceController.java | 306 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() 325 List<BluetoothDevice> activeDevices = leAudioProfile.getActiveDevices(); in findActiveLeAudioDevice()
|
D | MediaOutputPreferenceController.java | 224 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
|
/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
D | AbstractBluetoothPreferenceController.java | 106 mBluetoothAdapter.getActiveDevices(BluetoothProfile.A2DP); in getA2dpActiveDevice()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothRouteManager.java | 290 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/ |
D | HearingAidService.java | 623 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/ |
D | AbstractBluetoothA2dpPreferenceController.java | 222 mBluetoothAdapter.getActiveDevices(BluetoothProfile.A2DP); in getA2dpActiveDevice()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoryUtils.java | 195 return btAdapter.getActiveDevices(BluetoothProfile.A2DP).contains(device); in isActiveAudioOutput()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothHearingAid.java | 549 public @NonNull List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in BluetoothHearingAid 558 service.getActiveDevices(mAttributionSource), mAttributionSource); in getActiveDevices()
|