Home
last modified time | relevance | path

Searched refs:activeDevice (Results 1 – 25 of 25) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java125 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/
DMediaOutputPreferenceController.java65 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()
DHandsFreeProfileOutputPreferenceController.java136 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()
DAudioSwitchPreferenceController.java155 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DMediaOutputPreferenceController.java75 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()
DHandsFreeProfileOutputPreferenceController.java136 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()
DAudioSwitchPreferenceController.java159 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java439 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/
DAbstractBluetoothA2dpPreferenceController.java86 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()
DBluetoothAudioCodecPreferenceController.java113 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/
DBluetoothAudioCodecPreferenceController.java113 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()
DAbstractBluetoothA2dpPreferenceController.java86 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/
DMediaOutputIndicatorSlice.java150 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()
DMediaOutputIndicatorWorker.java76 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/
DMediaOutputIndicatorSlice.java144 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()
DMediaOutputIndicatorWorker.java76 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteTransitionTests.java80 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/
DA2dpReceiver.java406 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/
DCarModeInCallUI.java193 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/
DUsbHostController.java132 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/
DTestInCallUI.java267 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/
DBluetoothUpdateWorker.java68 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBluetoothUpdateWorker.java68 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java197 BluetoothDevice activeDevice = in handleMessage() local
199 processActiveDeviceChanged(activeDevice, msg.arg1); in handleMessage()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPreferenceController.java124 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged() argument