/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | TimestampFactory.kt | 31 elapsedNanos: Long? = null, in min() 36 elapsedNanos ?: 0L, in min() 44 elapsedNanos: String? = null, in from() 49 (elapsedNanos ?: "0").toLong(), in from() 55 fun from(elapsedNanos: Long, elapsedOffsetNanos: Long): Timestamp { in from() 57 elapsedNanos = elapsedNanos, in from() 58 unixNanos = elapsedNanos + elapsedOffsetNanos, in from() 63 fun from(elapsedNanos: String, elapsedOffsetNanos: String): Timestamp { in from() 64 val elapsedNanosLong = elapsedNanos.toLong() in from() 66 elapsedNanos = elapsedNanosLong, in from()
|
D | Timestamp.kt | 30 val elapsedNanos: Long = 0L, constant in android.tools.Timestamp 35 val hasElapsedTimestamp = elapsedNanos != 0L 40 val isMin = elapsedNanos == 1L && systemUptimeNanos == 1L && unixNanos == 1L 42 elapsedNanos == Long.MAX_VALUE && 98 val elapsedNanos = max(this.elapsedNanos - nanos, 0L) in minus() constant 101 return Timestamp(elapsedNanos, systemUptimeNanos, unixNanos, realTimestampFormatter) in minus() 105 val elapsedNanos = in minus() constant 107 this.elapsedNanos - timestamp.elapsedNanos in minus() 123 return Timestamp(elapsedNanos, systemUptimeNanos, unixNanos, realTimestampFormatter) in minus() 163 PreferredType.ELAPSED -> this.elapsedNanos.compareTo(other.elapsedNanos) in compareTo() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | TestTraces.kt | 35 val START_TIME = Timestamps.from(elapsedNanos = 1618650751245) 36 val SLICE_TIME = Timestamps.from(elapsedNanos = 1618730362295) 37 val END_TIME = Timestamps.from(elapsedNanos = 1620756218174) 55 Timestamps.from(systemUptimeNanos = 1556111744859, elapsedNanos = 1556111744859) 57 Timestamps.from(systemUptimeNanos = 1556147625539, elapsedNanos = 1556147625539) 60 Timestamps.from(systemUptimeNanos = 1622127714039, elapsedNanos = 1622127714039) 70 Timestamps.from(elapsedNanos = 760760231809, systemUptimeNanos = 0, unixNanos = 0) 73 elapsedNanos = 2770105426934 - 1000, 79 elapsedNanos = 2770105426934 + 1, 84 Timestamps.from(elapsedNanos = 2770105426934, systemUptimeNanos = 0, unixNanos = 0) [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | TraceParserTest.kt | 33 Timestamps.min().elapsedNanos, in canSliceWithAllBefore() 34 mockTraceForSliceTests.entries.first().timestamp.elapsedNanos - 1, in canSliceWithAllBefore() 47 Timestamps.from(elapsedNanos = from), in canSliceWithAllAfter() 48 Timestamps.from(elapsedNanos = to), in canSliceWithAllAfter() 57 Timestamps.from(elapsedNanos = from), in canSliceWithAllAfter() 58 Timestamps.from(elapsedNanos = to), 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() 93 mockTraceForSliceTests.entries.last().timestamp.elapsedNanos + 1, in canSliceFromBeforeToAfterLastEntry() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/ |
D | Utils.kt | 35 val elapsedNanos = lastWmEntryBeforeTransitionCreated.timestamp.elapsedNanos in interpolateStartTimestampFromTransition() constant 51 return Timestamps.from(elapsedNanos, systemUptimeNanos, unixNanos) in interpolateStartTimestampFromTransition() 73 val elapsedNanos: Long in interpolateFinishTimestampFromTransition() constant 84 elapsedNanos = in interpolateFinishTimestampFromTransition() 85 wmEntryAtTransitionFinished?.timestamp?.elapsedNanos in interpolateFinishTimestampFromTransition() 86 ?: transition.finishTime.elapsedNanos in interpolateFinishTimestampFromTransition() 95 abs(it.timestamp.elapsedNanos - transition.finishTime.elapsedNanos) in interpolateFinishTimestampFromTransition() 99 closestWmEntry.timestamp.unixNanos - closestWmEntry.timestamp.elapsedNanos in interpolateFinishTimestampFromTransition() 100 transition.finishTime.elapsedNanos + offset in interpolateFinishTimestampFromTransition() 108 elapsedNanos = in interpolateFinishTimestampFromTransition() [all …]
|
D | TaggedScenarioExtractor.kt | 103 elapsedNanos = in <lambda>() 105 cujEntry.startTimestamp.elapsedNanos, in <lambda>() 106 interpolatedStartTimestamp?.elapsedNanos ?: cujEntry.startTimestamp.elapsedNanos in <lambda>() 137 elapsedNanos = in <lambda>() 138 max(cujEntry.endTimestamp.elapsedNanos, interpolatedEndTimestamp.elapsedNanos), in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | TransitionsTrace.kt | 45 return sliceElapsed(startTimestamp.elapsedNanos, endTimestamp.elapsedNanos) in slice() 51 .dropWhile { it.sendTime.elapsedNanos < from } in sliceElapsed() 52 .dropLastWhile { it.createTime.elapsedNanos > to } in sliceElapsed()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/ |
D | TransitionsTraceTest.kt | 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()
|
D | TransitionTest.kt | 68 Truth.assertThat(mergedTransition.createTime.elapsedNanos).isEqualTo(10) in canMergePartialTransitions() 69 Truth.assertThat(mergedTransition.sendTime.elapsedNanos).isEqualTo(20) in canMergePartialTransitions() 70 Truth.assertThat(mergedTransition.dispatchTime.elapsedNanos).isEqualTo(22) in canMergePartialTransitions() 71 Truth.assertThat(mergedTransition.finishTime.elapsedNanos).isEqualTo(40) in canMergePartialTransitions() 128 Truth.assertThat(mergedTransition.createTime.elapsedNanos).isEqualTo(100) in mergePartialTransitionsOverrideValues() 129 Truth.assertThat(mergedTransition.sendTime.elapsedNanos).isEqualTo(200) in mergePartialTransitionsOverrideValues() 130 Truth.assertThat(mergedTransition.abortTime?.elapsedNanos).isEqualTo(300) in mergePartialTransitionsOverrideValues() 131 Truth.assertThat(mergedTransition.finishTime.elapsedNanos).isEqualTo(400) in mergePartialTransitionsOverrideValues() 135 Truth.assertThat(mergedTransition.dispatchTime.elapsedNanos).isEqualTo(210) in mergePartialTransitionsOverrideValues() 136 Truth.assertThat(mergedTransition.mergeRequestTime?.elapsedNanos).isEqualTo(220) in mergePartialTransitionsOverrideValues() [all …]
|
D | WindowManagerTraceTest.kt | 50 trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9213763541297L)).appWindows in <lambda>() 113 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9213763541297)) in <lambda>() 121 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9215511235586)) in <lambda>() 141 assertThat(trace.entries.first().timestamp.elapsedNanos).isEqualTo(174686204723645) in <lambda>() 142 assertThat(trace.entries.last().timestamp.elapsedNanos).isEqualTo(174686640998584) in <lambda>()
|
D | WindowManagerStateTest.kt | 60 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() 84 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
|
D | WindowManagerTraceEntryBuilderTest.kt | 55 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in createsEntryWithCorrectClockTime() 78 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/ |
D | ShellTransitionTraceParser.kt | 58 return Timestamps.from(elapsedNanos = entry.dispatchTimeNs) in getEntries() 61 return Timestamps.from(elapsedNanos = entry.mergeRequestTimeNs) in getEntries() 64 return Timestamps.from(elapsedNanos = entry.mergeTimeNs) in getEntries() 67 return Timestamps.from(elapsedNanos = entry.abortTimeNs) in getEntries() 106 Timestamps.from(elapsedNanos = entry.dispatchTimeNs) in doParseEntry() 112 Timestamps.from(elapsedNanos = entry.mergeRequestTimeNs) in doParseEntry() 118 Timestamps.from(elapsedNanos = entry.mergeTimeNs) in doParseEntry() 124 Timestamps.from(elapsedNanos = entry.abortTimeNs) in doParseEntry()
|
D | WmTransitionTraceParser.kt | 57 return Timestamps.from(elapsedNanos = entry.createTimeNs) in getEntries() 60 return Timestamps.from(elapsedNanos = entry.sendTimeNs) in getEntries() 63 return Timestamps.from(elapsedNanos = entry.abortTimeNs) in getEntries() 66 return Timestamps.from(elapsedNanos = entry.finishTimeNs) in getEntries() 69 return Timestamps.from(elapsedNanos = entry.startingWindowRemoveTimeNs) in getEntries() 132 Timestamps.from(elapsedNanos = this)
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/ |
D | TestUtils.kt | 48 .that(time.elapsedNanos) in validateEqualTo() 49 .isEqualTo(expectedValue.elapsedNanos) in validateEqualTo() 60 .that(time.elapsedNanos) in validateTimeGreaterThan() 61 .isGreaterThan(minValue.elapsedNanos) in validateTimeGreaterThan()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | TransactionsTrace.kt | 29 prev.timestamp.elapsedNanos < next.timestamp.elapsedNanos in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/ |
D | LayerTraceEntryBuilderTest.kt | 54 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in createsEntryWithCorrectClockTime() 71 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in supportsMissingRealToElapsedTimeOffsetNs()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/wm/ |
D | WindowManagerTraceParserTest.kt | 44 Truth.assertThat(firstEntry.timestamp.elapsedNanos).isEqualTo(9213763541297L) in canParseAllEntriesFromStoredTrace() 47 Truth.assertThat(trace.entries.last().timestamp.elapsedNanos).isEqualTo(9216093628925L) in canParseAllEntriesFromStoredTrace()
|
D | LegacyWmLegacyTransitionTraceParserTest.kt | 50 Truth.assertThat(firstEntry.timestamp.elapsedNanos).isEqualTo(2750430124061L) in canParseAllEntriesFromStoredTrace() 51 Truth.assertThat(lastEntry.timestamp.elapsedNanos).isEqualTo(2770105426934L) in canParseAllEntriesFromStoredTrace()
|
D | LegacyShellLegacyTransitionTraceParserTest.kt | 51 Truth.assertThat(firstEntry.timestamp.elapsedNanos).isEqualTo(760760231809L) in canParseAllEntriesFromStoredTrace() 52 Truth.assertThat(lastEntry.timestamp.elapsedNanos).isEqualTo(2770678425968L) in canParseAllEntriesFromStoredTrace()
|
D | LegacyTransitionTraceParserTest.kt | 49 Truth.assertThat(firstEntry.timestamp.elapsedNanos).isEqualTo(760760231809L) in <lambda>() 53 Truth.assertThat(lastEntry.timestamp.elapsedNanos).isEqualTo(2770105426934L) in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/events/ |
D | EventLogMonitorTest.kt | 333 now.elapsedNanos, in canCaptureCujEvents() 341 now.elapsedNanos, in canCaptureCujEvents() 362 now.elapsedNanos, in collectsCujEventData() 369 now.elapsedNanos + 1, in collectsCujEventData() 375 now.elapsedNanos + 2, in collectsCujEventData() 415 now.elapsedNanos, in canParseHandleUnknownCujTypes() 423 now.elapsedNanos, in canParseHandleUnknownCujTypes() 430 now.elapsedNanos, in canParseHandleUnknownCujTypes()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/protolog/ |
D | ProtoLogMessage.kt | 30 override val timestamp = Timestamps.from(elapsedNanos = elapsedTimestamp)
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/extractor/ |
D | ShellTransitionScenarioExtractorTest.kt | 79 elapsedNanos = 2755182606546 in <lambda>() 87 elapsedNanos = 2767949503328 in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/ |
D | ResultReaderTestParseWM.kt | 34 override fun getTime(traceTime: Timestamp) = traceTime.elapsedNanos
|