Home
last modified time | relevance | path

Searched refs:runData (Results 1 – 21 of 21) sorted by relevance

/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScheduledRunMetricListener.java49 public final void onTestRunStart(final DataRecord runData, final Description description) { in onTestRunStart() argument
51 onStart(runData, description); in onTestRunStart()
59 collect(runData, description); in onTestRunStart()
72 public final void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
77 onEnd(runData, result); in onTestRunEnd()
87 void onStart(DataRecord runData, Description description) { in onStart() argument
97 void onEnd(DataRecord runData, Result result) { in onEnd() argument
108 public abstract void collect(DataRecord runData, Description description) in collect() argument
DIncidentReportListener.java56 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
71 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
105 runData.addFileMetric(FINAL_REPORT_KEY, destination); in onTestRunEnd()
DBaseCollectionListener.java64 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
112 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
116 runData.addStringMetric(entry.getKey(), entry.getValue().toString()); in onTestRunEnd()
DBatteryStatsListener.java85 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
148 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
158runData.addFileMetric(String.format("%s_%s", getTag(), logFile.getName()), logFile); in onTestRunEnd()
164 runData.addBinaryMetric(key, proto); in onTestRunEnd()
DScheduledRunCollectionListener.java171 void onStart(DataRecord runData, Description description) { in onStart() argument
196 void onEnd(DataRecord runData, Result result) { in onEnd() argument
199 runData.addStringMetric(entry.getKey(), entry.getValue()); in onEnd()
205 public void collect(DataRecord runData, Description description) throws InterruptedException { in collect() argument
DProcessShowmapListener.java60 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
DPerfettoListener.java130 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
264 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
288 stopPerfettoTracing(path, runData); in onTestRunEnd()
DLogcatOnFailureCollector.java73 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
DScreenRecordCollector.java58 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
DBaseMetricListener.java224 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
234 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
DScreenshotOnFailureCollector.java77 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DStubTestMetricListener.java28 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
29 runData.addStringMetric("run_start", "run_Start" + description.getClassName()); in onTestRunStart()
33 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
34 runData.addStringMetric("run_end", "run_end"); in onTestRunEnd()
DStubScheduledRunMetricListener.java28 public void collect(DataRecord runData, Description description) throws InterruptedException { in collect() argument
29 runData.addStringMetric("collect" + mIndex, "value" + mIndex); in collect()
DScheduledRunMetricListenerTest.java51 public void collect(DataRecord runData, Description desc) throws InterruptedException { in setUp()
52 runData.addStringMetric(TEST_RUN_KEY + counter, TEST_RUN_VALUE + counter); in setUp()
DBaseMetricListenerInstrumentedTest.java85 public void onTestRunStart(DataRecord runData, Description description) { in createWithArgs() argument
86 assertFalse(runData.hasMetrics()); in createWithArgs()
87 runData.addStringMetric(RUN_START_KEY, RUN_START_VALUE); in createWithArgs()
91 public void onTestRunEnd(DataRecord runData, Result result) { in createWithArgs() argument
92 runData.addStringMetric(RUN_END_KEY, RUN_END_VALUE); in createWithArgs()
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java117 DataRecord runData = new DataRecord(); in testRunLevelCollection_statsdInteraction() local
120 mListener.onTestRunStart(runData, description); in testRunLevelCollection_statsdInteraction()
125 mListener.onTestRunEnd(runData, new Result()); in testRunLevelCollection_statsdInteraction()
141 DataRecord runData = mock(DataRecord.class); in testRunLevelCollection_metrics() local
144 mListener.onTestRunStart(runData, description); in testRunLevelCollection_metrics()
145 mListener.onTestRunEnd(runData, new Result()); in testRunLevelCollection_metrics()
158 verify(runData, times(1)) in testRunLevelCollection_metrics()
180 verify(runData, times(1)) in testRunLevelCollection_metrics()
411 DataRecord runData = mock(DataRecord.class); in testRunAndTestLevelCollection() local
414 mListener.onTestRunStart(runData, runDescription); in testRunAndTestLevelCollection()
[all …]
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DBatterystatsCollectorHostTest.java94 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perRun()
97 runData.addMetric(key, Metric.newBuilder().setMeasurements( in testBatteryStatsListener_perRun()
113 DeviceMetricData runData) { in testBatteryStatsListener_perRun()
145 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in testBatteryStatsListener_perTest()
160 DeviceMetricData runData) { in testBatteryStatsListener_perTest()
DLogcatOnFailureCollectorHostTest.java100 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in processMetricFile() argument
116 String key, File metricDirectory, DeviceMetricData runData) {} in processMetricDirectory() argument
DScreenshotOnFailureCollectorHostTest.java87 String key, File metricFile, DeviceMetricData runData) { in testScreenshotListener()
104 String key, File metricDirectory, DeviceMetricData runData) {} in testScreenshotListener()
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java76 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DStatsdListener.java100 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
119 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
129 runData.addFileMetric(REPORT_KEY_PREFIX + configName, configReports.get(configName)); in onTestRunEnd()