Home
last modified time | relevance | path

Searched refs:signatures (Results 1 – 20 of 20) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/
DSignatureQueryService.java205 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/
DV3RotationTest.java186 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld()
188 1, pi.signatures.length); in testGetSignaturesShowsOld()
190 pi.signatures[0].toCharsString(), FIRST_CERT_HEX); in testGetSignaturesShowsOld()
387 private static void assertExpectedSignatures(Signature[] signatures, in assertExpectedSignatures() argument
389 int numSigners = signatures.length; in assertExpectedSignatures()
391 + expectedSignatures.length + ", but received " + signatures.length, in assertExpectedSignatures()
395 String reportedCert = signatures[i].toCharsString(); in assertExpectedSignatures()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java60 for (Signature signature : packageInfo.signatures) { in testPackageSignatures()
283 int numSignatures = packageInfo.signatures.length; in writeSignature()
286 Signature signature = packageInfo.signatures[i]; in writeSignature()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java139 checkSignatureInfo(expected.signatures, actual.signatures); in checkPkgInfoSame()
DChecksumsTest.java784 final List<Certificate> signatures = convertSignaturesToCertificates( in testInstallerChecksumsTrustInstaller() local
788 pm.requestChecksums(FIXED_PACKAGE_NAME, true, 0, signatures, receiver); in testInstallerChecksumsTrustInstaller()
796 assertEquals(checksums[0].getInstallerCertificate(), signatures.get(0)); in testInstallerChecksumsTrustInstaller()
801 assertEquals(checksums[1].getInstallerCertificate(), signatures.get(0)); in testInstallerChecksumsTrustInstaller()
912 final List<Certificate> signatures = convertSignaturesToCertificates( in testInstallerChecksumsTrustWrongInstaller() local
916 pm.requestChecksums(FIXED_PACKAGE_NAME, true, 0, signatures, receiver); in testInstallerChecksumsTrustWrongInstaller()
1417 private List<Certificate> convertSignaturesToCertificates(Signature[] signatures) { in convertSignaturesToCertificates() argument
1420 ArrayList<Certificate> certs = new ArrayList<>(signatures.length); in convertSignaturesToCertificates()
1421 for (Signature signature : signatures) { in convertSignaturesToCertificates()
1688 final List<Certificate> signatures = convertSignaturesToCertificates( in getInstallerCertificate() local
[all …]
DPackageManagerTest.java924 + " flag is specified", pkgInfo.signatures); in testGetPackageArchiveInfo()
934 pkgInfo.signatures); in testGetPackageArchiveInfo()
1734 assertThat(packageInfo.signatures) in assertShimApexInfoIsCorrect()
2865 assertThat(packageInfo.signatures).isNotNull(); in testUninstallWithKeepData()
DPackageManagerShellCommandInstallTest.java2750 Signature[] signatures = in getPackageCertDigest() local
2752 byte[] digest = PackageUtils.computeSha256DigestBytes(signatures[0].toByteArray()); in getPackageCertDigest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java134 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
DCarrierPrivilegeUtils.java213 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
DBaseDefaultPermissionGrantPolicyTest.java318 properties.put("signature", computePackageCertDigest(info.signatures[0]).toUpperCase()); in getPackageProperties()
362 String packageDigest = computePackageCertDigest(packageInfo.signatures[0]); in addException()
380 String packageDigest = computePackageCertDigest(packageInfo.signatures[0]); in addException()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java60 for (Signature signature : packageInfo.signatures) { in AttestationApplicationId()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallConstraintsTest.kt505 val signatures = packageInfo.signingInfo!!.signingCertificateHistory in <lambda>() constant
506 val digest = computeSha256DigestBytes(signatures[0].toByteArray()) in <lambda>()
/cts/tests/tests/content/data/
Dreadme.txt1 Fixed APKs, along with v4 signatures and digests used in ChecksumsTest.java.
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java69 for (Signature sig : info.signatures) {
/cts/tests/tests/os/src/android/os/cts/
DParcelTest.java617 Signature[] signatures = {new Signature("1234"), in testReadValue() local
622 p.writeValue(signatures); in testReadValue()
625 for (int i = 0; i < signatures.length; i++) { in testReadValue()
626 assertEquals(signatures[i], signatures2[i]); in testReadValue()
3909 Signature[][] signatures = { in testFixedArray() local
3912 p.writeFixedArray(signatures, 0, new int[]{2, 3}); in testFixedArray()
3914 …assertArrayEquals(signatures, p.createFixedArray(Signature[][].class, Signature.CREATOR, new int[]… in testFixedArray()
3918 assertArrayEquals(signatures, readSignatures); in testFixedArray()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java1531 private List<Certificate> convertSignaturesToCertificates(Signature[] signatures) in convertSignaturesToCertificates() argument
1534 ArrayList<Certificate> certs = new ArrayList<>(signatures.length); in convertSignaturesToCertificates()
1535 for (Signature signature : signatures) { in convertSignaturesToCertificates()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTestOnMockModem.java261 for (Signature signature : packageInfo.signatures) { in getShaId()
DTelephonyManagerTest.java677 return IccUtils.bytesToHexString(md.digest(pInfo.signatures[0].toByteArray())); in getCertHash()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dsystem-current.txt18646 field public final android.content.pm.Signature[] signatures;
Dcurrent.txt12629 field @Deprecated @Nullable public android.content.pm.Signature[] signatures;