Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 7 of 7) sorted by relevance

/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DResultReaderWithLru.kt48 val descriptor = ResultArtifactDescriptor(TraceType.WM) in readWmTrace() constant
49 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readWmTrace()
56 val descriptor = ResultArtifactDescriptor(TraceType.SF) in readLayersTrace() constant
57 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readLayersTrace()
64 val descriptor = ResultArtifactDescriptor(TraceType.EVENT_LOG) in readEventLogTrace() constant
65 val key = CacheKey(reader.artifact.stableId, descriptor, reader.transitionTimeRange) in readEventLogTrace()
100 internal val descriptor: ResultArtifactDescriptor, constant in Companion.CacheKey
DResultReader.kt82 val descriptor = ResultArtifactDescriptor(TraceType.WM_DUMP, tag) in <lambda>() constant
83 Log.d(FLICKER_IO_TAG, "Reading WM trace descriptor=$descriptor from $result") in <lambda>()
84 val traceData = artifact.readBytes(descriptor) in <lambda>()
97 val descriptor = ResultArtifactDescriptor(TraceType.WM) in <lambda>() constant
98 artifact.readBytes(descriptor)?.let { in <lambda>()
128 val descriptor = ResultArtifactDescriptor(TraceType.SF) in <lambda>() constant
129 artifact.readBytes(descriptor)?.let { in <lambda>()
161 val descriptor = ResultArtifactDescriptor(TraceType.SF_DUMP, tag) in <lambda>() constant
162 val traceData = artifact.readBytes(descriptor) in <lambda>()
288 val descriptor = ResultArtifactDescriptor(TraceType.EVENT_LOG) in <lambda>() constant
[all …]
DFileArtifact.kt76 override fun hasTrace(descriptor: ResultArtifactDescriptor): Boolean { in hasTrace()
78 forEachFileInZip { found = found || (it.name == descriptor.fileNameInArtifact) } in hasTrace()
109 override fun readBytes(descriptor: ResultArtifactDescriptor): ByteArray? { in readBytes()
110 Log.d(FLICKER_IO_TAG, "Reading descriptor=$descriptor from $this") in readBytes()
118 if (zipEntry.name == descriptor.fileNameInArtifact) { in readBytes()
DArtifactBuilder.kt131 files.forEach { (descriptor, artifact) -> in <lambda>() method
132 if (!writtenFileNames.contains(descriptor.fileNameInArtifact)) { in <lambda>()
136 nameInArchive = descriptor.fileNameInArtifact in <lambda>()
138 writtenFileNames.add(descriptor.fileNameInArtifact) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DResultArtifactDescriptorTest.kt52 val descriptor = ResultArtifactDescriptor(traceType) in createDescriptorAndValidateFileName() constant
54 .that(descriptor.fileNameInArtifact) in createDescriptorAndValidateFileName()
60 val descriptor = ResultArtifactDescriptor(traceType, TEST_TAG) in createDescriptorAndValidateFileNameWithTag() constant
62 Truth.assertWithMessage("Result file name").that(descriptor.fileNameInArtifact) in createDescriptorAndValidateFileNameWithTag()
/platform_testing/libraries/flicker/utils/src/android/tools/io/
DArtifact.kt28 fun readBytes(descriptor: ResultArtifactDescriptor): ByteArray?
31 fun hasTrace(descriptor: ResultArtifactDescriptor): Boolean
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DTestArtifact.kt36 override fun hasTrace(descriptor: ResultArtifactDescriptor): Boolean = false in traceCount()
38 override fun readBytes(descriptor: ResultArtifactDescriptor): ByteArray? = null in traceCount()