/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/ |
D | FileFormatTest.kt | 39 formatForLegacyFiles: FileFormat? = null, in checkParseHeader() 40 expectedFormat: FileFormat? = null, in checkParseHeader() 46 FileFormat.parseHeader(Path.of("api.txt"), reader, formatForLegacyFiles) in checkParseHeader() 66 format: FileFormat, in headerAndSpecifierTest() 74 FileFormat.parseHeader(Path.of("api.txt"), reader), in headerAndSpecifierTest() 82 FileFormat.parseSpecifier( in headerAndSpecifierTest() 99 expectedFormat = FileFormat.V2, in Check format parsing, blank line between header and package() 111 expectedFormat = FileFormat.V2, in Check format parsing, comment after header and package() 141 formatForLegacyFiles = FileFormat.V2, in Check format parsing (v1 + legacy format)() 142 expectedFormat = FileFormat.V2, in Check format parsing (v1 + legacy format)() [all …]
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | ApiFileTest.kt | 28 import com.android.tools.metalava.model.text.FileFormat 29 import com.android.tools.metalava.model.text.FileFormat.OverloadedMethodOrder 77 format = FileFormat.V2, in Kotlin language level() 176 format = FileFormat.V3, in Default Values Names in Java() 214 format = FileFormat.V3, in Default Values and Names in Kotlin() 292 format = FileFormat.V3, in Default Values in Kotlin for expressions() 372 format = FileFormat.V2, in Basic Kotlin class() 448 format = FileFormat.V2, in Kotlin Reified Methods 2() 489 format = FileFormat.V2, in Suspend functions() 520 format = FileFormat.V3, in Var properties with private setters() [all …]
|
D | AnnotationsMergerTest.kt | 20 import com.android.tools.metalava.model.text.FileFormat 35 format = FileFormat.V2, in Signature files contain annotations() 85 format = FileFormat.V2, in Merged class and method annotations with no arguments() 146 format = FileFormat.V2, in Merge signature files() 194 format = FileFormat.V2, in Merge qualifier annotations from Java stub files() 247 format = FileFormat.V2, in Merge qualifier annotations from Java stub files onto stubs that are not in the API signature file() 324 format = FileFormat.V2, in Merge type use qualifier annotations from Java stub files() 363 format = FileFormat.V2, in Merge qualifier annotations from Java stub files making sure they apply to public members of hidden superclasses() 412 format = FileFormat.V2, in Merge inclusion annotations from Java stub files() 483 format = FileFormat.V2, in Merge inclusion annotations from multiple Java stub files() [all …]
|
D | NullnessMigrationTest.kt | 20 import com.android.tools.metalava.model.text.FileFormat 28 format = FileFormat.V3, in Test Kotlin-style null signatures() 69 format = FileFormat.V2, in Method which is now marked null should be marked as recently migrated null() 123 format = FileFormat.V2, in Parameter which is now marked null should be marked as recently migrated null() 175 format = FileFormat.V2, in Comprehensive check of migration() 249 format = FileFormat.V3, in Comprehensive check of migration, Kotlin-style output() 303 format = FileFormat.V2, in Convert libcore nullness annotations to support() 355 format = FileFormat.V2, // compat=false, kotlin-style-nulls=false in Check type use annotations() 413 format = FileFormat.V2, in Check androidx package annotation() 464 format = FileFormat.V2, in Migrate nullness for type-use annotations() [all …]
|
D | ApiFromTextTest.kt | 19 import com.android.tools.metalava.model.text.FileFormat 40 check(format = FileFormat.V2, signatureSource = source, api = source) in Loading a signature file and writing the API back out() 57 format = FileFormat.V3, in Handle lambdas as default values() 76 format = FileFormat.V3, in Invoking function with multiple parameters as parameter default value() 108 check(format = FileFormat.V3, signatureSource = source, api = source) in Handle enum constants as default values() 137 format = FileFormat.V3, in Handle complex expressions as default values() 155 check(format = FileFormat.V2, signatureSource = source, api = source) in Annotation signatures requiring more complicated token matching() 170 check(format = FileFormat.V2, signatureSource = source, api = source) in Multiple extends() 176 format = FileFormat.V2, in Native and strictfp keywords()
|
D | NullabilityAnnotationsValidatorTest.kt | 19 import com.android.tools.metalava.model.text.FileFormat 52 format = FileFormat.V2, in Empty report when all expected annotations present() 95 format = FileFormat.V2, in Missing parameter annotation() 139 format = FileFormat.V2, in Missing return type annotations() 184 format = FileFormat.V2, in Error from annotation on primitive() 228 format = FileFormat.V2, in Error from NullFromTypeParam not on type param() 276 format = FileFormat.V2, in Using class list()
|
D | ExtractAnnotationsTest.kt | 21 import com.android.tools.metalava.model.text.FileFormat 84 format = FileFormat.V2, in Check java typedef extraction and warning about non-source retention of typedefs() 359 format = FileFormat.V2, in Include merged annotations in exported source annotations() 426 format = FileFormat.V2, in Only including class retention annotations in stubs() 561 format = FileFormat.V2, in No typedef signatures in api files() 600 format = FileFormat.V2, in Inlining typedef signatures in api files() 634 format = FileFormat.V2, in Referencing typedef signatures in api files() 666 format = FileFormat.V2, in Test generics in XML attributes are encoded()
|
D | ApiAnalyzerTest.kt | 23 import com.android.tools.metalava.model.text.FileFormat 282 format = FileFormat.V2, in Test inheriting methods from hidden class preserves deprecated status() 347 format = FileFormat.V2, in Test inheriting methods from hidden generic class preserves deprecated status() 400 format = FileFormat.V2, in Test deprecated class and parameters are output in kotlin() 452 format = FileFormat.V2, in Deprecation when ignoring comments() 485 format = FileFormat.V2, in Test inherited method from hidden class into deprecated class inherits deprecated status() 535 format = FileFormat.V2, in Test deprecated status not propagated to removed items()
|
D | Java9LanguageFeaturesTest.kt | 21 import com.android.tools.metalava.model.text.FileFormat 30 format = FileFormat.V2, in Private Interface Method() 63 format = FileFormat.V2, in Basic class signature extraction() 161 format = FileFormat.V2, in Using JDK APIs()
|
D | CoreApiTest.kt | 24 import com.android.tools.metalava.model.text.FileFormat 33 format = FileFormat.V2, in Hidden with --hide-annotation() 133 format = FileFormat.V2, in Hidden with package javadoc and hiding default constructor explicitly() 233 format = FileFormat.V2, in Complain if annotating a member and the surrounding class is not included()
|
D | PolymorphicMethodsTest.kt | 19 import com.android.tools.metalava.model.text.FileFormat 28 format = FileFormat.V2, in Test MethodHandle() 98 format = FileFormat.V2, in Test VarHandle()
|
D | ShowabilityTest.kt | 20 import com.android.tools.metalava.model.text.FileFormat 82 format = FileFormat.V2, in Recursive hide and non-recursive show (show first)() 123 format = FileFormat.V2, in Recursive hide and non-recursive show (hide first)()
|
D | SignatureWriterTest.kt | 19 import com.android.tools.metalava.model.text.FileFormat 29 fileFormat: FileFormat = FileFormat.V2, in runTest()
|
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/ |
D | FileFormat.kt | 32 data class FileFormat( in <lambda>() dataClass 42 val formatDefaults: FileFormat? = null, in <lambda>() 175 private inline fun <T> effectiveValue(getter: FileFormat.() -> T?, default: T): T { in <lambda>() 203 factory: (Version) -> FileFormat, in <lambda>() 208 FileFormat( in <lambda>() 261 internal fun defaultsIncludingLanguage(language: Language?): FileFormat { in <lambda>() 368 if (this@FileFormat != defaults) { in <lambda>() 372 val thisValue = prop.stringFromFormat(this@FileFormat) ?: return@forEach in <lambda>() 452 formatForLegacyFiles: FileFormat? = null in <lambda>() 453 ): FileFormat? { in <lambda>() [all …]
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/signature/ |
D | SignatureFormatOptions.kt | 21 import com.android.tools.metalava.model.text.FileFormat in <lambda>() 35 "v2" to FileFormat.V2, in <lambda>() 36 "v3" to FileFormat.V3, in <lambda>() 37 "v4" to FileFormat.V4, in <lambda>() 38 "latest" to FileFormat.LATEST, in <lambda>() 39 "recommended" to FileFormat.V2, in <lambda>() 74 .convert { defaults -> FileFormat.parseDefaults(defaults) } in <lambda>() 120 ?: FileFormat.parseSpecifier( in <lambda>() 126 .default(FileFormat.V2, defaultForHelp = "recommended") in <lambda>() 152 file?.reader(Charsets.UTF_8)?.use { FileFormat.parseHeader(file.toPath(), it) } in <lambda>() [all …]
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/signature/ |
D | SignatureFormatOptionsTest.kt | 22 import com.android.tools.metalava.model.text.FileFormat 116 assertThat(options.fileFormat).isEqualTo(FileFormat.V3) in --use-same-format-as reads from a valid file and ignores --format() 124 assertThat(options.fileFormat).isEqualTo(FileFormat.V4) in --use-same-format-as ignores empty file and falls back to format() 138 .isEqualTo(FileFormat.OverloadedMethodOrder.SOURCE) in --use-same-format-as will honor --format-defaults overloaded-method-order=source() 172 runTest("--format", "2.0") { assertEquals(FileFormat.V2, options.fileFormat) } in --format with no properties() 179 FileFormat.OverloadedMethodOrder.SOURCE, in --format with no properties and --format-defaults overloaded-method-order=source() 196 FileFormat.V2.copy( in --format with overloaded-method-order=signature() 197 specifiedOverloadedMethodOrder = FileFormat.OverloadedMethodOrder.SIGNATURE, in --format with overloaded-method-order=signature() 213 FileFormat.OverloadedMethodOrder.SIGNATURE, in --format with overloaded-method-order=signature and --format-defaults overloaded-method-order=source() 226 FileFormat.V2.copy( in --format specifier with all the supported properties() [all …]
|
D | UpdateSignatureHeaderCommandTest.kt | 20 import com.android.tools.metalava.model.text.FileFormat 30 format: FileFormat = FileFormat.LATEST, in checkUpdateSignatures() 114 format = FileFormat.V2, in Update signature (blank to v2)() 125 format = FileFormat.V2, in Update signature (empty to v2)() 139 format = FileFormat.V3, in Update signature (v2 to v3)() 155 format = FileFormat.V3, in Update signature (wrong file to v3)() 170 format = FileFormat.V2.copy(kotlinStyleNulls = true), in Update signature (v2 to v2 + kotlin-style-nulls=true but no migrating)() 189 format = FileFormat.V2.copy(kotlinStyleNulls = true, migrating = "test"), in Update signature (v2 to v2 + kotlin-style-nulls=true,migrating=test)() 210 format = FileFormat.V3.copy(kotlinStyleNulls = false, migrating = "test"), in Update signature (v2 to v3 + kotlin-style-nulls=false,migrating=test)()
|
D | MergeSignaturesCommandTest.kt | 20 import com.android.tools.metalava.model.text.FileFormat in <lambda>() 31 format: FileFormat = FileFormat.LATEST, in checkMergeSignatures() 41 prepareSignatureFileForTest(contents.trimIndent(), FileFormat.V2) in checkMergeSignatures() 158 format = FileFormat.V2, in Test merging API signature files() 238 format = FileFormat.V2, in Test merging API signature files with reverse dependency() 411 format = FileFormat.V4, in Test can merge API signature files with different file formats()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/binarycompatibility/ |
D | BinaryCompatibilityPackagesTest.kt | 22 import com.android.tools.metalava.model.text.FileFormat 40 format = FileFormat.V4, in Add API Package (Compatible)() 66 format = FileFormat.V4, in Delete API Package (Incompatible)() 91 format = FileFormat.V4, in Add API Type to API Package (Compatible)() 117 format = FileFormat.V4, in Delete API Type from API Package (Incompatible)() 144 format = FileFormat.V4, in Add non-public (non-API) type to API package (Compatible)() 171 format = FileFormat.V4, in Change public type in API package to make non-public (Incompatible)() 220 format = FileFormat.V4, in Change kind of API type (class, interface, enum, or annotation type) (Incompatible)()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/stub/ |
D | StubsConstructorTest.kt | 19 import com.android.tools.metalava.model.text.FileFormat 364 format = FileFormat.V2, in Picking Super Constructors() 738 format = FileFormat.V2, in Use type argument in constructor cast() 811 format = FileFormat.V2, in Use unspecified type argument in constructor cast() 868 format = FileFormat.V2, in Varargs constructor parameter requiring cast()
|
D | StubsTest.kt | 26 import com.android.tools.metalava.model.text.FileFormat 551 format = FileFormat.V3, in Picking super class throwables() 646 format = FileFormat.V2, in Rewriting implements class references() 1503 format = FileFormat.V2, in From-text stubs can be generated from signature files with conflicting class definitions() 1568 format = FileFormat.V2, in Ensure that when generating stubs from signature files the constructors are setup correctly() 1619 format = FileFormat.V2, in Compilable stubs are not generated when inheriting class exists in jar passed via classpath() 1717 format = FileFormat.V2, in Type-use annotations are not included in stubs()
|
D | StubsAnnotationTest.kt | 26 import com.android.tools.metalava.model.text.FileFormat 74 format = FileFormat.V2, in Remove Hidden Annotations() 149 format = FileFormat.V2, in Rewrite unknown nullability annotations as sdk stubs() 187 format = FileFormat.V2, in Rewrite unknown nullability annotations as doc stubs() 277 format = FileFormat.V2, in Pass through libcore annotations()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/compatibility/ |
D | NullnessCompatibilityTest.kt | 24 import com.android.tools.metalava.model.text.FileFormat 39 format = FileFormat.V3, in Compare signatures with Kotlin nullability from signature() 77 format = FileFormat.V3, in Compare signatures with Kotlin nullability from source() 111 format = FileFormat.V2, in Flag invalid nullness changes in final class() 161 format = FileFormat.V2, in Kotlin Nullness()
|
D | CompatibilityCheckTest.kt | 32 import com.android.tools.metalava.model.text.FileFormat 160 format = FileFormat.V2, in Kotlin Coroutines() 325 format = FileFormat.V4, in Removed method from classpath() 909 format = FileFormat.V4, in Remove optional parameter() 1794 format = FileFormat.V2, in Test Kotlin extensions() 1844 format = FileFormat.V2, in Test Kotlin type bounds() 3527 format = FileFormat.V3, in Check using parameterized arrays as type parameters() 3642 format = FileFormat.V4, in Remove fun modifier from interface() 3674 format = FileFormat.V4, in Remove fun modifier from interface signature files() 3701 format = FileFormat.V4, in Adding default value to annotation parameter() [all …]
|
/tools/metalava/metalava-model-text/src/testFixtures/java/com/android/tools/metalava/model/text/ |
D | TextTestUtils.kt | 25 expectedFormat: FileFormat = FileFormat.LATEST, in assertSignatureFilesMatch() 36 fun prepareSignatureFileForTest(expectedApi: String, format: FileFormat): String { in prepareSignatureFileForTest() 41 .let { if (!it.startsWith(FileFormat.SIGNATURE_FORMAT_PREFIX)) header + it else it } in prepareSignatureFileForTest()
|