Home
last modified time | relevance | path

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

12

/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/common/logging/
DAdServicesErrorLogUtilVerifierTest.java46 when(mMockDescription.getAnnotation(any())).thenReturn(null); in testGetExpectedLogCalls_withNoAnnotations_returnsEmptySet()
53 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotation_returnsNonEmptyList()
68 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotationNegativeTimes_throwsException()
84 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotationZeroTimes_throwsException()
102 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotationMissingErrorCode_throwsException()
122 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotationMissingPpapiName_throwsException()
141 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCall.class)) in testGetExpectedLogCalls_withSingleAnnotationAndDefaultParams_returnsNonEmptyList()
143 when(mMockDescription.getAnnotation(SetErrorLogUtilDefaultParams.class)) in testGetExpectedLogCalls_withSingleAnnotationAndDefaultParams_returnsNonEmptyList()
163 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCalls.class)) in testGetExpectedLogCalls_withMultipleValidAnnotations_returnsNonEmptyList()
189 when(mMockDescription.getAnnotation(ExpectErrorLogUtilCalls.class)) in testGetExpectedLogCalls_withMultipleAnnotationZeroTimes_throwsException()
[all …]
DAdServicesErrorLogUtilWithExceptionVerifierTest.java50 when(mMockDescription.getAnnotation(any())).thenReturn(null); in testGetExpectedLogCalls_withNoAnnotations_returnsEmptySet()
57 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotation_returnsNonEmptyList()
73 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationNegativeTimes_throwsException()
89 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationZeroTimes_throwsException()
108 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationMissingThrowable_throwsException()
129 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationMissingErrorCode_throwsException()
150 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationMissingPpapiName_throwsException()
171 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class)) in testGetExpectedLogCalls_withSingleAnnotationAndDefaultParams_returnsNonEmptyList()
173 when(mMockDescription.getAnnotation(SetErrorLogUtilDefaultParams.class)) in testGetExpectedLogCalls_withSingleAnnotationAndDefaultParams_returnsNonEmptyList()
197 when(mMockDescription.getAnnotation(ExpectErrorLogUtilWithExceptionCalls.class)) in testGetExpectedLogCalls_withMultipleValidAnnotations_returnsNonEmptyList()
[all …]
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DTestHelperTest.java18 import static com.android.adservices.shared.testing.TestHelper.getAnnotation;
70 NullPointerException.class, () -> getAnnotation(test, /* annotationClass= */ null)); in testGetAnnotation_null()
73 () -> getAnnotation(/* test= */ null, DaRealAnnotation.class)); in testGetAnnotation_null()
81 .that(getAnnotation(test, DaRealAnnotation.class)) in testGetAnnotation_notSetAnywhere()
92 DaRealAnnotation annotation = getAnnotation(test, DaRealAnnotation.class); in testGetAnnotation_fromMethod()
105 DaRealAnnotation annotation = getAnnotation(test, DaRealAnnotation.class); in testGetAnnotation_fromClass()
118 DaRealAnnotation annotation = getAnnotation(test, DaRealAnnotation.class); in testGetAnnotation_fromParentClass()
132 DaRealAnnotation annotation = getAnnotation(test, DaRealAnnotation.class); in testGetAnnotation_fromGrandParentClass()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DTestHelper.java32 public static <T extends Annotation> T getAnnotation( in getAnnotation() method in TestHelper
36 .getAnnotation( in getAnnotation()
49 annotation = testClass.getAnnotation(annotationClass); in getAnnotation()
/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/
DAbstractAdServicesDeviceSupportedRule.java171 description.getAnnotation(RequiresLowRamDevice.class); in apply()
174 description.getAnnotation(RequiresGoDevice.class); in apply()
238 description.getAnnotation(RequiresScreenSizeDevice.class);
261 description.getAnnotation(RequiresAndroidServiceAvailable.class);
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/logging/
DAdServicesErrorLogUtilWithExceptionVerifier.java66 TestHelper.getAnnotation(description, SetErrorLogUtilDefaultParams.class); in getExpectedLogCalls()
102 description.getAnnotation(ExpectErrorLogUtilWithExceptionCalls.class); in getAnnotations()
109 description.getAnnotation(ExpectErrorLogUtilWithExceptionCall.class); in getAnnotations()
DAdServicesErrorLogUtilVerifier.java65 TestHelper.getAnnotation(description, SetErrorLogUtilDefaultParams.class); in getExpectedLogCalls()
100 ExpectErrorLogUtilCalls multiple = description.getAnnotation(ExpectErrorLogUtilCalls.class); in getAnnotations()
106 ExpectErrorLogUtilCall single = description.getAnnotation(ExpectErrorLogUtilCall.class); in getAnnotations()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DAnnotationHelper.java158 if (field.getAnnotation((Class<Annotation>) annotationClasses[i]) != null) { in containsAddedInAnnotation()
170 if (method.getAnnotation((Class<Annotation>) annotationClasses[i]) != null) { in containsAddedInAnnotation()
180 AddedInOrBefore annotation = field.getAnnotation(AddedInOrBefore.class); in validatedAddInOrBeforeAnnotation()
208 AddedInOrBefore annotation = method.getAnnotation(AddedInOrBefore.class); in validatedAddInOrBeforeAnnotation()
/packages/services/Car/libs/car-test-lib/src/android/car/test/
DApiCheckerRule.java250 return getAnnotation(ApiRequirements.class, member); in getApiRequirements()
255 return getAnnotation(AddedInOrBefore.class, member); in getAddedInOrBefore()
258 private static <T extends Annotation> T getAnnotation(Class<T> annotationClass, Member member) { in getAnnotation() method in ApiCheckerRule
260 return ((Field) member).getAnnotation(annotationClass); in getAnnotation()
263 return ((Method) member).getAnnotation(annotationClass); in getAnnotation()
627 supportedVersionMethod.getAnnotation(SupportedVersionTest.class);
670 unsupportedVersionMethod.getAnnotation(UnsupportedVersionTest.class);
DPermissionsCheckerRule.java82 description.getAnnotation(EnsureHasPermission.class)); in apply()
87 testClass.getAnnotation(EnsureHasPermission.class)); in apply()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/experimental/
DAbstractGlobalKillSwitchFlipper.java65 method.getAnnotation(RequiresGlobalKillSwitchEnabled.class); in getRequiredFlagStates()
70 method.getAnnotation(RequiresGlobalKillSwitchDisabled.class); in getRequiredFlagStates()
DAbstractFlagsRouletteRunner.java115 FlagsProviderClass flagsProviderClass = testClass.getAnnotation(FlagsProviderClass.class); in getFlagsRoulette()
121 FlagsRoulette annotation = testClass.getAnnotation(FlagsRoulette.class); in getFlagsRoulette()
163 RequiresFlag singleAnnotation = method.getAnnotation(RequiresFlag.class); in getRequiredFlagStates()
167 RequiresFlags groupAnnotation = method.getAnnotation(RequiresFlags.class); in getRequiredFlagStates()
/packages/modules/AppSearch/safeparcel-processor/src/android/app/appsearch/safeparcel/
DSafeParcelProcessor.java153 this.mAnnotation = parcelableClass.getAnnotation(SafeParcelable.Class.class); in ParcelableClass()
154 RequiresApi requiresApiAnnotation = parcelableClass.getAnnotation(RequiresApi.class); in ParcelableClass()
279 && annotatedElement.getAnnotation(SafeParcelable.Class.class) != null) { in process()
391 SafeParcelable.Field fieldInfo = field.getAnnotation(SafeParcelable.Field.class); in processParcelableClass()
393 field.getAnnotation(SafeParcelable.VersionField.class); in processParcelableClass()
395 field.getAnnotation(SafeParcelable.Indicator.class); in processParcelableClass()
555 constructor.getAnnotation(SafeParcelable.Constructor.class); in findAnnotatedConstructor()
573 parcelableClass.getAnnotation(SafeParcelable.Reserved.class); in getReservedIds()
609 SafeParcelable.Param paramInfo = parameter.getAnnotation(SafeParcelable.Param.class); in processParcelableConstructor()
614 parameter.getAnnotation(SafeParcelable.Indicator.class); in processParcelableConstructor()
[all …]
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DExtendedMockitoInlineCleanerRule.java18 import static com.android.adservices.shared.testing.TestHelper.getAnnotation;
75 ClearInlineMocksMode annotation = getAnnotation(description, ClearInlineMocksMode.class);
DAdServicesExtendedMockitoRule.java20 import static com.android.adservices.shared.testing.TestHelper.getAnnotation;
121 ClearInlineMocksMode annotation = getAnnotation(description, ClearInlineMocksMode.class);
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DThreadFeatureCheckerRule.java109 boolean hasAnnotation = description.getAnnotation(annotationClass) != null;
114 hasAnnotation |= clazz.getAnnotation(annotationClass) != null;
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDevSdkIgnoreRule.kt131 val ignoreAfter = description.getAnnotation(IgnoreAfter::class.java) in evaluate()
132 val ignoreUpTo = description.getAnnotation(IgnoreUpTo::class.java) in evaluate()
DDevSdkIgnoreRunner.kt75 val ignoreAfter = it.getAnnotation(IgnoreAfter::class.java) in getDescription()
76 val ignoreUpTo = it.getAnnotation(IgnoreUpTo::class.java) in getDescription()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaskbarModeSwitchRule.java74 && description.getAnnotation(TaskbarModeSwitch.class) != null) { in apply()
75 Mode mode = description.getAnnotation(TaskbarModeSwitch.class).mode(); in apply()
DNavigationModeSwitchRule.java85 description.getAnnotation(NavigationModeSwitch.class) != null) { in apply()
86 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply()
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DProfileSuite.java84 SuiteClasses annotation = suite.getAnnotation(SuiteClasses.class); in constructClassRunners()
195 SuiteClasses annotation = suite.getAnnotation(SuiteClasses.class); in validateSuiteAndScenarios()
/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
DRootComponentGeneratingStep.java121 DialerRootComponent dialerRootComponent = rootElement.getAnnotation(DialerRootComponent.class); in generateRootComponent()
163 annotatedElement.getAnnotation(InstallIn.class).variants()) { in generateComponentModuleMap()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DAbstractLoggingUsageRule.java50 TestHelper.getAnnotation(description, SkipLoggingUsageRule.class); in evaluate()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/junit/
DMethodSorter.java72 Comparator<Method> comparator = getSorter(clazz.getAnnotation(FixMethodOrder.class)); in getSortedMethods()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DRecord.java39 Identifier annotation = getClass().getAnnotation(Identifier.class); in Record()

12