Home
last modified time | relevance | path

Searched refs:Description (Results 1 – 25 of 125) sorted by relevance

12345

/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DTestHelperTest.java30 import org.junit.runner.Description;
39 @Mock private Description mMockDescription;
48 Description test = in testGetTestName_testMethod()
49 Description.createTestDescription(AClassHasNoNothingAtAll.class, "butItHasATest"); in testGetTestName_testMethod()
58 Description test = Description.createSuiteDescription(AClassHasNoNothingAtAll.class); in testGetTestName_testClass()
67 Description test = Description.createSuiteDescription(AClassHasNoNothingAtAll.class); in testGetAnnotation_null()
78 Description test = Description.createSuiteDescription(AClassHasNoNothingAtAll.class); in testGetAnnotation_notSetAnywhere()
87 Description test = in testGetAnnotation_fromMethod()
88 Description.createSuiteDescription( in testGetAnnotation_fromMethod()
102 Description test = in testGetAnnotation_fromClass()
[all …]
DAbstractRuleTest.java31 import org.junit.runner.Description;
40 private final Description mDefaultDescription =
41 Description.createTestDescription(AbstractRuleTest.class, "aTestHasNoName");
97 @Nullable public Description description;
104 protected void evaluate(Statement base, Description description) throws Throwable { in evaluate()
DAbstractSdkLevelSupportedRuleTest.java47 import org.junit.runner.Description;
147 Description testMethod = newTestMethod(); in testPassesWhenDeviceLevelIsInRange()
164 Description testMethod = newTestMethod(); in testSkipsWhenDeviceLevelIsOutsideRange()
198 Description testMethod) { in assertGetRequiredRange()
784 Description testMethod = newTestMethod(newAnnotationForLessThanT(REASON)); in testSkippedWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
802 Description testMethod = newTestMethod(newAnnotationForLessThanT(REASON)); in testThrewWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
820 Description testMethod = newTestMethod(newAnnotationForLessThanT(REASON)); in testRanWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
862 Description testMethod = newTestMethod(); in testRanWhenRuleIsAtLeastXAndDeviceIsY()
876 Description testMethod = newTestMethod(newAnnotationForAtLeast(annotationLevel, REASON)); in testRanWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithZ()
890 Description testMethod = newTestMethod(); in testSkippedWhenRuleIsAtLeastXAndDeviceIsY()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/
DAbstractAdServicesDeviceSupportedRuleTest.java37 import org.junit.runner.Description;
133 Description description = createTestMethod(TestAnnotations.requiresLowRamDevice()); in testAnnotatedWithLowRam_deviceNotLowRam()
144 Description description = createTestMethod(TestAnnotations.requiresLowRamDevice()); in testAnnotatedWithLowRam_deviceLowRam()
154 Description description = in testAnnotatedWithLargeScreen_deviceSmallScreen()
168 Description description = in testAnnotatedWithLargeScreen_deviceLargeScreen()
179 Description description = in testAnnotatedWithSmallScreen_deviceLargeScreen()
193 Description description = in testAnnotatedWithSmallScreen_deviceSmallScreen()
204 Description description = createTestMethod(TestAnnotations.requiresGoDevice()); in testAnnotatedWithRequiresGoDevice_deviceNotGoDevice()
215 Description description = createTestMethod(TestAnnotations.requiresGoDevice()); in testAnnotatedWithRequiresGoDevice_deviceGoDevice()
225 Description description = in testAnnotatedWithRequiresGoDeviceAndRequiresLowRamDevice_onlyGoDevice()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DPermissionsCheckerRuleTest.java35 import org.junit.runner.Description;
64 Description testMethod = newTestMethod(); in testNoAnnotation()
75 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermission()
86 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermissionTestThrows()
100 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To", "Kill")); in testEnsureHasPermission_multiplePermissions()
111 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_permissionsAdoptedBefore()
124 Description testMethod = Description.createTestDescription(SuperClass.class, "testIAm", in testEnsureHasPermission_annotatedClass()
142 Description testMethod = Description.createTestDescription(SubClass.class, "testIAm", in testEnsureHasPermission_annotatedClassAndParent()
DJUnitHelper.java22 import org.junit.runner.Description;
38 public static Description newTestMethod(Annotation... annotations) { in newTestMethod()
42 public static Description newTestMethod(String methodName, Annotation... annotations) { in newTestMethod()
43 return Description.createTestDescription(PermissionsCheckerRuleTest.class, in newTestMethod()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DFailureWatcher.java18 import org.junit.runner.Description;
33 private static Description sDescriptionForLastSavedArtifacts;
46 protected void starting(Description description) { in starting()
52 protected void finished(Description description) { in finished()
58 protected void succeeded(Description description) { in succeeded()
64 public Statement apply(Statement base, Description description) { in apply()
86 protected void failed(Throwable e, Description description) {
90 static File diagFile(Description description, String prefix, String ext) {
97 public static void onError(LauncherInstrumentation launcher, Description description) {
101 private static void onError(LauncherInstrumentation launcher, Description description,
/packages/providers/MediaProvider/errorprone/src/com/android/providers/media/
DMimeTypeChecker.java27 import com.google.errorprone.matchers.Description;
57 public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) { in matchMethodInvocation()
70 return Description.NO_MATCH; in matchMethodInvocation()
74 public Description matchSwitch(SwitchTree tree, VisitorState state) { in matchSwitch()
78 return Description.NO_MATCH; in matchSwitch()
84 return Description.NO_MATCH; in matchSwitch()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDevSdkIgnoreRunner.kt24 import org.junit.runner.Description
58 private val leakMonitorDesc = Description.createTestDescription(klass, "ThreadLeakMonitor")
66 override fun getDescription(): Description = wrapped.description in getDescription()
99 Description.createTestDescription(klass, "skippedClassForDevSdkMismatch")) in run()
146 override fun getDescription(): Description { in getDescription()
148 return Description.createSuiteDescription(klass) in getDescription()
DDevSdkIgnoreRule.kt25 import org.junit.runner.Description in <lambda>()
75 private fun getMaxTargetSdk(description: Description): Int? { in getMaxTargetSdk()
106 override fun apply(base: Statement, description: Description): Statement { in apply()
128 private val description: Description
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DExtendedMockitoInlineCleanerRule.java24 import org.junit.runner.Description;
58 public Statement apply(Statement base, Description description) { in apply()
72 private Mode getMode(Description description) {
84 private void clearInlineMocksAfterTest(Description description) {
109 public static boolean shouldClearInlineMocksAfterTest(Description description, Mode mode) {
DAdServicesExtendedMockitoRule.java31 import org.junit.runner.Description;
89 public final Statement apply(Statement base, Description description) { in apply()
106 protected final Set<Class<?>> getSpiedStaticClasses(Description description) {
113 protected final Set<Class<?>> getMockedStaticClasses(Description description) {
120 protected final boolean getClearInlineMethodsAtTheEnd(Description description) {
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractRethrowerRule.java21 import org.junit.runner.Description;
39 protected final void evaluate(Statement base, Description description) throws Throwable { in evaluate()
81 protected void preTest(Statement base, Description description, List<Throwable> cleanUpErrors) { in preTest()
93 Description description, in onTestFailure()
108 Statement base, Description description, List<Throwable> cleanUpErrors) { in postTest()
DTestHelper.java18 import org.junit.runner.Description;
33 Description test, Class<T> annotationClass) { in getAnnotation()
74 public static String getTestName(Description test) { in getTestName()
87 public static void throwIfNotTest(Description description) { in throwIfNotTest()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DContactsMatchers.java26 import org.hamcrest.Description;
79 public void describeTo(Description description) { in hasCount()
98 public void describeTo(Description description) {
120 public void describeTo(Description description) {
141 public void describeTo(Description description) {
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DViewMatchers.kt22 import org.hamcrest.Description
40 override fun describeTo(description: Description) { in withIndex()
54 override fun describeTo(description: Description) { in atPosition()
73 override fun describeTo(description: Description) { in isAbove()
DInstantTaskExecutorRule.kt19 import org.junit.runner.Description
29 override fun starting(description: Description) { in starting()
48 override fun finished(description: Description) { in finished()
DCoroutineTestRule.kt23 import org.junit.runner.Description
31 override fun starting(description: Description) { in starting()
36 override fun finished(description: Description) { in finished()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java694 private class DescriptionTask extends AsyncTask<List<Uri>, Void, List<Description>> {
704 protected List<Description> doInBackground(List<Uri>... params) { in doInBackground()
706 final List<Description> res = new ArrayList<>(); in doInBackground()
714 int loadFlags = Description.LOAD_THUMBNAIL | Description.LOAD_CONTENT_DESCRIPTION; in doInBackground()
719 loadFlags |= Description.LOAD_FULL; in doInBackground()
743 final Description desc = new Description(bodyView.getContext(), uri, loadFlags); in doInBackground()
764 protected void onPostExecute(List<Description> results) { in onPostExecute()
766 final List<Description> visualResults = results.stream().filter(Description::isVisual) in onPostExecute()
786 private void bindAsFull(@NonNull Description result) { in bindAsFull()
803 private void bindAsThumbs(@NonNull List<Description> results, in bindAsThumbs()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DInstantTaskExecutorRule.java23 import org.junit.runner.Description;
34 protected void starting(Description description) { in starting()
55 protected void finished(Description description) { in finished()
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DInstantTaskExecutorRule.java23 import org.junit.runner.Description;
34 protected void starting(Description description) { in starting()
55 protected void finished(Description description) { in finished()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DInstantTaskExecutorRule.java23 import org.junit.runner.Description;
34 protected void starting(Description description) { in starting()
55 protected void finished(Description description) { in finished()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DInstantTaskExecutorRule.java23 import org.junit.runner.Description;
34 protected void starting(Description description) { in starting()
55 protected void finished(Description description) { in finished()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaskbarModeSwitchRule.java35 import org.junit.runner.Description;
72 public Statement apply(Statement base, Description description) { in apply()
118 boolean expectTransientTaskbar, Description description) throws Exception {
130 boolean condition, Description description) {
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DMeterednessConfigurationRule.java27 import org.junit.runner.Description;
34 public void onBefore(Statement base, Description description) throws Throwable { in onBefore()
45 public void onAfter(Statement base, Description description) throws Throwable { in onAfter()

12345