Searched refs:isActiveDevice (Results 1 – 2 of 2) sorted by relevance
737 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()738 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()739 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()740 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()745 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()746 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()747 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()748 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()752 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()753 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in testOnActiveDeviceChanged_connectedDevices_activeDeviceChanged()[all …]
555 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice