Home
last modified time | relevance | path

Searched refs:isActiveDevice (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java442 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
443 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
444 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
445 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
451 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
452 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
453 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
454 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
459 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
460 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
[all …]
DHearingAidDeviceManagerTest.java735 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in onActiveDeviceChanged_connected_callSetStrategies()
749 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(false); in onActiveDeviceChanged_disconnected_callSetStrategiesWithAutoValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java164 + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) in getDeviceString()
165 + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) in getDeviceString()
166 + " active[HEARING_AID]=" + device.isActiveDevice(BluetoothProfile.HEARING_AID) in getDeviceString()
167 + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); in getDeviceString()
294 isActive |= device.isActiveDevice(BluetoothProfile.HEADSET) in updateActive()
295 || device.isActiveDevice(BluetoothProfile.A2DP) in updateActive()
296 || device.isActiveDevice(BluetoothProfile.HEARING_AID) in updateActive()
297 || device.isActiveDevice(BluetoothProfile.LE_AUDIO); in updateActive()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java55 when(mDevice.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in setUp()
56 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()
57 when(mDevice.isActiveDevice(BluetoothProfile.LE_AUDIO)).thenReturn(true); in setUp()
DLocalMediaManagerTest.java571 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
572 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
599 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
600 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothUtils.java696 return cachedDevice.isActiveDevice(BluetoothProfile.A2DP) in isActiveMediaDevice()
697 || cachedDevice.isActiveDevice(BluetoothProfile.HEADSET) in isActiveMediaDevice()
698 || cachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID) in isActiveMediaDevice()
699 || cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO); in isActiveMediaDevice()
709 return cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO); in isActiveLeAudioDevice()
DHearingAidDeviceManager.java272 if (device.isActiveDevice(BluetoothProfile.HEARING_AID) || device.isActiveDevice( in onActiveDeviceChanged()
DBluetoothEventManager.java276 boolean isActiveDevice = cachedDevice.equals(targetDevice); in dispatchActiveDeviceChanged()
277 cachedDevice.onActiveDeviceChanged(isActiveDevice, bluetoothProfile); in dispatchActiveDeviceChanged()
DCachedBluetoothDevice.java850 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesCheckerTest.java107 when(mCachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java471 if (isActiveDevice(((BluetoothMediaDevice) device).getCachedDevice()) in updateCurrentConnectedDevice()
484 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() method in LocalMediaManager
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java406 when(device.isActiveDevice(profile)).thenReturn(isActive); in createBluetoothDevice()