Home
last modified time | relevance | path

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

/tools/metalava/metalava-reporter/src/main/java/com/android/tools/metalava/reporter/
DIssues.kt23 private val allIssues: MutableList<Issue> = ArrayList(300)
26 val all: List<Issue> by this::allIssues
28 private val nameToIssue: MutableMap<String, Issue> = HashMap(300)
30 val PARSE_ERROR by Issue(Severity.ERROR)
31 val DUPLICATE_SOURCE_CLASS by Issue(Severity.WARNING)
33 val ADDED_PACKAGE by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
34 val ADDED_CLASS by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
35 val ADDED_METHOD by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
36 val ADDED_FIELD by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
37 val ADDED_INTERFACE by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
[all …]
DIssueConfiguration.kt21 private val overrides = mutableMapOf<Issues.Issue, Severity>()
24 fun getSeverity(issue: Issues.Issue): Severity { in getSeverity()
34 fun setSeverity(issue: Issues.Issue, severity: Severity) { in setSeverity()
40 fun error(issue: Issues.Issue) { in error()
45 fun hide(issue: Issues.Issue) { in hide()
DReporter.kt37 id: Issues.Issue, in report()
83 id: Issues.Issue, in report()
99 id: Issues.Issue, in report()
111 id: Issues.Issue, in report()
140 id: Issues.Issue, in report()
DBaseline.kt74 private val map = HashMap<Issues.Issue, MutableMap<String, String>>() in <lambda>()
87 fun mark(key: BaselineKey, message: String, issue: Issues.Issue): Boolean { in <lambda>()
100 private fun mark(elementId: String, message: String, issue: Issues.Issue): Boolean { in <lambda>()
232 val counts = mutableMapOf<Issues.Issue, Int>() in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java34 import com.android.apksig.ApkVerifier.Issue;
289 assertVerificationFailure("v1-only-11-signers.apk", Issue.JAR_SIG_MAX_SIGNATURES_EXCEEDED); in testV1MoreThanMaxSupportedSignersRejected()
299 assertVerificationFailure("v2-stripped.apk", Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected()
306 Issue.JAR_SIG_MISSING_APK_SIG_REFERENCED); in testV2StrippedRejected()
314 assertVerificationFailure("v3-stripped.apk", Issue.V2_SIG_MISSING_APK_SIG_REFERENCED); in testV3StrippedRejected()
581 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected()
588 Issue.V2_SIG_VERIFY_EXCEPTION, Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected()
593 Issue.V2_SIG_DID_NOT_VERIFY); in testV2SignatureDoesNotMatchSignedDataRejected()
603 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected()
608 Issue.V3_SIG_DID_NOT_VERIFY); in testV3SignatureDoesNotMatchSignedDataRejected()
[all …]
DApkSignerTest.java54 import com.android.apksig.ApkVerifier.Issue;
1125 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testRsaSignedVerifies()
1143 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDsaSignedVerifies()
1166 verifyForMinSdkVersion(out, 20), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testDeterministicDsaSignedVerifies()
1216 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testEcSignedVerifies()
3929 private static void assertVerificationFailure(ApkVerifier.Result result, Issue expectedIssue) { in assertVerificationFailure()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java23 import com.android.apksig.ApkVerifier.Issue;
208 mResult.addError(Issue.V3_INCONSISTENT_SDK_VERSIONS); in verify()
218 mResult.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify()
231 mResult.addError(Issue.V3_MISSING_SDK_VERSIONS, firstMin, lastMax); in verify()
238 mResult.addError(Issue.V3_INCONSISTENT_LINEAGES); in verify()
299 mResult.addError(Issue.V3_SIG_MALFORMED_SIGNERS); in parseSigners()
303 mResult.addError(Issue.V3_SIG_NO_SIGNERS); in parseSigners()
325 signerInfo.addError(Issue.V3_SIG_MALFORMED_SIGNER); in parseSigners()
359 Issue.V3_SIG_INVALID_SDK_VERSIONS, parsedMinSdkVersion, parsedMaxSdkVersion); in parseSigner()
378 result.addWarning(Issue.V3_SIG_UNKNOWN_SIG_ALGORITHM, sigAlgorithmId); in parseSigner()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java95 private static final Set<Issue> LINEAGE_RELATED_ISSUES = new HashSet<>(Arrays.asList(
96 Issue.V3_SIG_MALFORMED_LINEAGE, Issue.V3_INCONSISTENT_LINEAGES,
97 Issue.V3_SIG_POR_DID_NOT_VERIFY, Issue.V3_SIG_POR_CERT_MISMATCH));
271 result.addError(Issue.V31_BLOCK_FOUND_WITHOUT_V3_BLOCK); in verify()
331 Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION, in verify()
391 result.addWarning(Issue.SOURCE_STAMP_SIG_MISSING); in verify()
431 v1Signer.addError(Issue.V2_SIG_MISSING); in verify()
439 v2Signer.addError(Issue.JAR_SIG_MISSING); in verify()
457 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify()
465 result.addError(Issue.V3_SIG_MULTIPLE_PAST_SIGNERS); in verify()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java21 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/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()
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/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java26 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/metalava/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt51 private interface Issue { in <lambda>() interface
59 ) : Issue { in <lambda>()
73 ) : Issue { in <lambda>()
204 val fatalIssues = mutableListOf<Issue>() in <lambda>()
205 val nonFatalIssues = mutableListOf<Issue>() in <lambda>()
DDefaultReporter.kt92 id: Issues.Issue, in hasErrors()
115 severity: Severity, location: String?, message: String, id: Issues.Issue in hasErrors()
169 id: Issues.Issue, in isSuppressed()
231 id: Issues.Issue?, in doReport()
249 id: Issues.Issue?, in format()
278 id: Issues.Issue in reportEvenIfSuppressed()
/tools/apifinder/checks/src/test/java/com/android/apifinder/
DApiFinderDetectorTest.kt5 import com.android.tools.lint.detector.api.Issue
101 override fun getIssues(): List<Issue> { in getIssues()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/help/
DIssueCommand.kt20 import com.android.tools.metalava.reporter.Issues.Issue
25 class IssueCommand(val issue: Issue) :
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt43 import com.android.tools.metalava.reporter.Issues.Issue
784 private fun handleAdded(issue: Issue, item: Item) { in handleAdded()
813 private fun handleRemoved(issue: Issue, item: Item) { in handleRemoved()
967 issue: Issue, in report()
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt87 val ISSUE = Issue.create(
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampVerifier.java125 signerInfo.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java216 ApkVerifier.Issue.V2_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity()
222 ApkVerifier.Issue.V3_SIG_APK_DIGEST_DID_NOT_VERIFY, in verifyIntegrity()
1324 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError()
1328 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
1356 public void addError(ApkVerifier.Issue msg, Object... parameters) { in addError()
1360 public void addWarning(ApkVerifier.Issue msg, Object... parameters) { in addWarning()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiFileLocation.kt234 fun Reporter.report(id: Issues.Issue, element: PsiElement?, message: String): Boolean { in Reporter()
/tools/metalava/
DAPI-LINT.md116 Count Issue Id Rule Severity