Home
last modified time | relevance | path

Searched refs:unixNanos (Results 1 – 23 of 23) sorted by relevance

/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DTestTraces.kt45 val START_TIME = Timestamps.from(unixNanos = 100)
46 val SLICE_TIME = Timestamps.from(unixNanos = 1670594384516466159)
47 val END_TIME = Timestamps.from(unixNanos = 1670594389958451901)
70 Timestamps.from(elapsedNanos = 760760231809, systemUptimeNanos = 0, unixNanos = 0)
75 unixNanos = 0
81 unixNanos = 0,
84 Timestamps.from(elapsedNanos = 2770105426934, systemUptimeNanos = 0, unixNanos = 0)
96 Timestamps.from(elapsedNanos = 479583450794, systemUptimeNanos = 0, unixNanos = 0)
101 unixNanos = 0
107 unixNanos = 0,
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/
DTimestamp.kt32 val unixNanos: Long = 0L, constant in android.tools.Timestamp
37 val hasUnixTimestamp = unixNanos != 0L
40 val isMin = elapsedNanos == 1L && systemUptimeNanos == 1L && unixNanos == 1L
44 unixNanos == Long.MAX_VALUE
47 val seconds = unixNanos / SECOND_AS_NANOSECONDS in unixNanosToLogFormat()
48 val nanos = unixNanos % SECOND_AS_NANOSECONDS in unixNanosToLogFormat()
100 val unixNanos = max(this.unixNanos - nanos, 0L) in minus() constant
101 return Timestamp(elapsedNanos, systemUptimeNanos, unixNanos, realTimestampFormatter) in minus()
117 val unixNanos = in minus() constant
119 this.unixNanos - timestamp.unixNanos in minus()
[all …]
DTimestampFactory.kt33 unixNanos: Long? = null, in min()
38 unixNanos ?: 0L, in min()
46 unixNanos: String? = null, in from()
51 (unixNanos ?: "0").toLong() in from()
58 unixNanos = elapsedNanos + elapsedOffsetNanos, in from()
67 unixNanos = elapsedNanosLong + elapsedOffsetNanos.toLong() in from()
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DUtils.kt36 val unixNanos = lastWmEntryBeforeTransitionCreated.timestamp.unixNanos in interpolateStartTimestampFromTransition() constant
51 return Timestamps.from(elapsedNanos, systemUptimeNanos, unixNanos) in interpolateStartTimestampFromTransition()
75 val unixNanos: Long in interpolateFinishTimestampFromTransition() constant
88 unixNanos = in interpolateFinishTimestampFromTransition()
90 wmEntryAtTransitionFinished.timestamp.unixNanos in interpolateFinishTimestampFromTransition()
99 closestWmEntry.timestamp.unixNanos - closestWmEntry.timestamp.elapsedNanos in interpolateFinishTimestampFromTransition()
104 layersTrace.entries.firstOrNull { it.timestamp.unixNanos >= unixNanos } in interpolateFinishTimestampFromTransition()
121 unixNanos = in interpolateFinishTimestampFromTransition()
122 layersTrace.getEntryAt(finishTransactionAppliedTimestamp).timestamp.unixNanos in interpolateFinishTimestampFromTransition()
125 return Timestamps.from(elapsedNanos, systemUptimeNanos, unixNanos) in interpolateFinishTimestampFromTransition()
[all …]
DTaggedScenarioExtractor.kt114 unixNanos = in <lambda>()
116 cujEntry.startTimestamp.unixNanos, in <lambda>()
117 interpolatedStartTimestamp?.unixNanos ?: cujEntry.startTimestamp.unixNanos in <lambda>()
144 unixNanos = max(cujEntry.endTimestamp.unixNanos, interpolatedEndTimestamp.unixNanos) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/events/
DEventLogParser.kt52 Timestamps.from(unixNanos = rawTimestamp.replace(".", "").toLong()) in <lambda>()
55 .sortedBy { it.timestamp.unixNanos } in <lambda>()
94 require(from.unixNanos < to.unixNanos) { "'to' needs to be greater than 'from'" } in <lambda>()
98 .sortedBy { getTimestampFromRawEntry(it).unixNanos } in <lambda>()
99 .dropWhile { getTimestampFromRawEntry(it).unixNanos < from.unixNanos } in <lambda>()
100 .dropLastWhile { getTimestampFromRawEntry(it).unixNanos > to.unixNanos } in <lambda>()
107 return Timestamps.from(unixNanos = rawTimestamp.replace(".", "").toLong()) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt47 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEvents()
48 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEvents()
74 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEventsWithTags()
75 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEventsWithTags()
99 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateCanceledCujsFromListOfCujEvents()
100 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateCanceledCujsFromListOfCujEvents()
150 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canHandleOutOfOrderEntries()
151 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canHandleOutOfOrderEntries()
183 Timestamps.from(unixNanos = timestamp), in createCujEvent()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/events/
DEventLogSubjectTest.kt42 Timestamps.from(unixNanos = 0), in canDetectFocusChanges()
51 Timestamps.from(unixNanos = 0), in canDetectFocusChanges()
60 Timestamps.from(unixNanos = 0), in canDetectFocusChanges()
69 Timestamps.from(unixNanos = 0), in canDetectFocusChanges()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTestUtils.kt45 .that(time.unixNanos) in validateEqualTo()
46 .isEqualTo(expectedValue.unixNanos) in validateEqualTo()
57 .that(time.unixNanos) in validateTimeGreaterThan()
58 .isGreaterThan(minValue.unixNanos) in validateTimeGreaterThan()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DWindowManagerStateTest.kt61 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
85 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
DWindowManagerTraceEntryBuilderTest.kt58 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime()
81 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in supportsMissingRealToElapsedTimeOffsetNs()
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/events/
DEventLogMonitorTest.kt332 now.unixNanos, in canCaptureCujEvents()
340 now.unixNanos, in canCaptureCujEvents()
361 now.unixNanos, in collectsCujEventData()
368 now.unixNanos + 1, in collectsCujEventData()
374 now.unixNanos + 2, in collectsCujEventData()
387 now.unixNanos <= it.timestamp.unixNanos && in collectsCujEventData()
388 it.timestamp.unixNanos <= (now.unixNanos + 2) in collectsCujEventData()
414 now.unixNanos, in canParseHandleUnknownCujTypes()
422 now.unixNanos, in canParseHandleUnknownCujTypes()
429 now.unixNanos, in canParseHandleUnknownCujTypes()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTraceEntryBuilderTest.kt56 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime()
73 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in supportsMissingRealToElapsedTimeOffsetNs()
DLayersTraceEntryTest.kt185 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
199 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/extractor/
DShellTransitionScenarioExtractorTest.kt77 unixNanos = 1682433264342452347, in <lambda>()
85 unixNanos = 1682433277025674745, in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DExtensions.kt42 unixNanos = now.epochSecond * SECOND_AS_NANOSECONDS + now.nano in getDefaultFlickerOutputDir()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DResultReaderTestParseEventLog.kt38 override fun getTime(traceTime: Timestamp) = traceTime.unixNanos
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/
DTransitionExecutionRule.kt84 now.unixNanos, in doRunBeforeTransition()
102 now.unixNanos, in doRunAfterTransition()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DWindowManagerTraceParser.kt48 unixNanos = entry.elapsedRealtimeNanos + realToElapsedTimeOffsetNanos in doDecodeByteArray()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DCujTrace.kt37 val sortedCujEvents = cujEvents.sortedBy { it.timestamp.unixNanos } in from()
DCujEvent.kt62 unixNanos = getUnixTimestampFromData(data, eventTag.asCujType()) in fromData()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DLayerTraceEntry.kt43 Timestamps.from(systemUptimeNanos = elapsedTimestamp, unixNanos = clockTimestamp) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowManagerState.kt50 Timestamps.from(elapsedNanos = elapsedTimestamp, unixNanos = clockTimestamp) in <lambda>()