Home
last modified time | relevance | path

Searched refs:assertions (Results 1 – 25 of 214) sorted by relevance

123456789

/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DAssertionsChecker.kt17 package android.tools.flicker.assertions in <lambda>()
32 private val assertions = mutableListOf<CompoundAssertion<T>>() in <lambda>() constant in android.tools.flicker.assertions.AssertionsChecker
35 internal fun isEmpty() = assertions.isEmpty() in <lambda>()
39 assertions.add(CompoundAssertion(assertion, name, isOptional)) in <lambda>()
44 assertions.last().add(assertion, name, isOptional) in <lambda>()
63 if (assertions.isEmpty() || entries.isEmpty()) { in <lambda>()
71 while (assertionIndex < assertions.size && entryIndex < entries.size) { in <lambda>()
72 val currentAssertion = assertions[assertionIndex] in <lambda>()
99 if (assertionIndex == assertions.size) { in <lambda>()
105 if (lastPassedAssertionIndex == -1 && assertions.isNotEmpty()) { in <lambda>()
[all …]
DCompoundAssertion.kt17 package android.tools.flicker.assertions in <lambda>()
21 private val assertions = mutableListOf<NamedAssertion<T>>() in <lambda>() constant
28 get() = assertions.all { it.isOptional } in <lambda>()
31 get() = assertions.joinToString(" and ") { it.name } in <lambda>()
41 assertions.mapNotNull { assertion -> in <lambda>()
67 assertions.add(NamedAssertion(assertion, name, optional)) in <lambda>()
79 assertions.forEachIndexed { index, assertion -> in <lambda>()
80 if (assertion != other.assertions[index]) { in <lambda>()
88 return assertions.hashCode() in <lambda>()
DServiceFlickerTest.kt17 package android.tools.flicker.assertions
20 internal val assertions = mutableListOf<AssertionData>() constant in android.tools.flicker.assertions.ServiceFlickerTest
23 assertions.add(assertion) in doProcess()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/
DAssertionTemplates.kt20 import android.tools.flicker.assertors.assertions.AppLayerBecomesInvisible
21 import android.tools.flicker.assertors.assertions.AppLayerBecomesVisible
22 import android.tools.flicker.assertors.assertions.AppLayerCoversFullScreenAtEnd
23 import android.tools.flicker.assertors.assertions.AppLayerCoversFullScreenAtStart
24 import android.tools.flicker.assertors.assertions.AppLayerIsInvisibleAtEnd
25 import android.tools.flicker.assertors.assertions.AppLayerIsInvisibleAtStart
26 import android.tools.flicker.assertors.assertions.AppLayerIsVisibleAlways
27 import android.tools.flicker.assertors.assertions.AppLayerIsVisibleAtEnd
28 import android.tools.flicker.assertors.assertions.AppLayerIsVisibleAtStart
29 import android.tools.flicker.assertors.assertions.AppWindowBecomesInvisible
[all …]
DFlickerConfigImpl.kt32 registerScenario(config.scenarioId, config.extractor, config.assertions) in <lambda>()
39 assertions: Map<AssertionTemplate, AssertionInvocationGroup>? in <lambda>()
45 registry[scenario] = FlickerConfigEntry(scenario, extractor, assertions ?: emptyMap()) in <lambda>()
55 vararg assertions: AssertionTemplate, in <lambda>()
61 assertions.forEach { assertion -> in <lambda>()
62 require(entry.assertions.keys.none { it.id == assertion.id }) { in <lambda>()
71 entry.assertions.toMutableMap().apply { this[assertion] = stabilityGroup }, in <lambda>()
90 entry.assertions.keys.firstOrNull { it.id == assertionId } in <lambda>()
99 entry.assertions.toMutableMap().apply { this[targetAssertion] = stabilityGroup }, in <lambda>()
109 entry.assertions.keys.firstOrNull { it.id == assertionId } in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/
DAssertionTemplate.kt20 import android.tools.flicker.assertions.AssertionData
21 import android.tools.flicker.assertions.FlickerTest
22 import android.tools.flicker.assertions.ServiceFlickerTest
23 import android.tools.flicker.assertions.SubjectsParser
56 return flicker.assertions + mainBlockAssertions in qualifiedAssertionName()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt21 import android.tools.flicker.assertions.AssertionResult
22 import android.tools.flicker.assertions.FlickerTest
49 assertions = in willReportFlickerAssertions()
90 val assertions = scenarioInstance.generateAssertions() in willReportFlickerAssertions() constant
91 Truth.assertThat(assertions).hasSize(2) in willReportFlickerAssertions()
93 val results = assertions.map { it.execute() } in willReportFlickerAssertions()
133 assertions = in willReportMainBlockAssertions()
164 val assertions = scenarioInstance.generateAssertions() in willReportMainBlockAssertions() constant
165 Truth.assertThat(assertions).hasSize(2) in willReportMainBlockAssertions()
167 val results = assertions.map { it.execute() } in willReportMainBlockAssertions()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/
DFlickerConfigTest.kt23 import android.tools.flicker.assertions.FlickerTest
73 val assertions = scenarioInstance.generateAssertions() in canRegisterScenarioWithAssertions() constant
75 Truth.assertThat(assertions).hasSize(1) in canRegisterScenarioWithAssertions()
76 assertions.first().execute() in canRegisterScenarioWithAssertions()
125 val assertions = scenarioInstance.generateAssertions() in canUnregisterAssertion() constant
127 Truth.assertThat(assertions).hasSize(0) in canUnregisterAssertion()
161 val assertions = scenarioInstance.generateAssertions() in canOverrideStabilityGroup() constant
163 Truth.assertThat(assertions).hasSize(1) in canOverrideStabilityGroup()
164 Truth.assertThat(assertions.first().stabilityGroup) in canOverrideStabilityGroup()
208 val assertions = scenarioInstance.generateAssertions() in registerAssertionToScenario() constant
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/
DLegacyFlickerTest.kt22 import android.tools.flicker.assertions.AssertionData
23 import android.tools.flicker.assertions.AssertionRunner
24 import android.tools.flicker.assertions.BaseFlickerTest
25 import android.tools.flicker.assertions.SubjectsParser
/platform_testing/libraries/flicker/src/android/tools/flicker/config/ime/
DImeInsetsShowAnimation.kt20 import android.tools.flicker.assertors.assertions.LayerBecomesVisible
21 import android.tools.flicker.assertors.assertions.NonAppWindowBecomesVisible
33 assertions =
DImeInsetsHideAnimation.kt20 import android.tools.flicker.assertors.assertions.LayerBecomesInvisible
21 import android.tools.flicker.assertors.assertions.NonAppWindowBecomesInvisible
34 assertions =
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DScreenLockedAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DVisibleWindowsShownMoreThanOneConsecutiveEntry.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowIsInvisibleAtEnd.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppLayerIsInvisibleAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowIsInvisibleAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowIsTopWindowAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowOnTopAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppLayerIsVisibleAlways.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppLayerIsInvisibleAtEnd.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DLayerIsInvisibleAtEnd.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowOnTopAtEnd.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DLayerIsInvisibleAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DAppWindowIsVisibleAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest
DNonAppWindowIsVisibleAtStart.kt17 package android.tools.flicker.assertors.assertions
20 import android.tools.flicker.assertions.FlickerTest

123456789