Home
last modified time | relevance | path

Searched defs:predicate (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/apct-tests/perftests/core/src/android/util/
DArraySetPerfTest.java95 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base() local
109 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing() local
124 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Small_RemoveAll() local
139 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_RemoveHalf() local
158 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_Base() local
172 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Large_RemoveNothing() local
187 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Large_RemoveAll() local
202 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_RemoveHalf() local
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java64 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not()
69 private final Predicate<? super T> predicate; field in TestPredicates.NotPredicate
71 private NotPredicate(Predicate<? super T> predicate) { in NotPredicate()
DTestGrouping.java147 private <T> List<T> select(Collection<T> items, Predicate<T> predicate) { in select()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java56 java.util.function.Predicate<? super T> predicate) { in filter()
71 java.util.function.Predicate<? super T> predicate) { in filter()
95 @Nullable Predicate<? super T> predicate) { in addIf()
242 java.util.function.Predicate<T> predicate) { in any()
251 java.util.function.Predicate<T> predicate) { in any()
260 java.util.function.Predicate<T> predicate) { in find()
274 java.util.function.Predicate<T> predicate) { in find()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp154 Predicate predicate; in CreateScheduledJobPredicate() local
162 Predicate predicate; in CreateBatterySaverModePredicate() local
170 Predicate predicate; in CreateScreenIsOnPredicate() local
178 Predicate predicate; in CreateScreenIsOffPredicate() local
186 Predicate predicate; in CreateHoldingWakelockPredicate() local
194 Predicate predicate; in CreateIsSyncingPredicate() local
202 Predicate predicate; in CreateIsInBackgroundPredicate() local
209 void addPredicateToPredicateCombination(const Predicate& predicate, in addPredicateToPredicateCombination()
/frameworks/base/core/tests/coretests/src/android/util/
DLongSparseArrayTest.java46 final LongObjPredicate<Integer> predicate = (value, obj) -> (value < 0 && obj < 0); in testRemoveIf() local
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DIdleController.java117 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
137 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStorageController.java156 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
176 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStateController.java134 Predicate<JobStatus> predicate); in dumpControllerStateLocked()
136 Predicate<JobStatus> predicate); in dumpControllerStateLocked()
DBackgroundJobsController.java81 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
115 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DDeviceIdleJobsController.java232 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
258 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DBatteryController.java240 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
265 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DContentObserverController.java357 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
447 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DTimeController.java522 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
560 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java107 private static void waitUntil(String message, BooleanSupplier predicate) in waitUntil()
114 private static boolean waitUntil(BooleanSupplier predicate) throws Exception { in waitUntil()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java89 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
93 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DPersisterQueue.java119 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, Class<T> clazz) { in findLastItem()
151 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DFloatingToolbarEspressoUtils.java200 final Predicate<View> predicate, final boolean positiveAssertion) { in assertFloatingToolbarMenuItem()
/frameworks/base/cmds/idmap2/libidmap2/
DFileUtils.cpp41 const FindFilesPredicate& predicate) { in FindFiles()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java534 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, in findLastItem()
550 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems()
DTaskSnapshotPersisterTestBase.java136 protected static void assertTrueForFiles(File[] files, Predicate<File> predicate, in assertTrueForFiles()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.cpp242 Predicate predicate; in CreateScheduledJobPredicate() local
250 Predicate predicate; in CreateBatterySaverModePredicate() local
258 Predicate predicate; in CreateDeviceUnpluggedPredicate() local
266 Predicate predicate; in CreateScreenIsOnPredicate() local
274 Predicate predicate; in CreateScreenIsOffPredicate() local
282 Predicate predicate; in CreateHoldingWakelockPredicate() local
290 Predicate predicate; in CreateIsSyncingPredicate() local
298 Predicate predicate; in CreateIsInBackgroundPredicate() local
394 void addPredicateToPredicateCombination(const Predicate& predicate, in addPredicateToPredicateCombination()
/frameworks/base/core/java/android/widget/
DDayPickerViewPager.java140 protected <T extends View> T findViewByPredicateTraversal(Predicate<View> predicate, in findViewByPredicateTraversal()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTestUtils.java132 public static void assertLogcatContains(String tag, Predicate<ShadowLog.LogItem> predicate) { in assertLogcatContains()
/frameworks/rs/tests/lldb/tests/harness/
Dtest_base.py91 def predicate(obj): function

12