/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/ |
D | Issues.kt | 27 private val allIssues: MutableList<Issue> = ArrayList(200) 28 private val nameToIssue: MutableMap<String, Issue> = HashMap(200) 29 private val idToIssue: MutableMap<Int, Issue> = HashMap(200) 31 val PARSE_ERROR = Issue(1, Severity.ERROR) 32 val ADDED_PACKAGE = Issue(2, Severity.WARNING, Category.COMPATIBILITY) 33 val ADDED_CLASS = Issue(3, Severity.WARNING, Category.COMPATIBILITY) 34 val ADDED_METHOD = Issue(4, Severity.WARNING, Category.COMPATIBILITY) 35 val ADDED_FIELD = Issue(5, Severity.WARNING, Category.COMPATIBILITY) 36 val ADDED_INTERFACE = Issue(6, Severity.WARNING, Category.COMPATIBILITY) 37 val REMOVED_PACKAGE = Issue(7, Severity.WARNING, Category.COMPATIBILITY) [all …]
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 23 import com.android.apksig.ApkVerifier.Issue; 250 "v2-stripped.apk", Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected() 257 Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected() 266 "v3-stripped.apk", Issue.V2_SIG_MISSING_APK_SIG_REFERENCED); in testV3StrippedRejected() 336 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected() 342 Issue.V2_SIG_VERIFY_EXCEPTION); in testV2SignatureDoesNotMatchSignedDataRejected() 347 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected() 357 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected() 362 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected() 368 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected() [all …]
|
D | ApkSignerTest.java | 22 import com.android.apksig.ApkVerifier.Issue; 591 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testRsaSignedVerifies() 609 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDsaSignedVerifies() 624 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testEcSignedVerifies() 985 private static void assertVerificationFailure(ApkVerifier.Result result, Issue expectedIssue) { in assertVerificationFailure()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 22 import com.android.apksig.ApkVerifier.Issue; 185 result.addError(Issue.V3_INCONSISTENT_SDK_VERSIONS); in verify() 195 result.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify() 205 result.addError(Issue.V3_MISSING_SDK_VERSIONS, firstMin, lastMax); in verify() 212 result.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify() 239 result.addError(Issue.V3_SIG_MALFORMED_SIGNERS); in parseSigners() 243 result.addError(Issue.V3_SIG_NO_SIGNERS); in parseSigners() 265 signerInfo.addError(Issue.V3_SIG_MALFORMED_SIGNER); in parseSigners() 301 Issue.V3_SIG_INVALID_SDK_VERSIONS, parsedMinSdkVersion, parsedMaxSdkVersion); in parseSigner() 320 result.addWarning(Issue.V3_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 19 import com.android.apksig.ApkVerifier.Issue; 159 result.addError(Issue.JAR_SIG_DUPLICATE_ZIP_ENTRY, entryName); in checkForDuplicateEntries() 188 result.addError(Issue.JAR_SIG_UNNNAMED_MANIFEST_SECTION, manifestSectionNumber); in parseManifest() 192 result.addError(Issue.JAR_SIG_DUPLICATE_MANIFEST_SECTION, entryName); in parseManifest() 197 Issue.JAR_SIG_MISSING_ZIP_ENTRY_REFERENCED_IN_MANIFEST, entryName); in parseManifest() 250 result.addError(Issue.JAR_SIG_NO_MANIFEST); in verify() 292 Issue.JAR_SIG_MISSING_FILE, sigBlockEntryName, sigFileEntryName); in verify() 303 result.addError(Issue.JAR_SIG_NO_SIGNATURES); in verify() 350 result.addError(Issue.JAR_SIG_NO_SIGNATURES); in verify() 397 result.addWarning(Issue.JAR_SIG_UNPROTECTED_ZIP_ENTRY, entryName); in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 19 import com.android.apksig.ApkVerifier.Issue; 190 result.addError(Issue.V2_SIG_MALFORMED_SIGNERS); in parseSigners() 194 result.addError(Issue.V2_SIG_NO_SIGNERS); in parseSigners() 224 signerInfo.addError(Issue.V2_SIG_MALFORMED_SIGNER); in parseSigners() 275 result.addWarning(Issue.V2_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner() 281 result.addError(Issue.V2_SIG_MALFORMED_SIGNATURE, signatureCount); in parseSigner() 286 result.addError(Issue.V2_SIG_NO_SIGNATURES); in parseSigner() 297 result.addError(Issue.V2_SIG_NO_SUPPORTED_SIGNATURES); in parseSigner() 313 result.addError(Issue.V2_SIG_MALFORMED_PUBLIC_KEY, e); in parseSigner() 326 result.addError(Issue.V2_SIG_DID_NOT_VERIFY, signatureAlgorithm); in parseSigner() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 273 Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION, in verify() 330 v1Signer.addError(Issue.V2_SIG_MISSING); in verify() 338 v2Signer.addError(Issue.JAR_SIG_MISSING); in verify() 356 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify() 364 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify() 375 result.addError(Issue.V3_SIG_MULTIPLE_SIGNERS); in verify() 380 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify() 394 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify() 398 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify() 616 void addError(Issue msg, Object... parameters) { in addError() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Reporter.kt | 104 fun report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in hasErrors() 119 fun report(id: Issues.Issue, file: File?, message: String): Boolean { in report() 134 fun report(id: Issues.Issue, item: Item?, message: String, psi: PsiElement? = null): Boolean { in report() 141 … which: (severity: Severity, location: String?, message: String, id: Issues.Issue) -> Boolean in report() 179 fun isSuppressed(id: Issues.Issue, item: Item? = null, message: String? = null): Boolean { in isSuppressed() 294 … private fun doReport(severity: Severity, location: String?, message: String, id: Issues.Issue?) = in doReport() 301 id: Issues.Issue? = null, in doReport() 332 id: Issues.Issue?, in format() 410 id: Issues.Issue in reportEvenIfSuppressed()
|
D | Baseline.kt | 61 private val map = HashMap<Issues.Issue, MutableMap<String, String>>() in <lambda>() 71 fun mark(element: Item, message: String, issue: Issues.Issue): Boolean { in <lambda>() 77 fun mark(element: PsiElement, message: String, issue: Issues.Issue): Boolean { in <lambda>() 83 fun mark(file: File, message: String, issue: Issues.Issue): Boolean { in <lambda>() 88 …k(elementId: String, @Suppress("UNUSED_PARAMETER") message: String, issue: Issues.Issue): Boolean { in <lambda>() 268 val counts = mutableMapOf<Issues.Issue, Int>() in <lambda>()
|
D | NullabilityAnnotationsValidator.kt | 46 private interface Issue { in <lambda>() interface 54 ) : Issue { in <lambda>() 68 ) : Issue { in <lambda>() 190 val fatalIssues = mutableListOf<Issue>() in <lambda>() 191 val nonFatalIssues = mutableListOf<Issue>() in <lambda>()
|
D | CompatibilityCheck.kt | 23 import com.android.tools.metalava.doclava1.Issues.Issue 652 private fun handleAdded(issue: Issue, item: Item) { in handleAdded() 685 private fun handleRemoved(issue: Issue, item: Item) { in handleRemoved() 855 issue: Issue, in report()
|
D | ApiLint.kt | 87 import com.android.tools.metalava.doclava1.Issues.Issue in <lambda>() 181 private fun report(id: Issue, item: Item, message: String, element: PsiElement? = null) { in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | IssueConfiguration.kt | 25 private val overrides = mutableMapOf<Issues.Issue, Severity>() 28 fun getSeverity(issue: Issues.Issue): Severity { in getSeverity() 36 fun setSeverity(issue: Issues.Issue, severity: Severity) { in setSeverity() 42 fun error(issue: Issues.Issue) { in error() 47 fun hide(issue: Issues.Issue) { in hide()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 241 ApkVerifier.Issue.V2_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity() 247 ApkVerifier.Issue.V3_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity() 1289 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError() 1293 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning() 1321 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError() 1325 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
|
/tools/metalava/ |
D | API-LINT.md | 114 Count Issue Id Rule Severity
|