/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 | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 445 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_normalStartStop() 485 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_preemptedByTelecomCall() 528 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_rejectedWhenThereIsTelecomCall() 559 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_NormalDialingOut() 595 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_NormalDialingOut() 641 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_DialingOutPreemptVirtualCall() 689 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedSuccess() 712 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfStopSuccess() 746 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedFailedToActivate() 778 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedTimeout() [all …]
|
D | HeadsetServiceTest.java | 884 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 886 Assert.assertNull(mHeadsetService.getActiveDevice()); in testSetSilenceMode() 890 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 894 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 896 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode() 900 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
|
/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 | 85 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onIndexUpdated() 154 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getCurrentCodecConfig() 179 (device != null) ? device : bluetoothA2dp.getActiveDevice(); in getSelectableConfigs() 196 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 | 72 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getSelectableIndex() 97 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/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothHeadsetProxy.java | 59 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy 60 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | BluetoothHeadsetProxy.java | 72 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy 73 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
|
/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 | MediaOutputPreferenceControllerTest.java | 223 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary() 244 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName() 339 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice() 347 when(mA2dpProfile.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()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 180 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in AvrcpControllerService 195 BluetoothDevice currentActiveDevice = getActiveDevice(); in setActiveDevice() 470 if (getActiveDevice() == null) { in onConnectionStateChanged() 475 if (device.equals(getActiveDevice())) { in onConnectionStateChanged() 837 if (device.equals(getActiveDevice())) { in removeStateMachine()
|
/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 | 762 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 765 Assert.assertNull(mA2dpService.getActiveDevice()); in testSetSilenceMode() 770 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 774 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 777 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode() 782 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 141 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpSinkService 475 ProfileService.println(sb, "Active Device = " + getActiveDevice()); in dump()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | MediaOutputPreferenceController.java | 110 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
|
D | HandsFreeProfileOutputPreferenceController.java | 188 activeDevice = headsetProfile.getActiveDevice(); in findActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 602 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService 1325 public BluetoothDevice getActiveDevice(AttributionSource source) { in getActiveDevice() method in A2dpService.BluetoothA2dpBinder 1330 return service.getActiveDevice(); in getActiveDevice()
|