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.java11738 public void readKernelUidCpuTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuTimesLocked() argument
11741 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuTimesLocked()
11811 final StopwatchTimer timer = partialTimers.get(i); in readKernelUidCpuTimesLocked()
11848 public void readKernelUidCpuFreqTimesLocked(@Nullable ArrayList<StopwatchTimer> partialTimers, in readKernelUidCpuFreqTimesLocked() argument
11852 final int numWakelocks = partialTimers == null ? 0 : partialTimers.size(); in readKernelUidCpuFreqTimesLocked()
11932 final Uid u = partialTimers.get(i).mUid; in readKernelUidCpuFreqTimesLocked()