/aosp12/frameworks/base/tests/testables/src/android/testing/ |
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()
|
/aosp12/art/test/005-annotations/src/android/test/anno/ |
H A D | TestAnnotations.java | 84 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 D | DevSdkIgnoreRunner.kt | 46 val ignoreAfter = it.getAnnotation(IgnoreAfter::class.java) 47 val ignoreUpTo = it.getAnnotation(IgnoreUpTo::class.java)
|
H A D | DevSdkIgnoreRule.kt | 80 val ignoreAfter = description.getAnnotation(IgnoreAfter::class.java) 81 val ignoreUpTo = description.getAnnotation(IgnoreUpTo::class.java)
|
H A D | TapPacketReaderRule.kt | 123 description.getAnnotation(TapPacketReaderTest::class.java) != null
|
/aosp12/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
H A D | BluetoothPermissionChecker.java | 126 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 D | RequiresPermissionChecker.java | 322 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 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()
|
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
H A D | PerformanceRunner.java | 43 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 D | TestDelegates.java | 95 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 D | WindowManagerGlobalLockRule.java | 51 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 D | BandwidthTestCase.java | 66 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 D | InstrumentationTestCase.java | 181 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 D | PerfManualStatusReporter.java | 62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
|
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Filter.java | 563 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 D | NavigationModeSwitchRule.java | 86 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 D | RootComponentGeneratingStep.java | 121 DialerRootComponent dialerRootComponent = rootElement.getAnnotation(DialerRootComponent.class); in generateRootComponent() 163 annotatedElement.getAnnotation(InstallIn.class).variants()) { in generateComponentModuleMap()
|
H A D | MetadataGeneratingStep.java | 65 if (element.getAnnotation(InstallIn.class).variants().length == 0) { in process()
|
/aosp12/art/test/979-const-method-handle/util-src/transformer/ |
H A D | ConstantTransformer.java | 199 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 D | Watchable.java | 76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
H A D | ScreenRecordRule.java | 48 if (description.getAnnotation(ScreenRecord.class) == null) { in apply()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraMetadata.java | 275 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 D | PortraitLandscapeRunner.java | 24 description.getAnnotation(AbstractLauncherUiTest.PortraitLandscape.class) == null) { in apply()
|
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
H A D | RequiredPropertiesRule.java | 49 RequiredProperties requiredProperties = description.getAnnotation(RequiredProperties.class); in getAllRequiredProperties()
|