Home
last modified time | relevance | path

Searched refs:stringToMetric (Results 1 – 18 of 18) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollectorTest.java85 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingKey()
107 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage1")); in testPullMultipleMatchingKeyInMetrics()
109 TfMetricProtoUtil.stringToMetric("/data/coverage2")); in testPullMultipleMatchingKeyInMetrics()
136 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingKeyPattern()
157 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testMetricFileProcessingFlow()
184 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPatternNotMatching()
204 currentMetrics.put("coverageDirectory", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingDirectory()
DPerfettoPullerMetricCollectorTest.java98 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testProcessingFlow()
133 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testCompressedProcessingFlow()
169 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testScriptFailureStatus()
206 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testBinaryArgs()
240 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testTraceProcessorArgsDefaults()
290 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testTraceProcessorAdditionalArgs()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java79 TfMetricProtoUtil.stringToMetric(testLogs.get(dataName).getPath()) in processTestMetricsAndLogs()
105 TfMetricProtoUtil.stringToMetric(runLogs.get(dataName).getPath()) in processRunMetricsAndLogs()
136 TfMetricProtoUtil.stringToMetric( in processAllTestMetricsAndLogs()
201 initialMetrics.put("test", TfMetricProtoUtil.stringToMetric("value")); in testRunLevelPostProcessing()
313 initialMetrics.put("test", TfMetricProtoUtil.stringToMetric("value")); in testPerTestPostProcessing()
502 test1Metrics.put("test", TfMetricProtoUtil.stringToMetric("value1")); in testAllTestMetricsPostProcessing()
504 test2Metrics.put("test", TfMetricProtoUtil.stringToMetric("value2")); in testAllTestMetricsPostProcessing()
506 runMetrics.put("test", TfMetricProtoUtil.stringToMetric("should not change")); in testAllTestMetricsPostProcessing()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java18 import static com.android.tradefed.util.proto.TfMetricProtoUtil.stringToMetric;
225 metrics.put(countMetricKey, stringToMetric(String.valueOf(timestampsSecs.size()))); in addStatsdStatsBasedMetrics()
234 stringToMetric( in addStatsdStatsBasedMetrics()
244 stringToMetric( in addStatsdStatsBasedMetrics()
262 stringToMetric( in addAtomBasedMetrics()
272 stringToMetric( in addAtomBasedMetrics()
DRebootReasonCollector.java18 import static com.android.tradefed.util.proto.TfMetricProtoUtil.stringToMetric;
110 stringToMetric(String.valueOf(metricsForDevice.get(key))).toBuilder()); in onTestRunEnd()
114 device, COUNT_KEY, stringToMetric(String.valueOf(rebootCount)).toBuilder()); in onTestRunEnd()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java146 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents()
366 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_finaleProto()
561 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_subprocess()
657 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_finaleProto_partialEvents()
DStreamProtoResultReporterTest.java74 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testStream()
166 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testStream_noInvocationReporting()
DProtoResultReporterTest.java85 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testFinalizeProto()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java677 metrics.put("metric0" + i, TfMetricProtoUtil.stringToMetric("value0" + i)); in createFakeResult()
678 metrics.put("metric1" + i, TfMetricProtoUtil.stringToMetric("value1" + i)); in createFakeResult()
681 metrics.put("%_capacity" + i, TfMetricProtoUtil.stringToMetric("0.00")); in createFakeResult()
682 metrics.put("&_capacity" + i, TfMetricProtoUtil.stringToMetric("0.00")); in createFakeResult()
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessor.java351 TfMetricProtoUtil.stringToMetric(entry.getValue().toString()) in convertPerfettoProtoMessage()
357 TfMetricProtoUtil.stringToMetric( in convertPerfettoProtoMessage()
455 TfMetricProtoUtil.stringToMetric(listMetrics.get(i).toString()) in convertPerfettoProtoMessage()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/
DTfMetricProtoUtil.java76 newFormat.put(key, stringToMetric(metrics.get(key))); in upgradeConvert()
87 public static Metric stringToMetric(String metric) { in stringToMetric() method in TfMetricProtoUtil
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DStatsdGenericPostProcessor.java210 TfMetricProtoUtil.stringToMetric(listMetrics.get(i).toString()) in convertProtoMessage()
217 TfMetricProtoUtil.stringToMetric(entry.getValue().toString()).toBuilder()); in convertProtoMessage()
DStatsdEventMetricPostProcessor.java109 finalMetrics.put(key, TfMetricProtoUtil.stringToMetric(value).toBuilder()); in parseMetricsFromReportList()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java254 ONLINE_TIME, TfMetricProtoUtil.stringToMetric(Long.toString(onlineTime))); in testFastboot()
259 TfMetricProtoUtil.stringToMetric(Long.toString(bootTime))); in testFastboot()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DMetricTestCase.java56 mMetrics.put(key, TfMetricProtoUtil.stringToMetric(value)); in addTestMetric()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/proto/
DTfMetricProtoUtilTest.java85 Metric m = TfMetricProtoUtil.stringToMetric("test"); in testStringConvert()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java338 "elapsed-time", TfMetricProtoUtil.stringToMetric(Long.toString(elapsedTime))); in reportMetrics()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java702 metrics.put(key, TfMetricProtoUtil.stringToMetric(value)); in parseMetrics()