Home
last modified time | relevance | path

Searched refs:predicate (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DPredicates.java76 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not() argument
77 return new NotPredicate<T>(predicate); in not()
88 for (Predicate<? super T> predicate : components) { in apply()
89 if (!predicate.apply(t)) { in apply()
105 for (Predicate<? super T> predicate : components) { in apply()
106 if (predicate.apply(t)) { in apply()
115 private final Predicate<? super T> predicate; field in Predicates.NotPredicate
117 private NotPredicate(Predicate<? super T> predicate) { in NotPredicate() argument
118 this.predicate = predicate; in NotPredicate()
122 return !predicate.apply(t); in apply()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java306 private void purgeByAuthority(Predicate<String> predicate) { in purgeByAuthority() argument
318 if (stack.root != null && predicate.apply(stack.root.authority)) { in purgeByAuthority()
334 if (predicate.apply(authority)) { in purgeByAuthority()
352 if (stack.root != null && predicate.apply(stack.root.authority)) { in purgeByAuthority()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestSuiteBuilder.java250 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates()
251 if (!predicate.apply(test)) { in satisfiesAllPredicates()
DTestGrouping.java169 private <T> List<T> select(Collection<T> items, Predicate<T> predicate) { in select() argument
172 if (predicate.apply(item)) { in select()
/frameworks/av/media/libstagefright/
DTimedEventQueue.cpp176 bool (*predicate)(void *cookie, const sp<Event> &event), in cancelEvents()
183 if (!(*predicate)(cookie, (*it).event)) { in cancelEvents()
/frameworks/av/media/libstagefright/include/
DTimedEventQueue.h109 bool (*predicate)(void *cookie, const sp<Event> &event),
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeService.java325 private void rescheduleNotificationPulse(boolean predicate) { in rescheduleNotificationPulse() argument
326 if (DEBUG) Log.d(mTag, "rescheduleNotificationPulse predicate=" + predicate); in rescheduleNotificationPulse()
329 if (!predicate) { in rescheduleNotificationPulse()
/frameworks/base/core/java/android/widget/
DListView.java3718 protected View findViewByPredicateTraversal(Predicate<View> predicate, View childToSkip) {
3720 v = super.findViewByPredicateTraversal(predicate, childToSkip);
3722 v = findViewByPredicateInHeadersOrFooters(mHeaderViewInfos, predicate, childToSkip);
3727 v = findViewByPredicateInHeadersOrFooters(mFooterViewInfos, predicate, childToSkip);
3741 Predicate<View> predicate, View childToSkip) {
3750 v = v.findViewByPredicate(predicate);
/frameworks/base/core/java/android/view/
DView.java16941 protected View findViewByPredicateTraversal(Predicate<View> predicate, View childToSkip) {
16942 if (predicate.apply(this)) {
17019 public final View findViewByPredicate(Predicate<View> predicate) {
17020 return findViewByPredicateTraversal(predicate, null);
17039 public final View findViewByPredicateInsideOut(View start, Predicate<View> predicate) {
17042 View view = start.findViewByPredicateTraversal(predicate, childToSkip);
DViewGroup.java3618 protected View findViewByPredicateTraversal(Predicate<View> predicate, View childToSkip) { in findViewByPredicateTraversal() argument
3619 if (predicate.apply(this)) { in findViewByPredicateTraversal()
3630 v = v.findViewByPredicate(predicate); in findViewByPredicateTraversal()