/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BluetoothHDAudioPreferenceControllerTest.java | 84 when(mBluetoothA2dp.getActiveDevice()).thenReturn(null); in updateState_noActiveDevice_setDisable() 93 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupported_setEnable() 104 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecNotSupported_setDisable() 115 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndEnabled_checked() 128 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndDisabled_notChecked() 141 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in onPreferenceChange_disable_verifyFlow() 154 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in onPreferenceChange_enable_verifyFlow()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 92 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 445 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_normalStartStop() 481 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_preemptedByTelecomCall() 521 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_rejectedWhenThereIsTelecomCall() 549 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_NormalDialingOut() 584 Assert.assertEquals(dialingOutDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_NormalDialingOut() 628 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_DialingOutPreemptVirtualCall() 675 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedSuccess() 698 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfStopSuccess() 732 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedFailedToActivate() 764 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedTimeout() [all …]
|
D | HeadsetServiceTest.java | 857 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 859 Assert.assertNull(mHeadsetService.getActiveDevice()); in testSetSilenceMode() 863 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 867 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 869 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 873 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | AbstractBluetoothA2dpPreferenceController.java | 86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange() 88 setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in onPreferenceChange() 111 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState() 189 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in setCodecConfigPreference() 199 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in getCodecConfig()
|
D | BluetoothAudioCodecPreferenceController.java | 113 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues() 123 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceController.java | 86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange() 109 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState() 187 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in setCodecConfigPreference() 198 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in getCodecConfig()
|
/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
D | AbstractBluetoothDialogPreferenceController.java | 83 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onIndexUpdated() 152 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getCurrentCodecConfig() 177 (device != null) ? device : bluetoothA2dp.getActiveDevice(); in getSelectableConfigs() 194 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getSelectableByCodecType()
|
D | BluetoothHDAudioPreferenceController.java | 55 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in updateState() 87 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in onPreferenceChange()
|
D | BluetoothCodecDialogPreferenceController.java | 80 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getSelectableIndex() 105 mBluetoothA2dp.getActiveDevice())); in writeConfigurationValues()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbHostController.java | 128 private synchronized UsbDevice getActiveDevice() { in getActiveDevice() method in UsbHostController 133 UsbDevice activeDevice = getActiveDevice(); in deviceMatchedActiveDevice() 185 getActiveDevice(), settings, DISPATCH_RETRY_ATTEMPTS, false); in applyDeviceSettings() 264 if (getActiveDevice() == null) { in doHandleDeviceRemoved()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 254 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() 277 when(mHeadsetProfile.getActiveDevice()).thenReturn(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 297 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary() 478 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyHeadsetDeviceActive_returnHeadsetDevice() 486 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
|
D | AudioOutputSwitchPreferenceControllerTest.java | 262 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice() 280 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice() 298 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices() 314 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()
|
D | MediaOutputPreferenceControllerTest.java | 222 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary() 243 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName() 338 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice() 346 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothHeadsetProxy.java | 72 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy 73 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | A2dpReceiver.java | 406 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getCodecValue() 473 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in setCodecValue() 479 mBluetoothA2dp.setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in setCodecValue()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 275 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions() 292 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions() 348 when(mHeadsetProxy.getActiveDevice()).thenReturn(activeDevice); in setupConnectedDevices() 352 when(mHeadsetProxy.getActiveDevice()).thenReturn(audioOnDevice); in setupConnectedDevices()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 773 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 776 Assert.assertNull(mA2dpService.getActiveDevice()); in testSetSilenceMode() 781 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 785 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 788 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 793 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | MediaOutputPreferenceController.java | 98 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 599 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService 1259 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService.BluetoothA2dpBinder 1264 return service.getActiveDevice(); in getActiveDevice()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | MediaOutputPreferenceController.java | 110 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputIndicatorSlice.java | 151 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDeviceName()
|