Home
last modified time | relevance | path

Searched refs:DataStore (Results 1 – 17 of 17) sorted by relevance

/platform_testing/libraries/flicker/src/android/tools/flicker/datastore/
DDataStore.kt26 object DataStore { object
39 android.tools.flicker.datastore.DataStore.cachedResults = mutableMapOf() in clear()
40 android.tools.flicker.datastore.DataStore.cachedFlickerServiceAssertions = mutableMapOf() in clear()
43 fun backup(): android.tools.flicker.datastore.DataStore.Backup { in backup()
44 return android.tools.flicker.datastore.DataStore.Backup( in backup()
45 android.tools.flicker.datastore.DataStore.cachedResults.toMutableMap(), in backup()
46 android.tools.flicker.datastore.DataStore.cachedFlickerServiceAssertions.toMutableMap() in backup()
50 fun restore(backup: android.tools.flicker.datastore.DataStore.Backup) { in restore()
51 android.tools.flicker.datastore.DataStore.cachedResults = backup.cachedResults in restore()
52 android.tools.flicker.datastore.DataStore.cachedFlickerServiceAssertions = in restore()
[all …]
DCachedAssertionRunner.kt39 val result = DataStore.getResult(scenario) in doUpdateStatus()
41 DataStore.replaceResult(scenario, result) in doUpdateStatus()
DCachedResultWriter.kt26 android.tools.flicker.datastore.DataStore.addResult(scenario, result) in write()
DCachedResultReader.kt30 android.tools.flicker.datastore.DataStore.getResult(scenario),
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DDataStoreTest.kt33 DataStore.clear() in setup()
38 DataStore.addResult(TEST_SCENARIO, Consts.TEST_RESULT) in addsElement()
40 .that(DataStore.containsResult(TEST_SCENARIO)) in addsElement()
48 DataStore.addResult(TEST_SCENARIO, Consts.TEST_RESULT) in throwsErrorAddElementTwice()
49 DataStore.addResult(TEST_SCENARIO, Consts.TEST_RESULT) in throwsErrorAddElementTwice()
52 .that(DataStore.containsResult(TEST_SCENARIO)) in throwsErrorAddElementTwice()
59 DataStore.addResult(TEST_SCENARIO, Consts.TEST_RESULT) in getsElement()
60 val actual = DataStore.getResult(TEST_SCENARIO) in getsElement()
66 val failure = assertThrows<IllegalStateException> { DataStore.getResult(TEST_SCENARIO) } in getsElementThrowErrorDoesNotExist()
72 DataStore.addResult(TEST_SCENARIO, Consts.TEST_RESULT) in replacesElement()
[all …]
DCachedResultWriterTest.kt39 .that(android.tools.flicker.datastore.DataStore.containsResult(TEST_SCENARIO)) in writeToStore()
41 val actual = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in writeToStore()
54 .that(android.tools.flicker.datastore.DataStore.containsResult(TEST_SCENARIO)) in writeToStoreFailsWhenWriteTwice()
DCachedAssertionRunnerTest.kt53 android.tools.flicker.datastore.DataStore.clear() in setup()
60 android.tools.flicker.datastore.DataStore.addResult(TEST_SCENARIO, result) in setup()
68 val result = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in executes()
83 val result = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in executesFailure()
103 val result = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in updatesRunStatusFailureFirst()
118 val result = android.tools.flicker.datastore.DataStore.getResult(TEST_SCENARIO) in updatesRunStatusFailureLast()
DCachedResultReaderTest.kt36 android.tools.flicker.datastore.DataStore.clear() in setup()
44 android.tools.flicker.datastore.DataStore.addResult(TEST_SCENARIO, result) in readFromStore()
/platform_testing/libraries/flicker/test/src/android/tools/rules/
DDataStoreCleanupRule.kt20 import android.tools.flicker.datastore.DataStore
38 val backup = DataStore.backup() in resetDataStore()
39 DataStore.clear() in resetDataStore()
49 DataStore.restore(backup) in resetDataStore()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DUtils.kt23 import android.tools.flicker.datastore.DataStore
61 android.tools.flicker.datastore.DataStore.clear() in runTransition()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DLegacyFlickerDecorator.kt20 import android.tools.flicker.datastore.DataStore
49 if (!android.tools.flicker.datastore.DataStore.containsResult(scenario)) { in getMethodInvoker()
DFlickerServiceDecorator.kt316 !android.tools.flicker.datastore.DataStore.containsFlickerServiceResult( in <lambda>()
322 android.tools.flicker.datastore.DataStore.addFlickerServiceAssertions( in <lambda>()
328 return android.tools.flicker.datastore.DataStore.getFlickerServiceAssertions( in <lambda>()
DLegacyFlickerServiceDecorator.kt167 if (!android.tools.flicker.datastore.DataStore.containsResult(testScenario)) { in computeFlickerServiceTests()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DLegacyFlickerDecoratorTest.kt21 import android.tools.flicker.datastore.DataStore in <lambda>()
42 android.tools.flicker.datastore.DataStore.clear() in <lambda>()
135 android.tools.flicker.datastore.DataStore.containsResult( in <lambda>()
DLegacyFlickerServiceDecoratorTest.kt38 android.tools.flicker.datastore.DataStore.clear() in setup()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/
DLegacyFlickerTestTest.kt24 import android.tools.flicker.datastore.DataStore
236 android.tools.flicker.datastore.DataStore.getResult(it), in doExecuteAssertionWithoutTraceAndVerifyNotExecuted()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayersTraceSubjectTest.kt349 android.tools.flicker.datastore.DataStore.addResult(scenario, result) in <lambda>()