/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/app/shared/src/android/app/cts/ |
D | NotificationTemplateTestBase.kt | 108 predicate: (T) -> Boolean in <lambda>() 114 if (predicate(view as T)) { in <lambda>() 120 collectViews(child, type, mutableList, requireVisible, predicate) in <lambda>()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 167 String message, long timeoutSeconds, Function<Boolean, Boolean> predicate) in waitUntilWithLastTry() argument 172 if (predicate.apply(false)) { in waitUntilWithLastTry() 177 if (!predicate.apply(true)) { in waitUntilWithLastTry()
|
/cts/tests/signature/api-check/src/java/android/signature/cts/api/ |
D | SignatureTest.java | 93 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument 94 return predicate.negate(); in not()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | InterfaceChecker.java | 109 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument 110 return predicate.negate(); in not()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowManagerState.java | 266 Predicate<T> predicate, WindowContainer root, List<T> outChildren) { in collectDescendantsOfTypeIf() argument 271 if(predicate.test(clazz.cast(child))) { in collectDescendantsOfTypeIf() 275 collectDescendantsOfTypeIf(clazz, predicate, child, outChildren); in collectDescendantsOfTypeIf() 897 public int getRootTasksCount(Predicate<? super Task> predicate) { in getRootTasksCount() argument 898 return (int) mRootTasks.stream().filter(predicate).count(); in getRootTasksCount() 1416 Task getTask(Predicate<Task> predicate) { in getTask() argument 1418 if (predicate.test(task)) return task; in getTask() 1420 return predicate.test(this) ? this : null; in getTask() 1434 Activity getActivity(Predicate<Activity> predicate) { in getActivity() argument 1436 if (predicate.test(activity)) return activity; in getActivity() [all …]
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackUtils.java | 213 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument 217 if (predicate.test(result)) { in retry()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStreamTestUtils.java | 225 final Predicate<ImeEvent> predicate = event -> { 233 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout);
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerServiceHostTest.java | 227 Correspondence.BinaryPredicate<T, T> predicate = (actual, expected) -> in build() local 233 return Correspondence.from(predicate, in build()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherCallbackTest.java | 123 public synchronized boolean isShortcutById(String id, Predicate<ShortcutInfo> predicate) { in isShortcutById() argument 125 if (id.equals(si.getId()) && predicate.test(si)) { in isShortcutById()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | CollectionAppWidgetTest.java | 405 private static <T extends View> T findFirstMatchingView(View view, Predicate<View> predicate) { in findFirstMatchingView() argument 406 if (predicate.test(view)) { in findFirstMatchingView() 415 View result = findFirstMatchingView(viewGroup.getChildAt(i), predicate); in findFirstMatchingView()
|
/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 | 511 Predicate<Integer> predicate = (i) -> { 514 set.removeIf(predicate); 536 setDecreasing.removeIf(predicate);
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsAnimationTestBase.java | 154 Predicate<V> predicate) { in assertListElements() argument 158 + value, predicate.test(value)); in assertListElements()
|
D | DisplayCutoutTests.java | 442 private List<Rect> boundsWith(DisplayCutout cutout, Predicate<Rect> predicate) { in boundsWith() argument 443 return cutout.getBoundingRects().stream().filter(predicate).collect(Collectors.toList()); in boundsWith()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 724 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument 735 wasFound = predicate.test(foundValue); in waitForPredicate()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SecurityLoggingTest.java | 495 Predicate<SecurityEvent> predicate) { in findEvent() argument 497 events.stream().filter(predicate).collect(Collectors.toList()); in findEvent()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 286 protected void waitForOutput(String message, String command, Predicate<String> predicate, in waitForOutput() argument 289 while (!predicate.test(getDevice().executeShellCommand(command))) { in waitForOutput()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SubscriptionManagerTest.java | 1155 Predicate<NetworkCapabilities> predicate) { in waitForNetworkCapabilities() argument 1163 if (net.equals(network) && predicate.test(caps)) { in waitForNetworkCapabilities()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioManagerTest.java | 1931 private void assertTrueCheckTimeout(AudioManager am, Predicate<AudioManager> predicate, in assertTrueCheckTimeout() argument 1936 result = predicate.test(am); in assertTrueCheckTimeout()
|