Home
last modified time | relevance | path

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

/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DMoreCollectors.java43 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/
DTestUtils.java52 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/common/device-side/util/src/com/android/compatibility/common/util/
DTestUtils.java52 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/hostsidetests/statsd/src/android/cts/statsd/metric/
DDurationMetricsTests.java71 Predicate predicate = Predicate.newBuilder() in testDurationMetric() local
75 builder.addPredicate(predicate); in testDurationMetric()
81 .setWhat(predicate.getId()) in testDurationMetric()
136 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithCondition() local
151 .addPredicate(predicate) in testDurationMetricWithCondition()
158 .setWhat(predicate.getId()) in testDurationMetricWithCondition()
249 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithActivation() local
253 builder.addPredicate(predicate); in testDurationMetricWithActivation()
259 .setWhat(predicate.getId()) in testDurationMetricWithActivation()
349 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithConditionAndActivation() local
[all …]
DGaugeMetricsTests.java71 Predicate predicate = Predicate.newBuilder() in testGaugeMetric() local
75 builder.addPredicate(predicate); in testGaugeMetric()
84 .setCondition(predicate.getId()) in testGaugeMetric()
237 Predicate predicate = Predicate.newBuilder() in testPulledGaugeMetricWithConditionAndActivation() local
241 builder.addPredicate(predicate); in testPulledGaugeMetricWithConditionAndActivation()
249 .setCondition(predicate.getId()) in testPulledGaugeMetricWithConditionAndActivation()
DValueMetricsTests.java369 Predicate predicate = Predicate.newBuilder() in testValueMetricWithConditionAndActivation() local
373 builder.addPredicate(predicate); in testValueMetricWithConditionAndActivation()
381 .setCondition(predicate.getId()) in testValueMetricWithConditionAndActivation()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DSignatureTest.java85 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument
86 return predicate.negate(); in not()
/cts/tests/signature/lib/common/src/android/signature/cts/
DInterfaceChecker.java92 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument
93 return predicate.negate(); in not()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java197 final Predicate<ImeEvent> predicate = event -> {
205 return expectEvent(stream, predicate, EventFilterMode.CHECK_EXIT_EVENT_ONLY, timeout);
/cts/hostsidetests/statsd/
DPROCSTATSQ_PULL.pbtxt40 predicate {
DPROCSTATSQ_PULL_PKG_PROC.pbtxt40 predicate {
DPROCSTATSQ_PROCS_STATE_CACHED_EMPTY_DURATION.pbtxt40 predicate {
DPROCSTATSQ_PROCS_STATE_TOP_DURATION.pbtxt60 predicate {
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackUtils.java189 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument
193 if (predicate.test(result)) { in retry()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java139 private void waitUntil(String message, BooleanSupplierWithThrow predicate) throws Exception { in waitUntil() argument
140 TestUtils.waitUntil(message, TIMEOUT_MS, predicate); in waitUntil()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerLauncherCallbackTest.java123 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/util/src/android/util/cts/
DArraySetTest.java511 Predicate<Integer> predicate = (i) -> {
514 set.removeIf(predicate);
536 setDecreasing.removeIf(predicate);
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayCutoutTests.java286 private List<Rect> boundsWith(DisplayCutout cutout, Predicate<Rect> predicate) { in boundsWith() argument
287 return cutout.getBoundingRects().stream().filter(predicate).collect(Collectors.toList()); in boundsWith()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java636 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument
647 wasFound = predicate.test(foundValue); in waitForPredicate()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java769 Predicate<NetworkCapabilities> predicate) { in waitForNetworkCapabilities() argument
777 if (net.equals(network) && predicate.test(caps)) { in waitForNetworkCapabilities()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java438 Predicate<SecurityEvent> predicate) { in findEvent() argument
440 events.stream().filter(predicate).collect(Collectors.toList()); in findEvent()