/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MoreCollectors.java | 43 static <E> Collector<E, ?, Stream<E>> endingAt(Predicate<E> predicate) { in endingAt() argument 52 if (predicate.test(element)) { in endingAt() 80 static <E> Collector<E, ?, Stream<E>> startingFrom(Predicate<E> predicate) { in startingFrom() argument 90 if (predicate.test(element)) { in startingFrom()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | TestUtils.java | 52 public static void waitUntil(String message, BooleanSupplierWithThrow predicate) in waitUntil() argument 54 waitUntil(message, 0, predicate); in waitUntil() 61 String message, int timeoutSecond, BooleanSupplierWithThrow predicate) in waitUntil() argument 69 if (predicate.getAsBoolean()) { in waitUntil()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | NotificationListener.kt | 78 predicate: (StatusBarNotification) -> Boolean in waitForNotificationToAppear() 82 it.activeNotifications.firstOrNull(predicate) in waitForNotificationToAppear() 88 predicate: (StatusBarNotification) -> Boolean in waitForNotificationToDisappear() 91 wait { it.activeNotifications.none(predicate) } in waitForNotificationToDisappear()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CtsWindowInfoUtils.java | 82 public static boolean waitForWindowInfos(@NonNull Predicate<List<WindowInfo>> predicate, in waitForWindowInfos() argument 92 if (predicate.test(windowInfos)) { in waitForWindowInfos() 140 public static boolean waitForWindowInfos(@NonNull Predicate<List<WindowInfo>> predicate, in waitForWindowInfos() argument 142 return waitForWindowInfos(predicate, timeout, unit, null /* uiAutomation */); in waitForWindowInfos() 166 public static boolean waitForWindowInfo(@NonNull Predicate<WindowInfo> predicate, long timeout, in waitForWindowInfo() argument 182 return predicate.test(windowInfo); in waitForWindowInfo() 242 @NonNull Predicate<WindowInfo> predicate) in waitForWindowOnTop() argument 269 if (predicate.test(windowInfo)) { in waitForWindowOnTop() 511 Predicate<WindowInfo> predicate = windowInfo -> { in getWindowBoundsInWindowSpace() local 527 if (!waitForWindowInfo(predicate, 5L * HW_TIMEOUT_MULTIPLIER, TimeUnit.SECONDS, in getWindowBoundsInWindowSpace() [all …]
|
D | WindowManagerState.java | 274 Predicate<T> predicate, WindowContainer root, List<T> outChildren) { in collectDescendantsOfTypeIf() argument 279 if(predicate.test(clazz.cast(child))) { in collectDescendantsOfTypeIf() 283 collectDescendantsOfTypeIf(clazz, predicate, child, outChildren); in collectDescendantsOfTypeIf() 974 public int getRootTasksCount(Predicate<? super Task> predicate) { in getRootTasksCount() argument 975 return (int) mRootTasks.stream().filter(predicate).count(); in getRootTasksCount() 1607 Task getTask(Predicate<Task> predicate) { in getTask() argument 1609 if (predicate.test(task)) return task; in getTask() 1611 return predicate.test(this) ? this : null; in getTask() 1625 Activity getActivity(Predicate<Activity> predicate) { in getActivity() argument 1627 if (predicate.test(activity)) return activity; in getActivity() [all …]
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | RequiredMeasurement.java | 50 public abstract BiPredicate<T, T> predicate(); in predicate() method in RequiredMeasurement 67 public abstract Builder<T> setPredicate(BiPredicate<T, T> predicate); in setPredicate() argument 89 } else if (this.measuredValue == null || !this.predicate().test(this.measuredValue, in meetsPerformanceClass() 112 + "\n\tPredicate: " + this.predicate() in toString()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStreamTestUtils.java | 72 private Predicate<ImeEvent> combine(Predicate<ImeEvent> predicate) { in combine() argument 75 return predicate; in combine() 77 return withDescription(predicate + " (ENTER_ONLY)", in combine() 78 event -> event.isEnterEvent() && predicate.test(event)); in combine() 80 return withDescription(predicate + " (EXIT_ONLY)", in combine() 81 event -> !event.isEnterEvent() && predicate.test(event)); in combine() 271 var predicate = withDescription( 280 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout);
|
/cts/tests/app/shared/src/android/app/cts/ |
D | NotificationTemplateTestBase.kt | 119 predicate: (T) -> Boolean in <lambda>() 125 if (predicate(view as T)) { in <lambda>() 131 collectViews(child, type, mutableList, requireVisible, predicate) in <lambda>()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 168 String message, long timeoutSeconds, Function<Boolean, Boolean> predicate) in waitUntilWithLastTry() argument 173 if (predicate.apply(false)) { in waitUntilWithLastTry() 178 if (!predicate.apply(true)) { in waitUntilWithLastTry()
|
/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/ |
D | MockA11yImeEventStreamUtils.java | 171 final Predicate<MockA11yImeEvent> predicate = event -> { 179 return expectA11yImeEvent(stream, predicate,
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | SignatureTest.java | 139 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument 140 return predicate.negate(); in not()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderQualityRegressionBFrameTest.java | 113 Predicate<Double> predicate = bdRate -> bdRate < 0.000001d; in qualityRegressionOverBFrames() 115 FRAME_RATE, null, true, predicate); in qualityRegressionOverBFrames()
|
D | VideoEncoderQualityRegressionCodecTest.java | 123 Predicate<Double> predicate = bdRate -> bdRate < 0d; in testQualityRegressionWrtAvc() 125 FRAME_RATE, null, true, predicate); in testQualityRegressionWrtAvc()
|
D | VideoEncoderQualityRegressionTestBase.java | 128 boolean setLoopBack, Predicate<Double> predicate) in getQualityRegressionForCfgs() argument 172 assumeTrue(retMsg.toString(), predicate.test(bdRate)); in getQualityRegressionForCfgs()
|
D | VideoEncoderRoiTest.java | 258 Predicate<Double> predicate = bdRate -> bdRate <= EXPECTED_BD_RATE; in testRoiSupport() local 261 FRAME_RATE, frameCropRects, false, predicate); in testRoiSupport()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | InterfaceChecker.java | 130 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument 131 return predicate.negate(); in not()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | ImageSurface.java | 113 int surfaceId, Function<ImageAndAttributes, Boolean> predicate) { in createSurface() argument 127 mPredicate = predicate; in createSurface()
|
/cts/hostsidetests/car/util/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 485 protected void waitUntil(long timeoutSeconds, BooleanSupplierWithThrow<Exception> predicate, in waitUntil() argument 488 + String.format(msgPattern, msgArgs), timeoutSeconds, predicate); in waitUntil() 495 protected void waitUntil(BooleanSupplierWithThrow<Exception> predicate, in waitUntil() argument 497 waitUntil(DEFAULT_TIMEOUT_SEC, predicate, msgPattern, msgArgs); in waitUntil()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackUtils.java | 207 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument 211 if (predicate.test(result)) { in retry()
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerServiceHostTest.java | 228 Correspondence.BinaryPredicate<T, T> predicate = (actual, expected) -> in build() local 234 return Correspondence.from(predicate, in build()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | CollectionAppWidgetTest.java | 406 private static <T extends View> T findFirstMatchingView(View view, Predicate<View> predicate) { in findFirstMatchingView() argument 407 if (predicate.test(view)) { in findFirstMatchingView() 416 View result = findFirstMatchingView(viewGroup.getChildAt(i), predicate); in findFirstMatchingView()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherCallbackTest.java | 126 public synchronized boolean isShortcutById(String id, Predicate<ShortcutInfo> predicate) { in isShortcutById() argument 128 if (id.equals(si.getId()) && predicate.test(si)) { in isShortcutById()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SecurityLoggingTest.java | 557 Predicate<SecurityEvent> predicate) { in findEvents() argument 558 return events.stream().filter(predicate).collect(Collectors.toList()); in findEvents() 562 Predicate<SecurityEvent> predicate) { in findEvent() argument 563 final List<SecurityEvent> matches = findEvents(events, predicate); in findEvent() 569 Predicate<SecurityEvent> predicate, int expectedSize) { in assertNumberEvents() argument 571 findEvents(events, predicate).size()); in assertNumberEvents()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 102 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument 106 if (predicate.test(result)) { in retry()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArraySetTest.java | 525 Predicate<Integer> predicate = (i) -> { 528 set.removeIf(predicate); 550 setDecreasing.removeIf(predicate);
|