Home
last modified time | relevance | path

Searched refs:getOnBatteryTimeBase (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsSensorTest.java55 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorStartStop()
397 bi.getOnBatteryTimeBase().setRunning(true, 100_000, 100_000); in testSensorReset()
444 BatteryStatsImpl.TimeBase timeBase = bi.getOnBatteryTimeBase(); in testSensorResetTimes()
DBatteryStatsServTest.java107 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
110 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
DMockBatteryStatsImpl.java111 public TimeBase getOnBatteryTimeBase() { in getOnBatteryTimeBase() method in MockBatteryStatsImpl
DBatteryUsageStatsRule.java335 mBatteryStats.getOnBatteryTimeBase().setRunning(true, 0, 0);
DBatteryStatsNoteTest.java461 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
463 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
465 assertFalse(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()
468 assertTrue(bi.getOnBatteryTimeBase().isRunning()); in testUpdateTimeBasesLocked()