/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>()
|
/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() 177 fun `Merge qualifier annotations from Java stub files`() { in Merge qualifier annotations from Java stub files() 214 …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() 281 fun `Merge type use qualifier annotations from Java stub files`() { in Merge type use qualifier annotations from Java stub files() 320 …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() 365 fun `Merge inclusion annotations from Java stub files`() { in Merge inclusion annotations from Java stub files() 424 fun `Merge inclusion annotations from Java stub files using --show-single-annotation`() { in Merge inclusion annotations from Java stub files using --show-single-annotation()
|
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 | 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 | NullabilityAnnotationsValidatorTest.kt | 24 fun `Empty report when all expected annotations present`() { in Empty report when all expected annotations present() 112 fun `Missing return type annotations`() { in Missing return type annotations()
|
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/ |
D | ApiFile.java | 36 import com.google.common.annotations.VisibleForTesting; 40 import org.jetbrains.annotations.Nullable; 200 List<String> annotations = getAnnotations(tokenizer, token); in parsePackage() local 202 if (annotations != null) { in parsePackage() 203 modifiers.addAnnotations(annotations); in parsePackage() 259 List<String> annotations = getAnnotations(tokenizer, token); in parseClass() local 262 TextModifiers modifiers = parseModifiers(api, tokenizer, token, annotations); in parseClass() 306 rawName, annotations); in parseClass() 376 …>> processKotlinTypeSuffix(TextCodebase api, String type, List<String> annotations) throws ApiPars… in processKotlinTypeSuffix() argument 385 annotations = mergeAnnotations(annotations, ANDROIDX_NULLABLE); in processKotlinTypeSuffix() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | DefaultModifierList.kt | 24 protected open var annotations: MutableList<AnnotationItem>? = null variable in com.android.tools.metalava.model.DefaultModifierList 40 override fun annotations(): List<AnnotationItem> { in annotations() method 41 return annotations ?: emptyList() in annotations() 219 if (annotations == null) { in addAnnotation() 220 annotations = mutableListOf() in addAnnotation() 222 annotations?.add(annotation) in addAnnotation() 226 annotations?.remove(annotation) in removeAnnotation() 230 annotations?.clear() in clearAnnotations()
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | TestDescription.java | 68 public TestDescription(String className, String testName, Annotation... annotations) { in TestDescription() argument 70 mAnnotations = annotations; in TestDescription() 80 public TestDescription(String className, String testName, Collection<Annotation> annotations) { in TestDescription() argument 81 this(className, testName, annotations.toArray(new Annotation[annotations.size()])); in TestDescription()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | SdkFileWriter.kt | 78 val annotations = field.modifiers.annotations() in generate() constant 79 for (annotation in annotations) { in generate() 100 val annotations = clazz.modifiers.annotations() in generate() constant 101 if (!annotations.isEmpty()) { in generate() 102 for (annotation in annotations) { in generate()
|
D | NullnessMigration.kt | 103 return item.modifiers.annotations().firstOrNull { it.isNullnessAnnotation() } in findNullnessAnnotation() 107 return item.modifiers.annotations().any { it.isNullable() } in isNullable() 111 return item.modifiers.annotations().any { it.isNonNull() } in isNonNull()
|
D | NullabilityAnnotationsValidator.kt | 125 val annotations = item.modifiers.annotations() in <lambda>() constant 126 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/metalava/ |
D | FORMAT.md | 17 format adds new information, such as annotations, parameter names and default 21 3. This is format v2, but will 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 | .gitignore | 12 stub-annotations/out
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/params/ |
D | InstantAppHandler.java | 18 import android.platform.test.annotations.AppModeFull; 19 import android.platform.test.annotations.AppModeInstant;
|
/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/tradefederation/core/src/com/android/tradefed/result/ |
D | JUnitToInvocationResultForwarder.java | 135 Annotation[] annotations = new Annotation[0]; in getTestId() local 139 annotations = testMethod.getAnnotations(); in getTestId() 145 return new TestDescription(className, testName, annotations); in getTestId()
|
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/ |
D | IsolationFilter.java | 77 Collection<Annotation> annotations = desc.getAnnotations(); in checkAnnotations() local 78 return this.checkIncludeAnnotations(annotations) in checkAnnotations() 79 && this.checkExcludeAnnotations(annotations); in checkAnnotations()
|
/tools/platform-compat/java/android/compat/annotation/ |
D | Android.bp | 18 name: "app-compat-annotations", 32 name: "app-compat-annotations-source",
|
/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()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiParameterItem.kt | 60 val annotation = modifiers.annotations().firstOrNull { it.isParameterName() } in name() 74 modifiers.annotations().any { it.isDefaultValue() } in hasDefaultValue() 156 val annotation = modifiers.annotations().firstOrNull { it.isDefaultValue() } in computeDefaultValue()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | ITestAnnotationFilterReceiver.java | 41 void addAllIncludeAnnotation(Set<String> annotations); in addAllIncludeAnnotation() argument
|
/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/dexter/testdata/expected/ |
D | large.am_stats | 29 annotations : 12
|