/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | MockWindowManagerTraceBuilder.kt | 22 private var entries: MutableList<MockWindowStateBuilder> = mutableListOf() in <lambda>() variable in android.tools.utils.MockWindowManagerTraceBuilder 25 entries.add(entry) in <lambda>() 29 entries.sortBy { it.timestamp } in <lambda>() 33 require(entries.zipWithNext { prev, cur -> prev.timestamp < cur.timestamp }.all { it }) { in <lambda>() 37 val entries = entries.map { it.build() } in <lambda>() constant 38 return WindowManagerTrace(entries) in <lambda>()
|
D | MockLayersTraceBuilder.kt | 22 private var entries: MutableList<MockLayerTraceEntryBuilder> = mutableListOf() in <lambda>() variable in android.tools.utils.MockLayersTraceBuilder 25 entries.add(entry) in <lambda>() 29 entries.sortBy { it.timestamp } in <lambda>() 33 require(entries.zipWithNext { prev, cur -> prev.timestamp < cur.timestamp }.all { it }) { in <lambda>() 37 val entries = entries.map { it.build() } in <lambda>() constant 38 return LayersTrace(entries) in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/ |
D | CujTraceTest.kt | 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() 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() 74 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEventsWithTags() 75 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEventsWithTags() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | TraceParserTest.kt | 34 mockTraceForSliceTests.entries.first().timestamp.elapsedNanos - 1, in canSliceWithAllBefore() 41 val from = mockTraceForSliceTests.entries.last().elapsedTimestamp + 5 in canSliceWithAllAfter() 42 val to = mockTraceForSliceTests.entries.last().elapsedTimestamp + 20 in canSliceWithAllAfter() 51 Truth.assertThat(splitLayersTraceWithoutInitialEntry.entries).isEmpty() in canSliceWithAllAfter() 61 Truth.assertThat(splitLayersTraceWithInitialEntry.entries).hasSize(1) in canSliceWithAllAfter() 62 Truth.assertThat(splitLayersTraceWithInitialEntry.entries.first().timestamp) in canSliceWithAllAfter() 63 .isEqualTo(mockTraceForSliceTests.entries.last().timestamp) in canSliceWithAllAfter() 74 mockTraceForSliceTests.entries.first().timestamp.elapsedNanos - 1, in canSliceFromBeforeFirstEntryToMiddle() 84 mockTraceForSliceTests.entries.last().timestamp.elapsedNanos + 5, in canSliceFromMiddleToAfterLastEntry() 92 mockTraceForSliceTests.entries.first().timestamp.elapsedNanos - 1, in canSliceFromBeforeToAfterLastEntry() [all …]
|
D | MockTraceParser.kt | 30 override fun createTrace(entries: Collection<WindowManagerState>): WindowManagerTrace = in createTrace() 31 WindowManagerTrace(entries) in createTrace() 36 input.entries in createTrace()
|
D | WindowManagerStateHelperTest.kt | 160 this.entries.dropWhile { it.timestamp.elapsedNanos < startingTimestamp }.iterator() in <lambda>() 201 trace.entries.first(), in <lambda>() 203 numRetries = trace.entries.size, in <lambda>() 222 trace.entries.first(), in <lambda>() 224 numRetries = trace.entries.size, in <lambda>() 243 trace.entries.first(), in <lambda>() 245 numRetries = trace.entries.size, in <lambda>() 267 trace.entries.first(), in <lambda>() 289 trace.entries.first(), in <lambda>() 291 numRetries = trace.entries.size, in <lambda>() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/ |
D | AbstractParser.kt | 60 entries: List<Timestamp>, in getTimestampsInRange() 68 entries.isEmpty() -> { in getTimestampsInRange() 71 to < entries.first() -> { in getTimestampsInRange() 75 entries.last() < from -> { in getTimestampsInRange() 79 setOf(entries.last()) in getTimestampsInRange() 91 var first = entries.indexOfFirst { it >= from } in getTimestampsInRange() 93 val last = entries.lastIndex - entries.reversed().indexOfFirst { it <= to } in getTimestampsInRange() 96 if (addInitialEntry && first > 0 && entries[first] > from) { in getTimestampsInRange() 103 entries.slice(first..last).toSet() in getTimestampsInRange()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WindowManagerTrace.kt | 32 data class WindowManagerTrace(override val entries: Collection<WindowManagerState>) : constant in android.tools.traces.wm.WindowManagerTrace 36 get() = entries.any { it.isTablet } in <lambda>() 45 if (entries.isEmpty()) { in getInitialRotation() 48 val firstWmState = entries.first() in getInitialRotation() 55 if (entries.isEmpty()) { in getFinalRotation() 58 val lastWmState = entries.last() in getFinalRotation() 65 entries in slice() 72 for (entry in this.entries) { in getWindowDescriptorById()
|
D | TransitionsTrace.kt | 22 data class TransitionsTrace(override val entries: Collection<Transition>) : Trace<Transition> { constant in android.tools.traces.wm.TransitionsTrace 26 for (transition in this.entries) { in asCompressed() 50 this.entries in sliceElapsed()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | LayersTrace.kt | 30 data class LayersTrace(override val entries: Collection<LayerTraceEntry>) : Trace<LayerTraceEntry> { in <lambda>() constant in android.tools.traces.surfaceflinger.LayersTrace 37 this.entries.dropWhile { it.vSyncId < from }.dropLastWhile { it.vSyncId > to } in <lambda>() 43 entries in <lambda>() 51 this.entries.first().vSyncId <= transaction.appliedVSyncId && in <lambda>() 52 transaction.appliedVSyncId <= this.entries.last().vSyncId in <lambda>() 56 return this.entries.first { it.vSyncId >= transaction.appliedVSyncId } in <lambda>() 60 return this.entries.firstOrNull { in <lambda>() 67 return this.entries.lastOrNull { in <lambda>() 74 for (entry in this.entries) { in <lambda>()
|
D | TransactionsTrace.kt | 22 class TransactionsTrace(override val entries: Collection<TransactionsTraceEntry>) : in <lambda>() constant in android.tools.traces.surfaceflinger.TransactionsTrace 27 entries in <lambda>() 39 val allTransactions: Collection<Transaction> = entries.flatMap { it.transactions } in <lambda>() 43 entries in <lambda>()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/ |
D | FlickerConfigTest.kt | 41 val entries = registry.getEntries() in canRegisterScenario() constant 42 Truth.assertThat(entries).hasSize(1) in canRegisterScenario() 43 Truth.assertThat(entries.first().scenarioId).isEqualTo(SOME_SCENARIO) in canRegisterScenario() 64 val entries = registry.getEntries() in canRegisterScenarioWithAssertions() constant 65 Truth.assertThat(entries).hasSize(1) in canRegisterScenarioWithAssertions() 66 Truth.assertThat(entries.first().scenarioId).isEqualTo(SOME_SCENARIO) in canRegisterScenarioWithAssertions() 69 val scenarioSlices = entries.first().extractor.extract(reader) in canRegisterScenarioWithAssertions() 72 ScenarioInstanceImpl.fromSlice(scenarioSlices.first(), reader, entries.first()) in canRegisterScenarioWithAssertions() 88 var entries = registry.getEntries() in canUnregisterScenario() variable 89 Truth.assertThat(entries).hasSize(1) in canUnregisterScenario() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/ |
D | EventLog.kt | 29 class EventLog(override val entries: Collection<Event>) : Trace<Event> { constant in android.tools.traces.events.EventLog 31 entries.filterIsInstance<FocusEvent>().filter { it.type !== FocusEvent.Type.REQUESTED } in <lambda>() 33 val cujEvents: Collection<CujEvent> = entries.filterIsInstance<CujEvent>() 43 entries in slice()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/ |
D | TransitionsTraceTest.kt | 63 Truth.assertThat(compressedTrace.entries.size).isEqualTo(1) in canBeCompressed() 65 Truth.assertThat(compressedTrace.entries.first().createTime.elapsedNanos).isEqualTo(10) in canBeCompressed() 66 Truth.assertThat(compressedTrace.entries.first().sendTime.elapsedNanos).isEqualTo(20) in canBeCompressed() 67 Truth.assertThat(compressedTrace.entries.first().dispatchTime.elapsedNanos).isEqualTo(22) in canBeCompressed() 68 Truth.assertThat(compressedTrace.entries.first().finishTime.elapsedNanos).isEqualTo(40) in canBeCompressed()
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | Trace.kt | 20 val entries: Collection<Entry> constant 30 return entries.firstOrNull { it.timestamp == timestamp } in slice() 45 return entries.toList().dropLastWhile { it.timestamp > timestamp }.lastOrNull() in getEntryAt()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/ |
D | LayerTraceParserTest.kt | 43 Truth.assertWithMessage("Trace").that(trace.entries).isNotEmpty() in <lambda>() 45 .that(trace.entries.map { it.elapsedTimestamp }) in <lambda>() 57 Truth.assertWithMessage("Dump").that(trace.entries.size).isEqualTo(1) in <lambda>() 59 .that(trace.entries.first().displays) in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/ |
D | AssertionsChecker.kt | 62 fun test(entries: List<T>) { in <lambda>() 63 if (assertions.isEmpty() || entries.isEmpty()) { in <lambda>() 71 while (assertionIndex < assertions.size && entryIndex < entries.size) { in <lambda>() 73 val currEntry = entries[entryIndex] in <lambda>() 108 .forSubject(entries.first()) in <lambda>() 125 .forSubject(entries.last()) in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/wm/ |
D | LegacyTransitionTraceParserTest.kt | 48 val firstEntry = trace.entries.first() in <lambda>() 52 val lastEntry = trace.entries.last() in <lambda>() 63 Truth.assertWithMessage("Trace").that(trace.entries).isNotEmpty() in <lambda>() 65 .that(trace.entries.map { it.id }) in <lambda>() 78 Truth.assertThat(trace.entries).isNotEmpty() in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/ |
D | Utils.kt | 82 wmTrace.entries.firstOrNull { it.timestamp >= transition.finishTime } in interpolateFinishTimestampFromTransition() 92 require(wmTrace.entries.isNotEmpty()) { "WM trace should not be empty!" } in interpolateFinishTimestampFromTransition() 94 wmTrace.entries.minByOrNull { in interpolateFinishTimestampFromTransition() 104 layersTrace.entries.firstOrNull { it.timestamp.unixNanos >= unixNanos } in interpolateFinishTimestampFromTransition() 109 (wmTrace.entries.firstOrNull { it.timestamp >= finishTransactionAppliedTimestamp } in interpolateFinishTimestampFromTransition() 132 (wmTrace.entries.firstOrNull { it.timestamp >= layersTraceEntry.timestamp } in getFullTimestampAt() 133 ?: wmTrace.entries.last()) in getFullTimestampAt()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/view/ |
D | ViewTraceMonitor.kt | 61 val entries = zipFile.entries() in <lambda>() constant 62 while (entries.hasMoreElements()) { in <lambda>() 63 val entry = entries.nextElement() in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/inputmethod/ |
D | ImeClientTrace.kt | 30 data class ImeClientTrace(override val entries: Collection<ImeClientEntry>) : constant in android.tools.traces.inputmethod.ImeClientTrace 45 this.entries in slice()
|
D | InputMethodManagerServiceTrace.kt | 32 override val entries: Collection<InputMethodManagerServiceEntry> constant in android.tools.traces.inputmethod.InputMethodManagerServiceTrace 51 this.entries in slice()
|
D | InputMethodServiceTrace.kt | 31 data class InputMethodServiceTrace(override val entries: Collection<InputMethodServiceEntry>) : constant in android.tools.traces.inputmethod.InputMethodServiceTrace 50 this.entries in slice()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/ |
D | InputMethodManagerServiceTraceSubject.kt | 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>()
|
D | ImeClientTraceSubject.kt | 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>()
|