/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/ |
D | SignatureQueryService.java | 205 Signature[] signatures = packageInfo.signatures; in verifyGetSignatures() local 206 copySignaturesToBundle(signatures, responseBundle, KEY_GET_SIGNATURES_RESULTS); in verifyGetSignatures() 207 if (signatures == null || signatures.length == 0) { in verifyGetSignatures() 211 if (signatures.length > 1) { in verifyGetSignatures() 214 if (!verifySignatureDigest(signatures[0], expectedSignatureDigests[0])) { in verifyGetSignatures() 262 Signature[] signatures = in verifyGetSigningCertificates() local 264 copySignaturesToBundle(signatures, responseBundle, in verifyGetSigningCertificates() 272 if (signatures.length != expectedSignatureDigests.length) { in verifyGetSigningCertificates() 276 for (int i = 0; i < signatures.length; i++) { in verifyGetSigningCertificates() 277 if (!verifySignatureDigest(signatures[i], expectedSignatureDigests[i])) { in verifyGetSigningCertificates() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 139 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld() 141 1, pi.signatures.length); in testGetSignaturesShowsOld() 143 pi.signatures[0].toCharsString(), FIRST_CERT_HEX); in testGetSignaturesShowsOld() 288 private static void assertExpectedSignatures(Signature[] signatures, in assertExpectedSignatures() argument 290 int numSigners = signatures.length; in assertExpectedSignatures() 292 + expectedSignatures.length + ", but received " + signatures.length, in assertExpectedSignatures() 296 String reportedCert = signatures[i].toCharsString(); in assertExpectedSignatures()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 59 for (Signature signature : packageInfo.signatures) { in testPackageSignatures() 201 int numSignatures = packageInfo.signatures.length; in writeSignature() 204 Signature signature = packageInfo.signatures[i]; in writeSignature()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 102 checkSignatureInfo(expected.signatures, actual.signatures); in checkPkgInfoSame()
|
D | ChecksumsTest.java | 606 final List<Certificate> signatures = convertSignaturesToCertificates( in testInstallerChecksumsTrustInstaller() local 610 pm.requestChecksums(FIXED_PACKAGE_NAME, true, 0, signatures, receiver); in testInstallerChecksumsTrustInstaller() 618 assertEquals(checksums[0].getInstallerCertificate(), signatures.get(0)); in testInstallerChecksumsTrustInstaller() 623 assertEquals(checksums[1].getInstallerCertificate(), signatures.get(0)); in testInstallerChecksumsTrustInstaller() 638 final List<Certificate> signatures = convertSignaturesToCertificates( in testInstallerChecksumsTrustWrongInstaller() local 642 pm.requestChecksums(FIXED_PACKAGE_NAME, true, 0, signatures, receiver); in testInstallerChecksumsTrustWrongInstaller() 1136 private List<Certificate> convertSignaturesToCertificates(Signature[] signatures) { in convertSignaturesToCertificates() argument 1139 ArrayList<Certificate> certs = new ArrayList<>(signatures.length); in convertSignaturesToCertificates() 1140 for (Signature signature : signatures) { in convertSignaturesToCertificates() 1330 final List<Certificate> signatures = convertSignaturesToCertificates( in getInstallerCertificate() local [all …]
|
D | PackageManagerTest.java | 677 pkgInfo.signatures); in testGetPackageArchiveInfo() 1345 assertThat(packageInfo.signatures) in assertShimApexInfoIsCorrect()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/ |
D | CarrierPrivilegeUtils.java | 132 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 134 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
|
D | BaseDefaultPermissionGrantPolicyTest.java | 307 properties.put("signature", computePackageCertDigest(info.signatures[0]).toUpperCase()); in getPackageProperties() 349 String packageDigest = computePackageCertDigest(packageInfo.signatures[0]); in addException() 367 String packageDigest = computePackageCertDigest(packageInfo.signatures[0]); in addException()
|
/cts/tests/security/src/android/keystore/cts/ |
D | AttestationApplicationId.java | 60 for (Signature signature : packageInfo.signatures) { in AttestationApplicationId()
|
/cts/tests/tests/content/data/ |
D | readme.txt | 1 Fixed APKs, along with v4 signatures and digests used in ChecksumsTest.java.
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | FontsContractTest.java | 69 for (Signature sig : info.signatures) {
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTests.java | 1261 private List<Certificate> convertSignaturesToCertificates(Signature[] signatures) in convertSignaturesToCertificates() argument 1264 ArrayList<Certificate> certs = new ArrayList<>(signatures.length); in convertSignaturesToCertificates() 1265 for (Signature signature : signatures) { in convertSignaturesToCertificates()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelTest.java | 462 Signature[] signatures = {new Signature("1234"), in testReadValue() local 467 p.writeValue(signatures); in testReadValue() 470 for (int i = 0; i < signatures.length; i++) { in testReadValue() 471 assertEquals(signatures[i], signatures2[i]); in testReadValue()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 432 return IccUtils.bytesToHexString(md.digest(pInfo.signatures[0].toByteArray())); in getCertHash()
|