Home
last modified time | relevance | path

Searched refs:processCpuUsage (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java127 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in getProcessCpuUsageDiffed() local
128 changeToDiffs(mPreviousCpuUsage, processCpuUsage); in getProcessCpuUsageDiffed()
129 applyThresholding(processCpuUsage); in getProcessCpuUsageDiffed()
165 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in createCpuUsageMap() local
166 for (int j = 0; j < processCpuUsage.threadCpuUsages.size(); j++) { in createCpuUsageMap()
168 processCpuUsage.threadCpuUsages.get(j); in createCpuUsageMap()
171 processCpuUsage.processId, in createCpuUsageMap()
173 processCpuUsage.processName, in createCpuUsageMap()
190 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage) { in changeToDiffs() argument
191 for (int i = 0; i < processCpuUsage.threadCpuUsages.size(); i++) { in changeToDiffs()
[all …]
DKernelCpuThreadReader.java193 final ProcessCpuUsage processCpuUsage = in getProcessCpuUsage() local
195 if (processCpuUsage != null) { in getProcessCpuUsage()
196 processCpuUsages.add(processCpuUsage); in getProcessCpuUsage()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java96 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = in testReader_byUids() local
99 checkResults(processCpuUsage, kernelCpuThreadReader.getCpuFrequenciesKhz(), in testReader_byUids()
138 private void checkResults(KernelCpuThreadReader.ProcessCpuUsage processCpuUsage, in checkResults() argument
141 assertNotNull(processCpuUsage); in checkResults()
142 assertEquals(processId, processCpuUsage.processId); in checkResults()
143 assertEquals(uid, processCpuUsage.uid); in checkResults()
144 assertEquals(processName, processCpuUsage.processName); in checkResults()
145 assertEquals(threadIds.length, processCpuUsage.threadCpuUsages.size()); in checkResults()
149 new ArrayList<>(processCpuUsage.threadCpuUsages); in checkResults()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1882 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in pullCpuTimePerThreadFreq() local
1884 processCpuUsage.threadCpuUsages; in pullCpuTimePerThreadFreq()
1897 e.writeInt(processCpuUsage.uid); in pullCpuTimePerThreadFreq()
1898 e.writeInt(processCpuUsage.processId); in pullCpuTimePerThreadFreq()
1900 e.writeString(processCpuUsage.processName); in pullCpuTimePerThreadFreq()