Home
last modified time | relevance | path

Searched refs:annotation (Results 1 – 25 of 3403) sorted by relevance

12345678910>>...137

/external/libtextclassifier/actions/
Dranker_test.cc93 ActionSuggestionAnnotation annotation; in TEST() local
94 annotation.span = {/*message_index=*/0, /*span=*/{0, 21}, in TEST()
96 annotation.entity = ClassificationResult("address", 0.5); in TEST()
101 /*annotations=*/{annotation}}); in TEST()
104 ActionSuggestionAnnotation annotation; in TEST() local
105 annotation.span = {/*message_index=*/0, /*span=*/{0, 21}, in TEST()
107 annotation.entity = ClassificationResult("address", 1.0); in TEST()
112 /*annotations=*/{annotation}}); in TEST()
115 ActionSuggestionAnnotation annotation; in TEST() local
116 annotation.span = {/*message_index=*/0, /*span=*/{37, 50}, in TEST()
[all …]
/external/llvm/test/Transforms/LoopUnroll/
Dignore-annotation-intrinsic-cost.ll4 ; Test that llvm.annotation intrinsic do not count against the loop body size
27 %annot.0 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
28 %annot.1 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
29 %annot.2 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
30 %annot.3 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
31 %annot.4 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
32 %annot.5 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
33 %annot.6 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
34 %annot.7 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
35 %annot.8 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopUnroll/
Dignore-annotation-intrinsic-cost.ll4 ; Test that llvm.annotation intrinsic do not count against the loop body size
27 %annot.0 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
28 %annot.1 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
29 %annot.2 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
30 %annot.3 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
31 %annot.4 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
32 %annot.5 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
33 %annot.6 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
34 %annot.7 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
35 %annot.8 = tail call i32 @llvm.annotation.i32(i32 %i.01, i8* null, i8* null, i32 0)
[all …]
/external/proguard/src/proguard/classfile/attribute/annotation/visitor/
DAllElementValueVisitor.java21 package proguard.classfile.attribute.annotation.visitor;
25 import proguard.classfile.attribute.annotation.*;
136 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
138 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
142 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation) in visitAnnotation() argument
144 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
148 public void visitAnnotation(Clazz clazz, Method method, Annotation annotation) in visitAnnotation() argument
150 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
154 … public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation) in visitAnnotation() argument
156 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
[all …]
DAnnotationTypeFilter.java21 package proguard.classfile.attribute.annotation.visitor;
25 import proguard.classfile.attribute.annotation.Annotation;
59 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
61 if (accepted(annotation.getType(clazz))) in visitAnnotation()
63 annotationVisitor.visitAnnotation(clazz, annotation); in visitAnnotation()
68 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation) in visitAnnotation() argument
70 if (accepted(annotation.getType(clazz))) in visitAnnotation()
72 annotationVisitor.visitAnnotation(clazz, field, annotation); in visitAnnotation()
77 public void visitAnnotation(Clazz clazz, Method method, Annotation annotation) in visitAnnotation() argument
79 if (accepted(annotation.getType(clazz))) in visitAnnotation()
[all …]
/external/junit/src/main/java/org/junit/internal/runners/rules/
DRuleMemberValidator.java10 import java.lang.annotation.Annotation;
71 private final Class<? extends Annotation> annotation; field in RuleMemberValidator
76 this.annotation = builder.annotation; in RuleMemberValidator()
89 … List<? extends FrameworkMember<?>> members = methods ? target.getAnnotatedMethods(annotation) in validate()
90 : target.getAnnotatedFields(annotation); in validate()
99 strategy.validate(member, annotation, errors); in validateMember()
112 private final Class<? extends Annotation> annotation; field in RuleMemberValidator.Builder
116 private Builder(Class<? extends Annotation> annotation) { in Builder() argument
117 this.annotation = annotation; in Builder()
160 …void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throwable> e… in validate() argument
[all …]
/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java30 import java.lang.annotation.Annotation;
58 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument
61 if (annotation instanceof Provides) { in prepareMethod()
62 if (mapKey.annotation != null) { in prepareMethod()
68 if (annotation instanceof ProvidesIntoSet) { in prepareMethod()
69 if (mapKey.annotation != null) { in prepareMethod()
73 } else if (annotation instanceof ProvidesIntoMap) { in prepareMethod()
78 if (mapKey.annotation == null) { in prepareMethod()
83 TypeAndValue typeAndValue = typeAndValueOfMapKey(mapKey.annotation); in prepareMethod()
86 } else if (annotation instanceof ProvidesIntoOptional) { in prepareMethod()
[all …]
/external/guice/core/src/com/google/inject/
DKey.java26 import java.lang.annotation.Annotation;
91 protected Key(Annotation annotation) { in Key() argument
93 this.annotationStrategy = strategyFor(annotation); in Key()
159 Annotation annotation = annotationStrategy.getAnnotation(); in getAnnotationName() local
160 if (annotation != null) { in getAnnotationName()
161 return annotation.toString(); in getAnnotationName()
223 public static <T> Key<T> get(Class<T> type, Annotation annotation) { in get() argument
224 return new Key<T>(type, strategyFor(annotation)); in get()
238 public static Key<?> get(Type type, Annotation annotation) { in get() argument
239 return new Key<Object>(type, strategyFor(annotation)); in get()
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DRobolectricProcessor.java1 package org.robolectric.annotation.processing;
10 import javax.annotation.processing.AbstractProcessor;
11 import javax.annotation.processing.ProcessingEnvironment;
12 import javax.annotation.processing.RoundEnvironment;
13 import javax.annotation.processing.SupportedAnnotationTypes;
14 import javax.annotation.processing.SupportedOptions;
18 import org.robolectric.annotation.processing.RobolectricModel.Builder;
19 import org.robolectric.annotation.processing.generator.Generator;
20 import org.robolectric.annotation.processing.generator.JavadocJsonGenerator;
21 import org.robolectric.annotation.processing.generator.ServiceLoaderGenerator;
[all …]
/external/junit-params/src/main/java/junitparams/converters/
DParamAnnotation.java3 import java.lang.annotation.Annotation;
7 public static boolean matches(Annotation annotation) { in matches() argument
8 return getParam(annotation) != null; in matches()
11 …public static Object convert(Annotation annotation, Object param) throws ConversionFailedException… in convert() argument
12 return converter(annotation).convert(param); in convert()
15 private static Param getParam(Annotation annotation) { in getParam() argument
16 if (annotation.annotationType().isAssignableFrom(Param.class)) { in getParam()
17 return (Param) annotation; in getParam()
19 return annotation.annotationType().getAnnotation(Param.class); in getParam()
22 private static Converter converter(Annotation annotation) { in converter() argument
[all …]
/external/proguard/src/proguard/classfile/editor/
DAnnotationAdder.java24 import proguard.classfile.attribute.annotation.*;
25 import proguard.classfile.attribute.annotation.visitor.AnnotationVisitor;
100 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
103 new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), in visitAnnotation()
105 annotation.u2elementValuesCount > 0 ? in visitAnnotation()
106 new ElementValue[annotation.u2elementValuesCount] : in visitAnnotation()
110 newAnnotation.referencedClasses = annotation.referencedClasses; in visitAnnotation()
113 annotation.elementValuesAccept(clazz, in visitAnnotation()
132 … public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation) in visitAnnotation() argument
135 new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), in visitAnnotation()
[all …]
/external/smali/smalidea/testData/
DInvalidAnnotation.smalidea1 .annotation .blah Lblah;
2 .end annotation
4 .annotation runtime .blah
5 .end annotation
7 .annotation runtime Lblah;
9 .end annotation
11 .annotation runtime Lblah;
13 .end annotation
15 .annotation runtime Lblah;
19 .end annotation
DFieldAnnotations.smalidea4 .annotation runtime Lblah;
5 .end annotation
6 .annotation runtime Lblah;
7 .end annotation
12 .annotation runtime Lblah;
13 .end annotation
14 .annotation runtime Lblah;
15 .end annotation
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DInternal.java43 @dalvik.annotation.compat.UnsupportedAppUsage
52 @dalvik.annotation.compat.UnsupportedAppUsage
55 @dalvik.annotation.compat.UnsupportedAppUsage
58 @dalvik.annotation.compat.UnsupportedAppUsage
61 @dalvik.annotation.compat.UnsupportedAppUsage
64 @dalvik.annotation.compat.UnsupportedAppUsage
67 @dalvik.annotation.compat.UnsupportedAppUsage
71 @dalvik.annotation.compat.UnsupportedAppUsage
74 @dalvik.annotation.compat.UnsupportedAppUsage
77 @dalvik.annotation.compat.UnsupportedAppUsage
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DAnnotationTest.java39 Annotation annotation = Annotation.fromDescription("MyAnnotationText"); in fromDescription() local
40 assertThat(annotation.getDescription()).isEqualTo("MyAnnotationText"); in fromDescription()
41 assertThat(annotation.getAttributes().size()).isEqualTo(0); in fromDescription()
59 Annotation annotation = Annotation.fromDescriptionAndAttributes("MyAnnotationText", attributes); in fromDescriptionAndAttributes() local
60 assertThat(annotation.getDescription()).isEqualTo("MyAnnotationText"); in fromDescriptionAndAttributes()
61 assertThat(annotation.getAttributes()).isEqualTo(attributes); in fromDescriptionAndAttributes()
66 Annotation annotation = in fromDescriptionAndAttributes_EmptyAttributes() local
69 assertThat(annotation.getDescription()).isEqualTo("MyAnnotationText"); in fromDescriptionAndAttributes_EmptyAttributes()
70 assertThat(annotation.getAttributes().size()).isEqualTo(0); in fromDescriptionAndAttributes_EmptyAttributes()
93 Annotation annotation = Annotation.fromDescription("MyAnnotationText"); in annotation_ToString() local
[all …]
/external/jsr305/ri/src/main/java/javax/annotation/
DMatchesPattern.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
8 import javax.annotation.meta.TypeQualifier;
9 import javax.annotation.meta.TypeQualifierValidator;
10 import javax.annotation.meta.When;
22 public When forConstantValue(MatchesPattern annotation, Object value) { in forConstantValue() argument
23 Pattern p = Pattern.compile(annotation.value(), annotation.flags()); in forConstantValue()
/external/mockito/src/main/java/org/mockito/internal/configuration/
DMockAnnotationProcessor.java18 public Object process(Mock annotation, Field field) { in process() argument
19 return processAnnotationForMock(annotation, field.getType(), field.getName()); in process()
22 public static Object processAnnotationForMock(Mock annotation, Class<?> type, String name) { in processAnnotationForMock() argument
24 if (annotation.extraInterfaces().length > 0) { // never null in processAnnotationForMock()
25 mockSettings.extraInterfaces(annotation.extraInterfaces()); in processAnnotationForMock()
27 if ("".equals(annotation.name())) { in processAnnotationForMock()
30 mockSettings.name(annotation.name()); in processAnnotationForMock()
32 if(annotation.serializable()){ in processAnnotationForMock()
35 if(annotation.stubOnly()){ in processAnnotationForMock()
40 mockSettings.defaultAnswer(annotation.answer()); in processAnnotationForMock()
DIndependentAnnotationEngine.java7 import java.lang.annotation.Annotation;
37 private Object createMockFor(Annotation annotation, Field field) { in createMockFor() argument
38 return forAnnotation(annotation).process(annotation, field); in createMockFor()
41 private <A extends Annotation> FieldAnnotationProcessor<A> forAnnotation(A annotation) { in forAnnotation() argument
42 if (annotationProcessorMap.containsKey(annotation.annotationType())) { in forAnnotation()
43 … return (FieldAnnotationProcessor<A>) annotationProcessorMap.get(annotation.annotationType()); in forAnnotation()
46 public Object process(A annotation, Field field) { in forAnnotation()
61 for(Annotation annotation : field.getAnnotations()) {
62 Object mock = createMockFor(annotation, field);
70 + annotation, e);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DAnnotationPool.java39 import javax.annotation.Nonnull;
49 public void intern(@Nonnull Annotation annotation) { in intern() argument
50 Integer prev = internedItems.put(annotation, 0); in intern()
52 dexPool.typeSection.intern(annotation.getType()); in intern()
53 for (AnnotationElement element: annotation.getElements()) { in intern()
60 @Override public int getVisibility(@Nonnull Annotation annotation) { in getVisibility() argument
61 return annotation.getVisibility(); in getVisibility()
64 @Nonnull @Override public CharSequence getType(@Nonnull Annotation annotation) { in getType() argument
65 return annotation.getType(); in getType()
68 …erride public Collection<? extends AnnotationElement> getElements(@Nonnull Annotation annotation) { in getElements() argument
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSocketImpl.java64 @dalvik.annotation.compat.UnsupportedAppUsage
70 @dalvik.annotation.compat.UnsupportedAppUsage
77 @dalvik.annotation.compat.UnsupportedAppUsage
88 @dalvik.annotation.compat.UnsupportedAppUsage
95 @dalvik.annotation.compat.UnsupportedAppUsage
101 @dalvik.annotation.compat.UnsupportedAppUsage
111 @dalvik.annotation.compat.UnsupportedAppUsage
116 @dalvik.annotation.compat.UnsupportedAppUsage
120 @dalvik.annotation.compat.UnsupportedAppUsage
124 @dalvik.annotation.compat.UnsupportedAppUsage
[all …]
/external/jsr305/sampleUses/src/main/java/
DCreditCardNumber.java1 import java.lang.annotation.Documented;
2 import java.lang.annotation.ElementType;
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
6 import javax.annotation.MatchesPattern;
7 import javax.annotation.meta.TypeQualifier;
8 import javax.annotation.meta.TypeQualifierValidator;
9 import javax.annotation.meta.When;
18 public When forConstantValue(CreditCardNumber annotation, Object v) { in forConstantValue() argument
DFixedLengthString.java1 import java.lang.annotation.Documented;
2 import java.lang.annotation.Retention;
3 import java.lang.annotation.RetentionPolicy;
5 import javax.annotation.meta.TypeQualifier;
6 import javax.annotation.meta.TypeQualifierValidator;
7 import javax.annotation.meta.When;
17 public When forConstantValue(FixedLengthString annotation, Object v) { in forConstantValue() argument
21 if (s.length() == annotation.value()) in forConstantValue()
/external/smali/smali-integration-tests/src/test/smali/junit-tests/StaticFieldInitializerTest/
DStaticFieldInitializerTest.smali41 .annotation runtime Lorg/junit/Test;
42 .end annotation
58 .annotation runtime Lorg/junit/Test;
59 .end annotation
75 .annotation runtime Lorg/junit/Test;
76 .end annotation
92 .annotation runtime Lorg/junit/Test;
93 .end annotation
109 .annotation runtime Lorg/junit/Test;
110 .end annotation
[all …]
/external/proguard/src/proguard/shrink/
DAnnotationUsageMarker.java25 import proguard.classfile.attribute.annotation.*;
26 import proguard.classfile.attribute.annotation.visitor.*;
123 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
125 if (isReferencedClassUsed(annotation)) in visitAnnotation()
128 usageMarker.markAsUsed(annotation); in visitAnnotation()
130 markConstant(clazz, annotation.u2typeIndex); in visitAnnotation()
133 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
144 …public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue con… in visitConstantElementValue() argument
157 …public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementV… in visitEnumConstantElementValue() argument
178 …public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElem… in visitClassElementValue() argument
[all …]
/external/doclava/src/com/google/doclava/
DAndroidAuxSource.java36 for (AnnotationInstanceInfo annotation : clazz.annotations()) { in classAuxTags()
38 if (annotation.type().qualifiedNameMatches("android", "annotation.SystemService")) { in classAuxTags()
49 ClassInfo contextClass = annotation.type().findClass("android.content.Context"); in classAuxTags()
50 for (AnnotationValueInfo val : annotation.elementValues()) { in classAuxTags()
114 for (AnnotationInstanceInfo annotation : annotations) { in auxTags()
116 if (annotation.type().qualifiedNameMatches("android", "annotation.NonNull") in auxTags()
117 || annotation.type().qualifiedNameMatches("android", "annotation.Nullable")) { in auxTags()
133 docTags = annotation.type().comment().memberDocTags(); in auxTags()
136 docTags = annotation.type().comment().paramDocTags(); in auxTags()
139 docTags = annotation.type().comment().returnDocTags(); in auxTags()
[all …]

12345678910>>...137