Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerTraceSubject.kt115 notContains(componentMatcher, isOptional = false) in <lambda>()
120 isOptional: Boolean in <lambda>()
122 addAssertion("notContains(${componentMatcher.toWindowIdentifier()})", isOptional) { in <lambda>()
130 ): WindowManagerTraceSubject = isAboveAppWindowVisible(componentMatcher, isOptional = false) in <lambda>()
135 isOptional: Boolean in <lambda>()
139 isOptional in <lambda>()
148 ): WindowManagerTraceSubject = isAboveAppWindowInvisible(componentMatcher, isOptional = false) in <lambda>()
153 isOptional: Boolean in <lambda>()
157 isOptional in <lambda>()
166 ): WindowManagerTraceSubject = isBelowAppWindowVisible(componentMatcher, isOptional = false) in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DNamedAssertion.kt30 override val isOptional: Boolean = false constant in android.tools.flicker.assertions.NamedAssertion
47 if (isOptional != other.isOptional) { in invoke()
56 result = 31 * result + isOptional.hashCode() in hashCode()
DAssertionsChecker.kt38 fun add(name: String, isOptional: Boolean = false, assertion: (T) -> Unit) { in <lambda>()
39 assertions.add(CompoundAssertion(assertion, name, isOptional)) in <lambda>()
43 fun append(name: String, isOptional: Boolean = false, assertion: (T) -> Unit) { in <lambda>()
44 assertions.last().add(assertion, name, isOptional) in <lambda>()
90 if (currentAssertion.isOptional) { in <lambda>()
119 if (untestedAssertions.any { !it.isOptional }) { in <lambda>()
DCompoundAssertion.kt27 override val isOptional in <lambda>() constant
28 get() = assertions.all { it.isOptional } in <lambda>()
49 val nonOptionalFailure = failures.firstOrNull { !it.first.isOptional } in <lambda>()
60 if (firstFailure != null && isOptional) { in <lambda>()
DAssertion.kt25 val isOptional: Boolean constant
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayersTraceSubject.kt121 notContains(componentMatcher, isOptional = false) in <lambda>()
124 fun notContains(componentMatcher: IComponentMatcher, isOptional: Boolean): LayersTraceSubject = in <lambda>()
126 addAssertion("notContains(${componentMatcher.toLayerIdentifier()})", isOptional) { in <lambda>()
133 contains(componentMatcher, isOptional = false) in <lambda>()
136 fun contains(componentMatcher: IComponentMatcher, isOptional: Boolean): LayersTraceSubject = in <lambda>()
138 addAssertion("contains(${componentMatcher.toLayerIdentifier()})", isOptional) { in <lambda>()
145 isVisible(componentMatcher, isOptional = false) in <lambda>()
148 fun isVisible(componentMatcher: IComponentMatcher, isOptional: Boolean): LayersTraceSubject = in <lambda>()
150 addAssertion("isVisible(${componentMatcher.toLayerIdentifier()})", isOptional) { in <lambda>()
157 isInvisible(componentMatcher, isOptional = false) in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DAssertionsCheckerTest.kt54 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalStart()
65 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalEnd()
73 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMiddle()
81 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
82 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
84 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
85 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
87 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
88 checker.add("isData1", isOptional = true) { it.isData1() } in canCheckChangingAssertionsIgnoreOptionalMultiple()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DAppLayerBecomesVisible.kt37 .isVisible(ComponentNameMatcher.SNAPSHOT, isOptional = true) in doEvaluate()
39 .isVisible(ComponentNameMatcher.SPLASH_SCREEN, isOptional = true) in doEvaluate()
41 .isVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
DAppWindowBecomesVisible.kt37 .isAppWindowVisible(ComponentNameMatcher.SNAPSHOT, isOptional = true) in doEvaluate()
39 .isAppWindowVisible(ComponentNameMatcher.SPLASH_SCREEN, isOptional = true) in doEvaluate()
41 .isAppWindowVisible(component.build(scenarioInstance), isOptional = true) in doEvaluate()
DSplitAppLayerBoundsBecomesVisible.kt48 notContains(splitScreenDivider.or(app), isOptional = true) in doEvaluate()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/
DInputMethodManagerServiceTraceSubject.kt64 isOptional: Boolean = false, in invoke()
66 ): InputMethodManagerServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
DImeClientTraceSubject.kt59 isOptional: Boolean = false, in invoke()
61 ): ImeClientTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
DInputMethodServiceTraceSubject.kt59 isOptional: Boolean = false, in invoke()
61 ): InputMethodServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/
DFlickerTraceSubject.kt45 isOptional: Boolean = false, in <lambda>()
49 assertionsChecker.add(name, isOptional, assertion) in <lambda>()
51 assertionsChecker.append(name, isOptional, assertion) in <lambda>()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/
DValidateScrollConfig.java147 private String validateAndGetValue(String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetValue() argument
155 if (!isOptional) { in validateAndGetValue()
DValidateWorkflowTask.java164 String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetStringValue() argument
172 if (!isOptional) { in validateAndGetStringValue()
DValidateUiElement.java151 private String validateAndGetValue(String key, JsonObject jsonObject, boolean isOptional) { in validateAndGetValue() argument
159 if (!isOptional) { in validateAndGetValue()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/
DWindowManagerTraceSubjectTest.kt247 .isAppSnapshotStartingWindowVisibleFor(app2, isOptional = true) in <lambda>()
251 .isAppSnapshotStartingWindowVisibleFor(app1, isOptional = true) in <lambda>()
DWindowManagerStateSubjectTest.kt415 .isAppWindowVisible(ComponentNameMatcher.SNAPSHOT, isOptional = true) in canDetectWindowVisibilityWhen2WindowsHaveSameName()
417 .isAppWindowVisible(ComponentNameMatcher.SPLASH_SCREEN, isOptional = true) in canDetectWindowVisibilityWhen2WindowsHaveSameName()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/
DWorkflowTask.java269 boolean isOptional) { in validateAndClickUiElement() argument
347 if (isOptional && !isValidUiObject(uiObject)) { in validateAndClickUiElement()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayersTraceSubjectTest.kt308 .isSplashScreenVisibleFor(TestComponents.SIMPLE_APP, isOptional = false) in <lambda>()