/platform_testing/libraries/flicker/src/android/tools/flicker/config/ |
D | FlickerConfigImpl.kt | 37 scenario: ScenarioId, in <lambda>() 41 require(!registry.containsKey(scenario)) { in <lambda>() 42 "${this::class.simpleName} already has a registered scenario with name '$scenario'." in <lambda>() 45 registry[scenario] = FlickerConfigEntry(scenario, extractor, assertions ?: emptyMap()) in <lambda>() 48 override fun unregisterScenario(scenario: ScenarioId) = apply { in <lambda>() 49 val entry = registry[scenario] ?: error("No scenario named '$scenario' registered.") in <lambda>() 50 registry.remove(scenario) in <lambda>() 54 scenario: ScenarioId, in <lambda>() 58 val entry = registry[scenario] in <lambda>() 59 require(entry != null) { "No scenario named '$scenario' registered." } in <lambda>() [all …]
|
D | FlickerConfig.kt | 26 scenario: ScenarioId, 32 scenario: ScenarioId, 39 fun unregisterScenario(scenario: ScenarioId): FlickerConfig 42 scenario: ScenarioId, 47 fun unregisterAssertion(scenario: ScenarioId, assertionId: AssertionId): FlickerConfig
|
/platform_testing/libraries/flicker/src/android/tools/flicker/datastore/ |
D | DataStore.kt | 57 fun containsResult(scenario: Scenario): Boolean = in containsResult() 58 android.tools.flicker.datastore.DataStore.cachedResults.containsKey(scenario) in containsResult() 65 fun addResult(scenario: Scenario, result: IResultData) { in containsResult() 66 require(!android.tools.flicker.datastore.DataStore.containsResult(scenario)) { in containsResult() 67 "Result for $scenario already in data store" in containsResult() 69 android.tools.flicker.datastore.DataStore.cachedResults[scenario] = result in containsResult() 77 fun replaceResult(scenario: Scenario, newResult: IResultData) { in replaceResult() 78 if (!android.tools.flicker.datastore.DataStore.containsResult(scenario)) { in replaceResult() 79 error("Result for $scenario not in data store") in replaceResult() 81 android.tools.flicker.datastore.DataStore.cachedResults[scenario] = newResult in replaceResult() [all …]
|
D | CachedAssertionRunner.kt | 33 private val scenario: Scenario, constant in android.tools.flicker.datastore.CachedAssertionRunner 35 android.tools.flicker.datastore.CachedResultReader(scenario, TRACE_CONFIG_REQUIRE_CHANGES) 39 val result = DataStore.getResult(scenario) in doUpdateStatus() 41 DataStore.replaceResult(scenario, result) in doUpdateStatus()
|
D | CachedResultReader.kt | 26 private val scenario: Scenario, constant in android.tools.flicker.datastore.CachedResultReader 30 android.tools.flicker.datastore.DataStore.getResult(scenario), 34 override fun toString(): String = "$scenario ($reader)" in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/ |
D | FlickerServiceTracesCollector.kt | 34 private var scenario: Scenario? = null variable in android.tools.flicker.FlickerServiceTracesCollector 38 override fun start(scenario: Scenario) { in start() 40 require(this.scenario == null) { "Trace still running" } in start() 42 this.scenario = scenario in start() 48 val scenario = this.scenario in stop() constant 49 require(scenario != null) { "Scenario not set - make sure trace was started properly" } in stop() 55 val writer = ResultWriter().forScenario(scenario).withOutputDir(outputDir) in stop() 57 this.scenario = null in stop()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/ |
D | ArtifactBuilder.kt | 42 private var scenario: Scenario? = null in <lambda>() variable in android.tools.traces.io.ArtifactBuilder 47 fun withScenario(value: Scenario): ArtifactBuilder = apply { scenario = value } in <lambda>() 59 val scenario = scenario ?: error("Missing scenario") in <lambda>() constant 60 require(!scenario.isEmpty) { "Scenario shouldn't be empty" } in <lambda>() 66 FileArtifact(scenario, artifactFile, counter) in <lambda>() 81 val scenario = scenario ?: error("Missing scenario") in <lambda>() constant 84 var artifactAlreadyExists = existsArchiveFor(outputDir, scenario, counter) in <lambda>() 86 artifactAlreadyExists = existsArchiveFor(outputDir, scenario, ++counter) in <lambda>() 96 "An archive for $scenario already exists in ${outputDir.absolutePath}. " + in <lambda>() 100 return runStatus.generateArchiveNameFor(scenario, counter) in <lambda>() [all …]
|
D | ResultWriter.kt | 35 protected var scenario: Scenario = ScenarioBuilder().createEmptyScenario() variable in android.tools.traces.io.ResultWriter 44 fun forScenario(_scenario: Scenario) = apply { scenario = _scenario } in <lambda>() 77 "Add trace result file=$artifact type=$traceType tag=$tag scenario=$scenario" in <lambda>() 88 require(!scenario.isEmpty) { "Scenario shouldn't be empty" } in write() 96 .withScenario(scenario) in write()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/ |
D | LegacyFlickerTest.kt | 43 var scenario: ScenarioImpl = ScenarioBuilder().createEmptyScenario() as ScenarioImpl variable in android.tools.flicker.legacy.LegacyFlickerTest 46 override fun toString(): String = scenario.toString() in toString() 49 scenario = scenarioBuilder.forClass(testClass).build() as ScenarioImpl in toString() 50 return scenario in toString() 55 get() = resultReaderProvider(scenario) 58 require(!scenario.isEmpty) { "Scenario shouldn't be empty" } in doProcess() 59 runnerProvider.invoke(scenario).runAssertion(assertion)?.let { throw it } in doProcess()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/ |
D | TransitionRunner.kt | 42 private val scenario: Scenario, constant in android.tools.flicker.legacy.runner.TransitionRunner 49 resultWriter.forScenario(scenario).withOutputDir(flicker.outputDir) in execute() 82 .around(NavigationModeRule(scenario.navBarMode.value, false)) in buildTestRuleChain() 92 scenario.startRotation, in buildTestRuleChain() 103 scenario, in buildTestRuleChain() 110 .around(SetupTeardownRule(flicker, resultWriter, scenario, instrumentation)) in buildTestRuleChain() 112 .around(TransitionExecutionRule(flicker, resultWriter, scenario, instrumentation)) in buildTestRuleChain()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/ |
D | LegacyFlickerTraceCollector.kt | 25 class LegacyFlickerTraceCollector(private val scenario: Scenario) : TracesCollector { constant in android.tools.flicker.junit.LegacyFlickerTraceCollector 26 override fun start(scenario: Scenario) { in start() 33 scenario, in stop()
|
/platform_testing/tests/health/scenarios/tests/src/android/platform/test/scenario/profile/ |
D | CommonUserProfileTest.java | 17 package android.platform.test.scenario.profile; 29 android.platform.test.scenario.generic.OpenApp.class, 30 android.platform.test.scenario.sleep.Idle.class,
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/ |
D | LegacyFlickerDecoratorTest.kt | 47 val scenario = in <lambda>() constant 57 val helper = LegacyFlickerDecorator(test.testClass, scenario, mockTransitionRunner, inner) in <lambda>() 66 val scenario = in <lambda>() constant 77 LegacyFlickerDecorator(test.testClass, scenario, mockTransitionRunner, inner) in <lambda>() 97 Mockito.verify(mockTransitionRunner).runTransition(scenario, invokerTest, description) in <lambda>() 102 val scenario = in <lambda>() constant 110 val transitionRunner = LegacyFlickerJUnit4ClassRunner(test, scenario).transitionRunner in <lambda>() 113 val decorator = LegacyFlickerDecorator(test.testClass, scenario, transitionRunner, inner) in <lambda>() 198 scenario = null, in <lambda>() 220 scenario = null, in <lambda>()
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/businesscard/ |
D | DismissDialogs.java | 16 package android.platform.test.scenario.businesscard; 21 import android.platform.test.scenario.annotation.AppSetup; 22 import android.platform.test.scenario.annotation.Scenario;
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/ |
D | DismissDialogs.java | 16 package android.platform.test.scenario.performancelaunch; 21 import android.platform.test.scenario.annotation.AppSetup; 22 import android.platform.test.scenario.annotation.Scenario;
|
/platform_testing/tests/automotive/health/settings/tests/src/android/platform/scenario/settings/ |
D | OpenHotAppMicrobenchmark.java | 17 package android.platform.test.scenario.settings; 20 import android.platform.test.scenario.HotAppStartupRunRule;
|
D | OpenAppMicrobenchmark.java | 17 package android.platform.test.scenario.settings; 19 import android.platform.test.scenario.AppStartupRunRule;
|
D | OpenColdAppMicrobenchmark.java | 17 package android.platform.test.scenario.settings; 20 import android.platform.test.scenario.ColdAppStartupRunRule;
|
/platform_testing/tests/automotive/health/dial/tests/src/android/platform/scenario/dial/ |
D | OpenColdAppMicrobenchmark.java | 16 package android.platform.test.scenario.dial; 19 import android.platform.test.scenario.ColdAppStartupRunRule;
|
D | OpenAppMicrobenchmark.java | 16 package android.platform.test.scenario.dial; 18 import android.platform.test.scenario.AppStartupRunRule;
|
D | OpenHotAppMicrobenchmark.java | 16 package android.platform.test.scenario.dial; 19 import android.platform.test.scenario.HotAppStartupRunRule;
|
/platform_testing/tests/automotive/health/mediacenter/tests/src/android/platform/scenario/mediacenter/ |
D | OpenAppMicrobenchmark.java | 17 package android.platform.test.scenario.mediacenter; 19 import android.platform.test.scenario.AppStartupRunRule;
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/ |
D | OpenApps.java | 17 package android.platform.test.scenario.generic; 24 import android.platform.test.scenario.annotation.AppSetup; 25 import android.platform.test.scenario.annotation.LoadedSetup; 26 import android.platform.test.scenario.annotation.Scenario;
|
/platform_testing/tests/automotive/health/multiuser/tests/src/android/platform/scenario/multiuser/nonui/ |
D | SwitchToExistingSecondaryUserBenchmark.java | 17 package android.platform.scenario.multiuser; 19 import android.platform.test.scenario.SleepAtTestFinishRule;
|
/platform_testing/libraries/health/runners/longevity/platform/tests/assets/ |
D | testIndexedScheduling_respectsSchedule.textpb | 3 index: 2 # Note this is scenario #2, not #1. 6 index: 1 # Note this is scenario #1, not #2.
|