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/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-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/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.java87 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument
88 return predicate.negate(); in not()
/cts/tests/signature/lib/common/src/android/signature/cts/
DInterfaceChecker.java91 private static <T> Predicate<T> not(Predicate<T> predicate) { in not() argument
92 return predicate.negate(); in not()
/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/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/tests/tests/rcs/src/android/telephony/ims/cts/
DRcsEventTest.java162 private void assertMatchingEventInQuery(int queryMessageType, Predicate<RcsEvent> predicate) in assertMatchingEventInQuery() argument
169 boolean foundMatch = queryResult.getEvents().stream().anyMatch(predicate); in assertMatchingEventInQuery()
/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/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/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.java566 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument
577 wasFound = predicate.test(foundValue); in waitForPredicate()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java639 Predicate<NetworkCapabilities> predicate) { in waitForNetworkCapabilities() argument
647 if (net.equals(network) && predicate.test(caps)) { in waitForNetworkCapabilities()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java434 Predicate<SecurityEvent> predicate) { in findEvent() argument
436 events.stream().filter(predicate).collect(Collectors.toList()); in findEvent()