Home
last modified time | relevance | path

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

12

/tools/metalava/metalava-testing/src/test/java/com/android/tools/metalava/testing/
DMutableBaselineFileTest.kt49 val baseline = BaselineFile.forProject(projectDir, RESOURCE_PATH) in Update file() constant
56 baseline.write() in Update file()
60 baseline.removeExpectedFailure("Class1", "Method1") in Update file()
61 baseline.addExpectedFailure("Class2", "Method1") in Update file()
62 baseline.addExpectedFailure("Class3", "Method3") in Update file()
63 baseline.addExpectedFailure("Class3", "Method1") in Update file()
64 baseline.write() in Update file()
88 val baseline = BaselineFile.forProject(projectDir, RESOURCE_PATH) in Write empty() constant
89 baseline.write() in Write empty()
104 val baseline = BaselineFile.forProject(projectDir, RESOURCE_PATH) in Write empty after removing last failure() constant
[all …]
/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 …]
/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/
DBaselineFile.kt49 val baseline = MutableBaselineFile(baselineFile = baselineFile) in <lambda>() constant
51 baselineFile.reader().use { baseline.read(it, baselineFile.path) } in <lambda>()
53 return baseline in <lambda>()
62 val baseline = MutableBaselineFile() in <lambda>() constant
65 resource?.openStream()?.reader()?.use { baseline.read(it, resource.toExternalForm()) } in <lambda>()
66 return baseline in <lambda>()
DBaselineTestRule.kt40 private val baseline = BaselineFile.fromResource(resourcePath) constant
46 baseline.isExpectedFailure(description.className, description.methodName) in apply()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/compatibility/
DCompatibilityCheckBaselineTest.kt50 fun `Test released-API check, with global baseline`() { in Test released-API check, with global baseline()
82 fun `Test released-API check, with compatibility-released baseline`() { in Test released-API check, with compatibility-released baseline()
114 fun `Test released-API check, with compatibility-released baseline, and update baseline`() { in Test released-API check, with compatibility-released baseline, and update baseline()
/tools/metalava/metalava-model-testsuite-cli/src/main/java/com/android/tools/metalava/model/testsuite/cli/
DUpdateBaselineCommand.kt77 val baseline = BaselineFile.forFile(baselineFile) in run() constant
82 val failureCollector = FailureCollector(baseline) in run()
94 baseline.write() in run()
97 private class FailureCollector(private val baseline: MutableBaselineFile) : DefaultHandler() { constant in com.android.tools.metalava.model.testsuite.cli.UpdateBaselineCommand.FailureCollector
149 baseline.addExpectedFailure(className, testName) in endElement()
154 baseline.removeExpectedFailure(className, testName) in endElement()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/lint/
DApiLintBaselineTest.kt33 fun `Test with global baseline`() { in Test with global baseline()
61 fun `Test with api-lint specific baseline`() { in Test with api-lint specific baseline()
89 fun `Test with api-lint specific baseline with update`() { in Test with api-lint specific baseline with update()
118 fun `Test with non-api-lint specific baseline`() { in Test with non-api-lint specific baseline()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DGeneralReportingOptions.kt63 internal val baseline by baselineOptionsMixin::baseline constant
DOptions.kt944 val baseline = generalReportingOptions.baseline in parse() constant
949 baseline = baseline, in parse()
957 baseline = apiLintOptions.baseline ?: baseline, in parse()
966 baseline = compatibilityCheckOptions.baseline ?: baseline, in parse()
976 listOfNotNull(baseline, apiLintOptions.baseline, compatibilityCheckOptions.baseline) in parse()
DDefaultReporter.kt47 private val baseline: Baseline? = null, constant in com.android.tools.metalava.DefaultReporter
149 if (baseline != null) { in hasErrors()
162 if (baselineKey != null && baseline.mark(baselineKey, message, id)) return false in hasErrors()
307 val file = baseline?.file in getBaselineDescription()
DMainCommand.kt154 optionGroup.allBaselines.forEach { baseline -> in <lambda>() method
156 baseline.dumpStats(optionGroup.stdout) in <lambda>()
158 if (baseline.close()) { in <lambda>()
/tools/metalava/scripts/
Drefresh-baselines.py42 baseline = BaselineProject(
46 projects.append(baseline)
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DBaselineTest.kt31 fun `Check baseline`() { in <lambda>()
177 fun `Check baseline with show annotations`() { in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/lint/
DApiLintOptions.kt125 internal val baseline by baselineOptionsMixin::baseline constant
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/compatibility/
DCompatibilityCheckOptions.kt144 internal val baseline by baselineOptionsMixin::baseline in <lambda>() constant
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/baseline/
DDeviceBaselineSetter.java17 package com.android.tradefed.suite.checker.baseline;
DCommandBaselineSetter.java17 package com.android.tradefed.suite.checker.baseline;
DSettingsBaselineSetter.java17 package com.android.tradefed.suite.checker.baseline;
DLockSettingsBaselineSetter.java17 package com.android.tradefed.suite.checker.baseline;
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DDeviceBaselineCheckerTest.java28 import com.android.tradefed.suite.checker.baseline.DeviceBaselineSetter;
29 import com.android.tradefed.suite.checker.baseline.SettingsBaselineSetter;
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/baseline/
DDeviceBaselineSetterTest.java17 package com.android.tradefed.suite.checker.baseline;
DSettingsBaselineSetterTest.java17 package com.android.tradefed.suite.checker.baseline;
DCommandBaselineSetterTest.java17 package com.android.tradefed.suite.checker.baseline;
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DBaselineOptionsMixin.kt85 val baseline by constant
/tools/tradefederation/core/javatests/res/testtype/
Dgtest_list2.txt27 baseline

12