Searched refs:getBatteryLevel (Results 1 – 2 of 2) sorted by relevance
212 public void getBatteryLevel() { in getBatteryLevel() method in BluetoothDeviceTest216 assertEquals(BluetoothDevice.BATTERY_LEVEL_UNKNOWN, mFakeDevice.getBatteryLevel()); in getBatteryLevel()219 assertThrows(SecurityException.class, () -> mFakeDevice.getBatteryLevel()); in getBatteryLevel()223 assertEquals(BluetoothDevice.BATTERY_LEVEL_BLUETOOTH_OFF, mFakeDevice.getBatteryLevel()); in getBatteryLevel()
304 atom -> atom.getBatteryLevelChanged().getBatteryLevel()); in testBatteryLevelChangedAtom()454 assertThat(atom.getBatteryLevel().hasBatteryLevel()).isTrue(); in testBatteryLevel()456 assertThat(atom.getBatteryLevel().getBatteryLevel()).isIn(Range.openClosed(0, 100)); in testBatteryLevel()