Home
last modified time | relevance | path

Searched refs:Severity (Results 1 – 10 of 10) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/
DIssues.kt26 val PARSE_ERROR = Issue(Severity.ERROR)
28 val ADDED_PACKAGE = Issue(Severity.HIDDEN, Category.COMPATIBILITY)
29 val ADDED_CLASS = Issue(Severity.HIDDEN, Category.COMPATIBILITY)
30 val ADDED_METHOD = Issue(Severity.HIDDEN, Category.COMPATIBILITY)
31 val ADDED_FIELD = Issue(Severity.HIDDEN, Category.COMPATIBILITY)
32 val ADDED_INTERFACE = Issue(Severity.HIDDEN, Category.COMPATIBILITY)
33 val REMOVED_PACKAGE = Issue(Severity.ERROR, Category.COMPATIBILITY)
34 val REMOVED_CLASS = Issue(Severity.ERROR, Category.COMPATIBILITY)
35 val REMOVED_METHOD = Issue(Severity.ERROR, Category.COMPATIBILITY)
36 val REMOVED_FIELD = Issue(Severity.ERROR, Category.COMPATIBILITY)
[all …]
DReporter.kt19 import com.android.tools.metalava.Severity.ERROR in <lambda>()
20 import com.android.tools.metalava.Severity.HIDDEN in <lambda>()
21 import com.android.tools.metalava.Severity.INFO in <lambda>()
22 import com.android.tools.metalava.Severity.INHERIT in <lambda>()
23 import com.android.tools.metalava.Severity.LINT in <lambda>()
24 import com.android.tools.metalava.Severity.WARNING in <lambda>()
50 enum class Severity(private val displayName: String) { in <lambda>() class
144 … which: (severity: Severity, location: String?, message: String, id: Issues.Issue) -> Boolean in report()
296 … private fun doReport(severity: Severity, location: String?, message: String, id: Issues.Issue?) = in doReport()
300 severity: Severity, in doReport()
[all …]
DOptions.kt1055 Severity.ERROR, in <lambda>()
1060 Severity.WARNING, in <lambda>()
1063 ARG_LINT, "-lint" -> setIssueSeverity(getValue(args, ++index), Severity.LINT, arg) in <lambda>()
1064 ARG_HIDE, "-hide" -> setIssueSeverity(getValue(args, ++index), Severity.HIDDEN, arg) in <lambda>()
1733 Severity.WARNING, null as String?, "Ignoring javadoc-related doclava1 flag $arg", in <lambda>()
1750 reporter.report(Severity.WARNING, null as String?, message, color = color) in <lambda>()
2357 severity: Severity, in <lambda>()
DBaseline.kt91 … if (options.baselineErrorsOnly && configuration.getSeverity(issue) != Severity.ERROR) { in <lambda>()
DCompatibilityCheck.kt916 … if (reporter.report(issue, item, message) && configuration.getSeverity(issue) == Severity.ERROR) { in report()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DIssueConfiguration.kt21 import com.android.tools.metalava.Severity
25 private val overrides = mutableMapOf<Issues.Issue, Severity>()
28 fun getSeverity(issue: Issues.Issue): Severity { in getSeverity()
30 if (issue.defaultLevel == Severity.INHERIT) { in getSeverity()
36 fun setSeverity(issue: Issues.Issue, severity: Severity) { in setSeverity()
37 check(severity != Severity.INHERIT) in setSeverity()
43 setSeverity(issue, Severity.ERROR) in error()
48 setSeverity(issue, Severity.HIDDEN) in hide()
/tools/metalava/src/test/java/com/android/tools/metalava/
DOptionsTest.kt476 assertEquals(Severity.HIDDEN, defaultConfiguration.getSeverity(Issues.START_WITH_LOWER)) in Test issue severity options()
477 assertEquals(Severity.LINT, defaultConfiguration.getSeverity(Issues.ENDS_WITH_IMPL)) in Test issue severity options()
478 assertEquals(Severity.WARNING, defaultConfiguration.getSeverity(Issues.START_WITH_UPPER)) in Test issue severity options()
479 assertEquals(Severity.ERROR, defaultConfiguration.getSeverity(Issues.ARRAY_RETURN)) in Test issue severity options()
487 assertEquals(Severity.HIDDEN, defaultConfiguration.getSeverity(Issues.START_WITH_LOWER)) in Test multiple issue severity options()
488 assertEquals(Severity.HIDDEN, defaultConfiguration.getSeverity(Issues.START_WITH_UPPER)) in Test multiple issue severity options()
489 assertEquals(Severity.HIDDEN, defaultConfiguration.getSeverity(Issues.ARRAY_RETURN)) in Test multiple issue severity options()
497 assertEquals(Severity.ERROR, defaultConfiguration.getSeverity(Issues.REMOVED_CLASS)) in Test issue severity options with inheriting issues()
498 … assertEquals(Severity.ERROR, defaultConfiguration.getSeverity(Issues.REMOVED_DEPRECATED_CLASS)) in Test issue severity options with inheriting issues()
507 assertEquals(Severity.HIDDEN, defaultConfiguration.getSeverity(Issues.ARRAY_RETURN)) in Test issue severity options with case insensitive names()
DDriverTest.kt488 if (severity == Severity.ERROR) { in <lambda>()
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt93 severity = Severity.INFORMATIONAL,
/tools/metalava/
DAPI-LINT.md116 Count Issue Id Rule Severity