Home
last modified time | relevance | path

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

1234

/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/compatibility-common-util/src/com/android/compatibility/common/util/
DDescriptionProvider.java24 private volatile Description description; field in DescriptionProvider
27 protected void starting(Description description) { in starting() argument
28 this.description = description; in starting()
32 return description; in getDescription()
/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 …]
DFailureWatcher.java46 protected void failed(Throwable e, Description description) { in failed() argument
47 onError(mDevice, description, e); in failed()
50 public static File diagFile(Description description, String prefix, String ext) { in diagFile() argument
55 + description.getTestClass().getSimpleName() in diagFile()
57 + description.getMethodName() in diagFile()
62 public static void onError(UiDevice device, Description description, Throwable e) { in onError() argument
64 final File sceenshot = diagFile(description, "TestScreenshot", "png"); in onError()
65 final File hierarchy = diagFile(description, "Hierarchy", "zip"); in onError()
83 + description.getMethodName() in onError()
94 device.dumpWindowHierarchy(diagFile(description, "AccessibilityHierarchy", "uix")); in onError()
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
DTestMetricRule.java120 protected void starting(Description description) { in starting() argument
123 listener.testStarted(description); in starting()
136 protected void finished(Description description) { in finished() argument
139 listener.testFinished(description); in finished()
152 protected void failed(Throwable t, Description description) { in failed() argument
153 Failure failure = new Failure(description, t); in failed()
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
123 public void onTestStart(DataRecord runData, Description description) { in onTestStart() argument
130 mTestIterations.computeIfPresent(description, (desc, iteration) -> iteration + 1); in onTestStart()
131 mTestIterations.computeIfAbsent(description, desc -> 1); in onTestStart()
135 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
142 collectEventLog(testData, description); in onTestEnd()
146 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()
149 public final void testStarted(Description description) throws Exception { in testStarted() argument
153 mTestIdInvocationCount.compute(description.toString(), in testStarted()
156 if (shouldRun(description)) { in testStarted()
159 onTestStart(mTestData, description); in testStarted()
165 super.testStarted(description); in testStarted()
170 Description description = failure.getDescription(); in testFailure() local
171 if (shouldRun(description)) { in testFailure()
[all …]
DLogcatCollector.java87 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument
95 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
101 mTestIterations.computeIfPresent(description, (desc, iteration) -> iteration + 1); in onTestStart()
102 mTestIterations.computeIfAbsent(description, desc -> 1); in onTestStart()
110 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
119 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
126 int iteration = mTestIterations.get(description); in onTestEnd()
130 description.getClassName(), in onTestEnd()
131 description.getMethodName(), in onTestEnd()
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
77 public final void onTestStart(DataRecord testData, Description description) { in onTestStart() argument
85 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
90 public final void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument
/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/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()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/
DWMFlickerServiceRuleTest.kt27 override fun finished(description: Description?) { in finished()
28 super.finished(description) in finished()

1234