Home
last modified time | relevance | path

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

123

/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()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DTestWatcher.java42 public Statement apply(final Statement base, final Description description) { in apply() argument
47 starting(description); in apply()
49 succeeded(description); in apply()
51 skipped(e, description); in apply()
54 failed(e, description); in apply()
57 finished(description); in apply()
64 protected void starting(Description description) {}
67 protected void succeeded(Description description) {}
70 protected void skipped(AssumptionViolatedException e, Description description) {}
73 protected void failed(Throwable e, Description description) {}
[all …]
DTracePointRule.java44 protected void starting(Description description) { in starting() argument
45 beginSection(getSectionName(description)); in starting()
49 protected void finished(Description description) { in finished() argument
70 protected String getSectionName(Description description) { in getSectionName() argument
73 name = 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
DNavigationModeRule.java93 protected void starting(Description description) { in starting() argument
101 super.starting(description); in starting()
105 protected void finished(Description description) { in finished() argument
106 super.finished(description); in finished()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/flicker/
DFlickerRuleBase.java70 protected void starting(Description description) { in starting() argument
107 if (mMethodNameCount.containsKey(description.toString())) { in starting()
108 mMethodNameCount.put(description.toString(), in starting()
109 mMethodNameCount.get(description.toString()) + 1); in starting()
111 mMethodNameCount.put(description.toString(), 1); in starting()
115 cleanupTraceFiles(description); in starting()
121 protected void finished(Description description) { in finished() argument
139 if (!new File(getFinalTraceFilePath(description, WM_TRACE_FILE_SUFFIX)).exists()) { in finished()
142 mWmTraceMonitor.save(getFileNamePrefix(description)); in finished()
148 getFinalTraceFilePath(description, WM_TRACE_FILE_SUFFIX)); in finished()
[all …]
/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()
/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/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java59 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
64 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
70 amendIterations(description); in onTestStart()
72 mCurrentThread = new RecordingThread("test-screen-record", description); in onTestStart()
77 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
105 private void amendIterations(Description description) { in amendIterations() argument
106 String testName = description.getDisplayName(); in amendIterations()
112 private File getOutputFile(Description description, int part) { in getOutputFile() argument
114 String.format("%s.%s", description.getClassName(), description.getMethodName()); in getOutputFile()
116 int iteration = mTestIterations.get(description.getDisplayName()); in getOutputFile()
[all …]
DGcaEventLogCollector.java98 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
124 public void onTestStart(DataRecord runData, Description description) { in onTestStart() argument
131 mTestIterations.computeIfPresent(description, (desc, iteration) -> iteration + 1); in onTestStart()
132 mTestIterations.computeIfAbsent(description, desc -> 1); in onTestStart()
136 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
143 collectEventLog(testData, description); in onTestEnd()
147 public void onTestFail(DataRecord runData, Description description, Failure failure) { in onTestFail() argument
162 private void collectEventLog(DataRecord testData, Description description) { in collectEventLog() argument
164 String fileName = buildCollectedEventLogFileName(description); in collectEventLog()
220 private String buildCollectedEventLogFileName(@Nullable Description description) { in buildCollectedEventLogFileName() argument
[all …]
DSimpleperfListener.java91 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
119 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
126 getTestFileName(description), (key, value) -> (value == null) ? 1 : value + 1); in onTestStart()
132 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
137 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
167 getTestFileName(description), in onTestEnd()
172 getTestFileName(description), in onTestEnd()
173 mTestIdInvocationCount.get(getTestFileName(description)))); in onTestEnd()
220 public static String getTestFileName(Description description) { in getTestFileName() argument
221 return String.format("%s_%s", description.getClassName(), description.getMethodName()); in getTestFileName()
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 …]
DLogcatCollector.java87 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
96 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
102 mTestIterations.computeIfPresent(description, (desc, iteration) -> iteration + 1); in onTestStart()
103 mTestIterations.computeIfAbsent(description, desc -> 1); in onTestStart()
111 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
120 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
127 int iteration = mTestIterations.get(description); in onTestEnd()
131 description.getClassName(), in onTestEnd()
132 description.getMethodName(), in onTestEnd()
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()
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()
DPerfettoListener.java144 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
208 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
217 getTestFileName(description), in onTestStart()
232 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
237 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
270 getTestFileName(description), in onTestEnd()
275 getTestFileName(description), in onTestEnd()
277 getTestFileName(description)))); in onTestEnd()
407 public static String getTestFileName(Description description) { in getTestFileName() argument
408 return String.format("%s_%s", description.getClassName(), description.getMethodName()); in getTestFileName()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sample/
DPrintListener.java32 public void testRunStarted(Description description) throws Exception { in testRunStarted() argument
42 public void testStarted(Description description) throws Exception { in testStarted() argument
47 public void testFinished(Description description) throws Exception { in testFinished() argument
62 public void testIgnored(Description description) throws Exception { in testIgnored() argument
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBusinessLogic.java105 String description = cleanDescription(rulesList.getDescription(), index); in applyLogicsFor() local
110 skippedMap.put(description, re); in applyLogicsFor()
111 executor.logInfo("Test %s (%s) skipped for reason: %s", testName, description, in applyLogicsFor()
114 failedMap.put(description, re); in applyLogicsFor()
141 for (String description : descriptions) { in throwAggregatedException()
142 RuntimeException re = exceptions.get(description); in throwAggregatedException()
143 msg.append(String.format("\nMessage [%s]: %s", description, re.getMessage())); in throwAggregatedException()
161 private String cleanDescription(String description, int index) { in cleanDescription() argument
162 return (description == null || description.length() == 0) in cleanDescription()
164 : description; in cleanDescription()
[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/java/android/device/stressmodes/
DLockContentionStressMode.java95 public void testRunStarted(Description description) throws Exception { in testRunStarted() argument
96 super.testRunStarted(description); in testRunStarted()
118 public final void testStarted(Description description) throws Exception { in testStarted() argument
134 super.testStarted(description); in testStarted()
138 public final void testFinished(Description description) throws Exception { in testFinished() argument
141 super.testFinished(description); in testFinished()

123