Home
last modified time | relevance | path

Searched refs:getAnnotation (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/tests/testables/src/android/testing/
DTestWithLooperRule.java45 RunWith runWithAnnotation = target.getClass().getAnnotation(RunWith.class); in apply()
54 RunWithLooper looperAnnotation = method.getAnnotation(RunWithLooper.class); in apply()
56 looperAnnotation = target.getClass().getAnnotation(RunWithLooper.class); in apply()
138 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
139 if (annotation == null) annotation = test.getClass().getAnnotation(RunWithLooper.class); in looperWrap()
148 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
149 if (annotation == null) annotation = test.getClass().getAnnotation(RunWithLooper.class); in looperWrap()
DAndroidTestingRunner.java75 long timeout = this.getTimeout(method.getAnnotation(Test.class)); in withPotentialTimeout()
89 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
90 if (annotation == null) annotation = mKlass.getAnnotation(RunWithLooper.class); in looperWrap()
103 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
104 if (annotation == null) annotation = mKlass.getAnnotation(RunWithLooper.class); in looperWrap()
112 if (mKlass.getAnnotation(UiThreadTest.class) != null) { in shouldRunOnUiThread()
/frameworks/base/ravenwood/junit-src/android/platform/test/ravenwood/
DRavenwoodRule.java278 if (description.getAnnotation(DisabledOnNonRavenwood.class) != null) { in shouldEnableOnDevice()
284 if (clazz.getAnnotation(DisabledOnNonRavenwood.class) != null) { in shouldEnableOnDevice()
306 if (description.getAnnotation(EnabledOnRavenwood.class) != null) { in shouldEnableOnRavenwood()
309 if (description.getAnnotation(DisabledOnRavenwood.class) != null) { in shouldEnableOnRavenwood()
312 if (description.getAnnotation(IgnoreUnderRavenwood.class) != null) { in shouldEnableOnRavenwood()
320 if (description.getTestClass().getAnnotation(EnabledOnRavenwood.class) != null) { in shouldEnableOnRavenwood()
323 if (description.getTestClass().getAnnotation(DisabledOnRavenwood.class) != null) { in shouldEnableOnRavenwood()
326 if (description.getTestClass().getAnnotation(IgnoreUnderRavenwood.class) != null) { in shouldEnableOnRavenwood()
/frameworks/libs/modules-utils/javatests/android/annotation/
DRestrictedForTests.java33 RestrictedFor annotation = clz.getClass().getAnnotation(RestrictedFor.class); in testAnnotationAvailableInRuntime()
49 RestrictedFor annotation = clz.getClass().getAnnotation(RestrictedFor.class); in testAnnotationParameters()
60 RestrictedFor annotation = clz.getClass().getAnnotation(RestrictedFor.class); in testAnnotationParameters_environmentToString()
70 RestrictedFor annotation = clz.getClass().getAnnotation(RestrictedFor.class); in testAnnotationParameters_environment_multipleEnvironments()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/
DSceneContainerRule.kt86 this?.testClass?.getAnnotation(T::class.java) != null || in <lambda>()
87 this?.getAnnotation(T::class.java) != null in <lambda>()
DSceneContainerFlagParameterization.kt28 EnableSceneContainer::class.java.getAnnotation(EnableFlags::class.java)!!.value.toList()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java57 return testMethod.getAnnotation(annotationClass) != null || in apply()
58 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
DTestMethod.java62 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in TestMethod
64 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java43 Configuration classConfig = testClass.getAnnotation(Configuration.class); in PerformanceRunner()
57 Configuration methodConfig = method.getAnnotation(Configuration.class); in methodInvoker()
/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
DImmutabilityProcessor.kt127 val policyAnnotation = classType.getAnnotation(Immutable.Policy::class.java) in <lambda>()
211 if (classType.getAnnotation(Immutable::class.java) == null) { in <lambda>()
342 val policyAnnotation = symbol.getAnnotation(Immutable.Policy::class.java) in <lambda>()
398 (type.getAnnotation(Immutable.Ignore::class.java) != null) in <lambda>()
404 symbol.getAnnotation(Immutable.Ignore::class.java) != null -> true in <lambda>()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodRuleImpl.java214 final var runWith = testClass.getAnnotation(RunWith.class); in validateTestRunner()
242 if (m.getAnnotation(Test.class) == null) { in validateTestAnnotations()
248 if (m.getAnnotation(Before.class) == null) { in validateTestAnnotations()
258 if (m.getAnnotation(After.class) == null) { in validateTestAnnotations()
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DBluetoothPermissionChecker.java128 final RequiresPermission requiresPerm = ASTHelpers.getAnnotation(tree, in matchMethod()
130 final RequiresNoPermission requiresNoPerm = ASTHelpers.getAnnotation(tree, in matchMethod()
188 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressWarnings.class)) in isSuppressed()
189 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressLint.class)); in isSuppressed()
DRequiresPermissionChecker.java335 ASTHelpers.getAnnotation(arg.get(), RequiresPermission.class)); in parseIntentAction()
342 return ParsedRequiresPermission.from(ASTHelpers.getAnnotation( in parseIntentAction()
434 final EnforcePermission enforced = method.getAnnotation(EnforcePermission.class); in parseRequiresPermissionRecursively()
455 res.addAll(symbol.getAnnotation(RequiresPermission.class)); in parseRequiresPermissionRecursively()
483 return isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressWarnings.class)) in isSuppressed()
484 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressLint.class)); in isSuppressed()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java96 if (originalMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
139 if (delegateMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
174 if (delegateMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerGlobalLockRule.java51 if (description.getAnnotation(NoGlobalLock.class) == null) { in apply()
59 if (base.getAnnotation(NoGlobalLock.class) == null) { in apply()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DAnnotatedElementPerfTest.java89 mType.getAnnotation(Marker.class); in timeGetTypeAnnotation()
97 mField.getAnnotation(Marker.class); in timeGetFieldAnnotation()
105 mMethod.getAnnotation(Marker.class); in timeGetMethodAnnotation()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
68 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DPerfManualStatusReporter.java62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java181 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
183 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/frameworks/base/services/core/java/com/android/server/utils/
DWatchable.java76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
/frameworks/base/core/java/android/hardware/camera2/
DCameraMetadata.java280 if (field.getAnnotation(PublicKey.class) == null in shouldKeyBeAdded()
281 && field.getAnnotation(ExtensionKey.class) == null) { in shouldKeyBeAdded()
293 if (field.getAnnotation(SyntheticKey.class) != null) { in shouldKeyBeAdded()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilter.java561 if ((annotation = field.getAnnotation(GenerateFinalPort.class)) != null) { in addAndSetFinalPorts()
581 if ((annotation = field.getAnnotation(GenerateFieldPort.class)) != null) { in addAnnotatedPorts()
584 } else if ((annotation = field.getAnnotation(GenerateProgramPort.class)) != null) { in addAnnotatedPorts()
587 } else if ((annotation = field.getAnnotation(GenerateProgramPorts.class)) != null) { in addAnnotatedPorts()
/frameworks/base/core/java/android/os/health/
DHealthKeys.java110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/
DOptionalClassRunner.java49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner()
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
DEnforcePermissionDetector.kt134 val overridingAnnotation = overridingMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION) in isOneShortPermissionOfOther()
135 val overriddenAnnotation = overriddenMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION) in isOneShortPermissionOfOther()

12