/frameworks/base/core/java/android/webkit/ |
D | WebViewProviderInfo.java | 33 boolean availableByDefault, boolean isFallback, String[] signatures) { in WebViewProviderInfo() argument 38 if (signatures == null) { in WebViewProviderInfo() 39 this.signatures = new Signature[0]; in WebViewProviderInfo() 41 this.signatures = new Signature[signatures.length]; in WebViewProviderInfo() 42 for (int n = 0; n < signatures.length; n++) { in WebViewProviderInfo() 43 this.signatures[n] = new Signature(Base64.decode(signatures[n], Base64.DEFAULT)); in WebViewProviderInfo() 66 signatures = in.createTypedArray(Signature.CREATOR); in WebViewProviderInfo() 80 out.writeTypedArray(signatures, 0); in writeToParcel() 88 public final Signature[] signatures; field in WebViewProviderInfo
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/ |
D | PackageSignaturesTest.java | 142 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlFromTwoSigsTagsWithSameSigner() local 143 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner() 145 verifySignaturesContainExpectedValues(signatures, expectedSignatures); in testReadXmlFromTwoSigsTagsWithSameSigner() 147 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner() 149 verifySignaturesContainExpectedValues(signatures, expectedSignatures); in testReadXmlFromTwoSigsTagsWithSameSigner() 170 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlWithInvalidPublicKeyInCertKey() local 171 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlWithInvalidPublicKeyInCertKey() 356 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlWithPastSignerWithNoCapabilities() local 357 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlWithPastSignerWithNoCapabilities() 360 for (Signature signature : signatures) { in testReadXmlWithPastSignerWithNoCapabilities() [all …]
|
D | PackageManagerTests.java | 2070 pi.signatures.length == 1); in testSigChangeAfterUpgrade() 2071 String sigBefore = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade() 2078 pi.signatures.length == 1); in testSigChangeAfterUpgrade() 2079 String sigAfter = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade() 2097 pi.signatures.length == 1); in testSigSameAfterUpgrade() 2098 String sigBefore = pi.signatures[0].toCharsString(); in testSigSameAfterUpgrade() 2105 pi.signatures.length == 1); in testSigSameAfterUpgrade() 2106 String sigAfter = pi.signatures[0].toCharsString(); in testSigSameAfterUpgrade() 2124 pi.signatures.length == 2); in testSigRemovedAfterUpgrade() 2126 for (int i = 0; i < pi.signatures.length; i++) { in testSigRemovedAfterUpgrade() [all …]
|
/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 53 @NonNull Signature[] signatures) { in computeSignaturesSha256Digests() 54 return computeSignaturesSha256Digests(signatures, null); in computeSignaturesSha256Digests() 66 @NonNull Signature[] signatures, @Nullable String separator) { in computeSignaturesSha256Digests() 67 final int signatureCount = signatures.length; in computeSignaturesSha256Digests() 70 digests[i] = computeSha256Digest(signatures[i].toByteArray(), separator); in computeSignaturesSha256Digests() 83 @NonNull Signature[] signatures) { in computeSignaturesSha256Digest() 85 if (signatures.length == 1) { in computeSignaturesSha256Digest() 86 return computeSha256Digest(signatures[0].toByteArray(), null); in computeSignaturesSha256Digest() 90 final String[] sha256Digests = computeSignaturesSha256Digests(signatures, null); in computeSignaturesSha256Digest()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PackageBasedTokenUtil.java | 72 Signature[] signatures; in generatePackageBasedToken() local 76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken() 77 packageName, PackageManager.GET_SIGNATURES).signatures; in generatePackageBasedToken() 83 if (signatures == null) { in generatePackageBasedToken() 97 for (int i = 0; i < signatures.length; i++) { in generatePackageBasedToken() 98 messageDigest.update(signatures[i].toCharsString().getBytes(CHARSET_UTF_8)); in generatePackageBasedToken()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSignatures.java | 79 ArrayList<Signature> writtenSignatures, Signature[] signatures, boolean isPastSigs) in writeCertsListXml() argument 81 for (int i=0; i<signatures.length; i++) { in writeCertsListXml() 83 final Signature sig = signatures[i]; in writeCertsListXml() 131 Signature[] signatures = signatureList.toArray(new Signature[signatureList.size()]); in readXml() local 132 builder.setSignatures(signatures); in readXml() 150 ArrayList<Signature> signatures, int count, boolean isPastSigs, in readCertsListXml() argument 183 signatures.add(new Signature(sig)); in readCertsListXml() 185 signatures.add(sig); in readCertsListXml() 208 signatures.add(sig); in readCertsListXml() 231 signatures.get(signatures.size() - 1).setFlags(flagsValue); in readCertsListXml()
|
D | InstallSource.java | 193 InstallSource setInitiatingPackageSignatures(@Nullable PackageSignatures signatures) { in setInitiatingPackageSignatures() argument 194 if (signatures == initiatingPackageSignatures) { in setInitiatingPackageSignatures() 199 isInitiatingPackageUninstalled, signatures); in setInitiatingPackageSignatures()
|
D | ShortcutPackageInfo.java | 175 Signature[] signatures = signingInfo.getApkContentsSigners(); in generateForInstalledPackageForTest() local 177 pi.lastUpdateTime, BackupUtils.hashSignatureArray(signatures), /* shadow=*/ false); in generateForInstalledPackageForTest() 205 Signature[] signatures = signingInfo.getApkContentsSigners(); in refreshSignature() local 206 mSigHashes = BackupUtils.hashSignatureArray(signatures); in refreshSignature()
|
D | SharedUserSetting.java | 82 final PackageSignatures signatures = new PackageSignatures(); field in SharedUserSetting 130 signatures.mSigningDetails = orig.signatures.mSigningDetails; 400 return signatures.mSigningDetails;
|
D | ReconcilePackageUtils.java | 174 sharedUserSetting.signatures.mSigningDetails; in reconcilePackages() 191 sharedUserSetting.signatures.mSigningDetails = in reconcilePackages() 242 sharedUserSetting.signatures.mSigningDetails = in reconcilePackages()
|
D | PackageSetting.java | 153 private PackageSignatures signatures; field in PackageSetting 223 this.signatures = new PackageSignatures(); 455 public PackageSetting setSignatures(PackageSignatures signatures) { 456 this.signatures = signatures; 603 return signatures.mSigningDetails; 608 signatures.mSigningDetails = signingDetails; 630 signatures = other.signatures; 1174 return new SigningInfo(signatures.mSigningDetails); 1413 return signatures;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | TarBackupReaderTest.java | 148 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() local 151 mPackageManagerStub, false /* allowApks */, fileMetadata, signatures, in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() 162 signatures = tarBackupReader.readAppManifestAndReturnSignatures( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() 165 mPackageManagerStub, false /* allowApks */, fileMetadata, signatures, in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() 186 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupEncrypted_correctlyParsesAppManifest() local 190 assertThat(signatures).isNotNull(); in readAppManifest_backupEncrypted_correctlyParsesAppManifest() 191 assertThat(signatures).hasLength(1); in readAppManifest_backupEncrypted_correctlyParsesAppManifest() 193 String signatureSha256 = Hashing.sha256().hashBytes(signatures[0].toByteArray()).toString(); in readAppManifest_backupEncrypted_correctlyParsesAppManifest() 207 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() local 211 assertThat(signatures).isNotNull(); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | UiccAccessRule.java | 223 List<Signature> signatures = getSignatures(packageInfo); in getCarrierPrivilegeStatus() local 224 if (signatures.isEmpty()) { in getCarrierPrivilegeStatus() 229 for (Signature sig : signatures) { in getCarrierPrivilegeStatus() 321 Signature[] signatures = packageInfo.signatures; in getSignatures() local 325 signatures = signingInfo.getSigningCertificateHistory(); in getSignatures() 327 signatures = signingInfo.getApkContentsSigners(); in getSignatures() 331 return (signatures == null) ? Collections.EMPTY_LIST : Arrays.asList(signatures); in getSignatures()
|
/frameworks/base/core/java/android/content/pm/ |
D | SigningDetails.java | 143 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument 146 mSignatures = signatures; in SigningDetails() 152 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument 156 this(signatures, signatureSchemeVersion, toSigningKeys(signatures), in SigningDetails() 160 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument 163 this(signatures, signatureSchemeVersion, /* pastSigningCertificates */ null); in SigningDetails() 901 public SigningDetails.Builder setSignatures(@NonNull Signature[] signatures) { in setSignatures() argument 902 mSignatures = signatures; in setSignatures() 937 public static ArraySet<PublicKey> toSigningKeys(@NonNull Signature[] signatures) in toSigningKeys() argument 939 final ArraySet<PublicKey> keys = new ArraySet<>(signatures.length); in toSigningKeys() [all …]
|
D | PackageInfo.java | 277 public Signature[] signatures; field in PackageInfo 513 dest.writeTypedArray(signatures, parcelableFlags); in writeToParcel() 579 signatures = source.createTypedArray(Signature.CREATOR); in PackageInfo()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ObjectReader.h | 47 GroupSignatureMap& signatures() { return f_GroupSignatureMap; } in signatures() function 49 const GroupSignatureMap& signatures() const { return f_GroupSignatureMap; } in signatures() function
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 784 List<byte[]> signatures; in getProvider() local 787 signatures = convertToByteArrayList(packageInfo.signatures); in getProvider() 788 Collections.sort(signatures, sByteArrayComparator); in getProvider() 795 if (equalsByteArrayList(signatures, requestSignatures)) { in getProvider() 815 List<byte[]> signatures, List<byte[]> requestSignatures) { in equalsByteArrayList() argument 816 if (signatures.size() != requestSignatures.size()) { in equalsByteArrayList() 819 for (int i = 0; i < signatures.size(); ++i) { in equalsByteArrayList() 820 if (!Arrays.equals(signatures.get(i), requestSignatures.get(i))) { in equalsByteArrayList() 827 private static List<byte[]> convertToByteArrayList(Signature[] signatures) { in convertToByteArrayList() argument 829 for (int i = 0; i < signatures.length; ++i) { in convertToByteArrayList() [all …]
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | SystemImpl.java | 158 List<String> signatures = new ArrayList<String>(); in readSignatures() local 164 signatures.add(signature); in readSignatures() 169 return signatures.toArray(new String[signatures.size()]); in readSignatures()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriter.java | 148 Signature[] signatures = signingInfo.getApkContentsSigners(); in getManifestBytes() local 149 printer.println(Integer.toString(signatures.length)); in getManifestBytes() 150 for (Signature sig : signatures) { in getManifestBytes()
|
/frameworks/base/core/java/android/util/apk/ |
D | SourceStampVerifier.java | 189 ByteBuffer signatures = ApkSigningBlockUtils.getLengthPrefixedSlice( in verify() local 194 signatures); in verify() local 272 X509Certificate sourceStampCertificate, ByteBuffer signatures) in verifySourceStampSignature() argument 278 while (signatures.hasRemaining()) { in verifySourceStampSignature() 281 ByteBuffer signature = getLengthPrefixedSlice(signatures); in verifySourceStampSignature()
|
D | ApkSignatureSchemeV2Verifier.java | 235 ByteBuffer signatures = getLengthPrefixedSlice(signerBlock); in verifySigner() local 242 while (signatures.hasRemaining()) { in verifySigner() 245 ByteBuffer signature = getLengthPrefixedSlice(signatures); in verifySigner()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarVerifier.java | 92 private final Hashtable<String, HashMap<String, Attributes>> signatures = field in StrictJarVerifier 214 if (manifest == null || signatures.isEmpty()) { in initEntry() 225 … Iterator<Map.Entry<String, HashMap<String, Attributes>>> it = signatures.entrySet().iterator(); in initEntry() 488 signatures.put(signatureFile, entries); in verifyCertificate()
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFObjectReader.cpp | 129 signatures().insert((*section)->name(), exist); in readSections() 131 signatures().insert(signature->name(), exist); in readSections() 159 signatures().insert(name.split(".").second, exist); in readSections()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerBackupHelper.java | 134 packageInfo.signatures); in apply() 137 if (!certDigest.equals(signaturesSha256Digest) && (packageInfo.signatures.length <= 1 in apply() 189 packageInfo.signatures); in backupAccountAccessPermissions()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 81 assertNull(pi.signatures); in testGetPackageInfo() 87 assertNull(pi.signatures); in testGetPackageInfo()
|