Home
last modified time | relevance | path

Searched defs:predicate (Results 1 – 25 of 37) 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.java52 java.util.function.Predicate<? super T> predicate) { in filter()
67 java.util.function.Predicate<? super T> predicate) { in filter()
91 @Nullable Predicate<? super T> predicate) { in addIf()
227 java.util.function.Predicate<T> predicate) { in any()
236 java.util.function.Predicate<T> predicate) { in find()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp152 Predicate predicate; in CreateScheduledJobPredicate() local
160 Predicate predicate; in CreateBatterySaverModePredicate() local
168 Predicate predicate; in CreateScreenIsOnPredicate() local
176 Predicate predicate; in CreateScreenIsOffPredicate() local
184 Predicate predicate; in CreateHoldingWakelockPredicate() local
192 Predicate predicate; in CreateIsSyncingPredicate() local
200 Predicate predicate; in CreateIsInBackgroundPredicate() local
207 void addPredicateToPredicateCombination(const Predicate& predicate, in addPredicateToPredicateCombination()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DIdleController.java98 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
118 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()
DBatteryController.java228 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
253 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DBackgroundJobsController.java79 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
113 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DDeviceIdleJobsController.java232 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
258 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DContentObserverController.java357 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
447 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DTimeController.java560 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
598 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DConnectivityController.java596 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
639 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
/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/cmds/statsd/tests/
Dstatsd_test_util.cpp199 Predicate predicate; in CreateScheduledJobPredicate() local
207 Predicate predicate; in CreateBatterySaverModePredicate() local
215 Predicate predicate; in CreateScreenIsOnPredicate() local
223 Predicate predicate; in CreateScreenIsOffPredicate() local
231 Predicate predicate; in CreateHoldingWakelockPredicate() local
239 Predicate predicate; in CreateIsSyncingPredicate() local
247 Predicate predicate; in CreateIsInBackgroundPredicate() local
254 void addPredicateToPredicateCombination(const Predicate& predicate, in addPredicateToPredicateCombination()
/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/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java428 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, in findLastItem()
444 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems()
DTaskSnapshotPersisterLoaderTest.java72 private static void assertTrueForFiles(File[] files, Predicate<File> predicate, in assertTrueForFiles()
/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/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/base/cmds/idmap2/idmap2/
DScan.cpp83 const auto predicate = [](unsigned char type, const std::string& path) -> bool { in FindApkFiles() local
/frameworks/rs/tests/lldb/tests/harness/
Dtest_base.py91 def predicate(obj): function

12