/aosp14/frameworks/base/tests/testables/src/android/testing/ |
H A D | TestWithLooperRule.java | 46 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 D | AndroidTestingRunner.java | 75 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 D | TestPredicates.java | 55 return testMethod.getAnnotation(annotationClass) != null || in apply() 56 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
|
H A D | TestMethod.java | 62 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 D | ImmutabilityProcessor.kt | 127 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 D | BluetoothPermissionChecker.java | 128 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 D | RequiresPermissionChecker.java | 327 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 D | AnnotatedElementPerfTest.java | 89 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 D | WindowManagerGlobalLockRule.java | 51 if (description.getAnnotation(NoGlobalLock.class) == null) { in apply() 59 if (base.getAnnotation(NoGlobalLock.class) == null) { in apply()
|
H A D | WindowTestsBase.java | 240 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 D | BandwidthTestCase.java | 66 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 D | PerfManualStatusReporter.java | 62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
|
/aosp14/frameworks/base/test-base/src/android/test/ |
H A D | InstrumentationTestCase.java | 181 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 D | EnforcePermissionDetector.kt | 129 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 D | Filter.java | 561 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 D | Watchable.java | 76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
|
/aosp14/frameworks/base/core/java/android/os/health/ |
H A D | HealthKeys.java | 110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/ |
H A D | OptionalClassRunner.java | 49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraMetadata.java | 276 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 D | IntDefProcessor.kt | 61 val intDef = annotatedElement.getAnnotation(IntDef::class.java)
|
/aosp14/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/ |
H A D | IndexableProcessor.java | 120 SearchIndexable searchIndexable = element.getAnnotation(SearchIndexable.class); in process()
|
/aosp14/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
H A D | UiAutomatorTestRunner.java | 298 int numIterations = testMethod.getAnnotation(RepetitiveTest.class) in startTest()
|
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | RawBatteryStats.java | 1127 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 D | NotificationVisitUrisTest.java | 377 .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 D | ViewDebug.java | 351 this.property = member.getAnnotation(property); in PropertyInfo() 1666 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class) 1675 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class).mapping();
|