Searched refs:isActiveDevice (Results 1 – 9 of 9) sorted by relevance
257 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 …]
517 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()
162 + " 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()
53 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()
572 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()
288 if (device.isActiveDevice(BluetoothProfile.HEARING_AID) || device.isActiveDevice( in onActiveDeviceChanged()
761 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice
468 if (isActiveDevice(((BluetoothMediaDevice) device).getCachedDevice()) in updateCurrentConnectedDevice()481 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() method in LocalMediaManager
479 when(device.isActiveDevice(profile)).thenReturn(isActive); in createBluetoothDevice()