Home
last modified time | relevance | path

Searched refs:threadCpuUsages (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java166 for (int j = 0; j < processCpuUsage.threadCpuUsages.size(); j++) { in createCpuUsageMap()
168 processCpuUsage.threadCpuUsages.get(j); in createCpuUsageMap()
191 for (int i = 0; i < processCpuUsage.threadCpuUsages.size(); i++) { in changeToDiffs()
193 processCpuUsage.threadCpuUsages.get(i); in changeToDiffs()
222 for (int i = 0; i < processCpuUsage.threadCpuUsages.size(); i++) { in applyThresholding()
224 processCpuUsage.threadCpuUsages.get(i); in applyThresholding()
239 processCpuUsage.threadCpuUsages = thresholded; in applyThresholding()
DKernelCpuThreadReader.java270 final ArrayList<ThreadCpuUsage> threadCpuUsages = new ArrayList<>(); in getProcessCpuUsage() local
277 threadCpuUsages.add(threadCpuUsage); in getProcessCpuUsage()
285 if (threadCpuUsages.isEmpty()) { in getProcessCpuUsage()
289 Slog.d(TAG, "Read CPU usage of " + threadCpuUsages.size() + " threads"); in getProcessCpuUsage()
291 return new ProcessCpuUsage(processId, getProcessName(processPath), uid, threadCpuUsages); in getProcessCpuUsage()
522 public ArrayList<ThreadCpuUsage> threadCpuUsages; field in KernelCpuThreadReader.ProcessCpuUsage
529 ArrayList<ThreadCpuUsage> threadCpuUsages) { in ProcessCpuUsage() argument
533 this.threadCpuUsages = threadCpuUsages; in ProcessCpuUsage()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java141 final List<ThreadCpuUsage> threadCpuUsages = in getAverageWorkTime() local
142 currentProcessCpuUsage.get().threadCpuUsages.stream() in getAverageWorkTime()
147 numSamples, threadCpuUsages.size()); in getAverageWorkTime()
150 final OptionalDouble averageWorkTimeMillis = threadCpuUsages.stream() in getAverageWorkTime()
DKernelCpuThreadReaderDiffTest.java282 ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = new ArrayList<>(); in createProcess() local
285 threadCpuUsages.add( in createProcess()
291 0, "process", 0, threadCpuUsages))); in createProcess()
297 .flatMap(p -> p.threadCpuUsages.stream()) in cpuUsages()
305 .flatMap(p -> p.threadCpuUsages.stream()) in threadNames()
DKernelCpuThreadReaderTest.java145 assertEquals(threadIds.length, processCpuUsage.threadCpuUsages.size()); in checkResults()
148 final ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = in checkResults() local
149 new ArrayList<>(processCpuUsage.threadCpuUsages); in checkResults()
150 threadCpuUsages.sort(Comparator.comparingInt(a -> a.threadId)); in checkResults()
153 for (KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage : threadCpuUsages) { in checkResults()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1883 ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = in pullCpuTimePerThreadFreq() local
1884 processCpuUsage.threadCpuUsages; in pullCpuTimePerThreadFreq()
1885 for (int j = 0; j < threadCpuUsages.size(); j++) { in pullCpuTimePerThreadFreq()
1886 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = threadCpuUsages.get(j); in pullCpuTimePerThreadFreq()