Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 41) sorted by relevance

12

/platform_testing/libraries/junit-rules/src/
DConditionalIgnoreRule.java32 Supplier<Boolean> condition; in apply() local
33 Class<? extends Supplier<Boolean>> conditionType = annotation.condition(); in apply()
48 condition = in apply()
59 if (condition.get()) { in apply()
60 return new IgnoreStatement(condition); in apply()
69 IgnoreStatement(Supplier<Boolean> condition) { in IgnoreStatement() argument
70 this.mCondition = condition; in IgnoreStatement()
DConditionalIgnore.java27 Class<? extends Supplier<Boolean>> condition(); in condition() method
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DWaitCondition.kt50 private val condition: Condition<T>, constant in android.tools.traces.WaitCondition
70 onLog?.invoke("***Waiting for $condition", false) in doWaitFor()
96 return if (condition.isSatisfied(currState)) { in doWaitForRetry()
97 onLog?.invoke("***Waiting for $condition ... Success!", false) in doWaitForRetry()
101 val detailedMessage = condition.getMessage(currState) in doWaitForRetry()
113 condition.getMessage(currState) in doNotifyFailure()
115 condition.toString() in doNotifyFailure()
133 fun withCondition(condition: Condition<T>) = apply { conditions.add(condition) } in <lambda>()
135 fun withCondition(message: String, condition: (T) -> Boolean) = apply { in <lambda>()
136 withCondition(Condition(message, condition)) in <lambda>()
DCondition.kt49 protected open val condition: (T) -> Boolean constant in android.tools.traces.Condition
53 return condition.invoke(value) in isSatisfied()
57 fun negate(): Condition<T> = Condition(message = "!$message") { !this.condition.invoke(it) } in <lambda>()
DConditionList.kt40 override val condition: (T) -> Boolean in <lambda>() constant in android.tools.traces.ConditionList
41 get() = { value -> conditions.all { condition -> condition.isSatisfied(value) } } in <lambda>() method
/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil2.java162 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, boolean longpress, in pressKeyCodeAndWait() argument
164 return mDevice.performActionAndWait(new KeyEventRunnable(keyCode, longpress), condition, in pressKeyCodeAndWait()
168 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
169 return pressKeyCodeAndWait(keyCode, condition, false, timeout); in pressKeyCodeAndWait()
172 public <R> R pressDPadCenterAndWait(EventCondition<R> condition, long timeout) { in pressDPadCenterAndWait() argument
174 condition, timeout); in pressDPadCenterAndWait()
177 public <R> R pressEnterAndWait(EventCondition<R> condition, long timeout) { in pressEnterAndWait() argument
179 condition, timeout); in pressEnterAndWait()
DDPadUtil.java163 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, boolean longpress, in pressKeyCodeAndWait() argument
165 return mDevice.performActionAndWait(new KeyEventRunnable(keyCode, longpress), condition, in pressKeyCodeAndWait()
169 public <R> R pressKeyCodeAndWait(int keyCode, EventCondition<R> condition, long timeout) { in pressKeyCodeAndWait() argument
170 return pressKeyCodeAndWait(keyCode, condition, false, timeout); in pressKeyCodeAndWait()
173 public <R> R pressDPadCenterAndWait(EventCondition<R> condition, long timeout) { in pressDPadCenterAndWait() argument
175 condition, timeout); in pressDPadCenterAndWait()
178 public <R> R pressEnterAndWait(EventCondition<R> condition, long timeout) { in pressEnterAndWait() argument
180 condition, timeout); in pressEnterAndWait()
/platform_testing/libraries/health/utils/src/android/platform/test/util/
DHealthTestingUtils.java113 public static void waitForCondition(Supplier<String> message, Condition condition) {
114 waitForCondition(message, condition, WAIT_TIME_MS);
125 Supplier<String> message, Condition condition, long timeoutMs) {
133 return condition.isTrue();
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DGestures.kt35 condition: () -> Boolean in waitForObjectCondition()
38 condition = condition, in waitForObjectCondition()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DExactComponentIdMatcher.kt55 condition: (Collection<Layer>) -> Boolean in check()
56 ): Boolean = condition(layers.filter { it.id == layerId }) in check()
DEdgeExtensionComponentMatcher.kt52 condition: (Collection<Layer>) -> Boolean in check()
53 ): Boolean = condition(layers.filter { layerMatchesAnyOf(it) }) in check()
DFullComponentIdMatcher.kt69 condition: (Collection<Layer>) -> Boolean in check()
70 ): Boolean = condition(layers.filter { layerMatchesAnyOf(it) }) in check()
DComponentSplashScreenMatcher.kt71 condition: (Collection<Layer>) -> Boolean in check()
77 return condition(splashScreenLayer) in check()
DOrComponentMatcher.kt59 condition: (Collection<Layer>) -> Boolean in <lambda>()
62 oredComponent.check(layers) { condition(it) } in <lambda>()
DIComponentMatcher.kt106 fun check(layers: Collection<Layer>, condition: (Collection<Layer>) -> Boolean): Boolean in windowMatchesAnyOf()
/platform_testing/tests/automotive/functional/navigationbar/src/android/platform/tests/
DBrightnessPaletteTest.java51 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
58 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
DNavigationBarTest.java57 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
66 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
/platform_testing/tests/automotive/functional/settings/src/android/platform/tests/
DSettingSearchTest.java71 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
84 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
/platform_testing/tests/automotive/functional/notifications/src/android/platform/tests/
DNotificationTest.java89 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
112 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DWaitUtils.kt68 condition: () -> Boolean, in ensureThat()
73 waitToBecomeTrue(description, timeout, condition).run { in ensureThat()
106 condition: () -> Boolean, in waitToBecomeTrue()
124 if (condition()) { in waitToBecomeTrue()
DUiObjectUtils.kt139 condition: (UiObject2) -> Boolean = { true } in scrollUntilFound()
144 if (f?.let { condition(it) } == true) return f in _()
/platform_testing/tests/automotive/functional/uxrestriction/src/android/platform/tests/
DUxRestrictionFacetBarTest.java71 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
81 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/
DAbstractLeanbackAppHelper.java227 public UiObject2 select(SelectCondition condition, UiObject2 container, Direction direction) { in select() argument
229 while (!condition.apply(focus)) { in select()
261 public UiObject2 selectBidirect(SelectCondition condition, UiObject2 container,
263 UiObject2 object = select(condition, container, direction);
265 object = select(condition, container, Direction.reverse(direction));
/platform_testing/tests/automotive/functional/profileicon/src/android/platform/tests/
DProfileIconTest.java54 @ConditionalIgnore(condition = IgnoreOnPortrait.class)
/platform_testing/tests/automotive/functional/multiuser/src/android/platform/tests/
DDeleteGuestNotAllowed.java65 @ConditionalIgnore(condition = IgnoreOnPortrait.class)

12