/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/ |
D | AssertionsChecker.kt | 17 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 …]
|
D | Assertions.kt | 17 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()
|
D | FlickerAssertionError.kt | 17 package com.android.server.wm.flicker.assertions
|
D | AssertionData.kt | 17 package com.android.server.wm.flicker.assertions
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/ |
D | FlickerService.kt | 35 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()
|
D | AssertionEngine.kt | 34 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>()
|
D | FlickerCollectionHelper.kt | 80 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/ |
D | TransitionAssertor.kt | 36 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>()
|
D | AssertionConfigParser.kt | 100 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/ |
D | RotationAssertionsTest.kt | 36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.RotationAssertionsTest 40 private val rotationAssertor = TransitionAssertor(assertions) { } in <lambda>()
|
D | PipEnterAssertionsTest.kt | 36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.PipEnterAssertionsTest 40 private val pipEnterAssertor = TransitionAssertor(assertions) { } in <lambda>()
|
D | AppLaunchAssertionsTest.kt | 36 private val assertions = constant 40 private val appLaunchAssertor = TransitionAssertor(assertions) { } in <lambda>()
|
D | PipExitAssertionsTest.kt | 36 private val assertions = constant in com.android.server.wm.flicker.service.assertors.PipExitAssertionsTest 40 private val pipExitAssertor = TransitionAssertor(assertions) { } in <lambda>()
|
D | AppCloseAssertionsTest.kt | 36 private val assertions = constant 40 private val appCloseAssertor = TransitionAssertor(assertions) { } in <lambda>()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | FlickerDSLTest.kt | 30 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/ |
D | FlickerTraceSubject.kt | 19 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>()
|
D | FlickerFailureStrategy.kt | 19 import com.android.server.wm.flicker.assertions.FlickerSubject
|
D | FlickerSubjectException.kt | 19 import com.android.server.wm.flicker.assertions.FlickerSubject
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/ |
D | FlickerResultsCollector.kt | 47 private fun assertionsToMetrics(assertions: Map<String, Int>): Map<String, Int> { in assertionsToMetrics() 50 for ((assertionName, result) in assertions) { in assertionsToMetrics()
|
D | FlickerMetricsCollectorRule.kt | 57 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/ |
D | FlickerResult.kt | 20 import com.android.server.wm.flicker.assertions.AssertionData in <lambda>() 21 import com.android.server.wm.flicker.assertions.FlickerAssertionError in <lambda>()
|
D | FlickerRunResult.kt | 21 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/ |
D | EventLogSubject.kt | 19 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/ |
D | README.md | 16 …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/ |
D | WindowStateSubject.kt | 19 import com.android.server.wm.flicker.assertions.Assertion in <lambda>() 20 import com.android.server.wm.flicker.assertions.FlickerSubject in <lambda>()
|