/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 87 assertVerified(verify("original.apk")); in testOriginalAccepted() 258 assertVerified(verify("v1-only-10-signers.apk")); in testV1MaxSupportedSignersAccepted() 469 assertVerified(verify("v1-with-apk-sig-block-but-without-apk-sig-scheme-v2-block.apk")); in testNoApkSignatureSchemeBlockRejected() 492 verify("v2-only-truncated-cd.apk"); in testTruncatedZipCentralDirectoryRejected() 623 assertVerified(verify("two-signers.apk")); in testTwoSignersAccepted() 624 assertVerified(verify("v1-only-two-signers.apk")); in testTwoSignersAccepted() 676 ApkVerifier.Result result = verify("v1-only-pkcs7-cert-bag-first-cert-not-used.apk"); in testCorrectCertUsedFromPkcs7SignedDataCertsSet() 701 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der.apk"); in testV1SchemeSignatureCertNotReencoded() 755 ApkVerifier.Result result = verify("v1-only-with-rsa-1024-cert-not-der2.apk"); in testV1SchemeSignatureCertNotReencoded2() 768 assertVerified(verify("v1-only-max-sized-eocd-comment.apk")); in testMaxSizedZipEocdCommentAccepted() [all …]
|
D | ApkSignerTest.java | 1262 verify(signedApk, /* minSdkVersionOverride= */ null); in testSignApk_existingStampFile_sameSourceStamp() 1314 verify(signedApk, /* minSdkVersionOverride= */ null); in testSignApk_existingStampFile_differentSourceStamp_forceOverwrite() 1368 verify(signedApk, /* minSdkVersionOverride= */ null); in testSignApk_stampBlock_whenV1SignaturePresent() 1438 verify(signedApk, /* minSdkVersion= */ null); in testSignApk_stampBlock_withStampLineage() 1478 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_extraSigBlock_signatureAppended() 1500 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_v1Only_signatureAppended() 1545 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_v2OnlyAppendV2V3SameSigner_signatureAppended() 1617 ApkVerifier.Result result = verify(signedApk, null); in testOtherSignersSignaturesPreserved_v1v2IndividuallySign_signaturesAppended() 1644 ApkVerifier.Result resultMinRotationP = verify(signedApkMinRotationP, null); in testSetMinSdkVersionForRotation_lessThanT_noV31Block() 1656 ApkVerifier.Result resultMinRotationS = verify(signedApkMinRotationS, null); in testSetMinSdkVersionForRotation_lessThanT_noV31Block() [all …]
|
/tools/platform-compat/javatest/com/android/class2nonsdklist/ |
D | UnsupportedAppUsageAnnotationHandlerTest.java | 25 import static org.mockito.Mockito.verify; 102 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistMethod() 123 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistConstructor() 144 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistField() 165 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistImplicit() 185 verify(mStatus, times(1)).error(format.capture(), any()); in testGreylistImplicit_Invalid_MissingOnClass() 207 verify(mStatus, times(1)).error(format.capture(), any()); in testGreylistImplicit_Invalid_PresentOnMember() 229 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistMethodExpectedSignature() 248 verify(mStatus, times(1)).error(any(), any()); in testGreylistMethodExpectedSignatureWrong() 270 verify(mConsumer, times(1)).consume(greylist.capture(), any(), any()); in testGreylistInnerClassMethod() [all …]
|
D | CovariantReturnTypeHandlerTest.java | 25 import static org.mockito.Mockito.verify; 84 verify(mConsumer, times(1)).consume( in testReturnTypeWhitelisted() 107 verify(mStatus, atLeastOnce()).error(any(), any()); in testAnnotatedMemberNotPublicApi() 132 verify(mStatus, atLeastOnce()).error(any(), any()); in testReturnTypeAlreadyWhitelisted() 154 verify(mStatus, atLeastOnce()).error(any(), any()); in testAnnotationOnField()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | StoredEntry.java | 260 verifyLog.verify( in StoredEntry() 263 verifyLog.verify(cdh.getCrc32() == 0, "Directory has CRC32 = %s.", cdh.getCrc32()); in StoredEntry() 264 verifyLog.verify( in StoredEntry() 275 verifyLog.verify( in StoredEntry() 292 Verify.verify(header.getOffset() >= 0, "Files that are not on disk cannot have the " in StoredEntry() 439 F_LOCAL_SIGNATURE.verify(bytes); in readLocalHeader() 440 F_VERSION_EXTRACT.verify(bytes, compressInfo.getVersionExtract(), verifyLog); in readLocalHeader() 441 F_GP_BIT.verify(bytes, cdh.getGpBit().getValue(), verifyLog); in readLocalHeader() 442 F_METHOD.verify(bytes, compressInfo.getMethod().methodCode, verifyLog); in readLocalHeader() 448 F_LAST_MOD_TIME.verify(bytes, cdh.getLastModTime(), verifyLog); in readLocalHeader() [all …]
|
D | ZipField.java | 190 void verify(@Nonnull ByteBuffer bytes) throws IOException { in verify() method in ZipField 191 verify(bytes, null); in verify() 204 void verify(@Nonnull ByteBuffer bytes, @Nullable VerifyLog verifyLog) throws IOException { in verify() method in ZipField 206 verify(bytes, expected, verifyLog); in verify() 218 void verify(@Nonnull ByteBuffer bytes, long expected) throws IOException { in verify() method in ZipField 219 verify(bytes, expected, null); in verify() 233 void verify( in verify() method in ZipField 272 Verify.verify(size == 4); in write()
|
D | FileUseMap.java | 137 Verify.verify(container.isFree(), "!container.isFree()"); in add() 196 Verify.verify(container.getStart() <= entry.getStart()); in findContainer() 197 Verify.verify(container.getEnd() >= entry.getEnd()); in findContainer() 222 Verify.verify(farStart <= start, "farStart > start"); in split() 223 Verify.verify(start < end, "start >= end"); in split() 224 Verify.verify(farEnd >= end, "farEnd < end"); in split() 342 Verify.verify(last.getEnd() == size); in usedSize() 572 Verify.verify(entry.getStart() <= offset); in at() 573 Verify.verify(entry.getEnd() > offset); in at()
|
D | ZFile.java | 629 Verify.verify(start >= 0, "start < 0"); in readData() 630 Verify.verify(end < map.size(), "end >= map.size()"); in readData() 640 Verify.verify(found != null && !found.isFree()); in readData() 644 Verify.verify(foundEntry != null); in readData() 699 Verify.verify(extraOffset >= 0, "extraOffset (%s) < 0", extraOffset); in readData() 791 Verify.verify(eocdStart >= 0); in readEocd() 1050 Verify.verify(localExtraSize <= MAX_LOCAL_EXTRA_FIELD_CONTENTS_SIZE); in update() 1065 Verify.verify(entry == entries.remove(name)); in update() 1310 Verify.verify(eocd != null); in deleteDirectoryAndEocd() 1478 Verify.verify(directory.getEntries().size() == entries.size()); in computeEocd() [all …]
|
D | Eocd.java | 129 F_SIGNATURE.verify(bytes); in Eocd() 130 F_NUMBER_OF_DISK.verify(bytes); in Eocd() 131 F_DISK_CD_START.verify(bytes); in Eocd() 146 Verify.verify(totalRecords1 <= Integer.MAX_VALUE); in Eocd()
|
D | CentralDirectory.java | 282 F_SIGNATURE.verify(bytes); in readEntry() 286 verifyLog.verify( in readEntry() 296 verifyLog.verify(method != null, "Unknown method in zip directory entry: %s.", methodCode); in readEntry() 317 F_DISK_NUMBER_START.verify(bytes, verifyLog); in readEntry() 319 verifyLog.verify( in readEntry()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_verify.txt | 1 USAGE: apksigner verify [options] apk 3 This checks whether the provided APK will verify on Android. By default, this 4 checks whether the APK will verify on all Android platform versions supported 6 --min-sdk-version and/or --max-sdk-version to verify the APK against a custom 28 --in APK file to verify. This is an alternative to specifying 36 1. Check whether the APK's signatures are expected to verify on all Android 38 $ apksigner verify app.apk 40 2. Check whether the APK's signatures are expected to verify on Android 42 $ apksigner verify --min-sdk-version 15 app.apk
|
D | help.txt | 7 apksigner verify --verbose app.apk 10 signatures of APK files will verify on Android devices. 18 verify Check whether the provided APK is expected to verify on
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | DelegatingX509Certificate.java | 166 public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, in verify() method in DelegatingX509Certificate 168 mDelegate.verify(key); in verify() 172 public void verify(PublicKey key, String sigProvider) in verify() method in DelegatingX509Certificate 175 mDelegate.verify(key, sigProvider); in verify() 215 public void verify(PublicKey key, Provider sigProvider) throws CertificateException, in verify() method in DelegatingX509Certificate 217 mDelegate.verify(key, sigProvider); in verify()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtils.java | 59 Verify.verify(r >= 0); in readUnsigned4Le() 60 Verify.verify(r <= 0x00000000ffffffffL); in readUnsigned4Le() 86 Verify.verify(r >= 0); in readUnsigned2Le() 87 Verify.verify(r <= 0x0000ffff); in readUnsigned2Le()
|
/tools/apksig/ |
D | README.md | 4 expected to verify on Android. apksig supports 12 signature is expected to verify on all Android platform versions supported by the APK. When signing 28 * `ApkVerifier` which checks whether the provided APK is expected to verify on all Android 46 * check whether the provided APK's signatures are expected to verify on all Android platforms 47 supported by the APK. Run `apksigner verify` for usage information.
|
/tools/platform-compat/javatest/com/android/annotationvisitor/ |
D | AnnotationHandlerTestBase.java | 22 import static org.mockito.Mockito.verify; 52 verify(mStatus, never()).error(any(Throwable.class)); in assertNoErrors() 53 verify(mStatus, never()).error(any(), any()); in assertNoErrors()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampVerifier.java | 64 public static ApkSigningBlockUtils.Result verify( in verify() method in V1SourceStampVerifier 79 verify( in verify() 95 private static void verify( in verify() method in V1SourceStampVerifier
|
D | V2SourceStampVerifier.java | 70 public static ApkSigResult verify( in verify() method in V2SourceStampVerifier 84 verify( in verify() 100 private static void verify( in verify() method in V2SourceStampVerifier
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileNotificationTest.java | 393 Mockito.verify(ext, Mockito.times(0)).entriesWritten(); in notifyOnceEntriesWritten() 396 Mockito.verify(ext, Mockito.times(1)).entriesWritten(); in notifyOnceEntriesWritten() 415 Mockito.verify(ext, Mockito.times(0)).entriesWritten(); in notifyTwiceEntriesWrittenIfCdChanged() 418 Mockito.verify(ext, Mockito.times(2)).entriesWritten(); in notifyTwiceEntriesWrittenIfCdChanged()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 89 public static ApkSigningBlockUtils.Result verify( in verify() method in V2SchemeVerifier 112 verify(executor, in verify() 134 private static void verify( in verify() method in V2SchemeVerifier 326 if (!sig.verify(sigBytes)) { in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 136 public Result verify() throws IOException, ApkFormatException, NoSuchAlgorithmException, in verify() method in ApkVerifier 150 return verify(apk); in verify() 169 private Result verify(DataSource apk) in verify() method in ApkVerifier 217 .verify(); in verify() 243 ApkSigningBlockUtils.Result v3Result = builder.build().verify(); in verify() 270 V2SchemeVerifier.verify( in verify() 294 V4SchemeVerifier.verify(apk, mV4SignatureFile); in verify() 330 V1SchemeVerifier.verify( in verify() 365 V2SourceStampVerifier.verify( in verify() 816 V2SourceStampVerifier.verify( in verifySourceStamp()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FsInfoSector.java | 66 result.verify(); in read() 169 private void verify() throws IOException { in verify() method in FsInfoSector
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 131 public static ApkSigningBlockUtils.Result verify( in verify() method in V3SchemeVerifier 142 .verify(); in verify() 154 public ApkSigningBlockUtils.Result verify() in verify() method in V3SchemeVerifier 426 if (!sig.verify(sigBytes)) { in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeVerifier.java | 68 public static ApkSigningBlockUtils.Result verify(DataSource apk, File v4SignatureFile) in verify() method in V4SchemeVerifier 180 if (!sig.verify(sigBytes)) { in parseAndVerifySignatureBlock()
|
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/ |
D | AttestationTest.java | 224 certChain[i - 1].verify(pubKey); in verifyCertificateSignatures() 233 certChain[i].verify(pubKey); in verifyCertificateSignatures()
|