/external/tensorflow/tensorflow/core/profiler/utils/ |
D | parse_annotation_test.cc | 48 Annotation annotation = ParseAnnotation(""); in TEST() local 49 EXPECT_TRUE(annotation.name.empty()); in TEST() 50 EXPECT_TRUE(annotation.metadata.empty()); in TEST() 54 Annotation annotation = ParseAnnotation("name"); in TEST() local 55 EXPECT_EQ(annotation.name, "name"); in TEST() 56 EXPECT_TRUE(annotation.metadata.empty()); in TEST() 60 Annotation annotation = ParseAnnotation("name "); in TEST() local 61 EXPECT_EQ(annotation.name, "name"); in TEST() 62 EXPECT_TRUE(annotation.metadata.empty()); in TEST() 66 Annotation annotation = ParseAnnotation("name#"); in TEST() local [all …]
|
/external/libtextclassifier/native/actions/ |
D | ranker_test.cc | 93 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-project/llvm/test/Transforms/LoopUnroll/ |
D | ignore-annotation-intrinsic-cost.ll | 4 ; 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/llvm/test/Transforms/LoopUnroll/ |
D | ignore-annotation-intrinsic-cost.ll | 4 ; 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/ |
D | AnnotationTypeFilter.java | 21 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 …]
|
D | AllElementValueVisitor.java | 21 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 …]
|
/external/junit/src/main/java/org/junit/internal/runners/rules/ |
D | RuleMemberValidator.java | 10 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/ |
D | ProvidesMethodScanner.java | 30 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/ |
D | Key.java | 26 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/junit-params/src/main/java/junitparams/converters/ |
D | ParamAnnotation.java | 3 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/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/ |
D | RobolectricProcessor.java | 1 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/smali/smalidea/testData/ |
D | InvalidAnnotation.smalidea | 1 .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
|
D | FieldAnnotations.smalidea | 4 .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/proguard/src/proguard/classfile/editor/ |
D | AnnotationAdder.java | 24 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/dagger2/java/dagger/internal/codegen/base/ |
D | MoreAnnotationValues.java | 80 public static int getIntValue(AnnotationMirror annotation, String valueName) { in getIntValue() argument 81 return (int) getAnnotationValue(annotation, valueName).getValue(); in getIntValue() 86 AnnotationMirror annotation, String valueName) { in getOptionalIntValue() argument 87 return isValuePresent(annotation, valueName) in getOptionalIntValue() 88 ? Optional.of(getIntValue(annotation, valueName)) in getOptionalIntValue() 93 public static String getStringValue(AnnotationMirror annotation, String valueName) { in getStringValue() argument 94 return (String) getAnnotationValue(annotation, valueName).getValue(); in getStringValue() 99 AnnotationMirror annotation, String valueName) { in getOptionalStringValue() argument 100 return isValuePresent(annotation, valueName) in getOptionalStringValue() 101 ? Optional.of(getStringValue(annotation, valueName)) in getOptionalStringValue() [all …]
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLSocketImpl.java | 64 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 70 @android.compat.annotation 71 .UnsupportedAppUsage(maxTargetSdk = dalvik.annotation.compat.VersionCodes.Q, 80 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 91 @android.compat.annotation 99 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 105 @android.compat.annotation 117 @android.compat.annotation 118 .UnsupportedAppUsage(maxTargetSdk = dalvik.annotation.compat.VersionCodes.Q, 126 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | AnnotationTest.java | 39 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/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/ |
D | Internal.java | 43 @android.compat.annotation.UnsupportedAppUsage 52 @android.compat.annotation.UnsupportedAppUsage 55 @android.compat.annotation.UnsupportedAppUsage 58 @android.compat.annotation.UnsupportedAppUsage 61 @android.compat.annotation.UnsupportedAppUsage 64 @android.compat.annotation.UnsupportedAppUsage 67 @android.compat.annotation.UnsupportedAppUsage 71 @android.compat.annotation.UnsupportedAppUsage 74 @android.compat.annotation.UnsupportedAppUsage 77 @android.compat.annotation.UnsupportedAppUsage [all …]
|
/external/jsr305/ri/src/main/java/javax/annotation/ |
D | MatchesPattern.java | 1 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/ |
D | MockAnnotationProcessor.java | 18 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()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | AnnotationPool.java | 39 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/dagger2/java/dagger/hilt/processor/internal/ |
D | BaseProcessor.java | 30 import javax.annotation.processing.AbstractProcessor; 31 import javax.annotation.processing.Messager; 32 import javax.annotation.processing.ProcessingEnvironment; 33 import javax.annotation.processing.RoundEnvironment; 62 private static ProcessingState of(TypeElement annotation, Element element) { in of() argument 70 checkState(Processors.hasAnnotation(element, ClassName.get(annotation))); in of() 72 ClassName.get(annotation), in of() 83 TypeElement annotation(Elements elements) { in annotation() method in BaseProcessor.ProcessingState 110 protected void processEach(TypeElement annotation, Element element) throws Exception {}; in processEach() argument 163 elementMultiMap.put(processingState.annotation(elements), processingState.element(elements)); in process() [all …]
|
/external/jsr305/sampleUses/src/main/java/ |
D | CreditCardNumber.java | 1 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
|
/external/llvm-project/llvm/test/Transforms/Util/ |
D | annotation-remarks.ll | 1 ; RUN: opt -annotation-remarks -pass-remarks-missed='annotation-remarks' -disable-output -pass-rema… 3 ; RUN: opt -passes='annotation-remarks' -pass-remarks-missed='annotation-remarks' -disable-output -… 7 ; CHECK-NEXT: Pass: annotation-remarks 17 ; CHECK-NEXT: Pass: annotation-remarks 27 ; CHECK-NEXT: Pass: annotation-remarks 39 %a.addr = alloca float*, align 8, !annotation !0 40 store float* null, float** %a.addr, align 8, !annotation !1 41 store float* %a, float** %a.addr, align 8, !annotation !0 42 ret void, !annotation !0 47 %a.addr = alloca float*, align 8, !annotation !1 [all …]
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ValidationReport.java | 31 import javax.annotation.processing.Messager; 107 if (item.annotation().isPresent()) { in printMessagesTo() 113 item.annotation().get(), in printMessagesTo() 117 item.kind(), item.message(), item.element(), item.annotation().get()); in printMessagesTo() 149 public abstract Optional<AnnotationMirror> annotation(); in annotation() method in ValidationReport.Item 187 public Builder<T> addError(String message, Element element, AnnotationMirror annotation) { in addError() argument 188 return addItem(message, ERROR, element, annotation); in addError() 194 AnnotationMirror annotation, in addError() argument 196 return addItem(message, ERROR, element, annotation, annotationValue); in addError() 207 Builder<T> addWarning(String message, Element element, AnnotationMirror annotation) { in addWarning() argument [all …]
|