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.java160 final ArrayList<BatteryStatsImpl.StopwatchTimer> partialTimers = getPartialTimers( in testMarkPartialTimersAsEligible() local
163 = new ArrayList<>(partialTimers); in testMarkPartialTimersAsEligible()
164 mBatteryStatsImpl.setPartialTimers(partialTimers); in testMarkPartialTimersAsEligible()
167 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
168 partialTimers.get(i).mInList = inList[i]; in testMarkPartialTimersAsEligible()
175 assertTrue(ArrayUtils.referenceEquals(partialTimers, lastPartialTimers)); in testMarkPartialTimersAsEligible()
176 for (int i = 0; i < partialTimers.size(); ++i) { in testMarkPartialTimersAsEligible()
177 assertTrue("Timer id=" + i, partialTimers.get(i).mInList); in testMarkPartialTimersAsEligible()
181 partialTimers.addAll(getPartialTimers(10077, 10099)); in testMarkPartialTimersAsEligible()
182 partialTimers.remove(1 /* index */); in testMarkPartialTimersAsEligible()
[all …]
DMockBatteryStatsImpl.java132 public MockBatteryStatsImpl setPartialTimers(ArrayList<StopwatchTimer> partialTimers) { in setPartialTimers() argument
133 mPartialTimers = partialTimers; in setPartialTimers()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12069 public void readKernelUidCpuTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuTimesLocked() argument
12072 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuTimesLocked()
12140 final StopwatchTimer timer = partialTimers.get(i); in readKernelUidCpuTimesLocked()
12177 public void readKernelUidCpuFreqTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuFreqTimesLocked() argument
12181 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuFreqTimesLocked()
12257 final Uid u = partialTimers.get(i).mUid; in readKernelUidCpuFreqTimesLocked()