Searched refs:KernelCpuThreadReader (Results 1 – 8 of 8) sorted by relevance
70 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 …]
50 @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 …]
29 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()
82 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 …]
55 public class KernelCpuThreadReader { class128 public KernelCpuThreadReader( in KernelCpuThreadReader() method in KernelCpuThreadReader148 public static KernelCpuThreadReader create(int numBuckets, Predicate<Integer> uidPredicate) { in create()150 return new KernelCpuThreadReader( in create()
68 @Nullable private final KernelCpuThreadReader mKernelCpuThreadReader;94 KernelCpuThreadReader.create( in KernelCpuThreadReaderSettingsObserver()
27 import com.android.internal.os.KernelCpuThreadReader;42 private final KernelCpuThreadReader mKernelCpuThreadReader =43 KernelCpuThreadReader.create(8, uid -> 1000 <= uid && uid < 2000);
123 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()