Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
DPackageUtilsTest.java64 doReturn(android.util.PackageUtils.computeSignaturesSha256Digests( in isAllowlisted_true()
77 assertTrue(PackageUtils.isPackageAllowlisted(context, pm, ALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_true()
88 doReturn(android.util.PackageUtils.computeSignaturesSha256Digests( in isAllowlisted_package_disallowed()
101 assertFalse(PackageUtils.isPackageAllowlisted(context, pm, DISALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_package_disallowed()
112 doReturn(android.util.PackageUtils.computeSignaturesSha256Digests( in isAllowlisted_signature_mismatch()
125 assertFalse(PackageUtils.isPackageAllowlisted(context, pm, ALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_signature_mismatch()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java29 import android.util.PackageUtils;
105 if (accountDigest.equals(PackageUtils.computeSha256Digest( in apply()
133 final String[] signaturesSha256Digests = PackageUtils.computeSignaturesSha256Digests( in apply()
135 final String signaturesSha256Digest = PackageUtils.computeSignaturesSha256Digest( in apply()
188 final String digest = PackageUtils.computeSignaturesSha256Digest( in backupAccountAccessPermissions()
193 PackageUtils.computeSha256Digest(accountName.getBytes())); in backupAccountAccessPermissions()
/frameworks/base/core/java/android/content/pm/
DSigningDetails.java26 import android.util.PackageUtils;
427 String signatureDigest = PackageUtils.computeSha256Digest( in hasAncestorOrSelfWithDigest()
436 String signatureDigest = PackageUtils.computeSha256Digest(mSignatures[0].toByteArray()); in hasAncestorOrSelfWithDigest()
444 signatureDigest = PackageUtils.computeSha256Digest( in hasAncestorOrSelfWithDigest()
750 PackageUtils.computeSignaturesSha256Digests(mSignatures); in checkCapability()
752 PackageUtils.computeSignaturesSha256Digest(mSignaturesSha256Digests); in checkCapability()
785 byte[] digest = PackageUtils.computeSha256DigestBytes( in hasSha256CertificateInternal()
798 byte[] digest = PackageUtils.computeSha256DigestBytes(mSignatures[0].toByteArray()); in hasSha256CertificateInternal()
DPackageParser.java92 import android.util.PackageUtils;
6232 String signatureDigest = PackageUtils.computeSha256Digest( in hasAncestorOrSelfWithDigest()
6241 String signatureDigest = PackageUtils.computeSha256Digest(signatures[0].toByteArray()); in hasAncestorOrSelfWithDigest()
6249 signatureDigest = PackageUtils.computeSha256Digest( in hasAncestorOrSelfWithDigest()
6561 PackageUtils.computeSignaturesSha256Digests(signatures); in checkCapability()
6563 PackageUtils.computeSignaturesSha256Digest(mSignaturesSha256Digests); in checkCapability()
6597 byte[] digest = PackageUtils.computeSha256DigestBytes( in hasSha256CertificateInternal()
6611 PackageUtils.computeSha256DigestBytes(signatures[0].toByteArray()); in hasSha256CertificateInternal()
/frameworks/base/core/java/android/util/
DPackageUtils.java40 public final class PackageUtils { class
45 private PackageUtils() { in PackageUtils() method in PackageUtils
DOWNERS8 per-file PackageUtils.java = file:/core/java/android/content/pm/OWNERS
/frameworks/base/services/core/java/com/android/server/
DBinaryTransparencyService.java77 import android.util.PackageUtils;
190 byte[] digest = PackageUtils.computeSha256DigestBytes(packageSigner.toByteArray()); in computePackageSignerSha256Digests()
289 byte[] digest = PackageUtils.computeSha256DigestForLargeFileAsBytes(apkPath, in measureApk()
290 PackageUtils.createLargeFileBuffer()); in measureApk()
568 byte[] fileBuff = PackageUtils.createLargeFileBuffer(); in onShellCommand()
570 PackageUtils.computeSha256DigestForLargeFile( in onShellCommand()
600 String sha256Digest = PackageUtils.computeSha256DigestForLargeFile( in onShellCommand()
601 origPackageFilepath, PackageUtils.createLargeFileBuffer()); in onShellCommand()
665 PackageUtils.computeSha256DigestBytes(packageSigner.toByteArray()); in onShellCommand()
687 byte[] signatureDigestBytes = PackageUtils.computeSha256DigestBytes( in onShellCommand()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java65 public final class PackageUtils { class
229 android.util.PackageUtils.computeSignaturesSha256Digests(
/frameworks/base/services/companion/java/com/android/server/companion/association/
DAssociationRequestsProcessor.java27 import static com.android.server.companion.utils.PackageUtils.enforceUsesCompanionDeviceFeature;
61 import com.android.server.companion.utils.PackageUtils;
481 return PackageUtils.isPackageAllowlisted(mContext, mPackageManagerInternal, packageName); in mayAssociateWithoutPrompt()
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/
DCompanionAppBinder.java35 import com.android.server.companion.utils.PackageUtils;
318 return PackageUtils.getCompanionServicesForUser(mContext, userId); in create()
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/
DSystemDataTransferProcessor.java57 import com.android.server.companion.utils.PackageUtils;
137 if (PackageUtils.isPermSyncAutoEnabled(mContext, mPackageManager, packageName)) { in buildPermissionTransferUserConsentIntent()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDynamicCodeLogger.java32 import android.util.PackageUtils;
168 String message = PackageUtils.computeSha256Digest(fileName.getBytes()); in logDynamicCodeLoading()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationDebug.java29 import android.util.PackageUtils;
186 PackageUtils.computeSignaturesSha256Digests( in printState()
DDomainVerificationPersistence.java30 import android.util.PackageUtils;
DDomainVerificationService.java56 import android.util.PackageUtils;
1078 PackageUtils.computeSignaturesSha256Digest( in addPackage()
1223 return PackageUtils.computeSignaturesSha256Digest( in writeSettings()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DSharedLibrariesImplTest.kt27 import android.util.PackageUtils in <lambda>()
132 .thenReturn(PackageUtils.computeSha256DigestBytes( in <lambda>()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java35 import static com.android.server.companion.utils.PackageUtils.enforceUsesCompanionDeviceFeature;
36 import static com.android.server.companion.utils.PackageUtils.getPackageInfo;
37 import static com.android.server.companion.utils.PackageUtils.isRestrictedSettingsAllowed;
/frameworks/base/services/core/java/com/android/server/pm/
DSharedLibrariesImpl.java42 import android.util.PackageUtils;
1019 ? PackageUtils.computeSignaturesSha256Digests(
1021 : PackageUtils.computeSignaturesSha256Digests(
DInstantAppRegistry.java46 import android.util.PackageUtils;
428 PackageUtils.computeSignaturesSha256Digests(
1340 PackageUtils.computeSignaturesSha256Digest(
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSigningDetailsTest.java35 import android.util.PackageUtils;
1089 String digest = PackageUtils.computeSha256Digest(new Signature(signer).toByteArray()); in createDigestSet()
/frameworks/base/boot/
Dpreloaded-classes8443 android.util.PackageUtils
Dboot-image-profile.txt30854 Landroid/util/PackageUtils;
/frameworks/base/config/
Dpreloaded-classes8474 android.util.PackageUtils
Dboot-image-profile.txt41015 Landroid/util/PackageUtils;
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt57455 Landroid/util/PackageUtils;-><init>()V
57456 Landroid/util/PackageUtils;->computeSha256Digest([B)Ljava/lang/String;
57457 Landroid/util/PackageUtils;->computeSha256DigestBytes([B)[B
57458 Landroid/util/PackageUtils;->computeSignaturesSha256Digest([Landroid/content/pm/Signature;)Ljava/la…
57459 Landroid/util/PackageUtils;->computeSignaturesSha256Digest([Ljava/lang/String;)Ljava/lang/String;
57460 Landroid/util/PackageUtils;->computeSignaturesSha256Digests([Landroid/content/pm/Signature;)[Ljava/…