Home
last modified time | relevance | path

Searched refs:apiLevel (Results 1 – 7 of 7) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAndroidJarReader.java75 for (int apiLevel = mMinApi; apiLevel < mApiLevels.length; apiLevel++) { in getApi()
76 File jar = getAndroidJarFile(apiLevel); in getApi()
77 readJar(api, apiLevel, jar); in getApi()
80 int apiLevel = mCodebase.getApiLevel(); in getApi() local
81 if (apiLevel != -1) { in getApi()
82 processCodebase(api, apiLevel); in getApi()
88 int apiLevel = mMinApi - 1; in getApi() local
90 apiLevel++; in getApi()
92 if (apiLevel == mCurrentApi) { in getApi()
96 jar = getAndroidJarFile(apiLevel); in getApi()
[all …]
DAddApisFromCodebase.kt26 fun addApisFromCodebase(api: Api, apiLevel: Int, codebase: Codebase) { in addApisFromCodebase()
39 val newClass = api.addClass(cls.internalName(), apiLevel, cls.deprecated) in addApisFromCodebase()
55 val since = removed?.since ?: apiLevel in addApisFromCodebase()
58 entry.update(apiLevel) in addApisFromCodebase()
78 newClass.addSuperClass(filteredSuperClass.internalName(), apiLevel) in addApisFromCodebase()
81 newClass.addSuperClass(superClass.internalName(), apiLevel) in addApisFromCodebase()
86 newClass.addInterface(superClass.internalName(), apiLevel) in addApisFromCodebase()
91 newClass.addSuperClass("java/lang/Enum", apiLevel) in addApisFromCodebase()
95 … newClass.addMethod("valueOf(Ljava/lang/String;)L" + newClass.name + ";", apiLevel, false) in addApisFromCodebase()
96 newClass.addMethod("values()[L" + newClass.name + ";", apiLevel, false) in addApisFromCodebase()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DCompatibilityCheckTest.kt3073 for (apiLevel in 5..27) { in Test All Android API levels() constant
3074 if (!expected.containsKey(apiLevel)) { in Test All Android API levels()
3077 println("Checking compatibility from API level ${apiLevel - 1} to $apiLevel...") in Test All Android API levels()
3078 val current = getAndroidJar(apiLevel) in Test All Android API levels()
3079 val previous = getAndroidJar(apiLevel - 1) in Test All Android API levels()
3088 suppressLevels[apiLevel] in Test All Android API levels()
3090 … (if ((apiLevel == 19 || apiLevel == 20) && loadPrevAsSignature) ",ChangedType" else "") in Test All Android API levels()
3093 expectedIssues = expected[apiLevel]?.trimIndent() ?: "", in Test All Android API levels()
3099 if (apiLevel >= 21) { in Test All Android API levels()
3114 suppressLevels[apiLevel] in Test All Android API levels()
[all …]
DDriverTest.kt1345 private fun getAndroidJarFromEnv(apiLevel: Int): File { in <lambda>()
1349 val jar = File(sdkRoot, "platforms/android-$apiLevel/android.jar") in <lambda>()
1356 fun getAndroidJar(apiLevel: Int = API_LEVEL): File { in <lambda>()
1357 val localFile = File("../../prebuilts/sdk/$apiLevel/public/android.jar") in <lambda>()
1361 val androidJar = File("../../prebuilts/sdk/$apiLevel/android.jar") in <lambda>()
1363 return getAndroidJarFromEnv(apiLevel) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/
DOptions.kt1661 var apiLevel = minApi - 1 in <lambda>() variable
1663 apiLevel++ in <lambda>()
1666 if (apiLevel == currentApiLevel) { in <lambda>()
1670 jar = getAndroidJarFile(apiLevel, androidJarPatterns) in <lambda>()
1677 if (apiLevel < 28) { in <lambda>()
1686 stderr = "Could not find android.jar for API level $apiLevel; the " + in <lambda>()
1694 stdout.println("Found API $apiLevel at ${jar.path}") in <lambda>()
1705 private fun getAndroidJarFile(apiLevel: Int, patterns: List<String>): File? { in <lambda>()
1708 .map { fileForPathInner(it.replace("%", apiLevel.toString())) } in <lambda>()
DDriver.kt254 codebase.apiLevel = options.currentApiLevel + in processFlags()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt61 var apiLevel: Int in <lambda>() variable
272 override var apiLevel: Int = -1 variable in com.android.tools.metalava.model.DefaultCodebase