Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageSignaturesTest.java141 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlFromTwoSigsTagsWithSameSigner() local
142 mPackageSetting.signatures.readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
144 verifySignaturesContainExpectedValues(signatures, expectedSignatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
146 mPackageSetting.signatures.readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
148 verifySignaturesContainExpectedValues(signatures, expectedSignatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
169 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlWithInvalidPublicKeyInCertKey() local
170 mPackageSetting.signatures.readXml(parser, signatures); in testReadXmlWithInvalidPublicKeyInCertKey()
174 PackageParser.SigningDetails.UNKNOWN, mPackageSetting.signatures.mSigningDetails); in testReadXmlWithInvalidPublicKeyInCertKey()
355 ArrayList<Signature> signatures = new ArrayList<>(); in testReadXmlWithPastSignerWithNoCapabilities() local
356 mPackageSetting.signatures.readXml(parser, signatures); in testReadXmlWithPastSignerWithNoCapabilities()
[all …]
DShortcutManagerTest5.java78 assertNull(pi.signatures); in testGetPackageInfo()
84 assertNull(pi.signatures); in testGetPackageInfo()
/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/core/java/android/util/
DPackageUtils.java47 @NonNull Signature[] signatures) { in computeSignaturesSha256Digests()
48 final int signatureCount = signatures.length; in computeSignaturesSha256Digests()
51 digests[i] = computeSha256Digest(signatures[i].toByteArray()); in computeSignaturesSha256Digests()
64 @NonNull Signature[] signatures) { in computeSignaturesSha256Digest()
66 if (signatures.length == 1) { in computeSignaturesSha256Digest()
67 return computeSha256Digest(signatures[0].toByteArray()); in computeSignaturesSha256Digest()
71 final String[] sha256Digests = computeSignaturesSha256Digests(signatures); in computeSignaturesSha256Digest()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java57 if (mSigningDetails.signatures == null) { in writeXml()
61 serializer.attribute(null, "count", Integer.toString(mSigningDetails.signatures.length)); in writeXml()
64 writeCertsListXml(serializer, writtenSignatures, mSigningDetails.signatures, false); in writeXml()
79 Signature[] signatures, boolean isPastSigs) throws IOException { in writeCertsListXml() argument
80 for (int i=0; i<signatures.length; i++) { in writeCertsListXml()
82 final Signature sig = signatures[i]; in writeCertsListXml()
135 Signature[] signatures = signatureList.toArray(new Signature[signatureList.size()]); in readXml() local
136 builder.setSignatures(signatures); in readXml()
154 ArrayList<Signature> signatures, int count, boolean isPastSigs, in readCertsListXml() argument
182 signatures.add(sig); in readCertsListXml()
[all …]
DPackageManagerServiceUtils.java466 for (Signature sig : packageSignatures.mSigningDetails.signatures) { in matchSignaturesCompat()
470 for (Signature sig : parsedSignatures.signatures) { in matchSignaturesCompat()
528 if (pkgSetting.signatures.mSigningDetails.checkCapability( in matchSignatureInSystem()
529 disabledPkgSetting.signatures.mSigningDetails, in matchSignatureInSystem()
531 || disabledPkgSetting.signatures.mSigningDetails.checkCapability( in matchSignatureInSystem()
532 pkgSetting.signatures.mSigningDetails, in matchSignatureInSystem()
585 if (pkgSetting.signatures.mSigningDetails.signatures != null) { in verifySignatures()
589 pkgSetting.signatures.mSigningDetails, in verifySignatures()
591 || pkgSetting.signatures.mSigningDetails.checkCapability( in verifySignatures()
595 match = matchSignaturesCompat(packageName, pkgSetting.signatures, in verifySignatures()
[all …]
DPackageSettingBase.java102 PackageSignatures signatures; field in PackageSettingBase
180 this.signatures = new PackageSignatures(); in init()
216 return signatures.mSigningDetails.signatures; in getSignatures()
220 return signatures.mSigningDetails; in getSigningDetails()
253 signatures = orig.signatures; in doCopy()
664 this.signatures = other.signatures; in updateFrom()
DShortcutPackageInfo.java174 Signature[] signatures = signingInfo.getApkContentsSigners(); in generateForInstalledPackageForTest() local
176 pi.lastUpdateTime, BackupUtils.hashSignatureArray(signatures), /* shadow=*/ false); in generateForInstalledPackageForTest()
204 Signature[] signatures = signingInfo.getApkContentsSigners(); in refreshSignature() local
205 mSigHashes = BackupUtils.hashSignatureArray(signatures); in refreshSignature()
/frameworks/base/core/java/android/content/pm/
DSigningInfo.java56 return mSigningDetails.signatures != null && mSigningDetails.signatures.length > 1; in hasMultipleSigners()
68 return mSigningDetails.signatures != null in hasPastSigningCertificates()
96 return mSigningDetails.signatures; in getSigningCertificateHistory()
114 return mSigningDetails.signatures; in getApkContentsSigners()
DPackageInfo.java258 public Signature[] signatures; field in PackageInfo
467 dest.writeTypedArray(signatures, parcelableFlags); in writeToParcel()
531 signatures = source.createTypedArray(Signature.CREATOR); in PackageInfo()
/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/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java148 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/packages/StatementService/src/com/android/statementservice/retriever/
DUtils.java101 Signature[] signatures = context.getPackageManager().getPackageInfo(packageName, in getCertFingerprintsFromPackageManager() local
102 PackageManager.GET_SIGNATURES).signatures; in getCertFingerprintsFromPackageManager()
103 ArrayList<String> result = new ArrayList<String>(signatures.length); in getCertFingerprintsFromPackageManager()
104 for (Signature sig : signatures) { in getCertFingerprintsFromPackageManager()
/frameworks/base/core/java/android/provider/
DFontsContract.java753 List<byte[]> signatures; in getProvider() local
756 signatures = convertToByteArrayList(packageInfo.signatures); in getProvider()
757 Collections.sort(signatures, sByteArrayComparator); in getProvider()
764 if (equalsByteArrayList(signatures, requestSignatures)) { in getProvider()
784 List<byte[]> signatures, List<byte[]> requestSignatures) { in equalsByteArrayList() argument
785 if (signatures.size() != requestSignatures.size()) { in equalsByteArrayList()
788 for (int i = 0; i < signatures.size(); ++i) { in equalsByteArrayList()
789 if (!Arrays.equals(signatures.get(i), requestSignatures.get(i))) { in equalsByteArrayList()
796 private static List<byte[]> convertToByteArrayList(Signature[] signatures) { in convertToByteArrayList() argument
798 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/core/java/com/android/server/
DServiceWatcher.java90 Signature[] signatures = pm.getPackageInfo(packageName, in getSignatureSets() local
92 | PackageManager.GET_SIGNATURES).signatures; in getSignatureSets()
95 Collections.addAll(set, signatures); in getSignatureSets()
105 public static boolean isSignatureMatch(Signature[] signatures, in isSignatureMatch() argument
107 if (signatures == null) return false; in isSignatureMatch()
111 Collections.addAll(inputSet, signatures); in isSignatureMatch()
281 if (!isSignatureMatch(pInfo.signatures, mSignatureSets)) { in bindBestPackage()
/frameworks/ml/nn/runtime/test/
DTestPartitioningRandom.cpp363 std::set<Signature> signatures);
551 TestDriver(const char* name, std::set<Signature> signatures) : in TestDriver() argument
552 SampleDriver(name), mSignatures(std::move(signatures)) { } in TestDriver()
618 TestDriverV1_1(const char* name, std::set<Signature> signatures) in TestDriverV1_1() argument
619 : mDriverV1_2(new TestDriver(name, std::move(signatures))) {} in TestDriverV1_1()
653 TestDriverV1_0(const char* name, std::set<Signature> signatures) in TestDriverV1_0() argument
654 : mDriverV1_2(new TestDriver(name, std::move(signatures))) {} in TestDriverV1_0()
674 std::set<Signature> signatures) { in makeTestDriver() argument
677 return new TestDriverV1_0(name, std::move(signatures)); in makeTestDriver()
679 return new TestDriverV1_1(name, std::move(signatures)); in makeTestDriver()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java158 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/
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/telephony/java/android/telephony/
DUiccAccessRule.java176 if (packageInfo.signatures == null || packageInfo.signatures.length == 0) { in getCarrierPrivilegeStatus()
181 for (Signature sig : packageInfo.signatures) { in getCarrierPrivilegeStatus()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java87 private final Hashtable<String, HashMap<String, Attributes>> signatures = field in StrictJarVerifier
209 if (manifest == null || signatures.isEmpty()) { in initEntry()
220 … Iterator<Map.Entry<String, HashMap<String, Attributes>>> it = signatures.entrySet().iterator(); in initEntry()
477 signatures.put(signatureFile, entries); in verifyCertificate()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java2051 pi.signatures.length == 1); in testSigChangeAfterUpgrade()
2052 String sigBefore = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade()
2059 pi.signatures.length == 1); in testSigChangeAfterUpgrade()
2060 String sigAfter = pi.signatures[0].toCharsString(); in testSigChangeAfterUpgrade()
2078 pi.signatures.length == 1); in testSigSameAfterUpgrade()
2079 String sigBefore = pi.signatures[0].toCharsString(); in testSigSameAfterUpgrade()
2086 pi.signatures.length == 1); in testSigSameAfterUpgrade()
2087 String sigAfter = pi.signatures[0].toCharsString(); in testSigSameAfterUpgrade()
2105 pi.signatures.length == 2); in testSigRemovedAfterUpgrade()
2107 for (int i = 0; i < pi.signatures.length; i++) { in testSigRemovedAfterUpgrade()
[all …]
/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()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java138 packageInfo.signatures); in apply()
141 if (!certDigest.equals(signaturesSha256Digest) && (packageInfo.signatures.length <= 1 in apply()
193 packageInfo.signatures); in backupAccountAccessPermissions()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.h51 unsigned char signatures[FWD_LOCK_SIGNATURES_SIZE]; member

123