/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextModifiers.kt | 33 annotations: MutableList<AnnotationItem>? = null in <lambda>() 34 ) : DefaultModifierList(codebase, flags, annotations) { in <lambda>() 37 val annotations = this.annotations in <lambda>() constant 39 if (annotations == null || annotations.isEmpty()) { in <lambda>() 42 annotations.toMutableList() in <lambda>() 53 val annotations = ArrayList<AnnotationItem>(annotationSources.size) in <lambda>() constant 77 annotations.add(item) in <lambda>() 79 this.annotations = annotations in <lambda>()
|
D | ApiFile.java | 25 import com.google.common.annotations.VisibleForTesting; 29 import org.jetbrains.annotations.Nullable; 189 List<String> annotations = getAnnotations(tokenizer, token); in parsePackage() local 191 if (annotations != null) { in parsePackage() 192 modifiers.addAnnotations(annotations); in parsePackage() 248 List<String> annotations = getAnnotations(tokenizer, token); in parseClass() local 251 TextModifiers modifiers = parseModifiers(api, tokenizer, token, annotations); in parseClass() 295 rawName, annotations); in parseClass() 365 …>> processKotlinTypeSuffix(TextCodebase api, String type, List<String> annotations) throws ApiPars… in processKotlinTypeSuffix() argument 374 annotations = mergeAnnotations(annotations, ANDROIDX_NULLABLE); in processKotlinTypeSuffix() [all …]
|
/tools/metalava/stub-annotations/ |
D | README.md | 3 The annotations in these packages are used to compile 4 the stubs. They are mostly identical to the annotations 7 (1) There are some annotations here which are not in 11 with null/non-null. We do *not* want these annotations 14 of the normal null annotations. 16 (2) There are some annotations in the support library 20 (3) Only class retention annotations are interesting for 25 library annotations; some of them were accidentally 28 (5) We've tweaked the nullness annotations to include 34 "apis" field used for merged historical annotations [all …]
|
/tools/metalava/ |
D | Android.bp | 50 name: "stub-annotations", 53 "stub-annotations/src/main/java/**/*.java", 55 // Allow core_current to use stub-annotations. 67 name: "private-stub-annotations", 73 "stub-annotations/src/main/java/**/*.java", 75 cmd: "($(location metalava) --no-banner --copy-annotations tools/metalava/stub-annotations " + 76 …"$(genDir)/private-stub-annotations) && ($(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)… 78 "private-stub-annotations.srcjar", 83 name: "private-stub-annotations-jar", 86 ":private-stub-annotations", [all …]
|
D | FORMAT.md | 17 format adds new information, such as annotations, parameter names and default 21 3. This is format v2, but with all nullness annotations replaced by a 24 in format v2, but it was deferred since type-use annotations introduces 34 developers), we'd like to have nullness annotations (as well as some other 35 annotations) be a formal part of the SDK. 37 That means the annotations should be part of the signature files too -- such 71 The new signature format now includes annotations; not all annotations (such as 73 annotations, etc. 86 (Notice how the annotations are not using fully qualified name; that's discussed 89 The annotations to be included are annotations for annotation types that are not [all …]
|
D | README.md | 14 annotations. 16 * Extracting source level annotations into external annotations file (such as 17 the typedef annotations, which cannot be stored in the SDK as .class level 18 annotations). 44 signature files, the SDK stub files, external annotations etc. 82 * Ability to merge in data (annotations etc) from external sources, such as 83 IntelliJ external annotations data as well as signature files containing 84 annotations. This isn't just merged at export time, it's merged at codebase 93 instead of "abstract class extends java.lang.Enum", annotations as 100 * Add support for writing (and reading) annotations into the signature [all …]
|
D | settings.gradle | 1 include ':stub-annotations'
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | AnnotationsMergerTest.kt | 29 fun `Signature files contain annotations`() { in Signature files contain annotations() 77 fun `Merged class and method annotations with no arguments`() { in Merged class and method annotations with no arguments() 182 fun `Merge qualifier annotations from Java stub files`() { in Merge qualifier annotations from Java stub files() 224 …fun `Merge qualifier annotations from Java stub files onto stubs that are not in the API signature… in Merge qualifier annotations from Java stub files onto stubs that are not in the API signature file() 300 fun `Merge type use qualifier annotations from Java stub files`() { in Merge type use qualifier annotations from Java stub files() 339 …fun `Merge qualifier annotations from Java stub files making sure they apply to public members of … in Merge qualifier annotations from Java stub files making sure they apply to public members of hidden superclasses() 387 fun `Merge inclusion annotations from Java stub files`() { in Merge inclusion annotations from Java stub files() 446 fun `Merge inclusion annotations from Java stub files using --show-single-annotation`() { in Merge inclusion annotations from Java stub files using --show-single-annotation() 490 fun `Merge inclusion annotations on api in java namespace`() { in Merge inclusion annotations on api in java namespace()
|
D | NullnessMigrationTest.kt | 285 fun `Convert libcore nullness annotations to support`() { in Convert libcore nullness annotations to support() 336 fun `Check type use annotations`() { in Check type use annotations() 442 fun `Migrate nullness for type-use annotations`() { in Migrate nullness for type-use annotations() 516 fun `Do not migrate type-use annotations when not changed`() { in Do not migrate type-use annotations when not changed() 584 fun `Regression test for issue 111054266, type use annotations`() { in Regression test for issue 111054266, type use annotations() 656 fun `Merge nullness annotations in stubs that are not in the API signature file`() { in Merge nullness annotations in stubs that are not in the API signature file()
|
D | ApiFromTextTest.kt | 19 import org.intellij.lang.annotations.Language 220 fun `Type use annotations`() { in Type use annotations() 445 fun `Loading a signature file with annotations on classes, fields, methods and parameters`() { in Loading a signature file with annotations on classes, fields, methods and parameters() 467 fun `Enums and annotations`() { in Enums and annotations() 512 fun `Enums and annotations exported to compat`() { in Enums and annotations exported to compat() 627 fun `Signatures with many annotations`() { in Signatures with many annotations() 787 fun `Complicated annotations`() { in Complicated annotations()
|
D | ExtractAnnotationsTest.kt | 187 fun `Check including only class retention annotations other than typedefs`() { in Check including only class retention annotations other than typedefs() 265 fun `Extract permission annotations`() { in Extract permission annotations() 334 fun `Include merged annotations in exported source annotations`() { in Include merged annotations in exported source annotations() 388 fun `Only including class retention annotations in stubs`() { in Only including class retention annotations in stubs()
|
D | RewriteAnnotationsTest.kt | 33 fun `Test copying private annotations from one of the stubs`() { in Test copying private annotations from one of the stubs() 91 fun `Test rewriting the bytecode for one of the public annotations`() { in Test rewriting the bytecode for one of the public annotations() 123 fun `Test rewriting the bytecode for one of the public annotations in a jar file`() { in Test rewriting the bytecode for one of the public annotations in a jar file()
|
D | NullabilityAnnotationsValidatorTest.kt | 24 fun `Empty report when all expected annotations present`() { in Empty report when all expected annotations present() 117 fun `Missing return type annotations`() { in Missing return type annotations()
|
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiTypePrinterTest.kt | 179 fun `Test merge annotations`() { in <lambda>() 244 fun `Check other annotations than nullness annotations`() { in <lambda>() 821 fun handleType(type: PsiType, annotations: List<AnnotationItem> = emptyList()) { in <lambda>() 845 if (annotations.isNotEmpty()) { in <lambda>() 847 for (annotation in annotations) { in <lambda>() 872 handle(type.type, psiAnnotations = type.annotations) in <lambda>() 891 val annotations = mutableListOf<AnnotationItem>() in <lambda>() constant 893 annotations.add(UAnnotationItem.create(codebase, annotation)) in <lambda>() 896 annotations.add(PsiAnnotationItem.create(codebase, annotation)) in <lambda>() 899 handleType(type, annotations) in <lambda>()
|
/tools/dexter/slicer/export/slicer/ |
D | dex_ir.h | 272 std::vector<Annotation*> annotations; member 278 std::vector<AnnotationSet*> annotations; member 285 AnnotationSet* annotations; member 292 AnnotationSet* annotations; member 299 AnnotationSetRefList* annotations; member 319 AnnotationsDirectory* annotations; member 377 std::vector<own<Annotation>> annotations; member 458 void Track(Annotation* p) { PushOwn(annotations, p); } in Track()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | NullnessMigration.kt | 104 return item.modifiers.annotations().firstOrNull { it.isNullnessAnnotation() } in findNullnessAnnotation() 108 return item.modifiers.annotations().any { it.isNullable() } in isNullable() 112 return item.modifiers.annotations().any { it.isNonNull() } in isNonNull()
|
D | NullabilityAnnotationsValidator.kt | 124 val annotations = item.modifiers.annotations() in <lambda>() constant 125 val nullabilityAnnotations = annotations.filter(this::isAnyNullabilityAnnotation) in <lambda>()
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/dialog/ |
D | MessageDialog.java | 21 import org.jetbrains.annotations.NotNull; 22 import org.jetbrains.annotations.Nullable;
|
/tools/dexter/slicer/ |
D | dex_ir.cc | 271 for (const auto& irAnnotation : annotations) { in Normalize() 283 auto& annotations = irAnnotationSet->annotations; in Normalize() local 284 std::sort(annotations.begin(), annotations.end(), in Normalize()
|
D | writer.cc | 440 for (const auto& ir_node : dex_ir_->annotations) { in CreateAnnItemSection() 660 const auto& annotations = ir_annotation_set->annotations; in WriteAnnotationSet() local 664 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSet() 665 for (auto ir_annotation : annotations) { in WriteAnnotationSet() 676 const auto& annotations = ir_annotation_set_ref_list->annotations; in WriteAnnotationSetRefList() local 680 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSetRefList() 681 for (auto ir_annotation_set : annotations) { in WriteAnnotationSetRefList() 689 if (ir_class->annotations == nullptr) { in WriteClassAnnotations() 693 auto ir_annotations = ir_class->annotations; in WriteClassAnnotations() 708 dex_item.annotations_off = FilePointer(irItem->annotations); in WriteClassAnnotations() [all …]
|
D | reader.cc | 274 ir_class->annotations = ExtractAnnotations(dex_class_def.annotations_off); in ParseClass() 344 ir_annotation_set->annotations.push_back(ir_annotation); in ExtractAnnotationSet() 361 ir_annotation_set_ref_list->annotations.push_back(ir_annotation_set); in ExtractAnnotationSetRefList() 374 ir_field_annotation->annotations = in ParseFieldAnnotation() 376 SLICER_CHECK(ir_field_annotation->annotations != nullptr); in ParseFieldAnnotation() 389 ir_method_annotation->annotations = in ParseMethodAnnotation() 391 SLICER_CHECK(ir_method_annotation->annotations != nullptr); in ParseMethodAnnotation() 404 ir_param_annotation->annotations = in ParseParamAnnotation() 406 SLICER_CHECK(ir_param_annotation->annotations != nullptr); in ParseParamAnnotation()
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | StubWriter.kt | 118 val annotations = pkg.modifiers.annotations() in <lambda>() constant 119 if (annotations.isNotEmpty() && generateAnnotations || !pkg.documentation.isBlank()) { in <lambda>() 131 if (annotations.isNotEmpty()) { in <lambda>()
|
/tools/platform-compat/java/android/processor/compat/ |
D | SingleAnnotationProcessor.java | 80 Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment) { in process() argument 81 if (annotations.size() == 0) { in process() 86 TypeElement annotation = Iterables.getOnlyElement(annotations); in process()
|
/tools/platform-compat/java/android/compat/annotation/ |
D | Android.bp | 22 name: "app-compat-annotations", 38 name: "app-compat-annotations-source",
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/ |
D | AtestRunConfiguration.java | 38 import org.jetbrains.annotations.NotNull; 39 import org.jetbrains.annotations.Nullable;
|