Home
last modified time | relevance | path

Searched refs:apiSurfaces (Results 1 – 25 of 26) sorted by relevance

12

/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/api/surface/
DApiVariant.kt53 sealed class BaseApiVariantSet(internal val apiSurfaces: ApiSurfaces) { constant in BaseApiVariantSet
67 require(apiSurfaces === variantSet.apiSurfaces) { in isEmpty()
68 …"Mismatch between ApiSurfaces, this set is for $apiSurfaces, other set is for ${variantSet.apiSurf… in isEmpty()
93 if (apiSurfaces != other.apiSurfaces) return false in toMutable()
100 var result = apiSurfaces.hashCode() in hashCode()
109 for (apiSurface in apiSurfaces.all) { in toString()
127 class ApiVariantSet(apiSurfaces: ApiSurfaces, override val bits: Int) :
128 BaseApiVariantSet(apiSurfaces) {
130 override fun toMutable() = MutableApiVariantSet(apiSurfaces, bits) in toMutable()
135 internal fun emptySet(apiSurfaces: ApiSurfaces) = ApiVariantSet(apiSurfaces, 0) in toMutable()
[all …]
DApiSurfaces.kt137 private class BuilderImpl(private val apiSurfaces: DefaultApiSurfaces) : ApiSurfaces.Builder { constant in com.android.tools.metalava.model.api.surface.BuilderImpl
177 apiSurfaces, in createSurface()
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/api/surface/
DApiSurfacesTest.kt47 val apiSurfaces = ApiSurfaces.create(needsBase = false) in Test without base() constant
48 apiSurfaces.assertSelfConsistent() in Test without base()
49 assertNull(apiSurfaces.base, "base not expected") in Test without base()
54 val apiSurfaces = ApiSurfaces.create(needsBase = true) in Test with base() constant
55 apiSurfaces.assertSelfConsistent() in Test with base()
56 assertNotNull(apiSurfaces.base, "base is expected") in Test with base()
85 val apiSurfaces = in Test with other names needs base() constant
90 apiSurfaces.assertSelfConsistent() in Test with other names needs base()
91 assertEquals(apiSurfaces.main.name, "system") in Test with other names needs base()
92 assertNotNull(apiSurfaces.base, "base is expected") in Test with other names needs base()
[all …]
DApiVariantSetTest.kt30 private val apiSurfaces = ApiSurfaces.create(needsBase = true) constant in com.android.tools.metalava.model.api.surface.ApiVariantSetTest
32 private val main = apiSurfaces.main
33 private val base = apiSurfaces.base!!
37 val mutable = MutableApiVariantSet.setOf(apiSurfaces) in Test creation()
42 for (variant in apiSurfaces.variants) { in Test creation()
51 val mutable = MutableApiVariantSet.setOf(apiSurfaces) in Test mutations()
86 val mutable = MutableApiVariantSet.setOf(apiSurfaces) in Test clear()
101 val mutable = MutableApiVariantSet.setOf(apiSurfaces) in Test mutable and immutable()
143 val empty = apiSurfaces.emptyVariantSet in Test empty variant set()
146 val mutable = MutableApiVariantSet.setOf(apiSurfaces) in Test empty variant set()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DCommonApiSurfacesTest.kt32 fun `Test Codebase apiSurfaces default`() { in Test Codebase apiSurfaces default()
54 val apiSurfaces = codebase.apiSurfaces in Test Codebase apiSurfaces default() constant
55 assertEquals("main", apiSurfaces.main.name, "main name") in Test Codebase apiSurfaces default()
56 assertTrue(apiSurfaces.main.isMain, "main is main") in Test Codebase apiSurfaces default()
57 assertNull(apiSurfaces.base, "base not expected") in Test Codebase apiSurfaces default()
62 fun `Test Codebase apiSurfaces with base`() { in Test Codebase apiSurfaces with base()
86 apiSurfaces = fixtureApiSurfaces, in Test Codebase apiSurfaces with base()
89 val apiSurfaces = codebase.apiSurfaces in Test Codebase apiSurfaces with base() constant
92 assertSame(fixtureApiSurfaces, apiSurfaces, "api surfaces gets passed through") in Test Codebase apiSurfaces with base()
130 val mainStubsApiVariant = codebase.apiSurfaces.main.variantFor(ApiVariantType.DOC_ONLY) in Test mutating selectedApiVariants()
DBaseModelTest.kt190 val apiSurfaces: ApiSurfaces = ApiSurfaces.DEFAULT, in <lambda>() constant in com.android.tools.metalava.model.testsuite.BaseModelTest.TestFixture
202 apiSurfaces = apiSurfaces, in <lambda>()
DCommonParameterizedSelectedApiVariantsTest.kt42 apiSurfaces = ApiSurfaces.create(testData.needsBase), in params()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DApiSurfacesTest.kt31 private class ApiSurfacesContext(val apiSurfaces: ApiSurfaces) constant in com.android.tools.metalava.ApiSurfacesTest.ApiSurfacesContext
58 val apiSurfaces = options.apiSurfaces in checkApiSurfaces() constant
59 val context = ApiSurfacesContext(apiSurfaces) in checkApiSurfaces()
70 apiSurfaces.assertBaseWasNotCreated() in Test generating public API does not need to track the base API surface()
92 apiSurfaces.assertBaseWasNotCreated() in Test generating system + public API does not need to track the base API surface()
104 apiSurfaces.assertBaseWasCreated() in Test generating system API as delta on public does need to track the base API surface()
118 apiSurfaces.assertBaseWasCreated() in Test generating test API as delta on system does need to track the base API surface()
140 val apiSurfaces = options.apiSurfaces in Test no show annotations with signature sources() constant
141 apiSurfaces.assertBaseWasCreated() in Test no show annotations with signature sources()
DApiSelectionOptionsTest.kt109 options.apiSurfaces in Test --api-surface option no api-surfaces configuration()
118 options.apiSurfaces.assertBaseWasNotCreated() in Test configuring API surfaces no --api-surface option()
128 val exception = assertThrows(IllegalStateException::class.java) { options.apiSurfaces } in Test configuring API surfaces invalid --api-surface option()
145 options.apiSurfaces in Test configuring extending surface without --show-annotation option()
158 options.apiSurfaces.assertBaseWasCreated() in Test configuring extending surface with --show-annotation option()
159 assertThat(options.apiSurfaces.main.name).isEqualTo("system") in Test configuring extending surface with --show-annotation option()
160 assertThat(options.apiSurfaces.base?.name).isEqualTo("public") in Test configuring extending surface with --show-annotation option()
175 options.apiSurfaces in Test configuring non-extending surface with --show-annotation option()
186 options.apiSurfaces.assertBaseWasNotCreated() in Test configuring non-extending surface without --show-annotation option()
187 assertThat(options.apiSurfaces.main.name).isEqualTo("public") in Test configuring non-extending surface without --show-annotation option()
DApiLevelsGenerationOptionsTest.kt333 val apiSurfaces = in Test signature files in forAndroidConfig() constant
351 optionGroup = ApiLevelsGenerationOptions(apiSurfacesProvider = { apiSurfaces }), in Test signature files in forAndroidConfig()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/config/
DConfig.kt31 val apiSurfaces: ApiSurfacesConfig? = null, constant in com.android.tools.metalava.config.Config
38 apiSurfaces = combine(apiSurfaces, other.apiSurfaces), in combineWith()
52 apiSurfaces?.validate() in validate()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/config/
DApiSurfacesConfigTest.kt28 Config(apiSurfaces = ApiSurfacesConfig()), in Empty api-surfaces config()
41 apiSurfaces = in Simple api-surfaces config()
157 apiSurfaces = in Multiple api-surfaces config files()
245 config.apiSurfaces?.orderedSurfaces?.map { it.name } in Dag in api-surfaces, module-lib first()
272 config.apiSurfaces?.orderedSurfaces?.map { it.name } in Dag in api-surfaces, test first()
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DSignatureFileTest.kt45 apiSurfaces: ApiSurfaces = ApiSurfaces.create(needsBase = true), in checkApiVariantFor()
48 val apiVariant = signatureFile.apiVariantFor(apiSurfaces) in checkApiVariantFor()
49 val expectedSurface = expectedSurfaceGetter(apiSurfaces) in checkApiVariantFor()
100 apiSurfaces = ApiSurfaces.DEFAULT, in Test apiVariantFor base-current input no base ApiSurface()
DApiFileTest.kt669 val apiSurfaces = ApiSurfaces.create(needsBase = true) in <lambda>() constant
673 apiSurfaces = apiSurfaces, in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/
DPatternNodeTest.kt524 private fun checkScanningForSurfaces(apiSurfaces: ApiSurfaces, expectedFiles: String) { in checkScanningForSurfaces()
547 val apiSurfaceByName = apiSurfaces.byName in checkScanningForSurfaces()
554 val apiSurfaces = ApiSurfaces.build { createSurface(name = "public", isMain = true) } in Scan for surface - public() constant
557 apiSurfaces, in Scan for surface - public()
569 val apiSurfaces = in Scan for surface - system() constant
576 apiSurfaces, in Scan for surface - system()
590 val apiSurfaces = in Scan for surface - module-lib() constant
598 apiSurfaces, in Scan for surface - module-lib()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/historical/
DAndroidJarsToSignaturesCommand.kt114 val apiSurfaces = in <lambda>() constant
115 configFileOptions.config.apiSurfaces?.let { apiSurfacesConfig -> in <lambda>()
139 val selectedApiSurfaces = apiSurfaceNames.map { apiSurfaces.byName[it]!! }.sorted() in <lambda>()
153 apiSurfaces, in <lambda>()
DConvertJarsToSignatureFiles.kt74 private val apiSurfaces: ApiSurfaces, in <lambda>() constant in com.android.tools.metalava.cli.historical.ConvertJarsToSignatureFiles
86 apiSurfaceByName = apiSurfaces.byName, in <lambda>()
123 apiSurfaces = apiSurfaces, in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/historical/
DHistoricalApiVersionInfoTest.kt64 config.apiSurfaces ?: error("No <api-surface/>s specified in config file") in buildApiSurfacesFromConfig()
69 val apiSurfaces = buildApiSurfacesFromConfig(KnownConfigFiles.configPublicAndSystemSurfaces) in scanForHistoricalApiVersionInfo() constant
73 apiSurfaceByName = apiSurfaces.byName, in scanForHistoricalApiVersionInfo()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DCodebase.kt45 val apiSurfaces: ApiSurfaces constant
138 val apiSurfaces: ApiSurfaces = ApiSurfaces.DEFAULT, in markContainsRevertedItem() constant in com.android.tools.metalava.model.Codebase.Config
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/item/
DDefaultCodebase.kt47 final override val apiSurfaces: ApiSurfaces = config.apiSurfaces constant
DDefaultSelectableItem.kt49 final override var selectedApiVariants: ApiVariantSet = codebase.apiSurfaces.emptyVariantSet
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DMainCommand.kt111 apiSurfacesConfigProvider = { configFileOptions.config.apiSurfaces }, in <lambda>()
164 apiSurfacesProvider = { apiSelectionOptions.apiSurfaces }, in <lambda>()
DOptions.kt326 val apiSurfaces constant
327 get() = apiSelectionOptions.apiSurfaces
383 apiSurfaces = apiSurfaces, in <lambda>()
DApiSelectionOptions.kt180 val apiSurfaces by constant in com.android.tools.metalava.ApiSelectionOptions
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DApiFile.kt101 fun apiVariantFor(apiSurfaces: ApiSurfaces): ApiVariant { in <lambda>()
103 if (forMainApiSurface) apiSurfaces.main in <lambda>()
105 apiSurfaces.base in <lambda>()
318 val apiSurfaces = codebaseConfig.apiSurfaces constant
323 val apiVariant = signatureFile.apiVariantFor(apiSurfaces)

12