Searched refs:getOnBatteryTimeBase (Results 1 – 5 of 5) sorted by relevance
55 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()
107 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()110 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
111 public TimeBase getOnBatteryTimeBase() { in getOnBatteryTimeBase() method in MockBatteryStatsImpl
335 mBatteryStats.getOnBatteryTimeBase().setRunning(true, 0, 0);
461 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()