Home
last modified time | relevance | path

Searched refs:getBatteryLevel (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothDeviceTest.java212 public void getBatteryLevel() { in getBatteryLevel() method in BluetoothDeviceTest
216 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()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java304 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()