/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpTargetService.java | 125 BluetoothDevice activeDevice = getA2dpActiveDevice(); in onReceive() local 126 if (activeDevice != null in onReceive() 127 && !mVolumeManager.getAbsoluteVolumeSupported(activeDevice)) { in onReceive() 128 Log.d(TAG, "stream volume change to " + volume + " " + activeDevice); in onReceive() 129 mVolumeManager.storeVolumeForDevice(activeDevice, volume); in onReceive() 299 BluetoothDevice activeDevice = getA2dpActiveDevice(); in setVolume() local 300 if (activeDevice == null) { in setVolume() 305 mVolumeManager.setVolume(activeDevice, avrcpVolume); in setVolume() 313 BluetoothDevice activeDevice = getA2dpActiveDevice(); in sendVolumeChanged() local 314 if (activeDevice == null) { in sendVolumeChanged() [all …]
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | MediaOutputPreferenceController.java | 65 BluetoothDevice activeDevice = null; in updateState() local 74 activeDevice = findActiveDevice(); in updateState() 77 mPreference.setSummary((activeDevice == null) ? in updateState() 79 activeDevice.getAlias()); in updateState() 84 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDevice() local 87 if (activeDevice == null && a2dpProfile != null) { in findActiveDevice() 88 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice() 90 return activeDevice; in findActiveDevice()
|
D | HandsFreeProfileOutputPreferenceController.java | 136 BluetoothDevice activeDevice) { in setupPreferenceEntries() argument 148 if (btDevice.equals(activeDevice)) { in setupPreferenceEntries() 184 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDevice() local 187 if (activeDevice == null && headsetProfile != null) { in findActiveDevice() 188 activeDevice = headsetProfile.getActiveDevice(); in findActiveDevice() 190 return activeDevice; in findActiveDevice()
|
D | AudioSwitchPreferenceController.java | 155 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | MediaOutputPreferenceController.java | 75 BluetoothDevice activeDevice = null; in updateState() local 84 activeDevice = findActiveDevice(); in updateState() 87 mPreference.setSummary((activeDevice == null) ? in updateState() 89 activeDevice.getAlias()); in updateState() 94 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDevice() local 97 if (activeDevice == null && a2dpProfile != null) { in findActiveDevice() 98 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice() 100 return activeDevice; in findActiveDevice()
|
D | HandsFreeProfileOutputPreferenceController.java | 136 BluetoothDevice activeDevice) { in setupPreferenceEntries() argument 148 if (btDevice.equals(activeDevice)) { in setupPreferenceEntries() 184 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDevice() local 187 if (activeDevice == null && headsetProfile != null) { in findActiveDevice() 188 activeDevice = headsetProfile.getActiveDevice(); in findActiveDevice() 190 return activeDevice; in findActiveDevice()
|
D | AudioSwitchPreferenceController.java | 159 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 439 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_normalStartStop() local 440 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testVirtualCall_normalStartStop() 441 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_normalStartStop() 442 waitAndVerifyActiveDeviceChangedIntent(ASYNC_CALL_TIMEOUT_MILLIS, activeDevice); in testVirtualCall_normalStartStop() 443 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_normalStartStop() 475 BluetoothDevice activeDevice = connectedDevices.get(MAX_HEADSET_CONNECTIONS / 2); in testVirtualCall_preemptedByTelecomCall() local 476 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testVirtualCall_preemptedByTelecomCall() 477 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_preemptedByTelecomCall() 478 waitAndVerifyActiveDeviceChangedIntent(ASYNC_CALL_TIMEOUT_MILLIS, activeDevice); in testVirtualCall_preemptedByTelecomCall() 479 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_preemptedByTelecomCall() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceController.java | 86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange() local 87 if (activeDevice == null) { in onPreferenceChange() 90 setCodecConfigPreference(activeDevice, codecConfig); in onPreferenceChange() 112 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState() local 113 if (activeDevice == null || getCodecConfig(activeDevice) == null || mPreference == null) { in updateState() 119 codecConfig = getCodecConfig(activeDevice); in updateState()
|
D | BluetoothAudioCodecPreferenceController.java | 113 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues() local 114 if (activeDevice == null) { in writeConfigurationValues() 117 mBluetoothA2dp.enableOptionalCodecs(activeDevice); in writeConfigurationValues() 124 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues() local 125 if (activeDevice == null) { in writeConfigurationValues() 128 mBluetoothA2dp.disableOptionalCodecs(activeDevice); in writeConfigurationValues()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | BluetoothAudioCodecPreferenceController.java | 113 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues() local 114 if (activeDevice != null) { in writeConfigurationValues() 115 mBluetoothA2dp.enableOptionalCodecs(activeDevice); in writeConfigurationValues() 123 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues() local 124 if (activeDevice != null) { in writeConfigurationValues() 125 mBluetoothA2dp.disableOptionalCodecs(activeDevice); in writeConfigurationValues()
|
D | AbstractBluetoothA2dpPreferenceController.java | 86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange() local 87 if (activeDevice != null) { in onPreferenceChange() 108 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState() local 109 if (activeDevice == null || getCodecConfig(activeDevice) == null || mPreference == null) { in updateState() 115 codecConfig = getCodecConfig(activeDevice); // Use current active device in updateState()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputIndicatorSlice.java | 150 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDeviceName() local 151 if (activeDevice != null) { in findActiveDeviceName() 152 return activeDevice.getAlias(); in findActiveDeviceName() 157 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDeviceName() 158 if (activeDevice != null) { in findActiveDeviceName() 159 return activeDevice.getAlias(); in findActiveDeviceName()
|
D | MediaOutputIndicatorWorker.java | 76 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputIndicatorSlice.java | 144 BluetoothDevice activeDevice = findActiveHearingAidDevice(); in findActiveDeviceName() local 145 if (activeDevice != null) { in findActiveDeviceName() 146 return activeDevice.getAlias(); in findActiveDeviceName() 151 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDeviceName() 152 if (activeDevice != null) { in findActiveDeviceName() 153 return activeDevice.getAlias(); in findActiveDeviceName()
|
D | MediaOutputIndicatorWorker.java | 76 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteTransitionTests.java | 80 private BluetoothDevice activeDevice = null; field in BluetoothRouteTransitionTests.BluetoothRouteTestParametersBuilder 146 this.activeDevice = device; in setActiveDevice() 168 activeDevice, in build() 187 private BluetoothDevice activeDevice = null; field in BluetoothRouteTransitionTests.BluetoothRouteTestParameters 195 BluetoothDevice audioOnDevice, BluetoothDevice activeDevice, in BluetoothRouteTestParameters() argument 208 this.activeDevice = activeDevice; in BluetoothRouteTestParameters() 225 ", activeDevice='" + activeDevice + '\'' + in toString() 267 mParams.audioOnDevice, mParams.activeDevice); in testTransitions() 268 sm.setActiveDeviceCacheForTesting(mParams.activeDevice, in testTransitions() 344 BluetoothDevice audioOnDevice, BluetoothDevice activeDevice) { in setupConnectedDevices() argument [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | A2dpReceiver.java | 406 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getCodecValue() local 407 if (activeDevice == null) { in getCodecValue() 411 codecStatus = mBluetoothA2dp.getCodecStatus(activeDevice); in getCodecValue() 473 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in setCodecValue() local 474 if (activeDevice == null) { in setCodecValue()
|
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/ |
D | CarModeInCallUI.java | 193 BluetoothDevice activeDevice = cas.getActiveBluetoothDevice(); in updateCallAudioState() local 194 routeText = activeDevice == null ? "null bt" : activeDevice.getName(); in updateCallAudioState()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbHostController.java | 132 UsbDevice activeDevice = getActiveDevice(); in deviceMatchedActiveDevice() local 133 return activeDevice != null && UsbUtil.isDevicesMatching(activeDevice, device); in deviceMatchedActiveDevice()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestInCallUI.java | 267 BluetoothDevice activeDevice = cas.getActiveBluetoothDevice(); in updateCallAudioState() local 268 routeText = activeDevice == null ? "null bt" : activeDevice.getName(); in updateCallAudioState()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothUpdateWorker.java | 68 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | BluetoothUpdateWorker.java | 68 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 197 BluetoothDevice activeDevice = in handleMessage() local 199 processActiveDeviceChanged(activeDevice, msg.arg1); in handleMessage()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPreferenceController.java | 124 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
|