Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCpuTimesTest.java186 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = getPartialTimers( in testMarkPartialTimersAsEligible() local
189 = new ArrayList<>(partialTimers); in testMarkPartialTimersAsEligible()
190 mBatteryStatsImpl.setPartialTimers(partialTimers); in testMarkPartialTimersAsEligible()
193 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
194 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible()
201 assertTrue(ArrayUtils.referenceEquals(partialTimers, lastPartialTimers)); in testMarkPartialTimersAsEligible()
202 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
203 assertTrue("Timer id=" + i, partialTimers.get(i).mInList); in testMarkPartialTimersAsEligible()
207 partialTimers.addAll(getPartialTimers(10077, 10099)); in testMarkPartialTimersAsEligible()
208 partialTimers.remove(1 /* index */); in testMarkPartialTimersAsEligible()
[all …]
DMockBatteryStatsImpl.java232 public MockBatteryStatsImpl setPartialTimers(ArrayList<StopwatchTimer> partialTimers) { in setPartialTimers() argument
233 mPartialTimers = partialTimers; in setPartialTimers()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java14341 public void readKernelUidCpuTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers,
14344 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size();
14413 final StopwatchTimer timer = partialTimers.get(i);
14454 public void readKernelUidCpuFreqTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers,
14459 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size();
14545 final Uid u = partialTimers.get(i).mUid;