Home
last modified time | relevance | path

Searched refs:testMethod (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DPermissionsCheckerRuleTest.java64 Description testMethod = newTestMethod(); in testNoAnnotation() local
66 mRule.apply(mBaseStatement, testMethod).evaluate(); in testNoAnnotation()
75 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermission() local
77 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_onePermission()
86 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_onePermissionTestThrows() local
91 () -> mRule.apply(mBaseStatement, testMethod).evaluate()); in testEnsureHasPermission_onePermissionTestThrows()
100 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To", "Kill")); in testEnsureHasPermission_multiplePermissions() local
102 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_multiplePermissions()
111 Description testMethod = newTestMethod(new EnsureHasPermissionAnnotation("To Kill")); in testEnsureHasPermission_permissionsAdoptedBefore() local
114 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_permissionsAdoptedBefore()
[all …]
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRuleTest.java147 Description testMethod = newTestMethod(); in testPassesWhenDeviceLevelIsInRange() local
150 rule.apply(mBaseStatement, testMethod).evaluate(); in testPassesWhenDeviceLevelIsInRange()
164 Description testMethod = newTestMethod(); in testSkipsWhenDeviceLevelIsOutsideRange() local
169 () -> rule.apply(mBaseStatement, testMethod).evaluate()); in testSkipsWhenDeviceLevelIsOutsideRange()
198 Description testMethod) { in assertGetRequiredRange() argument
199 RequiredRange actualRequiredRange = rule.getRequiredRange(testMethod); in assertGetRequiredRange()
203 rule, expectedRequiredRange, actualRequiredRange, testMethod); in assertGetRequiredRange()
784 Description testMethod = newTestMethod(newAnnotationForLessThanT(REASON)); in testSkippedWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT() local
789 () -> rule.apply(mBaseStatement, testMethod).evaluate()); in testSkippedWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
802 Description testMethod = newTestMethod(newAnnotationForLessThanT(REASON)); in testThrewWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT() local
[all …]
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DConcurrentScenariosStatement.java54 FrameworkMethod testMethod = mMethods.get(i); in evaluate() local
58 testMethod.invokeExplosively(testClass); in evaluate()
69 testMethod.getName()), in evaluate()
77 testMethod.getName())); in evaluate()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DSetFeatureFlagsRule.kt73 val testMethod = description.testClass.getMethod(description.methodName) in apply() constant
74 val featureFlagAnnotations = testMethod.getAnnotationsByType( in apply()
/packages/modules/Connectivity/tools/testdata/
Dtest-unsupportedappusage.txt1 Ltest/unsupportedappusage/TestUnsupportedAppUsageClass;->testMethod()V
/packages/modules/Connectivity/tools/testdata/java/test/unsupportedappusage/
DTestUnsupportedAppUsageClass.java25 public void testMethod() {} in testMethod() method in TestUnsupportedAppUsageClass
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DPrivacyGeneratorStatisticalTest.java70 private void assertStatisticalTest(int numberOfVotes, Runnable testMethod) throws Exception { in assertStatisticalTest() argument
76 testMethod.run(); in assertStatisticalTest()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java638 Method testMethod = AbstractExtendedMockitoTestCase.this.getClass() in apply() local
640 ExpectWtf expectWtfAnnotation = testMethod.getAnnotation(ExpectWtf.class); in apply()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt240 val testMethod = this::class.java.getMethod(testMethodName) in setUp() constant
241 val featureFlags = testMethod.getAnnotation(FeatureFlags::class.java) in setUp()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt307 var testMethod = this::class.java.getMethod(mTestName.methodName) in setUp() variable
308 val flags = testMethod.getAnnotationsByType(Flag::class.java) in setUp()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java738 final Method testMethod = IpClientIntegrationTestCommon.class.getMethod(testMethodName);
739 mIsSignatureRequiredTest = testMethod.getAnnotation(SignatureRequiredTest.class) != null;
747 final Flag[] flags = testMethod.getAnnotationsByType(Flag.class);