Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DOomAdjProfiler.java204 public void addCpuTimeUs(long cpuTimeUs) { in addCpuTimeUs() argument
205 addCpuTimeUs(cpuTimeUs, mOnBattery, mScreenOff); in addCpuTimeUs()
208 public void addCpuTimeUs(long cpuTimeUs, boolean onBattery, boolean screenOff) { in addCpuTimeUs() argument
210 mOnBatteryTimeUs += cpuTimeUs; in addCpuTimeUs()
212 mOnBatteryScreenOffTimeUs += cpuTimeUs; in addCpuTimeUs()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryStatsCpuTimesTest.java224 final int[] cpuTimeUs = {89, 31, 43}; in testUpdateClusterSpeedTimes() local
226 updatedUids.put(testUids[i], cpuTimeUs[i]); in testUpdateClusterSpeedTimes()
245 cpuTimeUs[i] * clusterSpeedTimesMs[cluster][speed] in testUpdateClusterSpeedTimes()
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBatteryStatsImpl.java14033 final LongSamplingCounter[] cpuTimeUs = u.mCpuClusterSpeedTimesUs[cluster];
14035 if (cpuTimeUs[speed] == null) {
14036 cpuTimeUs[speed] = new LongSamplingCounter(mOnBatteryTimeBase);
14040 cpuTimeUs[speed].addCountLocked(allocationUs, onBattery);