Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java18 import static com.android.tradefed.util.proto.TfMetricProtoUtil.stringToMetric;
227 stringToMetric( in addStatsdStatsBasedMetrics()
237 stringToMetric( in addStatsdStatsBasedMetrics()
251 metrics.put(countMetricKey, stringToMetric(String.valueOf(timestampsNanos.size()))); in addAtomBasedMetrics()
259 stringToMetric( in addAtomBasedMetrics()
269 stringToMetric( in addAtomBasedMetrics()
DRebootReasonCollector.java18 import static com.android.tradefed.util.proto.TfMetricProtoUtil.stringToMetric;
105 stringToMetric( in onTestRunEnd()
112 bootReasonKey, key -> stringToMetric(String.valueOf(1))); in onTestRunEnd()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollectorTest.java81 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingKey()
103 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingKeyPattern()
124 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testMetricFileProcessingFlow()
151 currentMetrics.put("coverageFile", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPatternNotMatching()
171 currentMetrics.put("coverageDirectory", TfMetricProtoUtil.stringToMetric("/data/coverage")); in testPullMatchingDirectory()
DPerfettoPullerMetricCollectorTest.java93 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testProcessingFlow()
125 currentMetrics.put("perfettofile", TfMetricProtoUtil.stringToMetric("/data/trace.pb")); in testScriptFailureStatus()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java119 initialMetrics.put("test", TfMetricProtoUtil.stringToMetric("value")); in testPostProcessing()
144 initialMetrics.put("test", TfMetricProtoUtil.stringToMetric("value")); in testPerTestPostProcessing()
175 test1Metrics.put("test", TfMetricProtoUtil.stringToMetric("value1")); in testAllTestMetricsPostProcessing()
177 test2Metrics.put("test", TfMetricProtoUtil.stringToMetric("value2")); in testAllTestMetricsPostProcessing()
179 runMetrics.put("test", TfMetricProtoUtil.stringToMetric("should not change")); in testAllTestMetricsPostProcessing()
/tools/tradefederation/core/src/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/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java139 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents()
256 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_finaleProto()
407 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_subprocess()
503 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testEvents_finaleProto_partialEvents()
DStreamProtoResultReporterTest.java71 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testStream()
140 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testStream_noInvocationReporting()
DProtoResultReporterTest.java80 metrics.put("metric1", TfMetricProtoUtil.stringToMetric("value1")); in testFinalizeProto()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java615 metrics.put("metric0" + i, TfMetricProtoUtil.stringToMetric("value0" + i)); in createFakeResult()
616 metrics.put("metric1" + i, TfMetricProtoUtil.stringToMetric("value1" + i)); in createFakeResult()
619 metrics.put("%_capacity" + i, TfMetricProtoUtil.stringToMetric("0.00")); in createFakeResult()
620 metrics.put("&_capacity" + i, TfMetricProtoUtil.stringToMetric("0.00")); in createFakeResult()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java251 ONLINE_TIME, TfMetricProtoUtil.stringToMetric(Long.toString(onlineTime))); in testFastboot()
256 TfMetricProtoUtil.stringToMetric(Long.toString(bootTime))); in testFastboot()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DMetricTestCase.java56 mMetrics.put(key, TfMetricProtoUtil.stringToMetric(value)); in addTestMetric()
DTfTestLauncher.java321 "elapsed-time", TfMetricProtoUtil.stringToMetric(Long.toString(elapsedTime))); in reportMetrics()
/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/testdefs/
DXmlDefsTest.java304 coverageMetric.put(COVERAGE_TARGET_KEY, TfMetricProtoUtil.stringToMetric(coverageTarget)); in sendCoverage()
/tools/tradefederation/contrib/src/com/android/ota/tests/
DOtaStabilityTest.java236 TfMetricProtoUtil.stringToMetric(Integer.toString(actualIterations))); in run()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java677 metrics.put(key, TfMetricProtoUtil.stringToMetric(value)); in parseMetrics()