Home
last modified time | relevance | path

Searched refs:Annotation (Results 1 – 25 of 91) sorted by relevance

1234

/packages/apps/TV/libs/m2/
Dchecker-qual-2.8.1.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/checkerframework/ org/ ...
Djsr305-3.0.2.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
Derror_prone_annotations-2.3.2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Ddagger-2.23.jarMETA-INF/ META-INF/MANIFEST.MF dagger/ dagger/Binds.class Binds ...
Dj2objc-annotations-1.3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/annotation/
DAnnotation.kt23 data class Annotation(val name: String, val params: Map<String, AnnotationParam> = emptyMap()) { dataClass
44 fun createArcId(id: String) = Annotation("arcId", mapOf("id" to AnnotationParam.Str(id))) in createArcId()
46 fun createTtl(value: String) = Annotation( in createArcId()
51 fun createCapability(name: String) = Annotation(name) in createArcId()
58 fun createEgress(egressType: String? = null): Annotation { in createArcId()
63 return Annotation("egress", params) in createArcId()
67 fun createPolicy(policyName: String): Annotation { in createPolicy()
68 return Annotation("policy", mapOf("name" to AnnotationParam.Str(policyName))) in createPolicy()
72 val isolated = Annotation("isolated")
75 val ingress = Annotation("ingress")
DAnnotationBuilder.kt31 fun annotation(name: String, block: AnnotationBuilder.() -> Unit = {}): Annotation = in annotation()
73 fun build(): Annotation = Annotation(name, params.toMap())
/packages/apps/TV/libs/
Djavax.annotation-api-1.2.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/annotation/ javax/ ...
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/
DAnnotations.kt21 import com.android.libraries.pcc.chronicle.api.policy.annotation.Annotation
24 internal val ANNOTATION_IN_MEMORY = Annotation.createCapability("inMemory")
25 internal val ANNOTATION_PERSISTENT = Annotation.createCapability("persistent")
26 internal val ANNOTATION_REMOTE_PERSISTENT = Annotation.createCapability("remotePersistent")
27 internal val ANNOTATION_ENCRYPTED = Annotation.createCapability("encrypted")
29 internal fun Duration.toAnnotation() = Annotation.createTtl("${this.toMinutes()} minutes") in toAnnotation()
31 internal fun ManagementStrategy.toAnnotations(): List<Annotation> { in toAnnotation()
35 val result = mutableListOf<Annotation>() in toAnnotation()
/packages/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/
DAnnotationValidations.java24 import java.lang.annotation.Annotation;
155 public static void validate(Class<? extends Annotation> annotation, in validate()
156 Annotation ignored, Object value, Object... params) { in validate()
161 public static void validate(Class<? extends Annotation> annotation, in validate()
162 Annotation ignored, Object value) { in validate()
167 public static void validate(Class<? extends Annotation> annotation, in validate()
168 Annotation ignored, int value, Object... params) { in validate()
172 public static void validate(Class<? extends Annotation> annotation, in validate()
173 Annotation ignored, int value) { in validate()
184 public static void validate(Class<? extends Annotation> annotation, in validate()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DAnnotationValidations.java27 import java.lang.annotation.Annotation;
180 public static void validate(Class<? extends Annotation> annotation, in validate()
181 Annotation ignored, Object value, Object... params) { in validate()
186 public static void validate(Class<? extends Annotation> annotation, in validate()
187 Annotation ignored, Object value) { in validate()
192 public static void validate(Class<? extends Annotation> annotation, in validate()
193 Annotation ignored, int value, Object... params) { in validate()
197 public static void validate(Class<? extends Annotation> annotation, in validate()
198 Annotation ignored, int value) { in validate()
209 public static void validate(Class<? extends Annotation> annotation, in validate()
[all …]
/packages/apps/Settings/src/com/android/settings/utils/
DAnnotationSpan.java22 import android.text.Annotation;
61 Annotation[] spans = msg.getSpans(0, msg.length(), Annotation.class); in linkify()
63 for (Annotation annotation : spans) { in linkify()
86 Annotation[] spans = msg.getSpans(0, msg.length(), Annotation.class); in textWithoutLink()
92 for (Annotation span : spans) { in textWithoutLink()
/packages/providers/MediaProvider/src/com/android/providers/media/
DProjectionHelper.java27 import java.lang.annotation.Annotation;
38 private final Class<? extends Annotation> mColumnAnnotation;
40 private final Class<? extends Annotation> mExportedSinceAnnotation;
42 public ProjectionHelper(@Nullable Class<? extends Annotation> columnAnnotation, in ProjectionHelper()
43 @Nullable Class<? extends Annotation> exportedSinceAnnotation) { in ProjectionHelper()
97 final Annotation annotation = field.getAnnotation(mExportedSinceAnnotation); in shouldBeIgnoredByOsVersion()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/experimental/
DAbstractSupportedFeatureRule.java28 import java.lang.annotation.Annotation;
215 String where, Collection<Annotation> annotations) {
219 for (Annotation annotation : annotations) {
252 protected boolean isFeatureSupportedAnnotation(Annotation annotation) {
261 protected boolean isFeatureNotSupportedAnnotation(Annotation annotation) {
270 protected boolean isFeatureSupportedOrNotAnnotation(Annotation annotation) {
DGlobalKillSwitchRule.java23 import java.lang.annotation.Annotation;
114 protected boolean isFeatureSupportedAnnotation(Annotation annotation) { in isFeatureSupportedAnnotation()
119 protected boolean isFeatureNotSupportedAnnotation(Annotation annotation) { in isFeatureNotSupportedAnnotation()
124 protected boolean isFeatureSupportedOrNotAnnotation(Annotation annotation) { in isFeatureSupportedOrNotAnnotation()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/
DDeletionTriggerPolicyAnnotations.kt22 import com.android.libraries.pcc.chronicle.api.policy.annotation.Annotation
38 internal fun Trigger.toAnnotation(field: String): Annotation { in toAnnotation()
39 return Annotation( in toAnnotation()
48 private fun Collection<Annotation>.deletionTriggers(): Set<DeletionTrigger> { in deletionTriggers()
/packages/modules/OnDevicePersonalization/tests/chronicletests/src/com/android/libraries/pcc/chronicle/test/
DChronicleApiPolicyCapabilitiesTest.kt34 import com.android.libraries.pcc.chronicle.api.policy.annotation.Annotation
44 assertThat(Capabilities.fromAnnotations(emptyList<Annotation>()).isEmpty).isTrue() in testCapabilitiesEmpty()
58 val persistent = Capabilities.fromAnnotation(Annotation.createCapability("persistent")) in testCapabilitiesFromAnnotationsPersistent()
68 val ttl30d = Capabilities.fromAnnotation(Annotation.createTtl("30d")) in testCapabilitiesFromAnnotationsTtl()
80 listOf(Annotation.createCapability("persistent"), Annotation.createTtl("30d")) in testCapabilitiesFromAnnotationsPersistentAndTtl()
93 … listOf(Annotation.createCapability("encrypted"), Annotation.createCapability("queryable")) in testCapabilitiesFromAnnotationsQueryableAndEncrypted()
104 … val tiedToRuntime = Capabilities.fromAnnotation(Annotation.createCapability("tiedToRuntime")) in testCapabilitiesFromAnnotationsTiedToRuntimeAndTtl()
/packages/apps/Dialer/java/com/android/dialer/rootcomponentgenerator/
DMetadataGeneratingStep.java30 import java.lang.annotation.Annotation;
53 public Set<? extends Class<? extends Annotation>> annotations() { in annotations()
59 SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) { in process() argument
79 Class<? extends Annotation> annotation, TypeElement annotatedElement) { in generateMetadataFor()
DRootComponentGeneratingStep.java41 import java.lang.annotation.Annotation;
88 public Set<? extends Class<? extends Annotation>> annotations() { in annotations()
94 SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) { in process() argument
109 SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) { in shouldDeferRootComponent() argument
171 Class<? extends Annotation> annotation, MetadataProcessor metadataProcessor) { in extractInfoFromMetadata()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiTestUtil.java21 import java.lang.annotation.Annotation;
49 Annotation[] annotations = method.getDeclaredAnnotations(); in getTestMethod()
50 for (Annotation annotation : annotations) { in getTestMethod()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DJUnitHelper.java25 import java.lang.annotation.Annotation;
38 public static Description newTestMethod(Annotation... annotations) { in newTestMethod()
42 public static Description newTestMethod(String methodName, Annotation... annotations) { in newTestMethod()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/
DPolicy.kt19 import com.android.libraries.pcc.chronicle.api.policy.annotation.Annotation in <lambda>()
35 val annotations: List<Annotation> = emptyList(), in <lambda>()
58 val annotations: List<Annotation> = emptyList()
88 val annotations: List<Annotation> = emptyList()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/
DCapability.kt19 import com.android.libraries.pcc.chronicle.api.policy.annotation.Annotation
95 fun fromAnnotations(annotations: List<Annotation>): Persistence? { in toRange()
189 fun fromAnnotations(annotations: List<Annotation>): Ttl? { in fromAnnotations()
221 fun fromAnnotations(annotations: List<Annotation>): Encryption? { in fromAnnotations()
253 fun fromAnnotations(annotations: List<Annotation>): Queryable? { in fromAnnotations()
285 fun fromAnnotations(annotations: List<Annotation>): Shareable? { in fromAnnotations()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractFlagsSetterRule.java59 import java.lang.annotation.Annotation;
442 List<Annotation> annotations = getAllFlagAnnotations(description); in setAnnotatedFlags()
449 Annotation annotation = annotations.get(i); in setAnnotatedFlags()
635 private boolean isFlagAnnotationPresent(Annotation annotation) { in isFlagAnnotationPresent()
680 protected boolean isAnnotationSupported(Annotation annotation) { in isAnnotationSupported()
688 protected void processAnnotation(Description description, Annotation annotation) { in processAnnotation()
698 private List<Annotation> getAllFlagAnnotations(Description description) { in getAllFlagAnnotations()
701 List<Annotation> result = new ArrayList<>(); in getAllFlagAnnotations()
702 for (Annotation testMethodAnnotation : description.getAnnotations()) { in getAllFlagAnnotations()
713 Annotation[] classAnnotations = clazz.getAnnotations(); in getAllFlagAnnotations()
[all …]
DAbstractSdkLevelSupportedRule.java36 import java.lang.annotation.Annotation;
147 RequiredRange getRequiredRange(Collection<Annotation> annotations) {
157 Annotation[] annotations = testClass.getAnnotations();
171 Collection<Annotation> annotations,
181 for (Annotation annotation : annotations) {

1234