Home
last modified time | relevance | path

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

123456789

/cts/libs/input/src/com/android/cts/input/
DInputEventMatchers.kt32 override fun describeTo(description: Description) { in withCoords()
33 description.appendText("With coords = $pt") in withCoords()
43 override fun describeTo(description: Description) { in withPointerCount()
44 description.appendText("With pointer count = $count") in withPointerCount()
56 override fun describeTo(description: Description) { in withCoords()
57 description.appendText("With coords = $pt for pointer index = $index") in withCoords()
67 override fun describeTo(description: Description) { in withRawCoords()
68 description.appendText("With coords = $pt") in withRawCoords()
82 override fun describeTo(description: Description) { in withMotionAction()
83 description.appendText("With action = ${MotionEvent.actionToString(action)}") in withMotionAction()
[all …]
DDebugInputRule.kt78 override fun starting(description: Description?) { in starting()
79 if (!shouldEnableInputDebugging(description!!)) return in starting()
88 override fun failed(e: Throwable?, description: Description?) { in failed()
92 override fun finished(description: Description?) { in finished()
93 if (!shouldEnableInputDebugging(description!!)) return in finished()
102 override fun skipped(e: AssumptionViolatedException?, description: Description?) { in skipped()
103 finished(description) in skipped()
107 private fun shouldEnableInputDebugging(description: Description): Boolean { in shouldEnableInputDebugging()
108 return description.isTest && in shouldEnableInputDebugging()
109 description.getAnnotation(DebugInputRule.DebugInput::class.java) != null in shouldEnableInputDebugging()
/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/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DBedsteadRunListener.java47 public void testRunStarted(Description description) throws Exception { in testRunStarted() argument
48 BedsteadRunResultsProvider.sNumberOfTests.set(description.testCount()); in testRunStarted()
68 private String getTestName(Description description) { in getTestName() argument
69 return description.getClassName() + "#" + description.getMethodName(); in getTestName()
73 public void testStarted(Description description) throws Exception { in testStarted() argument
74 Log.d(LOG_TAG, "Test started: " + description); in testStarted()
75 mTestNameToIndex.put(getTestName(description), mIndex); in testStarted()
77 new BedsteadResult(mIndex, getTestName(description))); in testStarted()
84 public void testFinished(Description description) throws Exception { in testFinished() argument
85 Log.d(LOG_TAG, "Test finished: " + description); in testFinished()
[all …]
/cts/libs/vogar-expect/src/vogar/expect/
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/framework/base/windowmanager/util/src/android/server/wm/
DDumpOnFailure.java70 public Statement apply(Statement base, Description description) { in apply() argument
74 onTestSetup(description); in apply()
78 onTestFailure(description, t); in apply()
81 onTestTeardown(description); in apply()
87 private void onTestSetup(@NonNull Description description) {
88 cleanDir(getDumpRoot(description).toFile());
92 private void onTestTeardown(@NonNull Description description) {
96 private void onTestFailure(@NonNull Description description, @NonNull Throwable t) {
97 final Path root = getDumpRoot(description);
105 final var fileName = getFilename(description, entry.getKey());
[all …]
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumpOnFailureRule.java56 protected void starting(Description description) { in starting() argument
57 AccessibilityDumper.getInstance().setName(getTestNameFrom(description)); in starting()
61 protected void failed(Throwable t, Description description) { in failed() argument
65 private String getTestNameFrom(Description description) { in getTestNameFrom() argument
66 return description.getTestClass().getSimpleName() in getTestNameFrom()
67 + "_" + description.getMethodName(); in getTestNameFrom()
/cts/hostsidetests/multidevices/bluetooth/snippet/
DBluetoothGattMultiDevicesSnippet.java43 @Rpc(description = "Reset the state of client + server")
49 @Rpc(description = "Creates Bluetooth GATT server with a given UUID and advertises it.")
55 description =
62 @Rpc(description = "Connect to the peer device advertising the specified UUID")
67 @Rpc(description = "Enables Bluetooth")
72 @Rpc(description = "Disable Bluetooth")
77 @Rpc(description = "Checks Bluetooth state")
82 @Rpc(description = "Whether the connected peer has a service of the given UUID")
/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.java50 protected void preEvaluate(@SuppressWarnings("unused") Description description) { in preEvaluate() argument
56 protected void postEvaluate(@SuppressWarnings("unused") Description description) { in postEvaluate() argument
60 public Statement apply(Statement base, Description description) { in apply() argument
66 preEvaluate(description); in apply()
75 postEvaluate(description); in apply()
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);
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()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DDumpOnFailureRule.java46 public void onTestFailure(Statement base, Description description, Throwable throwable) { in onTestFailure() argument
48 final String testName = description.getClassName() + "_" + description.getMethodName(); in onTestFailure()
54 final File dumpFile = new File(mDumpDir, "dump-" + getShortenedTestName(description)); in onTestFailure()
55 Log.i(TAG, "Dumping debug info for " + description + ": " + dumpFile.getPath()); in onTestFailure()
65 private String getShortenedTestName(Description description) { in getShortenedTestName() argument
66 final String qualifiedClassName = description.getClassName(); in getShortenedTestName()
73 return shortenedClassName + "_" + description.getMethodName(); in getShortenedTestName()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DShowWhenLockedActivity.java40 public static Intent makeActivityIntent(Context context, String description, in makeActivityIntent() argument
43 .putExtra(KEY_DESCRIPTION, description); in makeActivityIntent()
55 String description = getIntent().getStringExtra(KEY_DESCRIPTION); in onCreate() local
56 this.<TextView>findViewById(R.id.description).setText(description); in onCreate()
/cts/tests/tests/companion/multidevice/client/src/android/companion/cts/multidevice/
DCompanionDeviceManagerSnippet.kt67 @Rpc(description = "Start device association flow.")
106 @Rpc(description = "Start permissions sync.")
125 @Rpc(description = "Get my association IDs.")
134 @Rpc(description = "Disassociate device.")
143 @Rpc(description = "Disassociate all associations.")
154 @Rpc(description = "Start permissions sync.")
161 @Rpc(description = "Remove bluetooth bond.")
166 @Rpc(description = "Attach client socket.")
171 @Rpc(description = "Attach server socket.")
176 @Rpc(description = "Remove all sockets.")
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java170 public void describeTo(Description description) { in describeTo() argument
171 description.appendText("Matching to type " + mType); in describeTo()
189 public void describeTo(Description description) { in describeTo() argument
190 description.appendText("With window change type " + mWindowChanges); in describeTo()
208 public void describeTo(Description description) { in describeTo() argument
209 description.appendText("With content change type " + mContentChanges); in describeTo()
218 public PropertyMatcher(T property, String description, in PropertyMatcher() argument
222 mDescription = description; in PropertyMatcher()
232 public void describeTo(Description description) { in describeTo() argument
233 description.appendText("Matching to " + mDescription + " " + mProperty.toString()); in describeTo()
[all …]
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/
DExpectationBasedFilter.java75 public boolean shouldRun(Description description) { in shouldRun() argument
79 Description testDescription = getTestDescription(description); in shouldRun()
86 private Description getTestDescription(Description description) { in getTestDescription() argument
87 List<Description> children = description.getChildren(); in getTestDescription()
90 return description; in getTestDescription()
/cts/tests/signature/lib/common/src/android/signature/cts/
DFailureType.java26 static FailureType mismatch(JDiffClassDescription description) { in mismatch() argument
27 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in mismatch()
31 static FailureType missing(JDiffClassDescription description) { in missing() argument
32 return JDiffClassDescription.JDiffType.INTERFACE.equals(description.getClassType()) in missing()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaItemTest.java47 MediaDescription description = new MediaDescription.Builder() in testBrowsableMediaItem() local
50 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_BROWSABLE); in testBrowsableMediaItem()
52 assertThat(mediaItem.getDescription().toString()).isEqualTo(description.toString()); in testBrowsableMediaItem()
70 .isEqualTo(description.toString()); in testBrowsableMediaItem()
77 MediaDescription description = new MediaDescription.Builder() in testPlayableMediaItem() local
80 MediaItem mediaItem = new MediaItem(description, MediaItem.FLAG_PLAYABLE); in testPlayableMediaItem()
82 assertThat(mediaItem.getDescription().toString()).isEqualTo(description.toString()); in testPlayableMediaItem()
100 .isEqualTo(description.toString()); in testPlayableMediaItem()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DFailureHandlingTest.java78 JDiffClassDescription description = createClass("fake"); in testNoFailures_DetectsFailures()
79 checker.checkSignatureCompliance(description); in testNoFailures_DetectsFailures()
106 JDiffClassDescription description = createClass("fake"); in testExpectFailure_DetectsTooManyFailures()
107 checker.checkSignatureCompliance(description); in testExpectFailure_DetectsTooManyFailures()
108 description = createClass("fake2"); in testExpectFailure_DetectsTooManyFailures()
109 checker.checkSignatureCompliance(description); in testExpectFailure_DetectsTooManyFailures()
/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java41 String description = "description"; in testParcel() local
45 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel()
56 assertEquals(description, result.getContentDescription()); in testParcel()
66 String description = "description"; in testClone() local
70 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone()
78 assertEquals(description, result.getContentDescription()); in testClone()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAdminFeaturesCheckerRule.java57 public Statement apply(final Statement base, Description description) { in apply() argument
68 String testName = description.getDisplayName(); in apply()
70 TemporarilyIgnoreOnHeadlessSystemUserMode temporarilyIgnoredAnnotation = description in apply()
79 IgnoreOnHeadlessSystemUserMode ignoredAnnotation = description in apply()
97 addRequiredAdditionalFeatures(requiredFeatures, description in apply()
99 addRequiredManagedUsersFeature(requiredFeatures, testDevice, description in apply()
103 Class<?> clazz = description.getTestClass(); in apply()
124 DoesNotRequireFeature bypass = description in apply()
/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/flags/tests/aconfig/
Dandroid.cts.flags.tests.aconfig6 description: "testing flag that is always disabled"
13 description: "another testing flag that is always disabled"
20 description: "testing flag that is always enabled"
/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()

123456789