Home
last modified time | relevance | path

Searched refs:tag (Results 1 – 25 of 53) sorted by relevance

123

/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DSubjectsParser.kt41 tag: String, in getSubjectOfType()
45 tag == Tag.ALL && expectedSubjectClass == WindowManagerTraceSubject::class -> in getSubjectOfType()
47 tag == Tag.ALL && expectedSubjectClass == LayersTraceSubject::class -> in getSubjectOfType()
50 expectedSubjectClass == WindowManagerStateSubject::class -> getWmStateSubject(tag) in getSubjectOfType()
51 expectedSubjectClass == LayerTraceEntrySubject::class -> getLayerTraceEntrySubject(tag) in getSubjectOfType()
75 private fun getWmStateSubject(tag: String): WindowManagerStateSubject? = in getWmStateSubject()
76 doGetWmStateSubject(tag) in getWmStateSubject()
78 protected open fun doGetWmStateSubject(tag: String): WindowManagerStateSubject? { in getWmStateSubject()
79 return when (tag) { in getWmStateSubject()
83 val trace = resultReader.readWmState(tag) ?: return null in getWmStateSubject()
[all …]
DAssertionStateDataFactory.kt36 tag = Tag.START,
47 AssertionDataImpl(tag = Tag.END, expectedSubjectClass = stateSubject, assertion = assertion)
54 fun createTagAssertion(tag: String, assertion: FlickerSubject.() -> Unit) =
55 AssertionDataImpl(tag = tag, expectedSubjectClass = stateSubject, assertion = assertion)
DAssertionDataImpl.kt25 val tag: String, constant in android.tools.flicker.assertions.AssertionDataImpl
32 val subject = run.getSubjectOfType(tag, expectedSubjectClass) in checkAssertion()
DBaseFlickerTest.kt54 override fun assertWmTag(tag: String, assertion: WindowManagerStateSubject.() -> Unit) { in assertWmTag()
56 val assertionData = assertionFactory.createWmTagAssertion(tag, assertion) in assertWmTag()
93 override fun assertLayersTag(tag: String, assertion: LayerTraceEntrySubject.() -> Unit) { in assertLayersTag()
95 val assertionData = assertionFactory.createLayersTagAssertion(tag, assertion) in assertLayersTag()
DAssertionFactory.kt76 tag: String, in createWmTagAssertion()
80 wmAssertionFactory.createTagAssertion(tag, assertion as FlickerSubject.() -> Unit) in createWmTagAssertion()
147 tag: String, in createLayersTagAssertion()
151 layersAssertionFactory.createTagAssertion(tag, assertion as FlickerSubject.() -> Unit) in createLayersTagAssertion()
DFlickerTest.kt54 fun assertWmTag(tag: String, assertion: WindowManagerStateSubject.() -> Unit)
87 fun assertLayersTag(tag: String, assertion: LayerTraceEntrySubject.() -> Unit)
/platform_testing/libraries/flicker/utils/src/android/tools/io/
DResultArtifactDescriptor.kt26 val tag: String = Tag.ALL constant in android.tools.io.ResultArtifactDescriptor
29 get() = tag != Tag.ALL
34 append(tag) in <lambda>()
45 if (tag != other.tag) return false in equals()
52 result = 31 * result + tag.hashCode() in hashCode()
DReader.kt39 fun readWmState(tag: String): WindowManagerTrace?
48 fun readLayersDump(tag: String): LayersTrace?
72 fun readBytes(traceType: TraceType, tag: String = Tag.ALL): ByteArray?
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/
DTransitionExecutionRule.kt117 private fun doValidateTag(tag: String) { in doValidateTag()
118 require(!tags.contains(tag)) { "Tag `$tag` already used" } in doValidateTag()
119 require(!tag.contains(" ")) { "Tag can't contain spaces, instead it was `$tag`" } in doValidateTag()
120 require(!tag.contains("__")) { "Tag can't `__``, instead it was `$tag`" } in doValidateTag()
123 private fun doCreateTag(tag: String) { in doCreateTag()
125 Utils.notifyRunnerProgress(scenario, "Creating tag $tag") in doCreateTag()
126 doValidateTag(tag) in doCreateTag()
127 tags.add(tag) in doCreateTag()
130 val wmDumpFile = File.createTempFile(TraceType.WM_DUMP.fileName, tag) in doCreateTag()
131 val layersDumpFile = File.createTempFile(TraceType.SF_DUMP.fileName, tag) in doCreateTag()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/
DAbstractFlickerTestData.kt23 final override fun withTag(tag: String, commands: FlickerTestData.() -> Any) { in withTag()
25 createTagCallback(tag) in withTag()
28 final override fun createTag(tag: String) { in createTag()
29 withTag(tag) {} in createTag()
DFlickerTestData.kt56 fun withTag(tag: String, commands: FlickerTestData.() -> Any)
58 fun createTag(tag: String)
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DTestSubjectsParser.kt36 public override fun doGetLayerTraceEntrySubject(tag: String): LayerTraceEntrySubject? =
37 super.doGetLayerTraceEntrySubject(tag)
39 public override fun doGetWmStateSubject(tag: String): WindowManagerStateSubject? =
40 super.doGetWmStateSubject(tag)
DBaseSubjectsParserTestParse.kt49 protected abstract fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? in getTime()
99 private fun doParseStateSubjectAndValidate(tag: String, expectedTime: Timestamp) { in doParseStateSubjectAndValidate()
104 val subject = doParseState(parser, tag) ?: error("$subjectName tag=$tag not built") in doParseStateSubjectAndValidate()
106 Truth.assertWithMessage("$subjectName - $tag") in doParseStateSubjectAndValidate()
DSubjectsParserTestParseLayers.kt39 override fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? =
40 parser.doGetLayerTraceEntrySubject(tag)
DSubjectsParserTestParseWM.kt39 override fun doParseState(parser: TestSubjectsParser, tag: String): FlickerSubject? =
40 parser.doGetWmStateSubject(tag)
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/events/
DEventLogParser.kt48 val (rawTimestamp, uid, pid, tid, priority, tag) = in <lambda>() constant
53 parseEvent(timestamp, pid.toInt(), uid, tid.toInt(), tag, eventData) in <lambda>()
65 tag: String, in <lambda>()
68 return when (tag) { in <lambda>()
73 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
76 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
79 CujEvent.fromData(pid, uid, tid, tag, eventData) in <lambda>()
82 Event(timestamp, pid, uid, tid, tag) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DParsedTracesReader.kt78 override fun readLayersDump(tag: String): LayersTrace? = layerDumps[tag] in readLayersDump()
80 override fun readWmState(tag: String): WindowManagerTrace? = wmDumps[tag] in readLayersDump()
82 override fun readBytes(traceType: TraceType, tag: String): ByteArray? { in readLayersDump()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DResultReader.kt71 override fun readBytes(traceType: TraceType, tag: String): ByteArray? = in <lambda>()
72 artifact.readBytes(ResultArtifactDescriptor(traceType, tag)) in <lambda>()
80 override fun readWmState(tag: String): WindowManagerTrace? { in <lambda>()
81 return withTracing("readWmState#$tag") { in <lambda>()
82 val descriptor = ResultArtifactDescriptor(TraceType.WM_DUMP, tag) in <lambda>()
159 override fun readLayersDump(tag: String): LayersTrace? { in <lambda>()
160 return withTracing("readLayersDump#$tag") { in <lambda>()
161 val descriptor = ResultArtifactDescriptor(TraceType.SF_DUMP, tag) in <lambda>()
316 fun hasTraceFile(traceType: TraceType, tag: String = Tag.ALL): Boolean { in <lambda>()
317 val descriptor = ResultArtifactDescriptor(traceType, tag) in <lambda>()
DResultWriter.kt74 fun addTraceResult(traceType: TraceType, artifact: File, tag: String = Tag.ALL) = apply { in <lambda>()
77 "Add trace result file=$artifact type=$traceType tag=$tag scenario=$scenario" in <lambda>()
79 val fileDescriptor = ResultArtifactDescriptor(traceType, tag) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/
DTraceMonitorTest.kt43 protected open val tag = Tag.ALL in getMonitor() constant in android.tools.monitors.TraceMonitorTest
94 .that(reader.hasTraceFile(traceMonitor.traceType, tag)) in captureTrace()
98 reader.readBytes(traceMonitor.traceType, tag) in captureTrace()
107 traceMonitor.withTracing(tag) { in withTracing()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DLogcatInspector.java33 public String mark(String tag) throws IOException { in mark() argument
35 Closeables.closeQuietly(executeShellCommand("log -t " + tag + " " + uniqueString)); in mark()
40 assertLogcatContainsInOrder(tag + ":* *:S", 5, uniqueString); in mark()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DResultArtifactDescriptorTest.kt59 val tag = "testTag" in createDescriptorAndValidateFileNameWithTag() constant
63 subject.startsWith(tag) in createDescriptorAndValidateFileNameWithTag()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt61 tag = "MySubType" in canCreateFromListOfCujEventsWithTags()
73 Truth.assertThat(trace.entries.first().tag).isEqualTo("MySubType") in canCreateFromListOfCujEventsWithTags()
180 tag: String? = null in createCujEvent()
189 tag, in createCujEvent()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DCuj.kt27 val tag: String? = null, constant in android.tools.traces.events.Cuj
/platform_testing/libraries/flicker/utils/src/android/tools/traces/protolog/
DProtoLogMessage.kt26 val tag: String, constant

123