Home
last modified time | relevance | path

Searched refs:getKey (Results 1 – 25 of 149) sorted by relevance

123456

/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java277 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/
DRebootReasonCollectorTest.java123 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/
DBasePostProcessorTest.java587 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/
DResultAggregator.java141 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/
DStatsdGenericPostProcessor.java158 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()
DBasePostProcessor.java242 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/
DGameQualificationTest.java98 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/
DResultsPlayer.java168 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()
DRetryRescheduler.java298 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/
DImageStats.java196 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/
DConfigurationDef.java155 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()
DConfiguration.java544 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/
DDeviceSetup.java503 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/
DShardListener.java256 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/
DTestRunResult.java122 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/
DRustTestResultParser.java132 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/
DModuleDefinition.java747 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/
DProtoResultParser.java526 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/
DGameQualificationResultReporter.java161 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/
DXmlSuiteResultFormatter.java323 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/
DFilePullerDeviceMetricCollector.java129 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/
DAtraceRunMetricCollector.java179 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()
DProcessMaxMemoryCollector.java141 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/
DPythonUnitTestResultParser.java402 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/
DEmmcPerformanceTest.java244 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()

123456