Home
last modified time | relevance | path

Searched refs:testData (Results 1 – 14 of 14) sorted by relevance

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DStubTestMetricListener.java38 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
39 testData.addStringMetric("test_start", "test_start" + description.getMethodName()); in onTestStart()
43 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
44 testData.addStringMetric("test_fail", "test_fail" + description.getMethodName()); in onTestFail()
48 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
49 testData.addStringMetric("test_end", "test_end" + description.getMethodName()); in onTestEnd()
DBaseMetricListenerInstrumentedTest.java71 public void onTestStart(DataRecord testData, Description description) { in createWithArgs()
73 assertFalse(testData.hasMetrics()); in createWithArgs()
74 testData.addStringMetric(TEST_START_KEY, TEST_START_VALUE in createWithArgs()
79 public void onTestEnd(DataRecord testData, Description description) { in createWithArgs() argument
80 testData.addStringMetric(TEST_END_KEY, TEST_END_VALUE in createWithArgs()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseCollectionListener.java80 public final void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
88 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
93 public final void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
104 testData.addStringMetric(entry.getKey(), entry.getValue().toString()); in onTestEnd()
DLogcatOnFailureCollector.java81 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
95 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
101 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
118 testData.addFileMetric(String.format("%s_%s", getTag(), logcat.getName()), logcat); in onTestEnd()
DBatteryStatsListener.java110 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
125 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
135testData.addFileMetric(String.format("%s_%s", getTag(), logFile.getName()), logFile); in onTestEnd()
142 testData.addBinaryMetric(key, proto); in onTestEnd()
DScreenshotOnFailureCollector.java101 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
109 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
125 testData.addFileMetric(String.format("%s_%s", getTag(), img.getName()), img); in onTestFail()
131 testData.addFileMetric( in onTestFail()
DScreenRecordCollector.java63 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
77 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
92 testData.addFileMetric(String.format("%s_%s", getTag(), output.getName()), output); in onTestEnd()
DPerfettoListener.java182 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
206 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
211 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
252 stopPerfettoTracing(path, testData); in onTestEnd()
DBaseMetricListener.java244 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
255 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
265 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
DIncidentReportListener.java66 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java97 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
102 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java200 DataRecord testData = new DataRecord(); in testTestLevelCollection_statsdInteraction() local
207 mListener.onTestStart(testData, description); in testTestLevelCollection_statsdInteraction()
212 mListener.onTestEnd(testData, description); in testTestLevelCollection_statsdInteraction()
229 DataRecord testData = mock(DataRecord.class); in testTestLevelCollection_metrics() local
236 mListener.onTestStart(testData, description); in testTestLevelCollection_metrics()
237 mListener.onTestEnd(testData, description); in testTestLevelCollection_metrics()
252 verify(testData, times(1)) in testTestLevelCollection_metrics()
278 verify(testData, times(1)) in testTestLevelCollection_metrics()
416 DataRecord testData = mock(DataRecord.class); in testRunAndTestLevelCollection() local
420 mListener.onTestStart(testData, testDescription); in testRunAndTestLevelCollection()
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/
DLogFileLogger.java33 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DStatsdListener.java135 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
151 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
163 testData.addFileMetric(REPORT_KEY_PREFIX + configName, configReports.get(configName)); in onTestEnd()