Home
last modified time | relevance | path

Searched refs:combinedCondition (Results 1 – 2 of 2) sorted by relevance

/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/
DMockA11yImeEventStreamUtils.java111 final Predicate<MockA11yImeEvent> combinedCondition; in expectA11yImeEvent() local
114 combinedCondition = condition; in expectA11yImeEvent()
117 combinedCondition = event -> event.isEnterEvent() && condition.test(event); in expectA11yImeEvent()
120 combinedCondition = event -> !event.isEnterEvent() && condition.test(event); in expectA11yImeEvent()
125 final Optional<MockA11yImeEvent> result = stream.seekToFirst(combinedCondition); in expectA11yImeEvent()
218 final Predicate<MockA11yImeEvent> combinedCondition;
221 combinedCondition = condition;
224 combinedCondition = event -> event.isEnterEvent() && condition.test(event);
227 combinedCondition = event -> !event.isEnterEvent() && condition.test(event);
236 if (stream.findFirst(combinedCondition).isPresent()) {
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java132 final var combinedCondition = filterMode.combine(condition); in expectEvent() local
137 "event " + combinedCondition + " not found within the timeout: " in expectEvent()
140 Optional<ImeEvent> result = stream.seekToFirst(combinedCondition); in expectEvent()
150 "expectEvent " + combinedCondition + " interrupted: " + stream.dump(), e); in expectEvent()
318 final var combinedCondition = filterMode.combine(condition);
324 if (stream.findFirst(combinedCondition).isPresent()) {
326 "notExpectEvent " + combinedCondition + " failed: " + stream.dump());
333 "notExpectEvent " + combinedCondition + " failed: " + stream.dump(), e);