/frameworks/base/tests/testables/src/android/testing/ |
D | TestWithLooperRule.java | 45 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()
|
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()
|
/frameworks/base/ravenwood/junit-src/android/platform/test/ravenwood/ |
D | RavenwoodRule.java | 278 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/ |
D | RestrictedForTests.java | 33 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/ |
D | SceneContainerRule.kt | 86 this?.testClass?.getAnnotation(T::class.java) != null || in <lambda>() 87 this?.getAnnotation(T::class.java) != null in <lambda>()
|
D | SceneContainerFlagParameterization.kt | 28 EnableSceneContainer::class.java.getAnnotation(EnableFlags::class.java)!!.value.toList()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestPredicates.java | 57 return testMethod.getAnnotation(annotationClass) != null || in apply() 58 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
|
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()
|
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | PerformanceRunner.java | 43 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/ |
D | ImmutabilityProcessor.kt | 127 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/ |
D | RavenwoodRuleImpl.java | 214 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/ |
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()
|
D | RequiresPermissionChecker.java | 335 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/ |
D | TestDelegates.java | 96 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/ |
D | WindowManagerGlobalLockRule.java | 51 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/ |
D | AnnotatedElementPerfTest.java | 89 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/ |
D | BandwidthTestCase.java | 66 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/ |
D | PerfManualStatusReporter.java | 62 mState.configure(description.getAnnotation(ManualBenchmarkState.ManualBenchmarkTest.class)); in apply()
|
/frameworks/base/test-base/src/android/test/ |
D | InstrumentationTestCase.java | 181 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/ |
D | Watchable.java | 76 final Watched annotation = f.getAnnotation(Watched.class); in verifyWatchedAttributes()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraMetadata.java | 280 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/ |
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()
|
/frameworks/base/core/java/android/os/health/ |
D | HealthKeys.java | 110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/ |
D | OptionalClassRunner.java | 49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner()
|
/frameworks/base/tools/lint/global/checks/src/main/java/com/google/android/lint/aidl/ |
D | EnforcePermissionDetector.kt | 134 val overridingAnnotation = overridingMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION) in isOneShortPermissionOfOther() 135 val overriddenAnnotation = overriddenMethod.getAnnotation(ANNOTATION_ENFORCE_PERMISSION) in isOneShortPermissionOfOther()
|