Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/webkit/
DWebViewProviderInfo.java33 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/pm/
DPackageSignaturesTest.java142 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 …]
/frameworks/base/core/java/android/util/
DPackageUtils.java53 @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/
DPackageBasedTokenUtil.java72 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/tests/mockingservicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java158 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() local
161 mPackageManagerStub, false /* allowApks */, fileMetadata, signatures, in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
172 signatures = tarBackupReader.readAppManifestAndReturnSignatures( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
175 mPackageManagerStub, false /* allowApks */, fileMetadata, signatures, in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
196 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupEncrypted_correctlyParsesAppManifest() local
200 assertThat(signatures).isNotNull(); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
201 assertThat(signatures).hasLength(1); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
203 String signatureSha256 = Hashing.sha256().hashBytes(signatures[0].toByteArray()).toString(); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
217 Signature[] signatures = tarBackupReader.readAppManifestAndReturnSignatures(fileMetadata); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() local
221 assertThat(signatures).isNotNull(); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
[all …]
/frameworks/base/services/core/java/com/android/server/security/
DKeyAttestationApplicationIdProviderService.java74 pInfo.signatures = new Signature[packageInfo.signatures.length]; in getKeyAttestationApplicationId()
75 for (int index = 0; index < packageInfo.signatures.length; index++) { in getKeyAttestationApplicationId()
77 sign.data = packageInfo.signatures[index].toByteArray(); in getKeyAttestationApplicationId()
78 pInfo.signatures[index] = sign; in getKeyAttestationApplicationId()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java79 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()
DShortcutPackageInfo.java175 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()
DInstallSource.java237 InstallSource setInitiatingPackageSignatures(@Nullable PackageSignatures signatures) { in setInitiatingPackageSignatures() argument
238 if (signatures == mInitiatingPackageSignatures) { in setInitiatingPackageSignatures()
244 mIsInitiatingPackageUninstalled, signatures); in setInitiatingPackageSignatures()
DSharedUserSetting.java82 final PackageSignatures signatures = new PackageSignatures(); field in SharedUserSetting
130 signatures.mSigningDetails = orig.signatures.mSigningDetails;
400 return signatures.mSigningDetails;
DReconcilePackageUtils.java222 sharedUserSetting.signatures.mSigningDetails; in reconcilePackages()
239 sharedUserSetting.signatures.mSigningDetails = in reconcilePackages()
291 sharedUserSetting.signatures.mSigningDetails = in reconcilePackages()
/frameworks/base/telephony/java/android/telephony/
DUiccAccessRule.java223 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/
DSigningDetails.java146 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument
149 mSignatures = signatures; in SigningDetails()
155 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument
159 this(signatures, signatureSchemeVersion, toSigningKeys(signatures), in SigningDetails()
163 public SigningDetails(@Nullable Signature[] signatures, in SigningDetails() argument
166 this(signatures, signatureSchemeVersion, /* pastSigningCertificates */ null); in SigningDetails()
906 public SigningDetails.Builder setSignatures(@NonNull Signature[] signatures) { in setSignatures() argument
907 mSignatures = signatures; in setSignatures()
942 public static ArraySet<PublicKey> toSigningKeys(@NonNull Signature[] signatures) in toSigningKeys() argument
944 final ArraySet<PublicKey> keys = new ArraySet<>(signatures.length); in toSigningKeys()
[all …]
DSigningInfo.java64 Signature[] signatures = apkContentsSigners != null && !apkContentsSigners.isEmpty() in SigningInfo() local
71 if (Signature.areExactArraysMatch(signatures, pastSignatures)) { in SigningInfo()
76 mSigningDetails = new SigningDetails(signatures, schemeVersion, keys, pastSignatures); in SigningInfo()
DPackageInfo.java313 public Signature[] signatures; field in PackageInfo
610 dest.writeTypedArray(signatures, parcelableFlags); in writeToParcel()
684 signatures = source.createTypedArray(Signature.CREATOR); in PackageInfo()
/frameworks/libs/gsma_services/ts43authentication/src/com/android/libraries/ts43authentication/
DTs43AuthenticationLibrary.java358 Signature[] signatures = getMainPackageSignatures(packageName); in getMatchingCertificate() local
359 if (signatures == null) { in getMatchingCertificate()
376 for (Signature signature : signatures) { in getMatchingCertificate()
431 Signature[] signatures = packageInfo.signatures; in getMainPackageSignatures() local
436 signatures = signingInfo.getApkContentsSigners(); in getMainPackageSignatures()
440 signatures = signingInfo.getSigningCertificateHistory(); in getMainPackageSignatures()
443 if (signatures == null) { in getMainPackageSignatures()
447 + Arrays.toString(signatures)); in getMainPackageSignatures()
449 return signatures; in getMainPackageSignatures()
/frameworks/base/core/java/android/provider/
DFontsContract.java784 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/compile/mclinker/include/mcld/LD/
DObjectReader.h47 GroupSignatureMap& signatures() { return f_GroupSignatureMap; } in signatures() function
49 const GroupSignatureMap& signatures() const { return f_GroupSignatureMap; } in signatures() function
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java148 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/keystore/aaid/aidl/android/security/keystore/
DKeyAttestationPackageInfo.aidl32 Signature[] signatures;
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java167 List<String> signatures = new ArrayList<String>(); in readSignatures() local
173 signatures.add(signature); in readSignatures()
178 return signatures.toArray(new String[signatures.size()]); in readSignatures()
/frameworks/base/core/java/android/util/apk/
DSourceStampVerifier.java194 ByteBuffer signatures = ApkSigningBlockUtils.getLengthPrefixedSlice( in verify() local
199 signatures); in verify() local
277 X509Certificate sourceStampCertificate, ByteBuffer signatures) in verifySourceStampSignature() argument
283 while (signatures.hasRemaining()) { in verifySourceStampSignature()
286 ByteBuffer signature = getLengthPrefixedSlice(signatures); in verifySourceStampSignature()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java92 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/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java134 packageInfo.signatures); in apply()
137 if (!certDigest.equals(signaturesSha256Digest) && (packageInfo.signatures.length <= 1 in apply()
189 packageInfo.signatures); in backupAccountAccessPermissions()
/frameworks/compile/mclinker/lib/LD/
DELFObjectReader.cpp129 signatures().insert((*section)->name(), exist); in readSections()
131 signatures().insert(signature->name(), exist); in readSections()
159 signatures().insert(name.split(".").second, exist); in readSections()

123