Home
last modified time | relevance | path

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

123

/frameworks/base/apct-tests/perftests/core/src/android/util/
DArraySetPerfTest.java128 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base() local
142 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing() local
157 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Small_RemoveAll() local
172 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_RemoveHalf() local
191 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_Base() local
205 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Large_RemoveNothing() local
220 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Large_RemoveAll() local
235 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_RemoveHalf() local
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java66 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not()
71 private final Predicate<? super T> predicate; field in TestPredicates.NotPredicate
73 private NotPredicate(Predicate<? super T> predicate) { in NotPredicate()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java64 java.util.function.Predicate<? super T> predicate) { in filter()
79 java.util.function.Predicate<? super T> predicate) { in filter()
103 @Nullable Predicate<? super T> predicate) { in addIf()
258 java.util.function.Predicate<T> predicate) { in any()
267 java.util.function.Predicate<T> predicate) { in any()
276 java.util.function.Predicate<T> predicate) { in find()
290 java.util.function.Predicate<T> predicate) { in find()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dalgorithm.h48 auto FindIf(const Container& container, Predicate predicate) { in FindIf()
53 bool ContainsIf(const Container& container, Predicate predicate) { in ContainsIf()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java88 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
92 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DIdleController.java158 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
178 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStorageController.java162 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
182 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DBatteryController.java239 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
258 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DDeviceIdleJobsController.java237 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
263 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DComponentController.java257 public void dumpControllerStateLocked(IndentingPrintWriter pw, Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
275 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStateController.java185 Predicate<JobStatus> predicate); in dumpControllerStateLocked()
187 Predicate<JobStatus> predicate) {} in dumpControllerStateLocked()
DBackgroundJobsController.java185 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
239 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DTimeController.java421 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
462 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DContentObserverController.java384 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
474 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java131 private static void waitUntil(String message, BooleanSupplier predicate) in waitUntil()
138 private static boolean waitUntil(BooleanSupplier predicate) throws Exception { in waitUntil()
/frameworks/native/services/surfaceflinger/FrontEnd/
DSwapErase.h40 void swapErase(std::vector<T>& vec, P predicate) { in swapErase()
/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/services/core/java/com/android/server/location/listeners/
DListenerMultiplexer.java319 protected final void removeRegistrationIf(@NonNull Predicate<TKey> predicate) { in removeRegistrationIf()
487 protected final boolean findRegistration(Predicate<TRegistration> predicate) { in findRegistration()
512 protected final void updateRegistrations(@NonNull Predicate<TRegistration> predicate) { in updateRegistrations()
541 @NonNull Predicate<TRegistration> predicate) { in updateRegistration()
/frameworks/base/core/java/com/android/internal/os/
DBinderfsStatsReader.java65 public void handleFreeAsyncSpace(Predicate<Integer> predicate, in handleFreeAsyncSpace()
/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()
DVisibleActivityProcessTracker.java86 private boolean match(int uid, Predicate<WindowProcessController> predicate) { in match()
/frameworks/native/services/surfaceflinger/tests/utils/
DWindowInfosListenerUtils.h36 bool waitForWindowInfosPredicate(const WindowInfosPredicate& predicate) { in waitForWindowInfosPredicate()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java228 List<OverlayInfo> removeIf(@NonNull final Predicate<OverlayInfo> predicate, final int userId) { in removeIf()
233 List<OverlayInfo> removeIf(final @NonNull Predicate<OverlayInfo> predicate) { in removeIf()
/frameworks/libs/binary_translation/backend/x86_64/
Dloop_guest_context_optimizer.cc290 void OptimizeLoopTree(MachineIR* machine_ir, LoopTreeNode* node, PredicateFunction predicate) { in OptimizeLoopTree()
305 auto predicate = [](LoopTreeNode* node) -> bool { in RemoveLoopGuestContextAccesses() local
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java548 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, in findLastItem()
564 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems()

123