Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBstatsCpuTimesValidationTest.java201 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes()
229 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_screenOff()
236 for (int i = cpuTimesMs.length / 2; i < cpuTimesMs.length; ++i) { in testCpuFreqTimes_screenOff()
263 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_isolatedProcess()
295 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_stateTop()
336 assertCpuTimesValid(cpuTimesMs); in testIsolatedCpuFreqTimes_stateService()
369 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_stateTopSleeping()
371 for (int i = cpuTimesMs.length / 2; i < cpuTimesMs.length; ++i) { in testCpuFreqTimes_stateTopSleeping()
402 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_stateFgService()
435 assertCpuTimesValid(cpuTimesMs); in testCpuFreqTimes_stateFg()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DKernelSingleUidTimeReader.java92 final long[] cpuTimesMs = mInjector.readBpfData(uid); in readDeltaMs() local
93 if (cpuTimesMs.length == 0) { in readDeltaMs()
100 return computeDelta(uid, cpuTimesMs); in readDeltaMs()
107 final long[] cpuTimesMs; in readDeltaMs() local
115 cpuTimesMs = readCpuTimesFromByteBuffer(buffer); in readDeltaMs()
124 return computeDelta(uid, cpuTimesMs); in readDeltaMs()
140 final long[] cpuTimesMs; in readCpuTimesFromByteBuffer() local
141 cpuTimesMs = new long[mCpuFreqsCount]; in readCpuTimesFromByteBuffer()
144 cpuTimesMs[i] = buffer.getLong() * 10; in readCpuTimesFromByteBuffer()
146 return cpuTimesMs; in readCpuTimesFromByteBuffer()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBatteryStatsImpl.java8187 private long[] nullIfAllZeros(LongSamplingCounterArray cpuTimesMs, int which) { in nullIfAllZeros() argument
8188 if (cpuTimesMs == null) { in nullIfAllZeros()
8191 final long[] counts = cpuTimesMs.getCountsLocked(which); in nullIfAllZeros()