Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 60) sorted by relevance

123

/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt29 val trace = in canCreateFromListOfCujEvents() constant
45 Truth.assertThat(trace.entries).hasSize(1) in canCreateFromListOfCujEvents()
46 Truth.assertThat(trace.entries.first().cuj).isEqualTo(CujType.CUJ_LAUNCHER_ALL_APPS_SCROLL) in canCreateFromListOfCujEvents()
47 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEvents()
48 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEvents()
49 Truth.assertThat(trace.entries.first().canceled).isFalse() in canCreateFromListOfCujEvents()
54 val trace = in canCreateFromListOfCujEventsWithTags() constant
71 Truth.assertThat(trace.entries).hasSize(1) in canCreateFromListOfCujEventsWithTags()
72 Truth.assertThat(trace.entries.first().cuj).isEqualTo(CujType.CUJ_LAUNCHER_ALL_APPS_SCROLL) in canCreateFromListOfCujEventsWithTags()
73 Truth.assertThat(trace.entries.first().tag).isEqualTo("MySubType") in canCreateFromListOfCujEventsWithTags()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/
DTraceTest.kt34 val trace = SimpleTrace(listOf(entry1, entry2, entry3)) in getEntryExactlyAtTest() constant
36 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(1, 1, 1))).isEqualTo(entry1) in getEntryExactlyAtTest()
37 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(5, 5, 5))).isEqualTo(entry2) in getEntryExactlyAtTest()
38 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(25, 25, 25))).isEqualTo(entry3) in getEntryExactlyAtTest()
41 assertThrows<Throwable> { trace.getEntryExactlyAt(Timestamps.from(6, 6, 6)) } in getEntryExactlyAtTest()
52 val trace = SimpleTrace(listOf(entry1, entry2, entry3)) in getEntryAtTest() constant
54 Truth.assertThat(trace.getEntryAt(Timestamps.from(2, 2, 2))).isEqualTo(entry1) in getEntryAtTest()
55 Truth.assertThat(trace.getEntryAt(Timestamps.from(5, 5, 5))).isEqualTo(entry2) in getEntryAtTest()
56 Truth.assertThat(trace.getEntryAt(Timestamps.from(25, 25, 25))).isEqualTo(entry3) in getEntryAtTest()
58 Truth.assertThat(trace.getEntryAt(Timestamps.from(4, 4, 4))).isEqualTo(entry1) in getEntryAtTest()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubjectTest.kt46 private val trace constant in android.tools.flicker.subject.wm.WindowManagerStateSubjectTest
70 WindowManagerTraceSubject(trace, reader) in exceptionContainsDebugInfo()
80 WindowManagerTraceSubject(trace, reader) in canDetectAboveAppWindowVisibility_isVisible()
90 WindowManagerTraceSubject(trace, reader) in canDetectAboveAppWindowVisibility_isInvisible()
108 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversAtLeastRegion_exactSize()
118 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversAtLeastRegion_smallerRegion()
127 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversAtLeastRegion_largerRegion()
143 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversExactlyRegion_exactSize()
153 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversExactlyRegion_smallerRegion()
169 WindowManagerTraceSubject(trace, reader) in canDetectWindowCoversExactlyRegion_largerRegion()
[all …]
DWindowManagerTraceSubjectTest.kt90 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
91 val subject = WindowManagerTraceSubject(trace, reader) in <lambda>()
179 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
180 WindowManagerTraceSubject(trace, reader) in <lambda>()
192 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
193 WindowManagerTraceSubject(trace, reader) in <lambda>()
233 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
244 WindowManagerTraceSubject(trace, reader) in <lambda>()
264 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
266 WindowManagerTraceSubject(trace, reader).getEntryByElapsedTimestamp(694827105830L) in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayersTraceSubjectTest.kt58 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>() constant
59 val error = assertThrows<AssertionError> { LayersTraceSubject(trace, reader).isEmpty() } in <lambda>()
66 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>() constant
68 LayersTraceSubject(trace, reader) in <lambda>()
79 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>() constant
80 LayersTraceSubject(trace, reader) in <lambda>()
90 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>() constant
91 LayersTraceSubject(trace, reader) in <lambda>()
100 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>() constant
102 LayersTraceSubject(trace, reader) in <lambda>()
[all …]
DLayerTraceEntrySubjectTest.kt55 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in exceptionContainsDebugInfo() constant
58 LayersTraceSubject(trace, reader).first().visibleRegion(TestComponents.IMAGINARY) in exceptionContainsDebugInfo()
67 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in testCanInspectBeginning() constant
68 LayerTraceEntrySubject(trace.entries.first(), reader) in testCanInspectBeginning()
77 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in testCanInspectEnd() constant
78 LayerTraceEntrySubject(trace.entries.last(), reader) in testCanInspectEnd()
87 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canDetectUncoveredRegion() constant
90 LayersTraceSubject(trace, reader) in canDetectUncoveredRegion()
101 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerVisibleRegion_layerDoesNotExist() constant
104 LayersTraceSubject(trace, reader) in canTestLayerVisibleRegion_layerDoesNotExist()
[all …]
DLayerSubjectTest.kt43 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in exceptionContainsDebugInfoImaginary() constant
44 val foundLayer = LayersTraceSubject(trace, reader).first().layer("ImaginaryLayer", 0) in exceptionContainsDebugInfoImaginary()
51 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestAssertionsOnLayer() constant
52 LayersTraceSubject(trace, reader) in canTestAssertionsOnLayer()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceEntryTest.kt41 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseAllLayers() constant
42 Truth.assertThat(trace.entries).isNotEmpty() in canParseAllLayers()
43 Truth.assertThat(trace.entries.first().timestamp.systemUptimeNanos).isEqualTo(922839428857) in canParseAllLayers()
44 Truth.assertThat(trace.entries.last().timestamp.systemUptimeNanos).isEqualTo(941432656959) in canParseAllLayers()
45 Truth.assertThat(trace.entries.last().flattenedLayers).hasSize(57) in canParseAllLayers()
51 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersLauncher() constant
53 trace in canParseVisibleLayersLauncher()
69 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersSplitScreen() constant
71 trace in canParseVisibleLayersSplitScreen()
88 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersInTransition() constant
[all …]
DLayersTraceTest.kt36 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in detectRootLayer() constant
37 for (entry in trace.entries) { in detectRootLayer()
67 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerOccludedByAppLayerHasVisibleRegion() constant
68 val entry = trace.getEntryExactlyAt(Timestamps.from(systemUptimeNanos = 1700382131522L)) in canTestLayerOccludedByAppLayerHasVisibleRegion()
95 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen() constant
96 val entry = trace.getEntryExactlyAt(Timestamps.from(systemUptimeNanos = 1700382131522L)) in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen()
117 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in getFirstEntryWithOnDisplay() constant
118 val matchingEntry = trace.getFirstEntryWithOnDisplayAfter(Timestamps.min()) in getFirstEntryWithOnDisplay()
124 trace.getFirstEntryWithOnDisplayAfter(Timestamps.max()) in getFirstEntryWithOnDisplay()
134 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in getLastEntryWithOnDisplay() constant
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DWindowManagerStateHelperTest.kt197 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
198 val supplier = trace.asSupplier() in <lambda>()
201 trace.entries.first(), in <lambda>()
203 numRetries = trace.entries.size, in <lambda>()
218 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
219 val supplier = trace.asSupplier() in <lambda>()
222 trace.entries.first(), in <lambda>()
224 numRetries = trace.entries.size, in <lambda>()
239 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
240 val supplier = trace.asSupplier() in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DWindowManagerTraceTest.kt39 private val trace in <lambda>() constant
50 trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9213763541297L)).appWindows in <lambda>()
101 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
102 assertWithMessage("Unable to parse dump").that(trace.entries.size).isGreaterThan(1) in <lambda>()
104 trace.entries.forEach { entry: WindowManagerState -> in <lambda>()
113 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9213763541297)) in <lambda>()
121 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9215511235586)) in <lambda>()
138 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>() constant
140 assertThat(trace.entries).isNotEmpty() in <lambda>()
141 assertThat(trace.entries.first().timestamp.elapsedNanos).isEqualTo(174686204723645) in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DSubjectsParser.kt61 val trace = resultReader.readWmTrace() ?: return null in doGetWmTraceSubject() constant
62 return WindowManagerTraceSubject(trace, resultReader) in doGetWmTraceSubject()
70 val trace = resultReader.readLayersTrace() ?: return null in doGetLayersTraceSubject() constant
71 return LayersTraceSubject(trace, resultReader) in doGetLayersTraceSubject()
83 val trace = resultReader.readWmState(tag) ?: return null in getWmStateSubject() constant
84 WindowManagerStateSubject(trace.entries.first(), resultReader) in getWmStateSubject()
98 val trace = resultReader.readLayersDump(tag) ?: return null in getLayerTraceEntrySubject() constant
99 return LayersTraceSubject(trace, resultReader).first() in getLayerTraceEntrySubject()
109 val trace = resultReader.readEventLogTrace() ?: return null in doGetEventLogSubject() constant
110 return EventLogSubject(trace, resultReader) in doGetEventLogSubject()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/
DLayerTraceParserTest.kt37 val trace = in <lambda>() constant
43 Truth.assertWithMessage("Trace").that(trace.entries).isNotEmpty() in <lambda>()
45 .that(trace.entries.map { it.elapsedTimestamp }) in <lambda>()
51 val trace = in <lambda>() constant
57 Truth.assertWithMessage("Dump").that(trace.entries.size).isEqualTo(1) in <lambda>()
59 .that(trace.entries.first().displays) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/wm/
DLegacyTransitionTraceParserTest.kt42 val trace = in <lambda>() constant
48 val firstEntry = trace.entries.first() in <lambda>()
52 val lastEntry = trace.entries.last() in <lambda>()
58 val trace = in <lambda>() constant
63 Truth.assertWithMessage("Trace").that(trace.entries).isNotEmpty() in <lambda>()
65 .that(trace.entries.map { it.id }) in <lambda>()
77 val trace = WindowManagerTraceParser().parse(data, clearCache = false) in <lambda>() constant
78 Truth.assertThat(trace.entries).isNotEmpty() in <lambda>()
DWindowManagerDumpParserTest.kt39 val trace = WindowManagerDumpParser().parse(readAsset("wm_trace_dump.pb")) in canParseFromStoredDump() constant
40 Truth.assertWithMessage("Unable to parse dump").that(trace.entries).hasSize(1) in canParseFromStoredDump()
46 val trace = WindowManagerDumpParser().parse(data.first) in canParseFromNewDump() constant
47 Truth.assertWithMessage("Unable to parse dump").that(trace.entries).hasSize(1) in canParseFromNewDump()
DWindowManagerTraceParserTest.kt40 val trace = in canParseAllEntriesFromStoredTrace() constant
43 val firstEntry = trace.entries.first() in canParseAllEntriesFromStoredTrace()
47 Truth.assertThat(trace.entries.last().timestamp.elapsedNanos).isEqualTo(9216093628925L) in canParseAllEntriesFromStoredTrace()
58 val trace = WindowManagerTraceParser().parse(data, clearCache = false) in canParseAllEntriesFromNewTrace() constant
59 Truth.assertThat(trace.entries).isNotEmpty() in canParseAllEntriesFromNewTrace()
DLegacyWmLegacyTransitionTraceParserTest.kt45 val trace = in canParseAllEntriesFromStoredTrace() constant
48 val firstEntry = trace.entries.first() in canParseAllEntriesFromStoredTrace()
49 val lastEntry = trace.entries.last() in canParseAllEntriesFromStoredTrace()
64 val trace = WmTransitionTraceParser().parse(data, clearCache = false) in canParseAllEntriesFromNewTrace() constant
65 Truth.assertThat(trace.entries).isNotEmpty() in canParseAllEntriesFromNewTrace()
DLegacyShellLegacyTransitionTraceParserTest.kt46 val trace = in canParseAllEntriesFromStoredTrace() constant
49 val firstEntry = trace.entries.first() in canParseAllEntriesFromStoredTrace()
50 val lastEntry = trace.entries.last() in canParseAllEntriesFromStoredTrace()
66 val trace = ShellTransitionTraceParser().parse(data, clearCache = false) in canParseAllEntriesFromNewTrace() constant
67 Truth.assertThat(trace.entries).isNotEmpty() in canParseAllEntriesFromNewTrace()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/
DInputMethodManagerServiceTraceSubject.kt38 val trace: InputMethodManagerServiceTrace, constant in android.tools.flicker.subject.inputmethod.InputMethodManagerServiceTraceSubject
45 trace.entries.map { InputMethodManagerServiceEntrySubject(it, trace, reader) } in <lambda>()
53 check { "InputMethodManagerServiceTrace" }.that(trace.entries.size).isEqual(0) in <lambda>()
58 check { "InputMethodManagerServiceTrace" }.that(trace.entries.size).isGreater(0) in <lambda>()
DImeClientTraceSubject.kt38 private constructor(val trace: ImeClientTrace, override val reader: Reader? = null) : constant in android.tools.flicker.subject.inputmethod.ImeClientTraceSubject
41 override val subjects by lazy { trace.entries.map { ImeClientEntrySubject(it, trace, reader) } } in <lambda>()
48 check { "ImeClientTrace" }.that(trace.entries.size).isEqual(0) in <lambda>()
53 check { "ImeClientTrace" }.that(trace.entries.size).isGreater(0) in <lambda>()
DInputMethodServiceTraceSubject.kt35 private constructor(val trace: InputMethodServiceTrace, override val reader: Reader? = null) : constant in android.tools.flicker.subject.inputmethod.InputMethodServiceTraceSubject
40 trace.entries.map { InputMethodServiceEntrySubject(it, trace, reader) } in <lambda>()
48 check { "InputMethodServiceTrace" }.that(trace.entries.size).isEqual(0) in <lambda>()
53 check { "InputMethodServiceTrace" }.that(trace.entries.size).isGreater(0) in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt81 var trace: WindowManagerTraceSubject? = null in internalWmCheck() variable
85 trace = this in internalWmCheck()
97 validateState(this, trace?.first()) in internalWmCheck()
98 validateVisibleRegion(this.visibleRegion(), trace?.first()?.visibleRegion()) in internalWmCheck()
102 validateState(this, trace?.last()) in internalWmCheck()
103 validateVisibleRegion(this.visibleRegion(), trace?.last()?.visibleRegion()) in internalWmCheck()
115 var trace: LayersTraceSubject? = null in internalLayersCheck() variable
119 trace = this in internalLayersCheck()
131 validateState(this, trace?.first()) in internalLayersCheck()
132 validateVisibleRegion(this.visibleRegion(), trace?.first()?.visibleRegion()) in internalLayersCheck()
[all …]
DFullTestRun.kt94 var trace: WindowManagerTraceSubject? = null in doEvaluate() variable
98 trace = this in doEvaluate()
118 validateState(this, trace?.first()) in doEvaluate()
121 trace?.first()?.visibleRegion() in doEvaluate()
130 validateState(this, trace?.last()) in doEvaluate()
133 trace?.last()?.visibleRegion() in doEvaluate()
147 var trace: LayersTraceSubject? = null in doEvaluate() variable
151 trace = this in doEvaluate()
171 validateState(this, trace?.first()) in doEvaluate()
174 trace?.first()?.visibleRegion() in doEvaluate()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DBaseResultReaderTestParseTrace.kt69 val trace = doParse(reader) ?: error("$traceName not built") in <lambda>() constant
71 Truth.assertWithMessage(traceName).that(trace.entries).isNotEmpty() in <lambda>()
73 .that(getTime(trace.entries.first().timestamp)) in <lambda>()
76 .that(getTime(trace.entries.last().timestamp)) in <lambda>()
85 val trace = doParse(reader) in <lambda>() constant
87 Truth.assertWithMessage(traceName).that(trace).isNull() in <lambda>()
98 val trace = doParse(reader) ?: error("$traceName not built") in <lambda>() constant
100 Truth.assertWithMessage(traceName).that(trace.entries).hasSize(expectedSlicedTraceSize) in <lambda>()
102 .that(getTime(trace.entries.first().timestamp)) in <lambda>()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DTestResult.java180 public void failed(String trace) { in failed() argument
183 int index = trace.indexOf('\n'); in failed()
186 setMessage(trace); in failed()
188 setMessage(trace.substring(0, index)); in failed()
190 setStackTrace(trace); in failed()
281 static String sanitizeStackTrace(String trace) { in sanitizeStackTrace() argument
282 if (trace != null) { in sanitizeStackTrace()
283 return trace.replaceAll("[^\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD]", ""); in sanitizeStackTrace()

123