Home
last modified time | relevance | path

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

123

/aosp12/frameworks/base/tests/testables/src/android/testing/
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()
/aosp12/art/test/005-annotations/src/android/test/anno/
H A DTestAnnotations.java84 aff = (AnnoFancyField) f.getAnnotation(AnnoFancyField.class); in printAnnotations()
147 property = meth.getAnnotation(ExportedProperty.class); in testArrayProblem()
172 Annotation anno = SimplyNoted.class.getAnnotation(AnnoSimpleTypeInvis.class); in testVisibilityCompatibility()
202 Annotation anno = SimplyNoted.class.getAnnotation(AnnoSimpleType.class); in main()
205 anno = SimplyNoted.class.getAnnotation(AnnoSimpleTypeInvis.class); in main()
208 anno = SubNoted.class.getAnnotation(AnnoSimpleType.class); in main()
231 ClassWithMissingAnnotation.class.getAnnotation(AnnoMissingClass.class); in main()
/aosp12/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
H A DDevSdkIgnoreRunner.kt46 val ignoreAfter = it.getAnnotation(IgnoreAfter::class.java)
47 val ignoreUpTo = it.getAnnotation(IgnoreUpTo::class.java)
H A DDevSdkIgnoreRule.kt80 val ignoreAfter = description.getAnnotation(IgnoreAfter::class.java)
81 val ignoreUpTo = description.getAnnotation(IgnoreUpTo::class.java)
H A DTapPacketReaderRule.kt123 description.getAnnotation(TapPacketReaderTest::class.java) != null
/aosp12/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
H A DBluetoothPermissionChecker.java126 final RequiresPermission requiresPerm = ASTHelpers.getAnnotation(tree, in matchMethod()
128 final RequiresNoPermission requiresNoPerm = ASTHelpers.getAnnotation(tree, in matchMethod()
186 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressWarnings.class)) in isSuppressed()
187 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressLint.class)); in isSuppressed()
H A DRequiresPermissionChecker.java322 ASTHelpers.getAnnotation(arg.get(), RequiresPermission.class)); in parseIntentAction()
329 return ParsedRequiresPermission.from(ASTHelpers.getAnnotation( in parseIntentAction()
436 res.addAll(symbol.getAnnotation(RequiresPermission.class)); in parseRequiresPermissionRecursively()
464 return isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressWarnings.class)) in isSuppressed()
465 || isSuppressed(ASTHelpers.getAnnotation(symbol, SuppressLint.class)); in isSuppressed()
/aosp12/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()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
H A DPerformanceRunner.java43 Configuration classConfig = testClass.getAnnotation(Configuration.class); in PerformanceRunner()
57 Configuration methodConfig = method.getAnnotation(Configuration.class); in methodInvoker()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
H A DTestDelegates.java95 if (originalMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
138 if (delegateMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
173 if (delegateMethod.getAnnotation(LayoutlibDelegate.class) == null) { in compare()
/aosp12/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()
/aosp12/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()
/aosp12/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()
/aosp12/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DPerfManualStatusReporter.java62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilter.java563 if ((annotation = field.getAnnotation(GenerateFinalPort.class)) != null) { in addAndSetFinalPorts()
583 if ((annotation = field.getAnnotation(GenerateFieldPort.class)) != null) { in addAnnotatedPorts()
586 } else if ((annotation = field.getAnnotation(GenerateProgramPort.class)) != null) { in addAnnotatedPorts()
589 } else if ((annotation = field.getAnnotation(GenerateProgramPorts.class)) != null) { in addAnnotatedPorts()
/aosp12/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
H A DNavigationModeSwitchRule.java86 description.getAnnotation(NavigationModeSwitch.class) != null) { in apply()
87 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply()
/aosp12/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
H A DRootComponentGeneratingStep.java121 DialerRootComponent dialerRootComponent = rootElement.getAnnotation(DialerRootComponent.class); in generateRootComponent()
163 annotatedElement.getAnnotation(InstallIn.class).variants()) { in generateComponentModuleMap()
H A DMetadataGeneratingStep.java65 if (element.getAnnotation(InstallIn.class).variants().length == 0) { in process()
/aosp12/art/test/979-const-method-handle/util-src/transformer/
H A DConstantTransformer.java199 ConstantMethodHandle constantMethodHandle = m.getAnnotation(ConstantMethodHandle.class);
206 ConstantMethodType constantMethodType = m.getAnnotation(ConstantMethodType.class);
/aosp12/frameworks/base/services/core/java/com/android/server/utils/
H A DWatchable.java76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
H A DScreenRecordRule.java48 if (description.getAnnotation(ScreenRecord.class) == null) { in apply()
/aosp12/frameworks/base/core/java/android/hardware/camera2/
H A DCameraMetadata.java275 if (field.getAnnotation(PublicKey.class) == null) { in shouldKeyBeAdded()
285 if (field.getAnnotation(SyntheticKey.class) != null) { in shouldKeyBeAdded()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
H A DPortraitLandscapeRunner.java24 description.getAnnotation(AbstractLauncherUiTest.PortraitLandscape.class) == null) { in apply()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DRequiredPropertiesRule.java49 RequiredProperties requiredProperties = description.getAnnotation(RequiredProperties.class); in getAllRequiredProperties()

123