Home
last modified time | relevance | path

Searched refs:baseline (Results 1 – 9 of 9) sorted by relevance

/tools/metalava/
DAPI-LINT.md42 baseline to see if a given issue is already listed in the baseline, and if so,
45 You can pass a flag to metalava ("--update-baseline") to tell it to update the
46 baseline files with any new errors it comes across instead of reporting
47 them. With soong, if you specify the baseline explicitly, like this:
55 ==> baseline_filename: "api/baseline.txt", <==
60 then the build system will automatically supply `--update-baseline` on your
62 will tell you where to find the updated baseline which you can then copy into
72 2. You can update the baseline by executing the following
75 …soong/.intermediates/frameworks/base/system-api-stubs-docs/android_common/api/system-baseline.txt \
76 frameworks/base/api/system-baseline.txt
[all …]
DREADME.md192 * Baselines: Metalava can report all of its issues into a "baseline" file, which
195 baseline. This lets you enforce new issues going forward without having to
197 regenerate the baseline. For issues with some false positives, such as API
/tools/metalava/src/main/java/com/android/tools/metalava/
DReporter.kt105 private fun getBaseline(): Baseline? = customBaseline ?: options.baseline in hasErrors()
114 val baseline = getBaseline() in hasErrors() constant
115 if (element != null && baseline != null && baseline.mark(element, message, id)) { in hasErrors()
129 val baseline = getBaseline() in report() constant
130 if (file != null && baseline != null && baseline.mark(file, message, id)) { in report()
172 val baseline = getBaseline() in report() constant
173 if (item != null && baseline != null && baseline.mark(item, message, id)) { in report()
175 } else if (psi != null && baseline != null && baseline.mark(psi, message, id)) { in report()
DOptions.kt537 var baseline: Baseline? = null in <lambda>() variable in com.android.tools.metalava.Options
1536 baseline = baselineBuilder.build() in <lambda>()
1541 baselineApiLint ?: baseline, in <lambda>()
1545 baselineCompatibilityReleased ?: baseline, in <lambda>()
1552 allBaselines = listOfNotNull(baseline, baselineApiLint, baselineCompatibilityReleased) in <lambda>()
DDriver.kt144 options.allBaselines.forEach { baseline -> in run() method
146 baseline.dumpStats(options.stdout) in run()
148 if (baseline.close()) { in run()
/tools/metalava/src/test/java/com/android/tools/metalava/
DCompatibilityCheckBaselineTest.kt46 fun `Test released-API check, with global baseline`() { in Test released-API check, with global baseline()
51 baseline = """ in Test released-API check, with global baseline()
72 fun `Test released-API check, with compatibility-released baseline`() { in Test released-API check, with compatibility-released baseline()
98 fun `Test released-API check, with compatibility-released baseline, and update baseline`() { in Test released-API check, with compatibility-released baseline, and update baseline()
DApiLintBaselineTest.kt26 fun `Test with global baseline`() { in Test with global baseline()
29 baseline = """ in Test with global baseline()
49 fun `Test with api-lint specific baseline`() { in Test with api-lint specific baseline()
72 fun `Test with api-lint specific baseline with update`() { in Test with api-lint specific baseline with update()
97 fun `Test with non-api-lint specific baseline`() { in Test with non-api-lint specific baseline()
DBaselineTest.kt25 fun `Check baseline`() { in <lambda>()
38 baseline = """ in <lambda>()
159 fun `Check baseline with show annotations`() { in <lambda>()
169 baseline = """ in <lambda>()
254 baseline = """ in <lambda>()
DDriverTest.kt369 baseline: String? = null, in <lambda>()
867 baseline, updateBaseline, mergeBaseline != null in <lambda>()
1080 checkBaseline(ARG_BASELINE, baseline, updateBaseline, mergeBaseline, baselineFile) in <lambda>()