/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 197 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 …]
|
D | HeadsetServiceTest.java | 1179 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/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 280 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()
|
D | MediaOutputPreferenceControllerTest.java | 282 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()
|
D | AudioOutputSwitchPreferenceControllerTest.java | 333 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/ |
D | UsbHostController.java | 141 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/ |
D | BluetoothHeadsetProxy.java | 86 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy 87 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
|
D | HeadsetService.java | 810 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/ |
D | A2dpServiceTest.java | 760 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 …]
|
D | A2dpServiceBinderTest.java | 141 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/ |
D | AvrcpControllerService.java | 202 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/ |
D | HandsFreeProfileOutputPreferenceController.java | 197 if (headsetProfile != null && headsetProfile.getActiveDevice() != null) { in findActiveDevice() 198 return headsetProfile.getActiveDevice(); in findActiveDevice()
|
D | MediaOutputPreferenceController.java | 209 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/ |
D | A2dpSinkServiceTest.java | 245 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/ |
D | IBluetoothA2dp.aidl | 45 BluetoothDevice getActiveDevice(in AttributionSource attributionSource); in getActiveDevice() method
|
D | IBluetoothHeadset.aidl | 80 BluetoothDevice getActiveDevice(in AttributionSource attributionSource); in getActiveDevice() method
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 151 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/ |
D | AvrcpControllerServiceTest.java | 167 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/ |
D | VolumePanel.java | 198 return a2dpProfile.getActiveDevice(); in findActiveDevice()
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Hfp.kt | 141 check(bluetoothHfp.getActiveDevice() != null) in setAudioPath()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothA2dp.java | 494 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothA2dp 503 service.getActiveDevice(mAttributionSource), mAttributionSource); in getActiveDevice()
|
D | BluetoothHeadset.java | 1284 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/ |
D | A2dpService.java | 644 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/ |
D | AvrcpTargetService.java | 285 return service.getActiveDevice(); in getA2dpActiveDevice()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 4493 && 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()
|