Home
last modified time | relevance | path

Searched refs:Timestamp (Results 1 – 25 of 82) sorted by relevance

1234

/platform_testing/libraries/flicker/utils/src/android/tools/
DTimestampFactory.kt20 private val empty by lazy { Timestamp(0L, 0L, 0L, realTimestampFormatter) } in <lambda>()
21 private val min by lazy { Timestamp(1, 1, 1, realTimestampFormatter) } in <lambda>()
23 Timestamp(Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE, realTimestampFormatter) in <lambda>()
26 fun min(): Timestamp = min in min()
27 fun max(): Timestamp = max in min()
28 fun empty(): Timestamp = empty in min()
34 ): Timestamp { in min()
35 return Timestamp( in min()
47 ): Timestamp { in from()
55 fun from(elapsedNanos: Long, elapsedOffsetNanos: Long): Timestamp { in from()
[all …]
DTrace.kt23 fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): Trace<Entry> in slice()
29 fun getEntryExactlyAt(timestamp: Timestamp): Entry { in slice()
44 fun getEntryAt(timestamp: Timestamp): Entry { in getEntryAt()
DTimestamp.kt28 data class Timestamp class
34 ) : Comparable<Timestamp> {
97 operator fun minus(nanos: Long): Timestamp { in minus()
101 return Timestamp(elapsedNanos, systemUptimeNanos, unixNanos, realTimestampFormatter) in minus()
104 operator fun minus(timestamp: Timestamp): Timestamp { in minus()
123 return Timestamp(elapsedNanos, systemUptimeNanos, unixNanos, realTimestampFormatter) in minus()
146 if (other !is Timestamp) { in equals()
152 override fun compareTo(other: Timestamp): Int { in compareTo()
/platform_testing/libraries/flicker/utils/test/src/android/tools/
DTimeUtilsTest.kt32 Truth.assertThat(Timestamp.formatElapsedTimestamp(0)).isEqualTo("0ns") in canFormatElapsedTime()
33 Truth.assertThat(Timestamp.formatElapsedTimestamp(1000)).isEqualTo("1000ns") in canFormatElapsedTime()
34 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND - 1)).isEqualTo("999999ns") in canFormatElapsedTime()
35 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND)).isEqualTo("1ms0ns") in canFormatElapsedTime()
36 Truth.assertThat(Timestamp.formatElapsedTimestamp(10 * MILLISECOND)).isEqualTo("10ms0ns") in canFormatElapsedTime()
38 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND - 1)).isEqualTo("999ms999999ns") in canFormatElapsedTime()
39 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND)).isEqualTo("1s0ms0ns") in canFormatElapsedTime()
40 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND + MILLISECOND)) in canFormatElapsedTime()
43 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE - 1)).isEqualTo("59s999ms999999ns") in canFormatElapsedTime()
44 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE)).isEqualTo("1m0s0ms0ns") in canFormatElapsedTime()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWmTransitionData.kt19 import android.tools.Timestamp
22 val createTime: Timestamp? = null,
23 val sendTime: Timestamp? = null,
24 val abortTime: Timestamp? = null,
25 val finishTime: Timestamp? = null,
26 val startingWindowRemoveTime: Timestamp? = null,
DShellTransitionData.kt19 import android.tools.Timestamp
22 val dispatchTime: Timestamp? = null,
23 val mergeRequestTime: Timestamp? = null,
24 val mergeTime: Timestamp? = null,
25 val abortTime: Timestamp? = null,
DTransition.kt19 import android.tools.Timestamp
54 val createTime: Timestamp = wmData.createTime ?: Timestamps.min()
56 val sendTime: Timestamp = wmData.sendTime ?: Timestamps.min()
58 val abortTime: Timestamp? = wmData.abortTime
60 val finishTime: Timestamp = wmData.finishTime ?: wmData.abortTime ?: Timestamps.max()
62 val startingWindowRemoveTime: Timestamp? = wmData.startingWindowRemoveTime
64 val dispatchTime: Timestamp = shellData.dispatchTime ?: Timestamps.min()
66 val mergeRequestTime: Timestamp? = shellData.mergeRequestTime
68 val mergeTime: Timestamp? = shellData.mergeTime
70 val shellAbortTime: Timestamp? = shellData.abortTime
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DCuj.kt19 import android.tools.Timestamp
24 val startTimestamp: Timestamp,
25 val endTimestamp: Timestamp,
29 override val timestamp: Timestamp = startTimestamp
DEventLog.kt19 import android.tools.Timestamp
41 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): EventLog { in slice()
/platform_testing/libraries/flicker/utils/src/android/tools/io/
DTransitionTimeRange.kt19 import android.tools.Timestamp
22 data class TransitionTimeRange(val start: Timestamp, val end: Timestamp)
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DTraceSlice.kt19 import android.tools.Timestamp
24 val startTimestamp: Timestamp,
25 val endTimestamp: Timestamp,
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/
DAbstractTraceParser.kt20 import android.tools.Timestamp
30 protected abstract fun getTimestamp(entry: InputTypeEntry): Timestamp in getEntries()
75 from: Timestamp, in doParse()
76 to: Timestamp, in doParse()
107 from: Timestamp, in parse()
108 to: Timestamp, in parse()
134 from: Timestamp, in parse()
135 to: Timestamp, in parse()
DAbstractParser.kt20 import android.tools.Timestamp
60 entries: List<Timestamp>, in getTimestampsInRange()
61 from: Timestamp, in getTimestampsInRange()
62 to: Timestamp, in getTimestampsInRange()
64 ): Set<Timestamp> { in getTimestampsInRange()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/inputmethod/
DImeClientTrace.kt18 import android.tools.Timestamp
43 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): ImeClientTrace { in slice()
DInputMethodManagerServiceTrace.kt19 import android.tools.Timestamp
47 startTimestamp: Timestamp, in slice()
48 endTimestamp: Timestamp in slice()
DInputMethodServiceTrace.kt19 import android.tools.Timestamp
46 startTimestamp: Timestamp, in slice()
47 endTimestamp: Timestamp in slice()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/view/
DViewTrace.kt19 import android.tools.Timestamp
32 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): ViewTrace = in slice()
DViewFrame.kt19 import android.tools.Timestamp
28 class ViewFrame(override val timestamp: Timestamp, val root: ViewNode) : TraceEntry
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DIResultData.kt19 import android.tools.Timestamp
35 fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): IResultData
/platform_testing/libraries/flicker/utils/src/android/tools/traces/protolog/
DProtoLogTrace.kt19 import android.tools.Timestamp
25 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): ProtoLogTrace { in slice()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/region/
DRegionTrace.kt19 import android.tools.Timestamp
36 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): Trace<RegionEntry> { in slice()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DLayersTrace.kt19 import android.tools.Timestamp in <lambda>()
41 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): LayersTrace { in <lambda>()
59 fun getFirstEntryWithOnDisplayAfter(timestamp: Timestamp): LayerTraceEntry { in <lambda>()
66 fun getLastEntryWithOnDisplayBefore(timestamp: Timestamp): LayerTraceEntry { in <lambda>()
DTransactionsTrace.kt19 import android.tools.Timestamp in <lambda>()
41 override fun slice(startTimestamp: Timestamp, endTimestamp: Timestamp): TransactionsTrace { in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTestUtils.kt19 import android.tools.Timestamp
40 private fun validateEqualTo(time: Timestamp, name: String, expectedValue: Timestamp) { in validateEqualTo()
52 private fun validateTimeGreaterThan(time: Timestamp, name: String, minValue: Timestamp) { in validateTimeGreaterThan()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DLegacyTransitionTraceParser.kt19 import android.tools.Timestamp
30 from: Timestamp = Timestamps.min(), in parse()
31 to: Timestamp = Timestamps.max(), in parse()

1234