Home
last modified time | relevance | path

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

/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/listener/
DBatteryTerminator.java51 private double getBatteryLevel() { in getBatteryLevel() method in BatteryTerminator
64 if (getBatteryLevel() < mMinBattery) { in testFinished()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DMicrobenchmark.java185 mStartBatteryLevel = getBatteryLevel(); in run()
437 return getBatteryLevel() < mMinBatteryLevel; in isBatteryLevelBelowMin()
442 return mStartBatteryLevel - getBatteryLevel() > mMaxBatteryDrain; in isBatteryDrainAboveMax()
447 public int getBatteryLevel() { in getBatteryLevel() method in Microbenchmark
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java276 doReturn(49).when(runner).getBatteryLevel(); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
303 doReturn(80).doReturn(50).when(runner).getBatteryLevel(); in testStopsEarly_ifBatteryDrainIsAboveThreshold()