Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManagerTest.java257 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
259 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
266 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
268 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
274 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
276 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
283 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
285 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
290 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
292 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
[all …]
H A DHearingAidDeviceManagerTest.java517 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in onActiveDeviceChanged_connected_callSetStrategies()
529 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(false); in onActiveDeviceChanged_disconnected_callSetStrategiesWithAutoValue()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImpl.java162 + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) in getDeviceString()
163 + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) in getDeviceString()
164 + " active[HEARING_AID]=" + device.isActiveDevice(BluetoothProfile.HEARING_AID) in getDeviceString()
165 + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); in getDeviceString()
306 isActive |= device.isActiveDevice(BluetoothProfile.HEADSET) in updateActive()
307 || device.isActiveDevice(BluetoothProfile.A2DP) in updateActive()
308 || device.isActiveDevice(BluetoothProfile.HEARING_AID) in updateActive()
309 || device.isActiveDevice(BluetoothProfile.LE_AUDIO); in updateActive()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DBluetoothMediaDeviceTest.java53 when(mDevice.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in setUp()
54 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()
55 when(mDevice.isActiveDevice(BluetoothProfile.LE_AUDIO)).thenReturn(true); in setUp()
H A DLocalMediaManagerTest.java572 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
573 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
600 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
601 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManager.java288 if (device.isActiveDevice(BluetoothProfile.HEARING_AID) || device.isActiveDevice( in onActiveDeviceChanged()
H A DCachedBluetoothDevice.java761 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DLocalMediaManager.java468 if (isActiveDevice(((BluetoothMediaDevice) device).getCachedDevice()) in updateCurrentConnectedDevice()
481 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() method in LocalMediaManager
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImplTest.java479 when(device.isActiveDevice(profile)).thenReturn(isActive); in createBluetoothDevice()