/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Issues.kt | 23 private val allIssues: MutableList<Issue> = ArrayList(300) 24 private val nameToIssue: MutableMap<String, Issue> = HashMap(300) 26 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) [all …]
|
D | Reporter.kt | 107 fun report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in hasErrors() 122 fun report(id: Issues.Issue, file: File?, message: String): Boolean { in report() 137 fun report(id: Issues.Issue, item: Item?, message: String, psi: PsiElement? = null): Boolean { in report() 144 … which: (severity: Severity, location: String?, message: String, id: Issues.Issue) -> Boolean in report() 182 fun isSuppressed(id: Issues.Issue, item: Item? = null, message: String? = null): Boolean { in isSuppressed() 296 … private fun doReport(severity: Severity, location: String?, message: String, id: Issues.Issue?) = in doReport() 303 id: Issues.Issue? = null, in doReport() 334 id: Issues.Issue?, in format() 391 id: Issues.Issue in reportEvenIfSuppressed()
|
D | NullabilityAnnotationsValidator.kt | 45 private interface Issue { in <lambda>() interface 53 ) : Issue { in <lambda>() 67 ) : Issue { in <lambda>() 189 val fatalIssues = mutableListOf<Issue>() in <lambda>() 190 val nonFatalIssues = mutableListOf<Issue>() in <lambda>()
|
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>() 267 val counts = mutableMapOf<Issues.Issue, Int>() in <lambda>()
|
D | CompatibilityCheck.kt | 19 import com.android.tools.metalava.Issues.Issue 702 private fun handleAdded(issue: Issue, item: Item) { in handleAdded() 740 private fun handleRemoved(issue: Issue, item: Item) { in handleRemoved() 912 issue: Issue, in report()
|
D | ApiLint.kt | 89 import com.android.tools.metalava.Issues.Issue in <lambda>() 185 private fun report(id: Issue, item: Item, message: String, element: PsiElement? = null) { in <lambda>()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 29 import com.android.apksig.ApkVerifier.Issue; 265 assertVerificationFailure("v1-only-11-signers.apk", Issue.JAR_SIG_MAX_SIGNATURES_EXCEEDED); in testV1MoreThanMaxSupportedSignersRejected() 275 assertVerificationFailure("v2-stripped.apk", Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected() 282 Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected() 290 assertVerificationFailure("v3-stripped.apk", Issue.V2_SIG_MISSING_APK_SIG_REFERENCED); in testV3StrippedRejected() 362 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected() 368 Issue.V2_SIG_VERIFY_EXCEPTION); in testV2SignatureDoesNotMatchSignedDataRejected() 373 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected() 383 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected() 388 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected() [all …]
|
D | ApkSignerTest.java | 30 import com.android.apksig.ApkVerifier.Issue; 733 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testRsaSignedVerifies() 751 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDsaSignedVerifies() 772 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDeterministicDsaSignedVerifies() 809 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testEcSignedVerifies() 2440 private static void assertVerificationFailure(ApkVerifier.Result result, Issue expectedIssue) { in assertVerificationFailure()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 255 result.addError(Issue.V31_BLOCK_FOUND_WITHOUT_V3_BLOCK); in verify() 315 Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION, in verify() 375 result.addWarning(Issue.SOURCE_STAMP_SIG_MISSING); in verify() 415 v1Signer.addError(Issue.V2_SIG_MISSING); in verify() 423 v2Signer.addError(Issue.JAR_SIG_MISSING); in verify() 441 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify() 449 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify() 460 result.addError(Issue.V3_SIG_MULTIPLE_SIGNERS); in verify() 465 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify() 479 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 22 import com.android.apksig.ApkVerifier.Issue; 204 mResult.addError(Issue.V3_INCONSISTENT_SDK_VERSIONS); in verify() 214 mResult.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify() 227 mResult.addError(Issue.V3_MISSING_SDK_VERSIONS, firstMin, lastMax); in verify() 234 mResult.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify() 295 mResult.addError(Issue.V3_SIG_MALFORMED_SIGNERS); in parseSigners() 299 mResult.addError(Issue.V3_SIG_NO_SIGNERS); in parseSigners() 321 signerInfo.addError(Issue.V3_SIG_MALFORMED_SIGNER); in parseSigners() 355 Issue.V3_SIG_INVALID_SDK_VERSIONS, parsedMinSdkVersion, parsedMaxSdkVersion); in parseSigner() 374 result.addWarning(Issue.V3_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 21 import com.android.apksig.ApkVerifier.Issue; 189 result.addError(Issue.V2_SIG_MALFORMED_SIGNERS); in parseSigners() 193 result.addError(Issue.V2_SIG_NO_SIGNERS); in parseSigners() 223 signerInfo.addError(Issue.V2_SIG_MALFORMED_SIGNER); in parseSigners() 228 result.addError(Issue.V2_SIG_MAX_SIGNATURES_EXCEEDED, MAX_APK_SIGNERS, signerCount); in parseSigners() 276 result.addWarning(Issue.V2_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner() 282 result.addError(Issue.V2_SIG_MALFORMED_SIGNATURE, signatureCount); in parseSigner() 287 result.addError(Issue.V2_SIG_NO_SIGNATURES); in parseSigner() 298 result.addError(Issue.V2_SIG_NO_SUPPORTED_SIGNATURES, e); in parseSigner() 314 result.addError(Issue.V2_SIG_MALFORMED_PUBLIC_KEY, e); in parseSigner() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 26 import com.android.apksig.ApkVerifier.Issue; 162 result.addError(Issue.JAR_SIG_DUPLICATE_ZIP_ENTRY, entryName); in checkForDuplicateEntries() 191 result.addError(Issue.JAR_SIG_UNNNAMED_MANIFEST_SECTION, manifestSectionNumber); in parseManifest() 195 result.addError(Issue.JAR_SIG_DUPLICATE_MANIFEST_SECTION, entryName); in parseManifest() 200 Issue.JAR_SIG_MISSING_ZIP_ENTRY_REFERENCED_IN_MANIFEST, entryName); in parseManifest() 254 result.addError(Issue.JAR_SIG_NO_MANIFEST); in verify() 296 Issue.JAR_SIG_MISSING_FILE, sigBlockEntryName, sigFileEntryName); in verify() 307 result.addError(Issue.JAR_SIG_NO_SIGNATURES); in verify() 311 result.addError(Issue.JAR_SIG_MAX_SIGNATURES_EXCEEDED, MAX_APK_SIGNERS, in verify() 359 result.addError(Issue.JAR_SIG_NO_SIGNATURES); in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeVerifier.java | 22 import com.android.apksig.ApkVerifier.Issue; 81 result.addError(Issue.V4_SIG_NO_SIGNATURES, in verify() 87 result.addWarning(Issue.V4_SIG_VERSION_NOT_CURRENT, signature.version, in verify() 152 result.addError(Issue.V4_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseAndVerifySignatureBlock() 169 result.addError(Issue.V4_SIG_MALFORMED_PUBLIC_KEY, e); in parseAndVerifySignatureBlock() 181 result.addError(Issue.V4_SIG_DID_NOT_VERIFY, signatureAlgorithm); in parseAndVerifySignatureBlock() 187 result.addError(Issue.V4_SIG_VERIFY_EXCEPTION, signatureAlgorithm, e); in parseAndVerifySignatureBlock() 192 result.addError(Issue.V4_SIG_NO_CERTIFICATE); in parseAndVerifySignatureBlock() 206 result.addError(Issue.V4_SIG_MALFORMED_CERTIFICATE, e); in parseAndVerifySignatureBlock() 222 Issue.V4_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD, in parseAndVerifySignatureBlock() [all …]
|
/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/apifinder/checks/src/test/java/com/android/apifinder/ |
D | ApiFinderDetectorTest.kt | 5 import com.android.tools.lint.detector.api.Issue 101 override fun getIssues(): List<Issue> { in getIssues()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 214 ApkVerifier.Issue.V2_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity() 220 ApkVerifier.Issue.V3_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity() 1314 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError() 1318 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning() 1346 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError() 1350 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
|
/tools/apifinder/checks/src/main/java/com/android/apifinder/ |
D | ApiFinderDetector.kt | 87 val ISSUE = Issue.create(
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampVerifier.java | 125 signerInfo.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
|
/tools/metalava/ |
D | API-LINT.md | 116 Count Issue Id Rule Severity
|