/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/ |
D | ShellTransitionTraceParser.kt | 46 override fun shouldParseEntry(entry: com.android.wm.shell.nano.Transition): Boolean { in doDecodeByteArray() 54 override fun getTimestamp(entry: com.android.wm.shell.nano.Transition): Timestamp { in getEntries() 55 requireValidTimestamp(entry) in getEntries() 57 if (entry.dispatchTimeNs != 0L) { in getEntries() 58 return Timestamps.from(elapsedNanos = entry.dispatchTimeNs) in getEntries() 60 if (entry.mergeRequestTimeNs != 0L) { in getEntries() 61 return Timestamps.from(elapsedNanos = entry.mergeRequestTimeNs) in getEntries() 63 if (entry.mergeTimeNs != 0L) { in getEntries() 64 return Timestamps.from(elapsedNanos = entry.mergeTimeNs) in getEntries() 66 if (entry.abortTimeNs != 0L) { in getEntries() [all …]
|
D | WmTransitionTraceParser.kt | 45 override fun shouldParseEntry(entry: com.android.server.wm.shell.nano.Transition): Boolean { in doDecodeByteArray() 53 override fun getTimestamp(entry: com.android.server.wm.shell.nano.Transition): Timestamp { in getEntries() 54 requireValidTimestamp(entry) in getEntries() 56 if (entry.createTimeNs != 0L) { in getEntries() 57 return Timestamps.from(elapsedNanos = entry.createTimeNs) in getEntries() 59 if (entry.sendTimeNs != 0L) { in getEntries() 60 return Timestamps.from(elapsedNanos = entry.sendTimeNs) in getEntries() 62 if (entry.abortTimeNs != 0L) { in getEntries() 63 return Timestamps.from(elapsedNanos = entry.abortTimeNs) in getEntries() 65 if (entry.finishTimeNs != 0L) { in getEntries() [all …]
|
D | WindowManagerTraceParser.kt | 42 override fun getEntries(input: WindowManagerTraceFileProto) = input.entry.toList() in doDecodeByteArray() 44 override fun getTimestamp(entry: WindowManagerTraceProto): Timestamp { in doDecodeByteArray() 47 elapsedNanos = entry.elapsedRealtimeNanos, in doDecodeByteArray() 48 unixNanos = entry.elapsedRealtimeNanos + realToElapsedTimeOffsetNanos in doDecodeByteArray() 56 override fun doParseEntry(entry: WindowManagerTraceProto): WindowManagerState { in doParseEntry() 58 .atPlace(entry.where) in doParseEntry() 59 .forTimestamp(entry.elapsedRealtimeNanos) in doParseEntry() 61 .forProto(entry.windowManagerService) in doParseEntry()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/config/ |
D | FlickerConfigImpl.kt | 49 val entry = registry[scenario] ?: error("No scenario named '$scenario' registered.") in <lambda>() constant 58 val entry = registry[scenario] in <lambda>() constant 59 require(entry != null) { "No scenario named '$scenario' registered." } in <lambda>() 62 require(entry.assertions.keys.none { it.id == assertion.id }) { in <lambda>() 69 entry.scenarioId, in <lambda>() 70 entry.extractor, in <lambda>() 71 entry.assertions.toMutableMap().apply { this[assertion] = stabilityGroup }, in <lambda>() 72 entry.enabled in <lambda>() 86 val entry = registry[scenario] in <lambda>() constant 87 require(entry != null) { "No scenario named '$scenario' registered." } in <lambda>() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/ |
D | WindowManagerTraceEntryBuilderTest.kt | 39 val entry = in createsEntryWithCorrectClockTime() constant 52 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in createsEntryWithCorrectClockTime() 53 Truth.assertThat(entry.clockTimestamp).isEqualTo(600) in createsEntryWithCorrectClockTime() 55 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in createsEntryWithCorrectClockTime() 56 Truth.assertThat(entry.timestamp.systemUptimeNanos) in createsEntryWithCorrectClockTime() 58 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime() 63 val entry = in supportsMissingRealToElapsedTimeOffsetNs() constant 75 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs() 76 Truth.assertThat(entry.clockTimestamp).isEqualTo(null) in supportsMissingRealToElapsedTimeOffsetNs() 78 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs() [all …]
|
D | WindowManagerStateTest.kt | 39 var entry = in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() variable 60 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() 61 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() 63 entry = in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() 84 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp() 85 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
|
D | WindowManagerTraceTest.kt | 104 trace.entries.forEach { entry: WindowManagerState -> in <lambda>() method 105 entry::class.java.accessProperties(entry) in <lambda>() 106 entry.displays.forEach { it::class.java.accessProperties(it) } in <lambda>() 113 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9213763541297)) in <lambda>() constant 115 .that(entry.isIncomplete()) in <lambda>() 121 val entry = trace.getEntryExactlyAt(Timestamps.from(elapsedNanos = 9215511235586)) in <lambda>() constant 123 .that(entry.isIncomplete()) in <lambda>() 126 assertThat(entry.getIsIncompleteReason()).contains("No resumed activities found") in <lambda>()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | BatteryUsageStatsHelperTest.java | 70 for (Map.Entry<String, Long> entry : batteryUsageStats.entrySet()) { in testBatteryUsageStatsMetrics() 71 hasTotalConsumed = hasTotalConsumed || entry.getKey().equals("power-consumed-total-dC"); in testBatteryUsageStatsMetrics() 75 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics() 80 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics() 85 .matcher(entry.getKey()) in testBatteryUsageStatsMetrics() 89 || Pattern.compile("duration-by.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 92 || Pattern.compile("time-in-fg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 95 || Pattern.compile("time-in-bg.*").matcher(entry.getKey()).matches(); in testBatteryUsageStatsMetrics() 123 for (Map.Entry<String, Long> entry : batteryUsageStats.entrySet()) { in testTotalConsumptionIsSumOfPerPackageConsumption() 126 if (total.matcher(entry.getKey()).matches()) { in testTotalConsumptionIsSumOfPerPackageConsumption() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/ |
D | LayerTraceEntryBuilderTest.kt | 50 val entry = builder.build() in createsEntryWithCorrectClockTime() constant 51 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in createsEntryWithCorrectClockTime() 52 Truth.assertThat(entry.clockTimestamp).isEqualTo(600) in createsEntryWithCorrectClockTime() 54 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in createsEntryWithCorrectClockTime() 55 Truth.assertThat(entry.timestamp.systemUptimeNanos).isEqualTo(100) in createsEntryWithCorrectClockTime() 56 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime() 67 val entry = builder.build() in supportsMissingRealToElapsedTimeOffsetNs() constant 68 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs() 69 Truth.assertThat(entry.clockTimestamp).isEqualTo(null) in supportsMissingRealToElapsedTimeOffsetNs() 71 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in supportsMissingRealToElapsedTimeOffsetNs() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/ |
D | InputMethodServiceEntrySubject.kt | 37 val entry: InputMethodServiceEntry, constant in android.tools.flicker.subject.inputmethod.InputMethodServiceEntrySubject 41 override val timestamp = entry.timestamp 46 ): InputMethodServiceEntrySubject = apply { assertion(this.entry) } in invoke() 50 check { "InputMethodServiceEntry" }.that(entry).isNull() in <lambda>() 55 check { "InputMethodServiceEntry" }.that(entry).isNotNull() in <lambda>() 58 override fun toString() = "InputMethodServiceEntrySubject($entry)"
|
D | ImeClientEntrySubject.kt | 37 val entry: ImeClientEntry, constant in android.tools.flicker.subject.inputmethod.ImeClientEntrySubject 41 override val timestamp = entry.timestamp 45 assertion(this.entry) in <lambda>() 50 check { "ImeClientEntry" }.that(entry).isNull() in <lambda>() 55 check { "ImeClientEntry" }.that(entry).isNotNull() in <lambda>() 59 return "ImeClientEntrySubject($entry)" in toString()
|
D | InputMethodManagerServiceEntrySubject.kt | 37 val entry: InputMethodManagerServiceEntry, constant in android.tools.flicker.subject.inputmethod.InputMethodManagerServiceEntrySubject 41 override val timestamp = entry.timestamp 46 ): InputMethodManagerServiceEntrySubject = apply { assertion(this.entry) } in invoke() 50 check { "InputMethodManagerServiceEntry" }.that(entry).isNull() in <lambda>() 55 check { "InputMethodManagerServiceEntry" }.that(entry).isNotNull() in <lambda>() 58 override fun toString() = "InputMethodManagerServiceEntrySubject($entry)"
|
/platform_testing/tests/bettertogether/betocq/ |
D | base_betocq_suite.py | 45 entry 46 for entry in user_data 47 if records.TestResultEnums.RECORD_CLASS in entry 48 and records.TestResultEnums.RECORD_NAME not in entry 54 for entry in class_data: 55 properties = entry.get('properties', {}) 105 entry 106 for entry in yaml.safe_load_all(f) 107 if entry['Type'] == records.TestSummaryEntryType.USER_DATA.value
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | ProtoLogTraceParser.kt | 38 override fun shouldParseEntry(entry: ProtoLogMessage) = true in <lambda>() 48 LogLevel.entries.firstOrNull { entry -> in <lambda>() method 49 it["level"] == entry.toString() in <lambda>() 64 override fun getTimestamp(entry: ProtoLogMessage): Timestamp = entry.timestamp in <lambda>() 66 override fun doParseEntry(entry: ProtoLogMessage) = entry in <lambda>()
|
D | TransactionsTraceParser.kt | 43 override fun shouldParseEntry(entry: TransactionsTraceEntry) = true in <lambda>() 60 val entry = buildTraceEntry(rows, realToMonotonicTimeOffsetNs) in <lambda>() constant 61 traceEntries.add(entry) in <lambda>() 68 override fun getTimestamp(entry: TransactionsTraceEntry): Timestamp = entry.timestamp in <lambda>() 72 override fun doParseEntry(entry: TransactionsTraceEntry) = entry in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/ |
D | ViewTraceParser.kt | 37 override fun getTimestamp(entry: WindowData) = in getEntries() 38 if (entry.frameDataList.isEmpty()) { in getEntries() 41 Timestamps.from(systemUptimeNanos = entry.frameDataList.first()?.timestamp) 44 override fun doParseEntry(entry: WindowData): ViewTrace = 45 WindowDataParser(entry.title, entry).parse(ByteArray(0))
|
D | WindowDataParser.kt | 37 override fun getTimestamp(entry: FrameData): Timestamp = in doDecodeByteArray() 38 Timestamps.from(systemUptimeNanos = entry.timestamp) in doDecodeByteArray() 40 override fun doParseEntry(entry: FrameData): ViewFrame { in doDecodeByteArray() 41 return ViewFrameBuilder().forSystemUptime(entry.timestamp).fromRootNode(entry.node).build() in doDecodeByteArray()
|
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/ |
D | ValidateMapEntries.java | 45 for (Entry<String, JsonElement> entry : jsonObject.entrySet()) { in deserialize() 46 String key = entry.getKey().trim(); in deserialize() 55 if (entry.getValue().isJsonNull() in deserialize() 56 || (entry.getValue().isJsonPrimitive() in deserialize() 57 && (!entry.getValue().getAsJsonPrimitive().isString() in deserialize() 58 || entry.getValue().getAsString().trim().isEmpty()))) { in deserialize() 66 String value = entry.getValue().getAsString().trim(); in deserialize()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/ |
D | EntireScreenCoveredAlways.kt | 32 invoke("entireScreenCovered") { entry -> in <lambda>() method 33 entry.entry.displays in <lambda>() 36 entry.visibleRegion().coversAtLeast(display.layerStackSpace) in <lambda>()
|
/platform_testing/host_runners/utils/src/com/android/runner/utils/ |
D | InstrumentationResultProtoParser.java | 127 for (ResultsBundleEntry entry : results.getEntriesList()) { in processTestStatus() 128 String currentKey = entry.getKey(); in processTestStatus() 130 if (entry.hasValueString()) { in processTestStatus() 131 currentValue = entry.getValueString().trim(); in processTestStatus() 132 } else if (entry.hasValueInt()) { in processTestStatus() 133 currentValue = String.valueOf(entry.getValueInt()); in processTestStatus() 155 for (ResultsBundleEntry entry : results.getEntriesList()) { in processSessionStatus() 156 String currentKey = entry.getKey(); in processSessionStatus() 158 if (entry.hasValueString()) { in processSessionStatus() 159 currentValue = entry.getValueString(); in processSessionStatus() [all …]
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | DataCollector.java | 82 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in start() 83 if (entry.getValue() > 0) { in start() 84 Log.d(TAG, "Collecting " + entry.getKey() + " logs every " + in start() 85 entry.getValue() + " milliseconds"); in start() 87 mLastUpdate.put(entry.getKey(), SystemClock.uptimeMillis()); in start() 124 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in loop() 125 Long t = SystemClock.uptimeMillis() - mLastUpdate.get(entry.getKey()); in loop() 127 if (entry.getValue() > 0 && t >= entry.getValue()) { in loop() 129 entry.getKey().save(instrumentation, resultsDirectory); in loop() 135 mLastUpdate.put(entry.getKey(), SystemClock.uptimeMillis()); in loop()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/ |
D | WindowManagerStateSubjectTest.kt | 107 val entry = in canDetectWindowCoversAtLeastRegion_exactSize() constant 111 entry.visibleRegion(ComponentNameMatcher.STATUS_BAR).coversAtLeast(statusBarRegion) in canDetectWindowCoversAtLeastRegion_exactSize() 112 entry.visibleRegion(TestComponents.LAUNCHER).coversAtLeast(displayBounds) in canDetectWindowCoversAtLeastRegion_exactSize() 117 val entry = in canDetectWindowCoversAtLeastRegion_smallerRegion() constant 120 entry.visibleRegion(ComponentNameMatcher.STATUS_BAR).coversAtLeast(Region(0, 0, 100, 100)) in canDetectWindowCoversAtLeastRegion_smallerRegion() 121 entry.visibleRegion(TestComponents.LAUNCHER).coversAtLeast(Region(0, 0, 100, 100)) in canDetectWindowCoversAtLeastRegion_smallerRegion() 142 val entry = in canDetectWindowCoversExactlyRegion_exactSize() constant 146 entry.visibleRegion(ComponentNameMatcher.STATUS_BAR).coversExactly(statusBarRegion) in canDetectWindowCoversExactlyRegion_exactSize() 147 entry.visibleRegion(TestComponents.LAUNCHER).coversExactly(displayBounds) in canDetectWindowCoversExactlyRegion_exactSize() 184 val entry = in canDetectWindowCoversAtMostRegion_extactSize() constant [all …]
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/exceptions/ |
D | MappedMultiException.java | 48 private String entryToString(Map.Entry<Object, Throwable> entry) { in entryToString() argument 49 return String.format("%s:\n%s", entry.getKey(), stackTraceToString(entry.getValue())); in entryToString() 66 .map(entry -> entryToString(entry)) in getMessage()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | MockTraceParser.kt | 34 override fun doParseEntry(entry: WindowManagerState): WindowManagerState = entry in createTrace() 37 override fun getTimestamp(entry: WindowManagerState): Timestamp = in createTrace() 38 Timestamps.from(elapsedNanos = entry.elapsedTimestamp) in createTrace()
|
/platform_testing/tests/automotive/health/boottime/src/android/boottime/postprocessor/ |
D | BaseBootTimeTestLogPostProcessor.java | 85 for (Map.Entry<String, Collection<Double>> entry : metrics.entrySet()) { in buildTfMetrics() 87 entry.getValue().stream() in buildTfMetrics() 94 tfMetrics.put(entry.getKey(), metricBuilder); in buildTfMetrics() 101 for (Map.Entry<String, LogFile> entry : logs.entrySet()) { in filterFiles() 102 LogUtil.CLog.v("Filtering log file %s", entry.getKey()); in filterFiles() 104 mFileRegex.stream().filter(regex -> entry.getKey().matches(regex)).findAny(); in filterFiles() 108 entry.getKey(), entry.getValue().getPath()); in filterFiles() 109 files.add(new File(entry.getValue().getPath())); in filterFiles()
|