Lines Matching defs:predicate
15077 * @param predicate The predicate to evaluate.
15079 * @return The first view that matches the predicate or null.
15081 protected View findViewByPredicateTraversal(Predicate<View> predicate, View childToSkip) {
15082 if (predicate.apply(this)) {
15151 * Look for a child view that matches the specified predicate.
15152 * If this view matches the predicate, return this view.
15154 * @param predicate The predicate to evaluate.
15155 * @return The first view that matches the predicate or null.
15157 public final View findViewByPredicate(Predicate<View> predicate) {
15158 return findViewByPredicateTraversal(predicate, null);
15163 * Look for a child view that matches the specified predicate,
15168 * This method is useful in cases where the predicate does not match
15174 * @param predicate The predicate to evaluate.
15175 * @return The first view that matches the predicate or null.
15177 public final View findViewByPredicateInsideOut(View start, Predicate<View> predicate) {
15180 View view = start.findViewByPredicateTraversal(predicate, childToSkip);