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.java50 private double getBatteryLevel() { in getBatteryLevel() method in BatteryTerminator
63 if (getBatteryLevel() < mMinBattery) { in testFinished()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DMicrobenchmark.java165 mStartBatteryLevel = getBatteryLevel(); in run()
413 return getBatteryLevel() < mMinBatteryLevel; in isBatteryLevelBelowMin()
418 return mStartBatteryLevel - getBatteryLevel() > mMaxBatteryDrain; in isBatteryDrainAboveMax()
423 public int getBatteryLevel() { in getBatteryLevel() method in Microbenchmark
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java253 doReturn(49).when(runner).getBatteryLevel(); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
280 doReturn(80).doReturn(50).when(runner).getBatteryLevel(); in testStopsEarly_ifBatteryDrainIsAboveThreshold()