Home
last modified time | relevance | path

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

12

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DAssertionsChecker.kt17 package com.android.server.wm.flicker.assertions
33 private val assertions = mutableListOf<CompoundAssertion<T>>() constant
40 assertions.clear() in clear()
47 assertions.add(CompoundAssertion(assertion, name, isOptional)) in add()
54 assertions.last().add(assertion, name, isOptional) in append()
80 if (assertions.isEmpty() || entries.isEmpty()) { in test()
89 while (assertionIndex < assertions.size && entryIndex < entries.size) { in test()
90 val currentAssertion = assertions[assertionIndex] in test()
118 if (assertionIndex == assertions.size) { in test()
125 if (lastPassedAssertionIndex == -1 && assertions.isNotEmpty() && failures.isEmpty()) { in test()
[all …]
DAssertions.kt17 package com.android.server.wm.flicker.assertions in <lambda>()
49 private val assertions = mutableListOf<NamedAssertion<T>>() constant
56 get() = assertions.all { it.isOptional } in <lambda>()
59 get() = assertions.joinToString(" and ") { it.name } in <lambda>()
68 val failures = assertions in invoke()
93 assertions.add(NamedAssertion(assertion, name, optional)) in toString()
DFlickerAssertionError.kt17 package com.android.server.wm.flicker.assertions
DAssertionData.kt17 package com.android.server.wm.flicker.assertions
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/
DFlickerService.kt35 private val assertions: List<AssertionData> = AssertionData.readConfiguration() constant in com.android.server.wm.flicker.service.FlickerService
57 val assertionEngine = AssertionEngine(assertions) { Log.v("$FLICKER_TAG-ASSERT", it) } in process()
58 val (errorTrace, assertions) = assertionEngine.analyze(wmTrace, layersTrace, tagTrace) in process() constant
61 return errorTrace to assertions in process()
DAssertionEngine.kt34 private val assertions: List<AssertionData>, in <lambda>() constant in com.android.server.wm.flicker.service.AssertionEngine
37 private val knownTypes = assertions.map { it.transitionType } in <lambda>()
54 val assertionsOfType = assertions in <lambda>()
127 assertions: List<AssertionData>, in <lambda>()
131 val results = assertions.associate { in <lambda>()
DFlickerCollectionHelper.kt80 val (errors, assertions) = flickerService.process(wmTrace, layersTrace, outputDir) in <lambda>() constant
83 return assertionsToMetrics(assertions) in <lambda>()
100 private fun assertionsToMetrics(assertions: Map<String, Int>): Map<String, Int> { in <lambda>()
103 for ((assertionName, result) in assertions) { in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/assertors/
DTransitionAssertor.kt36 private val assertions: List<AssertionData>, in <lambda>() constant in com.android.server.wm.flicker.service.assertors.TransitionAssertor
64 val assertions = assertions.filter { it.category == categoryKey } in <lambda>() constant
65 return runAssertionsOnSubjects(tag, wmTrace, layersTrace, assertions) in <lambda>()
72 assertions: List<AssertionData> in <lambda>()
77 assertions.forEach { in <lambda>()
DAssertionConfigParser.kt100 val assertions = mutableListOf<AssertionData>() in parseAssertionArray() constant
114 assertions.add( in parseAssertionArray()
121 return assertions in parseAssertionArray()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/assertors/
DRotationAssertionsTest.kt36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.RotationAssertionsTest
40 private val rotationAssertor = TransitionAssertor(assertions) { } in <lambda>()
DPipEnterAssertionsTest.kt36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.PipEnterAssertionsTest
40 private val pipEnterAssertor = TransitionAssertor(assertions) { } in <lambda>()
DAppLaunchAssertionsTest.kt36 private val assertions = constant
40 private val appLaunchAssertor = TransitionAssertor(assertions) { } in <lambda>()
DPipExitAssertionsTest.kt36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.PipExitAssertionsTest
40 private val pipExitAssertor = TransitionAssertor(assertions) { } in <lambda>()
DAppCloseAssertionsTest.kt36 private val assertions = constant
40 private val appCloseAssertor = TransitionAssertor(assertions) { } in <lambda>()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DFlickerDSLTest.kt30 import com.android.server.wm.flicker.assertions.AssertionData
31 import com.android.server.wm.flicker.assertions.FlickerAssertionError
32 import com.android.server.wm.flicker.assertions.FlickerSubject
308 val assertions = listOf( in runsAssertionsOnSuccessfulTransitionsEvenIfSomeFailToExecute() constant
321 assertions = assertions) in runsAssertionsOnSuccessfulTransitionsEvenIfSomeFailToExecute()
324 .isEqualTo(assertions.size * (repetitions - 1)) in runsAssertionsOnSuccessfulTransitionsEvenIfSomeFailToExecute()
464 private fun runFlicker(flicker: Flicker, assertions: List<AssertionData>) { in runFlicker()
468 for (assertion in assertions) { in runFlicker()
490 assertions: List<AssertionData> = listOf(PASS_ASSERTION) in runAndAssertFlickerFailsWithException()
493 runFlicker(flicker, assertions) in runAndAssertFlickerFailsWithException()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/
DFlickerTraceSubject.kt19 import com.android.server.wm.flicker.assertions.Assertion in <lambda>()
20 import com.android.server.wm.flicker.assertions.AssertionsChecker in <lambda>()
21 import com.android.server.wm.flicker.assertions.FlickerSubject in <lambda>()
DFlickerFailureStrategy.kt19 import com.android.server.wm.flicker.assertions.FlickerSubject
DFlickerSubjectException.kt19 import com.android.server.wm.flicker.assertions.FlickerSubject
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DFlickerResultsCollector.kt47 private fun assertionsToMetrics(assertions: Map<String, Int>): Map<String, Int> { in assertionsToMetrics()
50 for ((assertionName, result) in assertions) { in assertionsToMetrics()
DFlickerMetricsCollectorRule.kt57 val assertions = AssertionData.readConfiguration().filter { in <lambda>() constant
63 }.filter { error -> assertions.contains(error.assertionName) } in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DFlickerResult.kt20 import com.android.server.wm.flicker.assertions.AssertionData in <lambda>()
21 import com.android.server.wm.flicker.assertions.FlickerAssertionError in <lambda>()
DFlickerRunResult.kt21 import com.android.server.wm.flicker.assertions.AssertionData
22 import com.android.server.wm.flicker.assertions.FlickerAssertionError
23 import com.android.server.wm.flicker.assertions.FlickerAssertionErrorBuilder
24 import com.android.server.wm.flicker.assertions.FlickerSubject
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/eventlog/
DEventLogSubject.kt19 import com.android.server.wm.flicker.assertions.AssertionsChecker in <lambda>()
20 import com.android.server.wm.flicker.assertions.FlickerSubject in <lambda>()
/platform_testing/libraries/flicker/
DREADME.md16 …droid.com/devices/graphics/tracing-win-transitions) and exposes common assertions that can be test…
58 …st principles set out by Google Truth (not supporting nested assertions, keeping assertions simple…
62 The trace subjects expose methods to filter the range of entries and test for changing assertions.
80 // check a change in assertions, e.g. wallpaper window is visible,
89 All assertions return `Result` which contains a `success` flag, `assertionName` string identifier, …
90 The `reason` string is build along the way with all the details as to why the assertions failed and…
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/windowmanager/
DWindowStateSubject.kt19 import com.android.server.wm.flicker.assertions.Assertion in <lambda>()
20 import com.android.server.wm.flicker.assertions.FlickerSubject in <lambda>()

12