Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/tests/testables/src/android/testing/
H A DTestWithLooperRule.java46 RunWith runWithAnnotation = target.getClass().getAnnotation(RunWith.class); in apply()
55 RunWithLooper looperAnnotation = method.getAnnotation(RunWithLooper.class); in apply()
57 looperAnnotation = target.getClass().getAnnotation(RunWithLooper.class); in apply()
140 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
141 if (annotation == null) annotation = test.getClass().getAnnotation(RunWithLooper.class); in looperWrap()
150 RunWithLooper annotation = method.getAnnotation(RunWithLooper.class); in looperWrap()
151 if (annotation == null) annotation = test.getClass().getAnnotation(RunWithLooper.class); in looperWrap()
H A 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()
/aosp14/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestPredicates.java55 return testMethod.getAnnotation(annotationClass) != null || in apply()
56 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
H A 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()
/aosp14/frameworks/base/tools/processors/immutability/src/android/processor/immutability/
H A DImmutabilityProcessor.kt127 val policyAnnotation = classType.getAnnotation(Immutable.Policy::class.java)
211 if (classType.getAnnotation(Immutable::class.java) == null) {
342 val policyAnnotation = symbol.getAnnotation(Immutable.Policy::class.java)
398 (type.getAnnotation(Immutable.Ignore::class.java) != null)
404 symbol.getAnnotation(Immutable.Ignore::class.java) != null -> true
/aosp14/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
H A 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()
H A DRequiresPermissionChecker.java327 ASTHelpers.getAnnotation(arg.get(), RequiresPermission.class)); in parseIntentAction()
334 return ParsedRequiresPermission.from(ASTHelpers.getAnnotation( in parseIntentAction()
441 res.addAll(symbol.getAnnotation(RequiresPermission.class)); in parseRequiresPermissionRecursively()
469 return isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressWarnings.class)) in isSuppressed()
470 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressLint.class)); in isSuppressed()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
H A DAnnotatedElementPerfTest.java89 mType.getAnnotation(Marker.class); in timeGetTypeAnnotation()
97 mField.getAnnotation(Marker.class); in timeGetFieldAnnotation()
105 mMethod.getAnnotation(Marker.class); in timeGetMethodAnnotation()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowManagerGlobalLockRule.java51 if (description.getAnnotation(NoGlobalLock.class) == null) { in apply()
59 if (base.getAnnotation(NoGlobalLock.class) == null) { in apply()
H A DWindowTestsBase.java240 final UseTestDisplay useTestDisplay = getAnnotation(description, UseTestDisplay.class); in setUpBase()
245 final SetupWindows setupWindows = getAnnotation(description, SetupWindows.class); in setUpBase()
1038 static <T extends Annotation> T getAnnotation(Description desc, Class<T> type) { in getAnnotation() method in WindowTestsBase
1039 final T annotation = desc.getAnnotation(type); in getAnnotation()
1041 return desc.getTestClass().getAnnotation(type); in getAnnotation()
/aosp14/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
68 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DPerfManualStatusReporter.java62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
/aosp14/frameworks/base/test-base/src/android/test/
H A DInstrumentationTestCase.java181 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
183 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/aosp14/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/
H A DEnforcePermissionDetector.kt129 val overridingAnnotation = overridingMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION)
130 val overriddenAnnotation = overriddenMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION)
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A 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()
/aosp14/frameworks/base/services/core/java/com/android/server/utils/
H A DWatchable.java76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
/aosp14/frameworks/base/core/java/android/os/health/
H A DHealthKeys.java110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/
H A DOptionalClassRunner.java49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner()
/aosp14/frameworks/base/core/java/android/hardware/camera2/
H A DCameraMetadata.java276 if (field.getAnnotation(PublicKey.class) == null) { in shouldKeyBeAdded()
286 if (field.getAnnotation(SyntheticKey.class) != null) { in shouldKeyBeAdded()
/aosp14/frameworks/base/tools/processors/intdef_mappings/src/android/processor/
H A DIntDefProcessor.kt61 val intDef = annotatedElement.getAnnotation(IntDef::class.java)
/aosp14/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
H A DIndexableProcessor.java120 SearchIndexable searchIndexable = element.getAnnotation(SearchIndexable.class); in process()
/aosp14/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestRunner.java298 int numIterations = testMethod.getAnnotation(RepetitiveTest.class) in startTest()
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DRawBatteryStats.java1127 final Line lineAnnotation = cl.getAnnotation(Line.class);
1132 final Field fa = field.getAnnotation(Field.class);
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationVisitUrisTest.java377 .filter(c -> c.getAnnotation(Deprecated.class) == null) in constructEmpty()
517 && method.getAnnotation(Deprecated.class) == null in getAllSetters()
/aosp14/frameworks/base/core/java/android/view/
H A DViewDebug.java351 this.property = member.getAnnotation(property); in PropertyInfo()
1666 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class)
1675 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class).mapping();

12