Home
last modified time | relevance | path

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

12

/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()
38 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()
DStubScheduledRunMetricListener.java28 public void collect(DataRecord runData, Description description) throws InterruptedException { in collect() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/
DTestCaseLogger.java31 public void testStarted(Description description) throws Exception { in testStarted() argument
35 description.getClassName(), description.getMethodName()); in testStarted()
40 public void testFinished(Description description) throws Exception { in testFinished() argument
44 description.getClassName(), description.getMethodName()); in testFinished()
DTestLogData.java56 public Statement apply(Statement base, Description description) { in apply() argument
57 mDescription = description; in apply()
58 return super.apply(base, description); in apply()
DLogFileLogger.java33 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
34 for (Description child : description.getChildren()) { in onTestEnd()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java58 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
63 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
69 amendIterations(description); in onTestStart()
73 startScreenRecordThread(description); in onTestStart()
77 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
91 File output = getOutputFile(description, i); in onTestEnd()
99 private void amendIterations(Description description) { in amendIterations() argument
100 String testName = description.getDisplayName(); in amendIterations()
105 private File getOutputFile(Description description, int part) { in getOutputFile() argument
107 String.format("%s.%s", description.getClassName(), description.getMethodName()); in getOutputFile()
[all …]
DLogcatOnFailureCollector.java73 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
81 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
86 mTestIterations.computeIfPresent(description, (desc, iteration) -> iteration + 1); in onTestStart()
87 mTestIterations.computeIfAbsent(description, desc -> 1); in onTestStart()
95 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
101 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
108 int iteration = mTestIterations.get(description); in onTestEnd()
112 description.getClassName(), in onTestEnd()
113 description.getMethodName(), in onTestEnd()
DBaseMetricListener.java120 public final void testRunStarted(Description description) throws Exception { in testRunStarted() argument
125 onTestRunStart(mRunData, description); in testRunStarted()
131 super.testRunStarted(description); in testRunStarted()
148 public final void testStarted(Description description) throws Exception { in testStarted() argument
152 mTestIdInvocationCount.compute(description.toString(), in testStarted()
155 if (shouldRun(description)) { in testStarted()
158 onTestStart(mTestData, description); in testStarted()
164 super.testStarted(description); in testStarted()
169 Description description = failure.getDescription(); in testFailure() local
170 if (shouldRun(description)) { in testFailure()
[all …]
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()
87 void onStart(DataRecord runData, Description description) { in onStart() argument
108 public abstract void collect(DataRecord runData, Description description) in collect() argument
DBatteryStatsListener.java85 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
110 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
116 mTestClassName = description.getClassName(); in onTestStart()
125 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
131 String fileName = String.format("%s.%s.batterystatsproto", description.getClassName(), in onTestEnd()
132 description.getMethodName()); in onTestEnd()
138 String key = String.format("%s_%s.%s.bytes", getTag(), description.getClassName(), in onTestEnd()
139 description.getMethodName()); in onTestEnd()
DPerfettoListener.java130 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
182 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
191 getTestFileName(description), in onTestStart()
206 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
211 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
244 getTestFileName(description), in onTestEnd()
249 getTestFileName(description), in onTestEnd()
251 getTestFileName(description)))); in onTestEnd()
380 public static String getTestFileName(Description description) { in getTestFileName() argument
381 return String.format("%s_%s", description.getClassName(), description.getMethodName()); in getTestFileName()
DBaseCollectionListener.java64 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
80 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
DScreenshotOnFailureCollector.java77 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
101 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
103 String testName = description.getDisplayName(); in onTestStart()
109 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
114 String.format("%s.%s", description.getClassName(), description.getMethodName()); in onTestFail()
116 int iteration = mTestIterations.get(description.getDisplayName()); in onTestFail()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DTracePointRule.java37 protected void starting(Description description) { in starting() argument
38 beginSection(getSectionName(description)); in starting()
42 protected void finished(Description description) { in finished() argument
63 protected String getSectionName(Description description) { in getSectionName() argument
65 return String.format("%s", description.getDisplayName()); in getSectionName()
DStopwatchRule.java55 private void reportMetric(long nanos, Description description) { in reportMetric() argument
58 METRIC_FORMAT, description.getClassName(), description.getMethodName()); in reportMetric()
66 protected void succeeded(long nanos, Description description) { in succeeded() argument
67 reportMetric(nanos, description); in succeeded()
DNaturalOrientationRule.java27 protected void starting(Description description) { in starting() argument
36 protected void finished(Description description) { in finished() argument
DNotificationPressureRule.java72 protected void starting(Description description) { in starting() argument
77 protected void finished(Description description) { in finished() argument
DPressHomeRule.java32 protected void finished(Description description) { in finished() argument
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DXmlRunListener.java174 Description description = failure.getDescription(); in testFailure() local
175 testFinished(description); in testFailure()
179 mFailedTests.add(description); in testFailure()
182 mErrorTests.add(description); in testFailure()
211 public void testFinished(Description description) throws Exception { in testFinished() argument
212 if (!mTestStarts.containsKey(description)) { in testFinished()
213 testStarted(description); in testFinished()
217 if (!mFailedTests.contains(description) && !mErrorTests.contains(description) in testFinished()
218 && !mSkippedTests.contains(description) && !mIgnoredTests in testFinished()
219 .contains(description)) { in testFinished()
[all …]
DAtestRunListener.java74 public void testRunStarted(Description description) { in testRunStarted() argument
96 Description description = failure.getDescription(); in testFailure() local
98 eventData.put(CLASSNAME_KEY, description.getClassName()); in testFailure()
99 eventData.put(TESTNAME_KEY, description.getMethodName()); in testFailure()
105 public void testStarted(Description description) { in testStarted() argument
108 eventData.put(CLASSNAME_KEY, description.getClassName()); in testStarted()
109 eventData.put(TESTNAME_KEY, description.getMethodName()); in testStarted()
114 public void testFinished(Description description) { in testFinished() argument
117 eventData.put(CLASSNAME_KEY, description.getClassName()); in testFinished()
118 eventData.put(TESTNAME_KEY, description.getMethodName()); in testFinished()
[all …]
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/listeners/
DFailureScreenshotTestWatcher.java43 protected void failed(Throwable e, Description description) { in failed() argument
46 description.getClassName(), description.getMethodName()))) { in failed()
/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
135 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
136 mTestIterations.computeIfPresent(description.getDisplayName(), (name, count) -> count + 1); in onTestStart()
137 mTestIterations.computeIfAbsent(description.getDisplayName(), name -> 1); in onTestStart()
151 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
161 getTestSuffix(description)); in onTestEnd()
301 String getTestSuffix(Description description) { in getTestSuffix() argument
304 formatDescription(description), in getTestSuffix()
305 mTestIterations.get(description.getDisplayName())); in getTestSuffix()
310 String formatDescription(Description description) { in formatDescription() argument
[all …]
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DTimeoutTerminator.java46 public void testRunStarted(Description description) { in testRunStarted() argument
54 public void testFinished(Description description) { in testFinished() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java76 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
97 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.java118 Description description = Description.createSuiteDescription("TestRun"); in testRunLevelCollection_statsdInteraction() local
120 mListener.onTestRunStart(runData, description); in testRunLevelCollection_statsdInteraction()
142 Description description = Description.createSuiteDescription("TestRun"); in testRunLevelCollection_metrics() local
144 mListener.onTestRunStart(runData, description); in testRunLevelCollection_metrics()
201 Description description = Description.createTestDescription(TEST_CLASS, TEST_METHOD_NAME_1); in testTestLevelCollection_statsdInteraction() local
207 mListener.onTestStart(testData, description); in testTestLevelCollection_statsdInteraction()
212 mListener.onTestEnd(testData, description); in testTestLevelCollection_statsdInteraction()
230 Description description = Description.createTestDescription(TEST_CLASS, TEST_METHOD_NAME_1); in testTestLevelCollection_metrics() local
236 mListener.onTestStart(testData, description); in testTestLevelCollection_metrics()
237 mListener.onTestEnd(testData, description); in testTestLevelCollection_metrics()
[all …]

12