Home
last modified time | relevance | path

Searched refs:Issue (Results 1 – 15 of 15) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java24 import com.android.apksig.ApkVerifier.Issue;
246 assertVerificationFailure("v2-stripped.apk", Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected()
253 Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected()
261 assertVerificationFailure("v3-stripped.apk", Issue.V2_SIG_MISSING_APK_SIG_REFERENCED); in testV3StrippedRejected()
333 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected()
339 Issue.V2_SIG_VERIFY_EXCEPTION); in testV2SignatureDoesNotMatchSignedDataRejected()
344 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected()
354 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected()
359 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected()
365 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected()
[all …]
DApkSignerTest.java29 import com.android.apksig.ApkVerifier.Issue;
672 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testRsaSignedVerifies()
690 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDsaSignedVerifies()
705 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testEcSignedVerifies()
1354 private static void assertVerificationFailure(ApkVerifier.Result result, Issue expectedIssue) { in assertVerificationFailure()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java22 import com.android.apksig.ApkVerifier.Issue;
186 result.addError(Issue.V3_INCONSISTENT_SDK_VERSIONS); in verify()
196 result.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify()
206 result.addError(Issue.V3_MISSING_SDK_VERSIONS, firstMin, lastMax); in verify()
213 result.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify()
240 result.addError(Issue.V3_SIG_MALFORMED_SIGNERS); in parseSigners()
244 result.addError(Issue.V3_SIG_NO_SIGNERS); in parseSigners()
266 signerInfo.addError(Issue.V3_SIG_MALFORMED_SIGNER); in parseSigners()
302 Issue.V3_SIG_INVALID_SDK_VERSIONS, parsedMinSdkVersion, parsedMaxSdkVersion); in parseSigner()
321 result.addWarning(Issue.V3_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DIssueConfiguration.kt24 private val overrides = mutableMapOf<Issues.Issue, Severity>()
27 fun getSeverity(issue: Issues.Issue): Severity { in getSeverity()
35 fun setSeverity(issue: Issues.Issue, severity: Severity) { in setSeverity()
41 fun error(issue: Issues.Issue) { in error()
46 fun hide(issue: Issues.Issue) { in hide()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java19 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, e); 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/internal/apk/v4/
DV4SchemeVerifier.java22 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()
135 result.addError(Issue.V4_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseAndVerifySignatureBlock()
152 result.addError(Issue.V4_SIG_MALFORMED_PUBLIC_KEY, e); in parseAndVerifySignatureBlock()
164 result.addError(Issue.V4_SIG_DID_NOT_VERIFY, signatureAlgorithm); in parseAndVerifySignatureBlock()
170 result.addError(Issue.V4_SIG_VERIFY_EXCEPTION, signatureAlgorithm, e); in parseAndVerifySignatureBlock()
175 result.addError(Issue.V4_SIG_NO_CERTIFICATE); in parseAndVerifySignatureBlock()
189 result.addError(Issue.V4_SIG_MALFORMED_CERTIFICATE, e); in parseAndVerifySignatureBlock()
205 Issue.V4_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD, in parseAndVerifySignatureBlock()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java131 result.addWarning(ApkVerifier.Issue.SOURCE_STAMP_NO_SIGNATURE); in verifyV2SourceStamp()
162 result.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_CERTIFICATE, e); in verifySourceStampCertificate()
180 ApkVerifier.Issue in verifySourceStampCertificate()
210 ApkVerifier.Issue.SOURCE_STAMP_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in verifySourceStampSignature()
217 ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE, signatureCount); in verifySourceStampSignature()
222 result.addWarning(ApkVerifier.Issue.SOURCE_STAMP_NO_SIGNATURE); in verifySourceStampSignature()
232 result.addWarning(ApkVerifier.Issue.SOURCE_STAMP_NO_SUPPORTED_SIGNATURE); in verifySourceStampSignature()
252 ApkVerifier.Issue.SOURCE_STAMP_DID_NOT_VERIFY, signatureAlgorithm); in verifySourceStampSignature()
260 ApkVerifier.Issue.SOURCE_STAMP_VERIFY_EXCEPTION, signatureAlgorithm, e); in verifySourceStampSignature()
DV1SourceStampVerifier.java125 signerInfo.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
DV2SourceStampVerifier.java124 signerInfo.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java25 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/
DApkVerifier.java307 Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION, in verify()
367 result.addWarning(Issue.SOURCE_STAMP_SIG_MISSING); in verify()
407 v1Signer.addError(Issue.V2_SIG_MISSING); in verify()
415 v2Signer.addError(Issue.JAR_SIG_MISSING); in verify()
433 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify()
441 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify()
452 result.addError(Issue.V3_SIG_MULTIPLE_SIGNERS); in verify()
457 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify()
471 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify()
475 result.addError(Issue.V3_SIG_PAST_SIGNERS_MISMATCH); in verify()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt46 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>()
DReporter.kt103 fun report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in getBaseline()
118 fun report(id: Issues.Issue, file: File?, message: String): Boolean { in report()
133 fun report(id: Issues.Issue, item: Item?, message: String, psi: PsiElement? = null): Boolean { in report()
140 … which: (severity: Severity, location: String?, message: String, id: Issues.Issue) -> Boolean in report()
178 fun isSuppressed(id: Issues.Issue, item: Item? = null, message: String? = null): Boolean { in isSuppressed()
290 … private fun doReport(severity: Severity, location: String?, message: String, id: Issues.Issue?) = in doReport()
297 id: Issues.Issue? = null, in doReport()
331 id: Issues.Issue?, in format()
409 id: Issues.Issue in reportEvenIfSuppressed()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java260 ApkVerifier.Issue.V2_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity()
266 ApkVerifier.Issue.V3_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity()
1432 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError()
1436 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
1464 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError()
1468 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
/tools/metalava/
DAPI-LINT.md116 Count Issue Id Rule Severity