Home
last modified time | relevance | path

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

12

/frameworks/base/tests/testables/src/android/testing/
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()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DDevSdkIgnoreRunner.kt46 val ignoreAfter = it.getAnnotation(IgnoreAfter::class.java) in <lambda>()
47 val ignoreUpTo = it.getAnnotation(IgnoreUpTo::class.java) in <lambda>()
DDevSdkIgnoreRule.kt80 val ignoreAfter = description.getAnnotation(IgnoreAfter::class.java) in evaluate()
81 val ignoreUpTo = description.getAnnotation(IgnoreUpTo::class.java) in evaluate()
DConcurrentInterpreter.kt134 .any { method -> method.getAnnotation(org.junit.Test::class.java) != null } in <lambda>()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java55 return testMethod.getAnnotation(annotationClass) != null || in apply()
56 testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
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()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java43 Configuration classConfig = testClass.getAnnotation(Configuration.class); in PerformanceRunner()
57 Configuration methodConfig = method.getAnnotation(Configuration.class); in methodInvoker()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
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()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
68 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java181 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
183 runCount = method.getAnnotation(RepetitiveTest.class).numIterations(); in runTest()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
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()
/frameworks/base/core/java/android/hardware/camera2/
DCameraMetadata.java248 if (field.getAnnotation(PublicKey.class) == null) { in shouldKeyBeAdded()
258 if (field.getAnnotation(SyntheticKey.class) != null) { in shouldKeyBeAdded()
/frameworks/base/core/java/android/os/health/
DHealthKeys.java110 final Constant constant = field.getAnnotation(annotationClass); in Constants()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DOptionalClassRunner.java49 OptionalClass annotation = testClass.getAnnotation(OptionalClass.class); in OptionalClassRunner()
/frameworks/base/core/java/android/view/
DViewDebug.java1315 sAnnotations.put(field, field.getAnnotation(ExportedProperty.class));
1359 sAnnotations.put(method, method.getAnnotation(ExportedProperty.class));
1703 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class)
1712 return clazz.getDeclaredField(field).getAnnotation(ExportedProperty.class).mapping();
1878 CapturedViewProperty property = method.getAnnotation(CapturedViewProperty.class);
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java113 SearchIndexable searchIndexable = element.getAnnotation(SearchIndexable.class); in process()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestRunner.java298 int numIterations = testMethod.getAnnotation(RepetitiveTest.class) in startTest()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DRawBatteryStats.java1127 final Line lineAnnotation = cl.getAnnotation(Line.class);
1132 final Field fa = field.getAnnotation(Field.class);
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java787 int numIterations = testMethod.getAnnotation( in startTest()
/frameworks/base/core/java/android/os/
DDebug.java2290 if (!partial || field.getAnnotation(DebugProperty.class) != null) { in setFieldsOn()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsBackupTest.java801 && field.getAnnotation(Deprecated.class) == null; in looksLikeValidSetting()
/frameworks/base/test-runner/api/
Dcurrent.txt274 method @Deprecated public <T extends java.lang.annotation.Annotation> T getAnnotation(Class<T>);
/frameworks/base/core/java/android/widget/
DRemoteViews.java947 method.getAnnotation(RemotableViewMethod.class).asyncImpl(); in getMethod()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt29422 method public T getAnnotation(java.lang.Class<T>);
41086 method public A getAnnotation(java.lang.Class<A>);
41615 method public A getAnnotation(java.lang.Class<A>);
42331 method public T getAnnotation(java.lang.Class<T>);
42341 method public abstract T getAnnotation(java.lang.Class<T>);
42372 method public A getAnnotation(java.lang.Class<A>);
42390 method public A getAnnotation(java.lang.Class<A>);
42455 method public A getAnnotation(java.lang.Class<A>);
/frameworks/base/non-updatable-api/
Dcurrent.txt61093 …method @Nullable public <A extends java.lang.annotation.Annotation> A getAnnotation(@NonNull Class…
61690 method public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A>);
62675 …method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class…
62684 …method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class…
62867 …method @Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@NonNull Class…

12