Home
last modified time | relevance | path

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

123456

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDumpOnFailure.java61 public Statement apply(Statement base, Description description) { in apply() argument
65 onTestSetup(description); in apply()
69 onTestFailure(description, t); in apply()
72 onTestTeardown(description); in apply()
78 private void onTestSetup(Description description) {
79 cleanDir(getDumpRoot(description).toFile());
83 private void onTestTeardown(Description description) {
87 private void onTestFailure(Description description, Throwable t) {
88 Path root = getDumpRoot(description);
95 String fileName = getFilename(description, entry.getKey(), "png");
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java56 public Statement apply(Statement base, Description description) { in apply() argument
57 mClassName = description.getTestClass().getSimpleName(); in apply()
58 mTestMethod = description.getMethodName(); in apply()
60 return super.apply(base, description); in apply()
75 private void capture(Description description, String result) { in capture() argument
76 String fileName = description.getTestClass().getSimpleName() + "#" in capture()
77 + description.getMethodName(); in capture()
86 protected void finished(Description description) { in finished() argument
87 super.finished(description); in finished()
92 protected void failed(Throwable throwable, Description description) { in failed() argument
[all …]
/cts/libs/vogar-expect/src/vogar/
DExpectation.java40 private final String description; field in Expectation
57 …public Expectation(Result result, Pattern pattern, Set<String> tags, String description, long bug)… in Expectation() argument
58 if (result == null || description == null || pattern == null) { in Expectation()
60 "result=" + result + " description=" + description + " pattern=" + pattern); in Expectation()
63 this.description = description; in Expectation()
71 return description; in getDescription()
106 return "Expectation[description=" + description + " pattern=" + pattern.pattern() + "]"; in toString()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java76 public void describeTo(Description description) { in describeTo() argument
77 description.appendText("Matching to type " + mType); in describeTo()
95 public void describeTo(Description description) { in describeTo() argument
96 description.appendText("With window change type " + mWindowChanges); in describeTo()
114 public void describeTo(Description description) { in describeTo() argument
115 description.appendText("With content change type " + mContentChanges); in describeTo()
124 public PropertyMatcher(T property, String description, in PropertyMatcher() argument
128 mDescription = description; in PropertyMatcher()
138 public void describeTo(Description description) { in describeTo() argument
139 description.appendText("Matching to " + mDescription + " " + mProperty.toString()); in describeTo()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaItemTest.java33 MediaDescription description = new MediaDescription.Builder() in testBrowsableMediaItem() local
36 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_BROWSABLE); in testBrowsableMediaItem()
38 assertEquals(description.toString(), mediaItem.getDescription().toString()); in testBrowsableMediaItem()
50 assertEquals(description.toString(), in testBrowsableMediaItem()
56 MediaDescription description = new MediaDescription.Builder() in testPlayableMediaItem() local
59 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_PLAYABLE); in testPlayableMediaItem()
61 assertEquals(description.toString(), mediaItem.getDescription().toString()); in testPlayableMediaItem()
73 assertEquals(description.toString(), in testPlayableMediaItem()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBeforeAfterRule.java28 public Statement apply(Statement base, Description description) { in apply() argument
33 onBefore(base, description); in apply()
37 onAfter(base, description); in apply()
43 protected void onBefore(Statement base, Description description) throws Throwable {
46 protected void onAfter(Statement base, Description description) throws Throwable {
DStateKeeperRule.java52 protected void preEvaluate(@SuppressWarnings("unused") Description description) { in preEvaluate() argument
58 protected void postEvaluate(@SuppressWarnings("unused") Description description) { in postEvaluate() argument
62 public Statement apply(Statement base, Description description) { in apply() argument
68 preEvaluate(description); in apply()
77 postEvaluate(description); in apply()
DTimeout.java139 public <T> T run(String description, Callable<T> job) throws Exception { in run() argument
140 return run(description, 100, job); in run()
157 public <T> T run(String description, long retryMs, Callable<T> job) throws Exception { in run() argument
158 if (TextUtils.isEmpty(description)) { in run()
179 Log.v(TAG, description + " failed at attempt #" + attempt + "; sleeping for " in run()
187 Log.w(TAG, description + " failed after " + attempt + " attempts and " + totalSlept + "ms: " in run()
189 throw new RetryableException(this, description); in run()
DOnFailureRule.java38 public Statement apply(Statement base, Description description) { in apply() argument
46 Log.e(mLogTag, "Test failed: description=" + description + "\nThrowable=" + t); in apply()
47 onTestFailure(base, description, t); in apply()
54 protected abstract void onTestFailure(Statement base, Description description, Throwable t);
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBeforeAfterRule.java28 public Statement apply(Statement base, Description description) { in apply() argument
33 onBefore(base, description); in apply()
37 onAfter(base, description); in apply()
43 protected void onBefore(Statement base, Description description) throws Throwable {
46 protected void onAfter(Statement base, Description description) throws Throwable {
DStateKeeperRule.java52 protected void preEvaluate(@SuppressWarnings("unused") Description description) { in preEvaluate() argument
58 protected void postEvaluate(@SuppressWarnings("unused") Description description) { in postEvaluate() argument
62 public Statement apply(Statement base, Description description) { in apply() argument
68 preEvaluate(description); in apply()
77 postEvaluate(description); in apply()
DTimeout.java139 public <T> T run(String description, Callable<T> job) throws Exception { in run() argument
140 return run(description, 100, job); in run()
157 public <T> T run(String description, long retryMs, Callable<T> job) throws Exception { in run() argument
158 if (TextUtils.isEmpty(description)) { in run()
179 Log.v(TAG, description + " failed at attempt #" + attempt + "; sleeping for " in run()
187 Log.w(TAG, description + " failed after " + attempt + " attempts and " + totalSlept + "ms: " in run()
189 throw new RetryableException(this, description); in run()
DOnFailureRule.java38 public Statement apply(Statement base, Description description) { in apply() argument
46 Log.e(mLogTag, "Test failed: description=" + description + "\nThrowable=" + t); in apply()
47 onTestFailure(base, description, t); in apply()
54 protected abstract void onTestFailure(Statement base, Description description, Throwable t);
DRequiredFeatureRule.java41 public Statement apply(Statement base, Description description) { in apply() argument
48 + description.getClassName() + "#" + description.getMethodName() in apply()
/cts/tests/signature/lib/common/src/android/signature/cts/
DFailureType.java25 static FailureType mismatch(JDiffClassDescription description) { in mismatch() argument
26 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in mismatch()
30 static FailureType missing(JDiffClassDescription description) { in missing() argument
31 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in missing()
/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java41 String description = "description"; in testParcel() local
44 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel()
55 assertEquals(description, result.getContentDescription()); in testParcel()
65 String description = "description"; in testClone() local
68 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone()
76 assertEquals(description, result.getContentDescription()); in testClone()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestActivity.java177 public void testRunStarted(Description description) throws Exception { in testRunStarted() argument
187 public void testStarted(Description description) throws Exception { in testStarted() argument
189 getTestLogger().logTestStart(description.getMethodName()); in testStarted()
192 public void testFinished(Description description) throws Exception { in testFinished() argument
194 getTestLogger().logTestPass(description.getMethodName(), null /* testSummary */); in testFinished()
210 public void testIgnored(Description description) throws Exception { in testIgnored() argument
212 getTestLogger().logTestSkip(description.getMethodName(), description.toString()); in testIgnored()
/cts/tests/tests/icu/resources/android/icu/cts/expectations/
Dicu-known-failures.txt9 description: "Exclude all tests",
14 description: "Serialized forms have not been converted to use repackaged classes",
19description: "Checks differences in DecimalFormat classes from ICU4J and JDK but on Android java.t…
24 description: "Collation rules data has been removed from ICU4J data on Android",
36 description: "Unknown Language != Unknown language",
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp48 AHardwareBuffer_Desc description; in fillRgbaHardwareBuffer() local
49 AHardwareBuffer_describe(hardware_buffer, &description); in fillRgbaHardwareBuffer()
50 ASSERT_EQ(AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM, description.format); in fillRgbaHardwareBuffer()
59 for (int y = 0; y < description.width; ++y) { in fillRgbaHardwareBuffer()
60 for (int x = 0; x < description.height; ++x) { in fillRgbaHardwareBuffer()
/cts/tests/tests/drm/src/android/drm/cts/
DDrmSupportInfoTest.java91 private static void checkSetAndGetDescription(String description) throws Exception { in checkSetAndGetDescription() argument
93 info.setDescription(description); in checkSetAndGetDescription()
94 assertEquals(info.getDescriprition(), description); in checkSetAndGetDescription() local
97 private static void checkSetInvalidDescription(String description) throws Exception { in checkSetInvalidDescription() argument
100 info.setDescription(description); in checkSetInvalidDescription()
101 fail("Description '" + description + "' was accepted for DrmSupportInfo"); in checkSetInvalidDescription()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DExpectationBasedFilter.java95 public boolean shouldRun(Description description) { in shouldRun() argument
99 Description testDescription = getTestDescription(description); in shouldRun()
118 private Description getTestDescription(Description description) { in getTestDescription() argument
119 List<Description> children = description.getChildren(); in getTestDescription()
122 return description; in getTestDescription()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/
DExpectationBasedFilter.java95 public boolean shouldRun(Description description) { in shouldRun() argument
99 Description testDescription = getTestDescription(description); in shouldRun()
118 private Description getTestDescription(Description description) { in getTestDescription() argument
119 List<Description> children = description.getChildren(); in getTestDescription()
122 return description; in getTestDescription()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestActivity.java187 public void testRunStarted(Description description) throws Exception { in testRunStarted() argument
212 public void testStarted(Description description) throws Exception { in testStarted() argument
217 mTextView.append("\n Running test: " + description.getMethodName()); in testStarted()
222 public void testFinished(Description description) throws Exception { in testFinished() argument
225 appendTestDetail("\n Test passed: " + description.getMethodName()); in testFinished()
226 mTestsResults.append("\n Test passed: " + description.getMethodName()); in testFinished()
247 public void testIgnored(Description description) throws Exception { in testIgnored() argument
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/data/
DVideoProvider.java53 String description = "This is description of a movie."; in buildMedia() local
56 Movie movie = buildMovieInfo(category_name, title, description, studio); in buildMedia()
67 String description, in buildMovieInfo() argument
73 movie.setDescription(description); in buildMovieInfo()
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java122 @Option(name = "run-name", description = "The name to use when reporting results")
125 @Option(name = "classpath", description = "Holds the paths to search when loading tests")
128 @Option(name = "dalvik-arg", description = "Holds arguments to pass to Dalvik")
132 description = "Holds arguments to pass to Dalvik when " +
137 description = "Holds arguments to pass to Dalvik only when " +
142 description = "Holds arguments to pass to the device-side test runner")
146 description = "The include filters of the test name to run.")
150 description = "The exclude filters of the test name to run.")
154 description="A file containing a list of line separated test classes and optionally"
159 description="A file containing a list of line separated test classes and optionally"
[all …]

123456