HomeSort by relevance Sort by last modified time
    Searched refs:STATS_SINCE_UNPLUGGED (Results 1 - 9 of 9) sorted by null

  /frameworks/base/services/core/java/com/android/server/am/
HealthStatsBatteryStatsWriter.java 20 import static android.os.BatteryStats.STATS_SINCE_UNPLUGGED;
66 bs.computeBatteryRealtime(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000);
70 bs.computeBatteryUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000);
75 mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED)/1000);
79 bs.computeBatteryScreenOffUptime(mNowUptimeMs*1000, STATS_SINCE_UNPLUGGED)/1000);
164 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED));
167 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED));
171 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED);
176 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED));
183 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED));
    [all...]
  /frameworks/base/core/tests/coretests/src/com/android/internal/os/
BatteryStatsCounterTest.java 46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
56 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
65 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
73 assertEquals(2, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
90 assertEquals(3, origCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
104 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
111 assertEquals(1, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
118 assertEquals(2, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
132 assertEquals(3, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
139 assertEquals(3, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
    [all...]
LongSamplingCounterArrayTest.java 21 import static android.os.BatteryStats.STATS_SINCE_UNPLUGGED;
142 mCounterArray.getCountsLocked(STATS_SINCE_UNPLUGGED), "Unexpected values");
150 mCounterArray.getCountsLocked(STATS_SINCE_UNPLUGGED), "Unexpected values");
BatteryStatsTimeBaseTest.java 287 tb.computeUptime(666, BatteryStats.STATS_SINCE_UNPLUGGED));
306 tb.computeRealtime(6666, BatteryStats.STATS_SINCE_UNPLUGGED));
BatteryStatsTimerTest.java 383 // Timer.getTotalTimeLocked(STATS_SINCE_UNPLUGGED)
385 Assert.assertEquals(9600, timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_UNPLUGGED));
420 // Timer.getCountLocked(STATS_SINCE_UNPLUGGED)
422 Assert.assertEquals(9996, timer.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED));
BatteryStatsServTest.java 603 Assert.assertEquals(8085-17714, serv.getLaunches(BatteryStats.STATS_SINCE_UNPLUGGED));
642 serv.getStartTime(20000, BatteryStats.STATS_SINCE_UNPLUGGED));
681 serv.getStartTime(20000, BatteryStats.STATS_SINCE_UNPLUGGED));
715 Assert.assertEquals(4042-16613, serv.getStarts(BatteryStats.STATS_SINCE_UNPLUGGED));
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
PowerUsageSummary.java 278 mStatsType = BatteryStats.STATS_SINCE_UNPLUGGED;
  /frameworks/base/core/java/com/android/internal/os/
BatteryStatsImpl.java     [all...]
  /frameworks/base/core/java/android/os/
BatteryStats.java 204 public static final int STATS_SINCE_UNPLUGGED = 2;
391 * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
410 * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
428 * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
492 * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
501 * @param which one of STATS_SINCE_CHARGED, STATS_SINCE_UNPLUGGED, or STATS_CURRENT
    [all...]

Completed in 86 milliseconds