Searched refs:isActiveDevice (Results 1 – 6 of 6) sorted by relevance
406 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()407 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()408 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()409 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()414 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()415 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()416 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()417 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()421 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()422 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()[all …]
51 when(mDevice.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in setUp()52 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()
234 return device.isActiveDevice(BluetoothProfile.A2DP) in isConnected()235 || device.isActiveDevice(BluetoothProfile.HEARING_AID); in isConnected()
264 isActive |= device.isActiveDevice(BluetoothProfile.HEADSET) in updateActive()265 || device.isActiveDevice(BluetoothProfile.A2DP) in updateActive()266 || device.isActiveDevice(BluetoothProfile.HEARING_AID); in updateActive()
241 when(device.isActiveDevice(BluetoothProfile.HEADSET)).thenReturn(true); in testOnActiveDeviceChanged_updatesAudioActive()
488 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice