Home
last modified time | relevance | path

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

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java108 Intent batteryState = getContext().registerReceiver(null, filter); in verifyBatteryNotLowState() local
110 !batteryState.getBooleanExtra(BatteryManager.EXTRA_BATTERY_LOW, notLow)); in verifyBatteryNotLowState()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java397 final BatteryState batteryState = inputDevice.getBatteryState(); in testInputBatteryEvents() local
398 assertNotNull(batteryState); in testInputBatteryEvents()
399 assertEquals("Test: " + testData.name, testData.status, batteryState.getStatus()); in testInputBatteryEvents()
400 final float capacity = batteryState.getCapacity(); in testInputBatteryEvents()