/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | ScheduledRunMetricListener.java | 49 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
|
D | IncidentReportListener.java | 56 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()
|
D | BaseCollectionListener.java | 64 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()
|
D | BatteryStatsListener.java | 85 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument 148 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument 158 … runData.addFileMetric(String.format("%s_%s", getTag(), logFile.getName()), logFile); in onTestRunEnd() 164 runData.addBinaryMetric(key, proto); in onTestRunEnd()
|
D | ScheduledRunCollectionListener.java | 171 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
|
D | ProcessShowmapListener.java | 60 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
|
D | PerfettoListener.java | 130 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()
|
D | LogcatOnFailureCollector.java | 73 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
|
D | ScreenRecordCollector.java | 58 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
|
D | BaseMetricListener.java | 224 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument 234 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
|
D | ScreenshotOnFailureCollector.java | 77 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | StubTestMetricListener.java | 28 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()
|
D | StubScheduledRunMetricListener.java | 28 public void collect(DataRecord runData, Description description) throws InterruptedException { in collect() argument 29 runData.addStringMetric("collect" + mIndex, "value" + mIndex); in collect()
|
D | ScheduledRunMetricListenerTest.java | 51 public void collect(DataRecord runData, Description desc) throws InterruptedException { in setUp() 52 runData.addStringMetric(TEST_RUN_KEY + counter, TEST_RUN_VALUE + counter); in setUp()
|
D | BaseMetricListenerInstrumentedTest.java | 85 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/ |
D | StatsdListenerTest.java | 117 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/ |
D | BatterystatsCollectorHostTest.java | 94 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()
|
D | LogcatOnFailureCollectorHostTest.java | 100 public void processMetricFile(String key, File metricFile, DeviceMetricData runData) { in processMetricFile() argument 116 String key, File metricDirectory, DeviceMetricData runData) {} in processMetricDirectory() argument
|
D | ScreenshotOnFailureCollectorHostTest.java | 87 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/ |
D | GarbageCollectionPreparer.java | 76 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | StatsdListener.java | 100 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()
|