Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DFlickerServiceResultsCollectorTest.kt64 val testData = Mockito.mock(DataRecord::class.java) in <lambda>() constant
68 collector.onTestStart(testData, testDescription) in <lambda>()
69 collector.onTestFail(testData, testDescription, Mockito.mock(Failure::class.java)) in <lambda>()
70 collector.onTestEnd(testData, testDescription) in <lambda>()
78 Mockito.verify(testData).addStringMetric("FAAS_STATUS", OK_STATUS_CODE.toString()) in <lambda>()
79 Mockito.verify(testData) in <lambda>()
85 Mockito.verify(testData, Mockito.times(2)) in <lambda>()
95 val testData = DataRecord() in <lambda>() constant
99 collector.onTestStart(testData, testDescription) in <lambda>()
100 collector.onTestFail(testData, testDescription, Mockito.mock(Failure::class.java)) in <lambda>()
[all …]
/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.java75 public void onTestStart(DataRecord testData, Description description) { in createWithArgs() argument
77 assertFalse(testData.hasMetrics()); in createWithArgs()
79 testData.addStringMetric( in createWithArgs()
85 public void onTestEnd(DataRecord testData, Description description) { in createWithArgs() argument
87 testData.addStringMetric( in createWithArgs()
392 public void onTestStart(DataRecord testData, Description description) { in testSetUpAndCleanUpWithTestCycle()
397 public void onTestEnd(DataRecord testData, Description description) { in testSetUpAndCleanUpWithTestCycle()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPerfettoListener.java65 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
66 mTracingStrategy.testStart(testData, description); in onTestStart()
70 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
71 mTracingStrategy.testFail(testData, description, failure); in onTestFail()
75 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
76 mTracingStrategy.testEnd(testData, description); in onTestEnd()
DPerfettoTracingPerTestStrategy.java86 void testStart(DataRecord testData, Description description) { in testStart() argument
87 super.testStart(testData, description); in testStart()
101 void testEnd(DataRecord testData, Description description) { in testEnd() argument
121 stopPerfettoTracingAndReportMetric(path, testData); in testEnd()
DBaseCollectionListener.java87 public final void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
96 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
101 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
111 collectMetrics(testData); in onTestEnd()
DLogcatCollector.java95 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
110 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
119 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
140 testData.addFileMetric(String.format("%s_%s", getTag(), logcat.getName()), 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()
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()
DGcaEventLogCollector.java135 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
142 collectEventLog(testData, description); in onTestEnd()
162 private void collectEventLog(DataRecord testData, Description description) { in collectEventLog() argument
167 testData.addFileMetric(fileName, new File(mDestDir, fileName)); in collectEventLog()
DSimpleperfListener.java182 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
195 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
200 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
237 stopSimpleperf(path, testData); in onTestEnd()
239 getSimpleperfReport(path, testData); in onTestEnd()
DHeapDumpListener.java124 public final void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
127 super.onTestEnd(testData, description); in onTestEnd()
130 super.onTestEnd(testData, description); in onTestEnd()
DPerfettoTracingPerClassStrategy.java74 void testStart(DataRecord testData, Description description) { in testStart() argument
84 doStopTrace(testData, /* isTestRunEnd */ false); in testStart()
DScreenRecordCollector.java129 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
142 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
162 testData.addFileMetric( in onTestEnd()
DBaselineProfileCollector.java67 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DIncidentReportListener.java66 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
DPerfettoTracingStrategy.java182 void testFail(DataRecord testData, Description description, Failure failure) { in testFail() argument
247 void testStart(DataRecord testData, Description description) { in testStart() argument
251 void testEnd(DataRecord testData, Description description) { in testEnd() argument
DBaseMetricListener.java294 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
305 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
315 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java102 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
107 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/platform_testing/libraries/flicker/src/android/tools/flicker/
DFlickerServiceResultsCollector.kt91 override fun onTestStart(testData: DataRecord, description: Description) { in <lambda>()
110 override fun onTestFail(testData: DataRecord, description: Description, failure: Failure) { in <lambda>()
131 override fun onTestEnd(testData: DataRecord, description: Description) { in <lambda>()
147 return@errorReportingBlock collectFlickerMetrics(testData, reader, description) in <lambda>()
151 testData, in <lambda>()
154 testData in <lambda>()
/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/health/rules/tests/src/android/platform/test/rule/
DClassMetricRuleTest.java119 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
120 testData.addStringMetric(mName + "-test", "value"); in onTestEnd()
DTestMetricRuleTest.java286 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
291 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
296 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java222 DataRecord testData = new DataRecord(); in testTestLevelCollection_statsdInteraction() local
229 mListener.onTestStart(testData, description); in testTestLevelCollection_statsdInteraction()
234 mListener.onTestEnd(testData, description); in testTestLevelCollection_statsdInteraction()
251 DataRecord testData = mock(DataRecord.class); in testTestLevelCollection_metrics() local
258 mListener.onTestStart(testData, description); in testTestLevelCollection_metrics()
259 mListener.onTestEnd(testData, description); in testTestLevelCollection_metrics()
274 verify(testData, times(1)) in testTestLevelCollection_metrics()
300 verify(testData, times(1)) in testTestLevelCollection_metrics()
438 DataRecord testData = mock(DataRecord.class); in testRunAndTestLevelCollection() local
442 mListener.onTestStart(testData, testDescription); in testRunAndTestLevelCollection()
[all …]
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DStatsdListener.java149 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
165 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
177 testData.addFileMetric(REPORT_KEY_PREFIX + configName, configReports.get(configName)); in onTestEnd()