/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 | 186 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/ |
D | PackageSignatureTest.java | 60 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/ |
D | PackageInfoTest.java | 139 checkSignatureInfo(expected.signatures, actual.signatures); in checkPkgInfoSame()
|
D | ChecksumsTest.java | 784 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 …]
|
D | PackageManagerTest.java | 924 + " 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()
|
D | PackageManagerShellCommandInstallTest.java | 2750 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/ |
D | PackageUtil.java | 134 messageDigest.update(packageInfo.signatures[0].toByteArray()); in computePackageSignatureDigest()
|
D | CarrierPrivilegeUtils.java | 213 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
|
D | BaseDefaultPermissionGrantPolicyTest.java | 318 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/ |
D | AttestationApplicationId.java | 60 for (Signature signature : packageInfo.signatures) { in AttestationApplicationId()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallConstraintsTest.kt | 505 val signatures = packageInfo.signingInfo!!.signingCertificateHistory in <lambda>() constant 506 val digest = computeSha256DigestBytes(signatures[0].toByteArray()) in <lambda>()
|
/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/os/src/android/os/cts/ |
D | ParcelTest.java | 617 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/ |
D | AppEnumerationTests.java | 1531 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/ |
D | TelephonyManagerTestOnMockModem.java | 261 for (Signature signature : packageInfo.signatures) { in getShaId()
|
D | TelephonyManagerTest.java | 677 return IccUtils.bytesToHexString(md.digest(pInfo.signatures[0].toByteArray())); in getCertHash()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | system-current.txt | 18646 field public final android.content.pm.Signature[] signatures;
|
D | current.txt | 12629 field @Deprecated @Nullable public android.content.pm.Signature[] signatures;
|