Home
last modified time | relevance | path

Searched refs:KernelCpuThreadReader (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java70 KernelCpuThreadReader.Injector processUtils = in testReader_byUids()
71 new KernelCpuThreadReader.Injector() { in testReader_byUids()
84 final KernelCpuThreadReader kernelCpuThreadReader = new KernelCpuThreadReader( in testReader_byUids()
90 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processCpuUsageByUids = in testReader_byUids()
96 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = in testReader_byUids()
138 private void checkResults(KernelCpuThreadReader.ProcessCpuUsage processCpuUsage, in checkResults()
148 final ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = in checkResults()
153 for (KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage : threadCpuUsages) { in checkResults()
174 KernelCpuThreadReader.FrequencyBucketCreator in testBucketSetup_simple()
175 frequencyBucketCreator = new KernelCpuThreadReader.FrequencyBucketCreator( in testBucketSetup_simple()
[all …]
DKernelCpuThreadReaderDiffTest.java50 @Mock KernelCpuThreadReader mMockReader;
153 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes1 = in test_threshold()
158 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes2 = in test_threshold()
163 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes3 = in test_threshold()
179 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes1 = in test_newThread()
184 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes2 = in test_newThread()
201 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes1 = in test_stoppedThread()
207 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes2 = in test_stoppedThread()
224 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes1 = in test_nonNegativeOtherThreads()
229 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processes2 = in test_nonNegativeOtherThreads()
[all …]
DKernelCpuThreadReaderEndToEndTest.java29 import com.android.internal.os.KernelCpuThreadReader.ProcessCpuUsage;
30 import com.android.internal.os.KernelCpuThreadReader.ThreadCpuUsage;
127 final KernelCpuThreadReader kernelCpuThreadReader = in getAverageWorkTime()
128 KernelCpuThreadReader.create(8, uid -> uid == Process.myUid()); in getAverageWorkTime()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java82 private final KernelCpuThreadReader mReader;
101 public KernelCpuThreadReaderDiff(KernelCpuThreadReader reader, int minimumTotalCpuUsageMillis) { in KernelCpuThreadReaderDiff()
113 public ArrayList<KernelCpuThreadReader.ProcessCpuUsage> getProcessCpuUsageDiffed() { in getProcessCpuUsageDiffed()
117 final ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processCpuUsages = in getProcessCpuUsageDiffed()
127 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in getProcessCpuUsageDiffed()
162 List<KernelCpuThreadReader.ProcessCpuUsage> processCpuUsages) { in createCpuUsageMap()
165 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in createCpuUsageMap()
167 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = in createCpuUsageMap()
190 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage) { in changeToDiffs()
192 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = in changeToDiffs()
[all …]
DKernelCpuThreadReader.java55 public class KernelCpuThreadReader { class
128 public KernelCpuThreadReader( in KernelCpuThreadReader() method in KernelCpuThreadReader
148 public static KernelCpuThreadReader create(int numBuckets, Predicate<Integer> uidPredicate) { in create()
150 return new KernelCpuThreadReader( in create()
DKernelCpuThreadReaderSettingsObserver.java68 @Nullable private final KernelCpuThreadReader mKernelCpuThreadReader;
94 KernelCpuThreadReader.create( in KernelCpuThreadReaderSettingsObserver()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DKernelCpuThreadReaderPerfTest.java27 import com.android.internal.os.KernelCpuThreadReader;
42 private final KernelCpuThreadReader mKernelCpuThreadReader =
43 KernelCpuThreadReader.create(8, uid -> 1000 <= uid && uid < 2000);
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java123 import com.android.internal.os.KernelCpuThreadReader;
1829 ArrayList<KernelCpuThreadReader.ProcessCpuUsage> processCpuUsages = in pullCpuTimePerThreadFreq()
1842 KernelCpuThreadReader.ProcessCpuUsage processCpuUsage = processCpuUsages.get(i); in pullCpuTimePerThreadFreq()
1843 ArrayList<KernelCpuThreadReader.ThreadCpuUsage> threadCpuUsages = in pullCpuTimePerThreadFreq()
1846 KernelCpuThreadReader.ThreadCpuUsage threadCpuUsage = threadCpuUsages.get(j); in pullCpuTimePerThreadFreq()