Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java167 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = getPartialTimers( in testMarkPartialTimersAsEligible() local
170 = new ArrayList<>(partialTimers); in testMarkPartialTimersAsEligible()
171 mBatteryStatsImpl.setPartialTimers(partialTimers); in testMarkPartialTimersAsEligible()
174 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
175 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible()
182 assertTrue(ArrayUtils.referenceEquals(partialTimers, lastPartialTimers)); in testMarkPartialTimersAsEligible()
183 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
184 assertTrue("Timer id=" + i, partialTimers.get(i).mInList); in testMarkPartialTimersAsEligible()
188 partialTimers.addAll(getPartialTimers(10077, 10099)); in testMarkPartialTimersAsEligible()
189 partialTimers.remove(1 /* index */); in testMarkPartialTimersAsEligible()
[all …]
DMockBatteryStatsImpl.java141 public MockBatteryStatsImpl setPartialTimers(ArrayList<StopwatchTimer> partialTimers) { in setPartialTimers() argument
142 mPartialTimers = partialTimers; in setPartialTimers()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java11744 public void readKernelUidCpuTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuTimesLocked() argument
11747 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuTimesLocked()
11817 final StopwatchTimer timer = partialTimers.get(i); in readKernelUidCpuTimesLocked()
11854 public void readKernelUidCpuFreqTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuFreqTimesLocked() argument
11858 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuFreqTimesLocked()
11938 final Uid u = partialTimers.get(i).mUid; in readKernelUidCpuFreqTimesLocked()