Home
last modified time | relevance | path

Searched refs:testClass (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/junit/
DEasilyExtensibleBlockJUnit4ClassRunner.java46 protected EasilyExtensibleBlockJUnit4ClassRunner(Class<?> testClass) in EasilyExtensibleBlockJUnit4ClassRunner() argument
48 super(testClass); in EasilyExtensibleBlockJUnit4ClassRunner()
51 protected EasilyExtensibleBlockJUnit4ClassRunner(TestClass testClass) in EasilyExtensibleBlockJUnit4ClassRunner() argument
53 super(testClass); in EasilyExtensibleBlockJUnit4ClassRunner()
58 protected List<TestRule> getTestRules(TestClass testClass, Object target) { in getTestRules() argument
60 testClass.collectAnnotatedMethodValues(target, Rule.class, TestRule.class, collector); in getTestRules()
61 testClass.collectAnnotatedFieldValues(target, Rule.class, TestRule.class, collector); in getTestRules()
65 protected List<MethodRule> rules(TestClass testClass, Object target) { in rules() argument
67 testClass.collectAnnotatedMethodValues(target, Rule.class, MethodRule.class, collector); in rules()
68 testClass.collectAnnotatedFieldValues(target, Rule.class, MethodRule.class, collector); in rules()
[all …]
DSafeAndroidJUnitRunner.java53 public SafeAndroidJUnitRunner(Class<?> testClass) throws InitializationError { in SafeAndroidJUnitRunner() argument
54 super(new SafeTestClass(testClass)); in SafeAndroidJUnitRunner()
57 public SafeAndroidJUnitRunner(TestClass testClass) throws InitializationError { in SafeAndroidJUnitRunner() argument
58 super(new SafeTestClass(testClass)); in SafeAndroidJUnitRunner()
62 protected TestClass createTestClass(Class<?> testClass) { in createTestClass() argument
63 return new SafeTestClass(testClass); in createTestClass()
72 public SafeTestClass(TestClass testClass) { in SafeTestClass() argument
73 this(testClass.getJavaClass()); in SafeTestClass()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/multichip/
DMultichipConfigFileCreator.java37 public static File createOneChipFileFromResource(TemporaryFolder tempFolder, Class testClass) in createOneChipFileFromResource() argument
39 return createFileFromResource(ONE_CHIP_CONFIG_FILE, tempFolder, testClass); in createOneChipFileFromResource()
42 public static File createTwoChipFileFromResource(TemporaryFolder tempFolder, Class testClass) in createTwoChipFileFromResource() argument
44 return createFileFromResource(TWO_CHIP_CONFIG_FILE, tempFolder, testClass); in createTwoChipFileFromResource()
47 public static File createNoPositionFileFromResource(TemporaryFolder tempFolder, Class testClass) in createNoPositionFileFromResource() argument
49 return createFileFromResource(NO_POSITION_CONFIG_FILE, tempFolder, testClass); in createNoPositionFileFromResource()
53 Class testClass) throws Exception { in createFileFromResource() argument
54 InputStream in = testClass.getClassLoader().getResourceAsStream(ASSETS_DIR + filename); in createFileFromResource()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DTestHelper.java47 Class<?> testClass = test.getTestClass(); in getAnnotation() local
48 while (testClass != null) { in getAnnotation()
49 annotation = testClass.getAnnotation(annotationClass); in getAnnotation()
54 test, annotation, testClass.getSimpleName()); in getAnnotation()
61 test, testClass, testClass.getSuperclass()); in getAnnotation()
63 testClass = testClass.getSuperclass(); in getAnnotation()
DAbstractSdkLevelSupportedRule.java156 private RequiredRange getRequiredRangeFromClass(Class<?> testClass) {
157 Annotation[] annotations = testClass.getAnnotations();
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DConcurrentRunner.java81 TestClass testClass = new TestClass(Class.forName(journeyStr)); in initialize() local
82 mTestClasses.add(testClass); in initialize()
83 mFrameworkMethods.add(getFrameworkMethod(journey, testClass)); in initialize()
84 mJourneyClasses.add(testClass.getJavaClass().getConstructor().newInstance()); in initialize()
178 TestClass testClass = mTestClasses.get(i); in withAfters() local
180 afterMethods.addAll(testClass.getAnnotatedMethods(After.class)); in withAfters()
181 afterMethods.addAll(testClass.getAnnotatedMethods(AfterClass.class)); in withAfters()
199 TestClass testClass = mTestClasses.get(i); in withBefores() local
201 allBeforeMethods.addAll(testClass.getAnnotatedMethods(BeforeClass.class)); in withBefores()
202 allBeforeMethods.addAll(testClass.getAnnotatedMethods(Before.class)); in withBefores()
[all …]
DConcurrentScenariosStatement.java53 Object testClass = mJourneys.get(i); in evaluate() local
58 testMethod.invokeExplosively(testClass); in evaluate()
68 testClass.getClass().getSimpleName(), in evaluate()
76 testClass.getClass().getSimpleName(), in evaluate()
DConcurrentProfile.java332 private void validateMethodName(TestClass testClass, Journey journey) { in validateMethodName() argument
333 List<FrameworkMethod> methods = testClass.getAnnotatedMethods(Test.class); in validateMethodName()
351 for (FrameworkMethod method : testClass.getAnnotatedMethods(Test.class)) { in validateMethodName()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DLauncherMultivalentJUnit.kt34 (testClass.getAnnotation(EmulatedDevices::class.java)?.value ?: emptyArray()).let { devices in <lambda>()
40 (testClass.javaClass.classLoader.loadClass(ROBOLECTRIC_RUNNER) as Class<Runner>) in <lambda>()
43 if (devices.isEmpty()) listOf(ctor.newInstance(testClass.javaClass, null)) in <lambda>()
44 else devices.map { ctor.newInstance(testClass.javaClass, it) } in <lambda>()
50 ?: listOf(AndroidJUnit4(testClass.javaClass)) in <lambda>()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/experimental/
DAbstractFlagsRouletteRunner.java83 protected AbstractFlagsRouletteRunner(Class<?> testClass, FlagsManager manager) in AbstractFlagsRouletteRunner() argument
85 super(testClass); in AbstractFlagsRouletteRunner()
113 protected String[] getFlagsRoulette(TestClass testClass, List<Throwable> errors) { in getFlagsRoulette() argument
115 FlagsProviderClass flagsProviderClass = testClass.getAnnotation(FlagsProviderClass.class); in getFlagsRoulette()
118 flagsProviderClass.value(), testClass.getJavaClass(), errors); in getFlagsRoulette()
121 FlagsRoulette annotation = testClass.getAnnotation(FlagsRoulette.class); in getFlagsRoulette()
135 + testClass in getFlagsRoulette()
185 TestClass testClass = getTestClass(); in collectInitializationErrors() local
186 String[] flagsRoulette = getFlagsRoulette(testClass, errors); in collectInitializationErrors()
310 Class<?> testClass, in getFlagsFromProvider() argument
[all …]
DAbstractGlobalKillSwitchFlipper.java47 protected AbstractGlobalKillSwitchFlipper(Class<?> testClass) throws InitializationError { in AbstractGlobalKillSwitchFlipper() argument
48 super(testClass, new DeviceConfigFlagsManager(DeviceConfig.NAMESPACE_ADSERVICES)); in AbstractGlobalKillSwitchFlipper()
52 protected String[] getFlagsRoulette(TestClass testClass, List<Throwable> errors) { in getFlagsRoulette() argument
DGlobalKillSwitchFlipper.java36 public GlobalKillSwitchFlipper(Class<?> testClass) throws InitializationError { in GlobalKillSwitchFlipper() argument
37 super(testClass); in GlobalKillSwitchFlipper()
DGlobalKillSwitchEnabledFirstFlipper.java28 public GlobalKillSwitchEnabledFirstFlipper(Class<?> testClass) throws InitializationError { in GlobalKillSwitchEnabledFirstFlipper() argument
29 super(testClass); in GlobalKillSwitchEnabledFirstFlipper()
DAdServicesFlagsRouletteRunner.java38 public AdServicesFlagsRouletteRunner(Class<?> testClass) throws InitializationError { in AdServicesFlagsRouletteRunner() argument
39 super(testClass, DeviceConfig.NAMESPACE_ADSERVICES); in AdServicesFlagsRouletteRunner()
DDeviceConfigFlagsRouletteRunner.java49 protected DeviceConfigFlagsRouletteRunner(Class<?> testClass, String namespace) in DeviceConfigFlagsRouletteRunner() argument
51 super(testClass, new DeviceConfigFlagsManager(namespace)); in DeviceConfigFlagsRouletteRunner()
/packages/services/Car/libs/car-test-lib/src/android/car/test/
DPermissionsCheckerRule.java84 Class<?> testClass = description.getTestClass(); in apply() field in PermissionsCheckerRule
85 while (testClass != null) { in apply()
87 testClass.getAnnotation(EnsureHasPermission.class)); in apply()
88 testClass = testClass.getSuperclass(); in apply()
DApiCheckerRule.java584 private void validateOptionalAnnotations(Class<?> testClass, String testMethodName,
593 validateUnsupportedVersionTest(testClass, testMethodName,
598 validateSupportedVersionTest(testClass, testMethodName,
604 private void validateUnsupportedVersionTest(Class<?> testClass, String testMethodName,
617 supportedVersionMethod = testClass.getDeclaredMethod(supportedVersionMethodName,
621 + " on class " + testClass, e);
647 private void validateSupportedVersionTest(Class<?> testClass, String testMethodName,
660 unsupportedVersionMethod = testClass.getDeclaredMethod(unsupportedVersionMethodName,
664 + " on class " + testClass, e);
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/testing/
DTvTunerRobolectricTestRunner.java39 public TvTunerRobolectricTestRunner(Class<?> testClass) throws InitializationError { in TvTunerRobolectricTestRunner() argument
40 super(testClass); in TvTunerRobolectricTestRunner()
/packages/apps/TV/tests/robotests/src/com/android/tv/testing/
DTvRobolectricTestRunner.java39 public TvRobolectricTestRunner(Class<?> testClass) throws InitializationError { in TvRobolectricTestRunner() argument
40 super(testClass); in TvRobolectricTestRunner()
/packages/apps/Launcher3/tests/src_deviceless/com/android/launcher3/util/
DRobolectricDeviceRunner.kt30 class RobolectricDeviceRunner(testClass: Class<*>?, private val deviceName: String?) :
31 RobolectricTestRunner(testClass) {
/packages/modules/NetworkStack/tests/hostlib/src/com/android/testutils/host/
DDeflakeHostTestBase.kt116 classes.forEach { testClass -> in <lambda>() method
117 runDeviceTests(runOptions.setTestClassName(testClass)) in <lambda>()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/
DTestSupport.java87 public static Path createTempDir(Class<?> testClass) throws IOException { in createTempDir() argument
88 return Files.createTempDirectory(testClass.getSimpleName()); in createTempDir()
/packages/services/Telephony/utils/satellite/s2storage/src/testutils/java/com/android/telephony/sats2range/testutils/
DTestUtils.java81 public static Path createTempDir(Class<?> testClass) throws IOException { in createTempDir() argument
82 return Files.createTempDirectory(testClass.getSimpleName()); in createTempDir()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DSetFeatureFlagsRule.kt73 val testMethod = description.testClass.getMethod(description.methodName) in apply()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/util/
DHexTest.java56 public void testClass() { in testClass() method in HexTest

12