Home
last modified time | relevance | path

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

12

/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.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()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DCollectionUtils.java81 public static <T> boolean all(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in all()
93 public static <T> boolean any(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in any()
101 public static <T> int indexOf(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in indexOf()
114 public static <T> boolean any(@NonNull SparseArray<T> array, @NonNull Predicate<T> predicate) { in any()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java63 java.util.function.Predicate<? super T> predicate) { in filter()
78 java.util.function.Predicate<? super T> predicate) { in filter()
102 @Nullable Predicate<? super T> predicate) { in addIf()
256 java.util.function.Predicate<T> predicate) { in any()
265 java.util.function.Predicate<T> predicate) { in any()
274 java.util.function.Predicate<T> predicate) { in find()
288 java.util.function.Predicate<T> predicate) { in find()
/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.java123 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
143 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStorageController.java159 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
179 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DBackgroundJobsController.java99 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
133 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DDeviceIdleJobsController.java237 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
263 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DComponentController.java249 public void dumpControllerStateLocked(IndentingPrintWriter pw, Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
267 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DStateController.java179 Predicate<JobStatus> predicate); in dumpControllerStateLocked()
181 Predicate<JobStatus> predicate) {} in dumpControllerStateLocked()
DBatteryController.java297 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
317 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DTimeController.java413 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
454 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
DContentObserverController.java384 Predicate<JobStatus> predicate) { in dumpControllerStateLocked()
474 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/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/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/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java216 List<OverlayInfo> removeIf(@NonNull final Predicate<OverlayInfo> predicate, final int userId) { in removeIf()
221 List<OverlayInfo> removeIf(final @NonNull Predicate<OverlayInfo> predicate) { in removeIf()
/frameworks/base/services/core/java/com/android/server/location/listeners/
DListenerMultiplexer.java306 protected final void removeRegistrationIf(@NonNull Predicate<TKey> predicate) { in removeRegistrationIf()
465 protected final void updateRegistrations(@NonNull Predicate<TRegistration> predicate) { in updateRegistrations()
494 @NonNull Predicate<TRegistration> predicate) { in updateRegistration()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java545 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, in findLastItem()
561 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DStageTaskListener.java147 private boolean contains(Predicate<ActivityManager.RunningTaskInfo> predicate) { in contains()
157 Predicate<ActivityManager.RunningTaskInfo> predicate) { in getChildTaskInfo()
/frameworks/base/location/java/android/location/
DLocationResult.java187 public @Nullable LocationResult filter(Predicate<Location> predicate) { in filter()

12