Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 118) sorted by relevance

12345

/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DTestTraces.kt26 val START_TIME = Timestamps.from(systemUptimeNanos = 1618663562444)
27 val SLICE_TIME = Timestamps.from(systemUptimeNanos = 1618715108595)
28 val END_TIME = Timestamps.from(systemUptimeNanos = 1620770824112)
35 val START_TIME = Timestamps.from(elapsedNanos = 1618650751245)
36 val SLICE_TIME = Timestamps.from(elapsedNanos = 1618730362295)
37 val END_TIME = Timestamps.from(elapsedNanos = 1620756218174)
45 val START_TIME = Timestamps.from(unixNanos = 100)
46 val SLICE_TIME = Timestamps.from(unixNanos = 1670594384516466159)
47 val END_TIME = Timestamps.from(unixNanos = 1670594389958451901)
55 Timestamps.from(systemUptimeNanos = 1556111744859, elapsedNanos = 1556111744859)
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DTraceParserTest.kt41 val from = mockTraceForSliceTests.entries.last().elapsedTimestamp + 5 in canSliceWithAllAfter() constant
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()
149 private fun testSliceUsingElapsedTimestamp(from: Long, to: Long, expected: List<Timestamp>) { in testSliceUsingElapsedTimestamp()
150 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
155 from: Timestamp?, in testSliceUsingElapsedTimestamp()
159 return testSliceUsingElapsedTimestamp(from, to, expected.map { it.elapsedNanos }) in testSliceUsingElapsedTimestamp()
163 from: Long, in testSliceUsingElapsedTimestamp()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/
DTraceTest.kt31 val entry1 = SimpleTraceEntry(Timestamps.from(1, 1, 1)) in getEntryExactlyAtTest()
32 val entry2 = SimpleTraceEntry(Timestamps.from(5, 5, 5)) in getEntryExactlyAtTest()
33 val entry3 = SimpleTraceEntry(Timestamps.from(25, 25, 25)) in getEntryExactlyAtTest()
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()
49 val entry1 = SimpleTraceEntry(Timestamps.from(2, 2, 2)) in getEntryAtTest()
50 val entry2 = SimpleTraceEntry(Timestamps.from(5, 5, 5)) in getEntryAtTest()
51 val entry3 = SimpleTraceEntry(Timestamps.from(25, 25, 25)) in getEntryAtTest()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DTransitionTest.kt38 createTime = Timestamps.from(10), in canMergePartialTransitions()
39 sendTime = Timestamps.from(20), in canMergePartialTransitions()
48 dispatchTime = Timestamps.from(22), in canMergePartialTransitions()
58 finishTime = Timestamps.from(40), in canMergePartialTransitions()
81 createTime = Timestamps.from(10), in mergePartialTransitionsOverrideValues()
82 sendTime = Timestamps.from(20), in mergePartialTransitionsOverrideValues()
83 abortTime = Timestamps.from(30), in mergePartialTransitionsOverrideValues()
84 finishTime = Timestamps.from(40), in mergePartialTransitionsOverrideValues()
92 dispatchTime = Timestamps.from(21), in mergePartialTransitionsOverrideValues()
93 mergeRequestTime = Timestamps.from(22), in mergePartialTransitionsOverrideValues()
[all …]
DTransitionsTraceTest.kt40 createTime = Timestamps.from(10), in canBeCompressed()
41 sendTime = Timestamps.from(20), in canBeCompressed()
48 dispatchTime = Timestamps.from(22), in canBeCompressed()
56 finishTime = Timestamps.from(40), in canBeCompressed()
DWindowManagerTraceTest.kt50 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>()
134 from = 174686204723645, in <lambda>()
150 from = 9213763541297, in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/
DTimestampFactory.kt30 fun from( in min() method in android.tools.TimestampFactory
43 fun from( in from() method in android.tools.TimestampFactory
48 return from( in from()
55 fun from(elapsedNanos: Long, elapsedOffsetNanos: Long): Timestamp { in from() method in android.tools.TimestampFactory
63 fun from(elapsedNanos: String, elapsedOffsetNanos: String): Timestamp { in from() method in android.tools.TimestampFactory
65 return from( in from()
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/
DAbstractTraceParser.kt39 from = Timestamps.min(), in getEntries()
49 from = Timestamps.min(), in parse()
59 from = Timestamps.min(), in doParse()
75 from: Timestamp, in doParse()
84 getTimestampsInRange(allInputTimestamps, from, to, addInitialEntry) in doParse()
107 from: Timestamp, in parse()
114 doParse(input, from, to, addInitialEntry) in parse()
134 from: Timestamp, in parse()
140 return parse(input, from, to, addInitialEntry, clearCache) in parse()
DAbstractParser.kt61 from: Timestamp, in getTimestampsInRange()
65 require(from <= to) { "`from` must be smaller or equal to `to` but was $from and $to" } in getTimestampsInRange()
75 entries.last() < from -> { in getTimestampsInRange()
91 var first = entries.indexOfFirst { it >= from } in getTimestampsInRange()
96 if (addInitialEntry && first > 0 && entries[first] > from) { in getTimestampsInRange()
/platform_testing/libraries/flicker/utils/test/src/android/tools/datatypes/
DSizeTest.kt21 override val valueTest = Size.from(1, 2)
22 override val valueEqual = Size.from(1, 2)
23 override val valueDifferent = Size.from(2, 3)
DActiveBufferTest.kt21 override val valueTest = ActiveBuffer.from(1, 2, 3, 4)
22 override val valueEqual = ActiveBuffer.from(1, 2, 3, 4)
23 override val valueDifferent = ActiveBuffer.from(5, 6, 7, 8)
DMatrix33Test.kt24 override val valueTest = Matrix33.from(0f, 1f, 2f, 3f, 4f, 5f) in <lambda>()
25 override val valueEqual = Matrix33.from(0f, 1f, 2f, 3f, 4f, 5f) in <lambda>()
26 override val valueDifferent = Matrix33.from(6f, 7f, 8f, 9f, 10f, 11f) in <lambda>()
34 Matrix33.from(dsdx = 1f, dtdx = 0f, tx, dsdy = 0f, dtdy = 1f, ty) in <lambda>()
44 Matrix33.from(dsdx = 0f, dtdx = 1f, tx, dsdy = -1f, dtdy = 0f, ty) in <lambda>()
54 Matrix33.from(dsdx = -1f, dtdx = 0f, tx, dsdy = 0f, dtdy = -1f, ty) in <lambda>()
64 Matrix33.from(dsdx = 0f, dtdx = -1f, tx, dsdy = 1f, dtdy = 0f, ty) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DMatrix33.kt54 get() = withCache { from(dsdx = 0f, dtdx = 0f, tx = 0f, dsdy = 0f, dtdy = 0f, ty = 0f) } in <lambda>()
57 from(dsdx = 1f, dtdx = 0f, x, dsdy = 0f, dtdy = 1f, y) in <lambda>()
61 from(dsdx = 0f, dtdx = -1f, x, dsdy = 1f, dtdy = 0f, y) in <lambda>()
65 from(dsdx = -1f, dtdx = 0f, x, dsdy = 0f, dtdy = -1f, y) in <lambda>()
69 from(dsdx = 0f, dtdx = 1f, x, dsdy = -1f, dtdy = 0f, y) in <lambda>()
72 fun from( in from() method
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DShellTransitionTraceParser.kt58 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()
84 from: Timestamp, in doParse()
88 val uncompressedTransitionsTrace = super.doParse(input, from, to, addInitialEntry) in doParse()
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()
DLegacyTransitionTraceParser.kt30 from: Timestamp = Timestamps.min(), in parse()
33 val wmTransitionTrace = wmTransitionTraceParser.parse(wmSideTraceData, from, to) in parse()
34 val shellTransitionTrace = shellTransitionTraceParser.parse(shellSideTraceData, from, to) in parse()
DWmTransitionTraceParser.kt57 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()
79 from: Timestamp, in doParse()
83 val uncompressedTransitionsTrace = super.doParse(input, from, to, addInitialEntry) in doParse()
132 Timestamps.from(elapsedNanos = this)
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTest.kt69 activeBuffer = ActiveBuffer.from(100, 100, 1, 0) in useVisibleRegionIfCompositionStateIsAvailableForVisibility()
78 activeBuffer = ActiveBuffer.from(100, 100, 1, 0) in useVisibleRegionIfCompositionStateIsAvailableForVisibility()
91 activeBuffer = ActiveBuffer.from(100, 100, 1, 0) in fallbackOnLayerBoundsIfCompositionStateIsNotAvailableForVisibility()
100 activeBuffer = ActiveBuffer.from(100, 100, 1, 0) in fallbackOnLayerBoundsIfCompositionStateIsNotAvailableForVisibility()
110 activeBuffer = ActiveBuffer.from(100, 100, 1, 0) in fallbackOnLayerBoundsIfCompositionStateIsNotAvailableForVisibility()
124 return Layer.from( in makeLayerWithDefaults()
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/events/
DEventLogParser.kt52 Timestamps.from(unixNanos = rawTimestamp.replace(".", "").toLong()) in <lambda>()
70 FocusEvent.from(timestamp, pid, uid, tid, parseData(eventData)) in <lambda>()
93 fun parseSlice(bytes: ByteArray, from: Timestamp, to: Timestamp): EventLog { in <lambda>()
94 require(from.unixNanos < to.unixNanos) { "'to' needs to be greater than 'from'" } in <lambda>()
95 require(from.hasUnixTimestamp && to.hasUnixTimestamp) { "Missing required timestamp type" } in <lambda>()
99 .dropWhile { getTimestampFromRawEntry(it).unixNanos < from.unixNanos } in <lambda>()
107 return Timestamps.from(unixNanos = rawTimestamp.replace(".", "").toLong()) in <lambda>()
/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/sts-common-util/sts-sdk/package/sts-test/
Dbuild.gradle6 from layout.projectDirectory.file('src/hostsidetest.config.tmpl')
13 from jar
14 from copyConfig
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt30 CujTrace.from( in canCreateFromListOfCujEvents()
55 CujTrace.from( in canCreateFromListOfCujEventsWithTags()
82 CujTrace.from( in canCreateCanceledCujsFromListOfCujEvents()
107 CujTrace.from( in canHandleIncompleteCujs()
133 CujTrace.from( in canHandleOutOfOrderEntries()
158 CujTrace.from( in canHandleMissingStartAndEnds()
183 Timestamps.from(unixNanos = timestamp), in createCujEvent()
/platform_testing/libraries/sts-common-util/sts-sdk/package/
Dbuild.gradle15 from project('sts-test').layout.buildDirectory.file('testcases')
18 from project('native-poc').layout.buildDirectory.file(nativeDir)
27 from project('test-app').layout.buildDirectory.file('outputs/apk/debug')
39 from project('sts-test').layout.projectDirectory.file('libs')
43 from project('sts-test').layout.projectDirectory.dir('jdk')
89 from('.') {
98 from project('sts-test').layout.projectDirectory.file('libs/version.txt')
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DResultReader.kt103 from = transitionTimeRange.start, in <lambda>()
181 doReadTransactionsTrace(from = transitionTimeRange.start, to = transitionTimeRange.end) in <lambda>()
184 private fun doReadTransactionsTrace(from: Timestamp, to: Timestamp): TransactionsTrace? { in <lambda>()
189 TransactionsTraceParser().parse(session, from, to, addInitialEntry = true) in <lambda>()
238 from = transitionTimeRange.start, in <lambda>()
252 .parse(session, from = transitionTimeRange.start, to = transitionTimeRange.end) in <lambda>()
270 from = transitionTimeRange.start, in <lambda>()
291 .parseSlice(it, from = transitionTimeRange.start, to = transitionTimeRange.end) in <lambda>()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DRobolectricParameterizedRunner.java93 ClassParameter.from(TestClass.class, getTestClass()), in getHelperTestRunner()
94 ClassParameter.from(Integer.TYPE, mParametersIndex), in getHelperTestRunner()
95 ClassParameter.from(String.class, mName)); in getHelperTestRunner()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DUiObjectUtils.kt141 val (from, to) = getPointsToScroll(direction) constant
145 BetterSwipe.from(from).to(to, interpolator = FLING_GESTURE_INTERPOLATOR).release() in _()
150 private data class Vector2F(val from: PointF, val to: PointF) constant in android.platform.uiautomator_helpers.Vector2F

12345