/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessor.java | 277 if (metric.getKey().startsWith(replaceEntry.getKey())) { in replacePrefix() 278 String newKey = metric.getKey().replaceFirst(replaceEntry.getKey(), in replacePrefix() 287 finalMetrics.put(metric.getKey(), metric.getValue()); in replacePrefix() 305 String newKey = String.format("%s_%s", mAllMetricPrefix, metric.getKey()); in replaceAllMetricPrefix() 350 entry.getKey().getName(), in convertPerfettoProtoMessage() 356 entry.getKey().getName(), in convertPerfettoProtoMessage() 368 entry.getKey().getName().toString(), in convertPerfettoProtoMessage() 370 if (mPerfettoPrefixKeyFields.contains(entry.getKey().toString())) { in convertPerfettoProtoMessage() 372 entry.getKey().getName().toString(), entry.getValue().toString())); in convertPerfettoProtoMessage() 384 currentMetric.getKey()), currentMetric.getValue()); in convertPerfettoProtoMessage() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | RebootReasonCollectorTest.java | 123 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice() 124 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice() 125 && entry.getKey().contains("system_reason_1") in testAddingMetrics_singleDevice() 126 && !entry.getKey().contains(DEVICE_SERIAL_1) in testAddingMetrics_singleDevice() 138 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_singleDevice() 139 && entry.getKey().contains("bootloader_reason") in testAddingMetrics_singleDevice() 140 && entry.getKey().contains("system_reason_2") in testAddingMetrics_singleDevice() 141 && !entry.getKey().contains(DEVICE_SERIAL_1) in testAddingMetrics_singleDevice() 153 entry.getKey().equals(RebootReasonCollector.COUNT_KEY) in testAddingMetrics_singleDevice() 223 entry.getKey().contains(RebootReasonCollector.METRIC_PREFIX) in testAddingMetrics_multiDevice() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | BasePostProcessorTest.java | 587 e.getKey().contains(TestablePostProcessor.FILE_PREFIX) in testAllTestLogsPostProcessing() 588 && e.getKey().contains(test1.toString()) in testAllTestLogsPostProcessing() 589 && e.getKey().contains(TEST_DATA_NAME_1) in testAllTestLogsPostProcessing() 600 e.getKey().contains(TestablePostProcessor.FILE_PREFIX) in testAllTestLogsPostProcessing() 601 && e.getKey().contains(test2.toString()) in testAllTestLogsPostProcessing() 602 && e.getKey().contains(TEST_DATA_NAME_2) in testAllTestLogsPostProcessing() 683 e.getKey().contains(TestablePostProcessor.FILE_PREFIX) in testLogPostProcessingInMultipleRuns() 684 && e.getKey().contains(test.toString()) in testLogPostProcessingInMultipleRuns() 685 && e.getKey().contains(TEST_DATA_NAME_1))); in testLogPostProcessingInMultipleRuns() 692 e.getKey().contains(TestablePostProcessor.FILE_PREFIX) in testLogPostProcessingInMultipleRuns() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | ResultAggregator.java | 141 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in invocationEnded() 156 mAggregatedForwarder.logAssociation(invocLog.getKey(), invocLog.getValue()); in forwardAggregatedInvocationLogs() 324 mDetailedForwarder.logAssociation(assos.getKey(), assos.getValue()); in testModuleEnded() 383 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults() 386 listener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults() 390 testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults() 393 listener.testIgnored(testEntry.getKey()); in forwardTestResults() 397 testEntry.getKey(), in forwardTestResults() 408 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults() 412 testEntry.getKey(), in forwardTestResults()
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | StatsdGenericPostProcessor.java | 158 e -> String.join(METRIC_SEP, prefix, e.getKey()), in addPrefixToMetrics() 177 if (FIELDS_TO_SKIP.contains(entry.getKey().getName())) { in convertProtoMessage() 185 String.join(METRIC_SEP, entry.getKey().getName(), metricEntry.getKey()), in convertProtoMessage() 193 ? entry.getKey().getName() in convertProtoMessage() 196 entry.getKey().getName(), in convertProtoMessage() 204 String.join(METRIC_SEP, metricKeyRoot, metricEntry.getKey()), in convertProtoMessage() 216 entry.getKey().getName(), in convertProtoMessage()
|
D | BasePostProcessor.java | 242 storedTestMetrics.put(entry.getKey(), entry.getValue()); in testEnded() 252 String newKey = newEntry.getKey(); in testEnded() 333 rawMetrics.put(entry.getKey(), entry.getValue()); in getRawMetricsOnly() 343 String newKey = newEntry.getKey(); in addProcessedMetricsToExistingMetrics()
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | GameQualificationTest.java | 98 intent.putExtra(argument.getKey(), argument.getValue()); in startApp() 102 intent.putExtra(argument.getKey(), value); in startApp() 107 intent.putExtra(argument.getKey(), value); in startApp() 112 intent.putExtra(argument.getKey(), value); in startApp() 117 intent.putExtra(argument.getKey(), value); in startApp() 122 intent.putExtra(argument.getKey(), value); in startApp() 127 intent.putExtra(argument.getKey(), value); in startApp()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayer.java | 168 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults() 171 listener.testFailed(testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults() 175 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults() 178 listener.testIgnored(testEntry.getKey()); in forwardTestResults() 182 testEntry.getKey(), "Test did not complete due to exception."); in forwardTestResults() 192 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults() 196 testEntry.getKey(), in forwardTestResults()
|
D | RetryRescheduler.java | 298 if (isParameterized(result.getKey())) { in updateRunner() 299 parameterizedMethods.put(result.getKey(), result.getValue()); in updateRunner() 303 addExcludeToConfig(suite, moduleResult, result.getKey().toString()); in updateRunner() 326 addExcludeToConfig(suite, moduleResult, subMap.getKey()); in updateRunner() 388 entry.getKey().getClassName(), in sortMethodToClass() 389 entry.getKey().getTestNameWithoutParams()); in sortMethodToClass() 395 forClass.put(entry.getKey(), entry.getValue()); in sortMethodToClass()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 196 Pattern p = Pattern.compile(e.getKey()); in processAggregationPatterns() 269 Matcher m = pattern.getKey().matcher(stat.getKey()); in performAggregation() 280 if (uncategorizedFiles.contains(stat.getKey())) { in performAggregation() 281 uncategorizedFiles.remove(stat.getKey()); in performAggregation() 297 e.getKey(), e.getValue(), mMinReportSize); in performAggregation() 300 ret.put(e.getKey(), Long.toString(e.getValue())); in performAggregation()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationDef.java | 155 if (entry.getKey().lastModified() > entry.getValue()) { in isStale() 261 String entryName = objClassEntry.getKey(); in createConfiguration() 265 if (allowedObjects != null && !allowedObjects.contains(objClassEntry.getKey())) { in createConfiguration() 266 CLog.d("Skipping creation of %s", objClassEntry.getKey()); in createConfiguration() 272 configObject = createObject(objClassEntry.getKey(), configDef.mClassName); in createConfiguration() 389 Object configObject = createObject(objClassEntry.getKey(), configDef.mClassName); in createGlobalConfiguration() 392 config.setConfigurationObjectList(objClassEntry.getKey(), objectList); in createGlobalConfiguration()
|
D | Configuration.java | 544 if (excludedConfigName != null && excludedConfigName.equals(entryList.getKey())) { in getAllConfigurationObjects() 711 if (DEVICE_NAME.equals(entry.getKey())) { in clone() 718 clone.setConfigurationObjectListNoThrow(entry.getKey(), newDeviceConfigList); in clone() 720 clone.setConfigurationObjectListNoThrow(entry.getKey(), entry.getValue()); in clone() 1188 printCommandUsageForObject(importantOnly, out, configObjectsEntry.getKey(), in printCommandUsage() 1192 printCommandUsageForObject(importantOnly, out, configObjectsEntry.getKey(), in printCommandUsage()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceSetup.java | 503 device.setSetting("system", entry.getKey(), entry.getValue()); in tearDown() 506 device.setSetting("global", entry.getKey(), entry.getValue()); in tearDown() 509 device.setSetting("secure", entry.getKey(), entry.getValue()); in tearDown() 724 if (prop.getKey().startsWith(PERSIST_PREFIX)) { in changeSystemProps() 726 device.setProperty(prop.getKey(), prop.getValue()); in changeSystemProps() 728 sb.append(String.format("%s=%s\n", prop.getKey(), prop.getValue())); in changeSystemProps() 909 if (device.connectToWifiNetwork(ssidToPsk.getKey(), psk)) { in connectWifi() 911 InvocationMetricKey.WIFI_AP_NAME, ssidToPsk.getKey()); in connectWifi()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | ShardListener.java | 256 mMainListener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults() 259 mMainListener.testFailed(testEntry.getKey(), testEntry.getValue().getFailure()); in forwardTestResults() 263 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults() 266 mMainListener.testIgnored(testEntry.getKey()); in forwardTestResults() 276 testEntry.getKey(), in forwardTestResults() 300 ((ILogSaverListener) listener).logAssociation(logFile.getKey(), logFile.getValue()); in forwardLogAssociation()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 122 tests.add(testEntry.getKey()); in getTestsInState() 368 String existingValue = mRunMetrics.get(entry.getKey()); in testRunEnded() 370 mRunMetrics.put(entry.getKey(), combinedValue); in testRunEnded() 548 if (!testResultsAttempts.containsKey(testResultEntry.getKey())) { in merge() 549 testResultsAttempts.put(testResultEntry.getKey(), new ArrayList<>()); in merge() 551 List<TestResult> results = testResultsAttempts.get(testResultEntry.getKey()); in merge()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustTestResultParser.java | 132 listener.testStarted(test.getKey()); in done() 134 listener.testIgnored(test.getKey()); in done() 136 listener.testFailed(test.getKey(), ""); // no stacktrace in done() 140 listener.testFailed(test.getKey(), test.getValue()); in done() 142 listener.testEnded(test.getKey(), new HashMap<String, Metric>()); in done()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinition.java | 747 listener.testStarted(testEntry.getKey(), testEntry.getValue().getStartTime()); in forwardTestResults() 750 listener.testFailed(testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults() 754 testEntry.getKey(), testEntry.getValue().getStackTrace()); in forwardTestResults() 757 listener.testIgnored(testEntry.getKey()); in forwardTestResults() 761 testEntry.getKey(), "Test did not complete due to exception."); in forwardTestResults() 771 .logAssociation(logFile.getKey(), logFile.getValue()); in forwardTestResults() 775 testEntry.getKey(), in forwardTestResults()
|
/tools/tradefederation/core/src/com/android/tradefed/result/proto/ |
D | ProtoResultParser.java | 526 CLog.e("Log '%s' was registered but without a path.", entry.getKey()); in handleLogs() 537 log("Logging %s from subprocess: %s ", entry.getKey(), file.getPath()); in handleLogs() 538 logger.testLog(mFilePrefix + entry.getKey(), type, source); in handleLogs() 543 entry.getKey(), file.getUrl(), file.getPath()); in handleLogs() 544 logger.logAssociation(mFilePrefix + entry.getKey(), file); in handleLogs() 547 CLog.e("Couldn't unpack %s as a LogFileInfo", entry.getKey()); in handleLogs()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/ |
D | GameQualificationResultReporter.java | 161 sb.append(String.format("\n%s Metrics:\n%s\n", entry.getKey(), entry.getValue())); in getInvocationSummary() 186 sb.append(entry.getKey().toString()); in getInvocationSummary() 280 sb.append(getTestSummary(entry.getKey(), entry.getValue())); in getTestRunSummary() 305 TestDescription testId = entry.getKey(); in createPerformanceReport() 307 CertificationRequirements requirements = mRequirements.get(entry.getKey()); in createPerformanceReport()
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 323 if (format.get(cr.getKey().getClassName()) == null) { in serializeTestCases() 324 format.put(cr.getKey().getClassName(), new LinkedHashMap<>()); in serializeTestCases() 326 Map<String, TestResult> methodResult = format.get(cr.getKey().getClassName()); in serializeTestCases() 327 methodResult.put(cr.getKey().getTestName(), cr.getValue()); in serializeTestCases() 340 serializer.attribute(NS, NAME_ATTR, individualResult.getKey()); in serializeTestCases() 352 serializer.attribute(NS, METRIC_KEY, metric.getKey()); in serializeTestCases()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | FilePullerDeviceMetricCollector.java | 129 processMetricFile(entry.getKey(), entry.getValue(), data); in processMetricRequest() 136 processMetricDirectory(pulledMetrics.getKey(), pulledMetrics.getValue(), data); in processMetricRequest() 148 if (p.matcher(entry.getKey()).find()) { in pullMetricFile() 162 matchedFiles.put(entry.getKey(), attemptPull); in pullMetricFile()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | AtraceRunMetricCollector.java | 179 finalResultMap.put(resultAggregate.getKey() + "_sum", in aggregateMetrics() 182 finalResultMap.put(resultAggregate.getKey() + "_avg", in aggregateMetrics() 184 finalResultMap.put(resultAggregate.getKey() + "_max", in aggregateMetrics() 186 finalResultMap.put(resultAggregate.getKey() + "_min", in aggregateMetrics()
|
D | ProcessMaxMemoryCollector.java | 141 runData.addMetricForDevice(device, "PSS#" + values.getKey(), metric); in onEnd() 153 runData.addMetricForDevice(device, "USS#" + values.getKey(), metric); in onEnd() 164 runData.addMetricForDevice(device, "MAX_PSS#" + pss.getKey(), metric); in onEnd() 171 runData.addMetricForDevice(device, "MAX_USS#" + uss.getKey(), metric); in onEnd()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParser.java | 402 listener.testStarted(test.getKey()); in reportToListeners() 404 listener.testIgnored(test.getKey()); in reportToListeners() 406 listener.testFailed(test.getKey(), test.getValue()); in reportToListeners() 408 listener.testEnded(test.getKey(), new HashMap<String, Metric>()); in reportToListeners()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmmcPerformanceTest.java | 244 String.format("%s_%s", testKey, entry.getKey()), in runTest() 332 if (!simpleperfMetricsMap.containsKey(entry.getKey())) { in simpleperfResultAggregation() 334 simpleperfMetricsMap.put(entry.getKey(), newStat); in simpleperfResultAggregation() 336 simpleperfMetricsMap.get(entry.getKey()).add(metricValue); in simpleperfResultAggregation()
|