Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java68 Predicate<Integer> uidPredicate = uid -> uid == 0 || uid >= 4; in testReader_byUids() local
86 uidPredicate, in testReader_byUids()
299 KernelCpuThreadReaderSettingsObserver.UidPredicate uidPredicate = in testUidPredicate_singleRange() local
301 assertTrue(uidPredicate.test(1000)); in testUidPredicate_singleRange()
302 assertTrue(uidPredicate.test(1050)); in testUidPredicate_singleRange()
303 assertTrue(uidPredicate.test(1999)); in testUidPredicate_singleRange()
304 assertFalse(uidPredicate.test(2000)); in testUidPredicate_singleRange()
305 assertFalse(uidPredicate.test(0)); in testUidPredicate_singleRange()
306 assertFalse(uidPredicate.test(10000)); in testUidPredicate_singleRange()
307 assertFalse(uidPredicate.test(-100)); in testUidPredicate_singleRange()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java130 Predicate<Integer> uidPredicate, in KernelCpuThreadReader() argument
135 mUidPredicate = uidPredicate; in KernelCpuThreadReader()
148 public static KernelCpuThreadReader create(int numBuckets, Predicate<Integer> uidPredicate) { in create() argument
152 uidPredicate, in create()
243 void setUidPredicate(Predicate<Integer> uidPredicate) { in setUidPredicate() argument
244 mUidPredicate = uidPredicate; in setUidPredicate()
DKernelCpuThreadReaderSettingsObserver.java123 final UidPredicate uidPredicate; in updateReader() local
125 uidPredicate = in updateReader()
135 mKernelCpuThreadReader.setUidPredicate(uidPredicate); in updateReader()