Home
last modified time | relevance | path

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

123

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DDebugUtilsTest.java38 import com.android.odp.module.common.PackageUtils;
58 .mockStatic(PackageUtils.class) in setUp()
99 doReturn(true).when(() -> PackageUtils.isPackageDebuggable(any(), any())); in testReturnsExceptionCodeIfDebuggableAndFlagEnabled()
113 doReturn(true).when(() -> PackageUtils.isPackageDebuggable(any(), any())); in testDoesNotReturnExceptionCodeIfFlagDisabled()
127 doReturn(false).when(() -> PackageUtils.isPackageDebuggable(any(), any())); in testDoesNotReturnExceptionCodeIfPackageNotDebuggable()
141 doReturn(true).when(() -> PackageUtils.isPackageDebuggable(any(), any())); in testDoesNotReturnExceptionCodeIfDeviceNotDebuggable()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DPackageUtils.java26 final class PackageUtils { class
27 private static final String TAG = PackageUtils.class.getSimpleName();
41 private PackageUtils() { in PackageUtils() method in PackageUtils
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/enrollment/
DPartnerEnrollmentChecker.java19 import com.android.odp.module.common.PackageUtils;
40 PackageUtils.getCertDigest( in isCallerAppEnrolled()
69 PackageUtils.getCertDigest( in isIsolatedServiceEnrolled()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/mdd/
DOnDevicePersonalizationFileGroupPopulator.java29 import com.android.odp.module.common.PackageUtils;
134 return packageName + "_" + PackageUtils.getCertDigest(context, packageName); in createPackageFileGroupName()
151 if (PackageUtils.isPackageDebuggable(context, packageName)) { in createDownloadUrl()
170 if (!PackageUtils.isPackageDebuggable(context, packageName)) { in createDownloadUrl()
191 PackageUtils.getCertDigest(context, packageName)).getSyncToken(); in addDownloadUrlQueryParameters()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java46 public class PackageUtils { class
47 private PackageUtils() { in PackageUtils() method in PackageUtils
91 byte[] digest = PackageUtils.computeSha256DigestBytes(signatures[0].toByteArray()); in getCertDigest()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DPackageUtils.java23 public class PackageUtils { class
24 private PackageUtils() { in PackageUtils() method in PackageUtils
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DPackageUtils.java30 public final class PackageUtils { class
32 private PackageUtils() {} in PackageUtils() method in PackageUtils
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DEncryptionUnawareConfirmationMixin.java27 import com.android.permissioncontroller.role.utils.PackageUtils;
45 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in getConfirmationMessage()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DFederatedComputeLearningJobScheduleOrchestratorTest.java41 import com.android.odp.module.common.PackageUtils;
96 PackageUtils.getCertDigest(mContext, mContext.getPackageName())) in checkAndScheduleTest()
112 PackageUtils.getCertDigest(mContext, mContext.getPackageName())) in checkAndScheduleTest()
/packages/modules/OnDevicePersonalization/tests/manualtests/src/com/android/ondevicepersonalization/services/download/
DOnDevicePersonalizationDataProcessingAsyncCallableManualTests.java29 import com.android.odp.module.common.PackageUtils;
80 PackageUtils.getCertDigest(mContext, mPackageName)); in setup()
97 PackageUtils.getCertDigest(mContext, mPackageName)); in testRun()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DPackageUtils.java31 public final class PackageUtils { class
33 private PackageUtils() {} in PackageUtils() method in PackageUtils
/packages/modules/Permission/service/java/com/android/permission/util/
DPackageUtils.java31 public final class PackageUtils { class
32 private PackageUtils() {} in PackageUtils() method in PackageUtils
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DBrowserRoleBehavior.java36 import com.android.role.controller.util.PackageUtils;
141 if (PackageUtils.isSystemPackageAsUser(packageName, user, context)) { in grantAsUser()
152 if (PackageUtils.isSystemPackageAsUser(packageName, user, context)) { in revokeAsUser()
DEmergencyRoleBehavior.java30 import com.android.role.controller.util.PackageUtils;
60 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, 0, in getFallbackHolderAsUser()
DDialerRoleBehavior.java30 import com.android.role.controller.util.PackageUtils;
66 if (PackageUtils.isSystemPackageAsUser(packageName, user, context)) { in grantAsUser()
DSmsRoleBehavior.java35 import com.android.role.controller.util.PackageUtils;
119 if (SdkLevel.isAtLeastS() && PackageUtils.isSystemPackageAsUser(packageName, user, in grantAsUser()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DDebugUtils.java27 import com.android.odp.module.common.PackageUtils;
57 && PackageUtils.isPackageDebuggable(context, service.getPackageName())) { in getIsolatedServiceExceptionCode()
DLogUtils.java27 import com.android.odp.module.common.PackageUtils;
57 PackageUtils.getCertDigest( in writeLogRecords()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/download/
DOnDevicePersonalizationDataProcessingAsyncCallableTests.java37 import com.android.odp.module.common.PackageUtils;
137 PackageUtils.getCertDigest(mContext, mPackageName)); in setup()
165 PackageUtils.getCertDigest(mContext, mPackageName)); in testRun()
225 PackageUtils.getCertDigest(mContext, mPackageName)); in testRunOldDataDownloaded()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DAppOp.java28 import com.android.role.controller.util.PackageUtils;
130 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in isAvailableAsUser()
DAppOpPermissions.java30 import com.android.role.controller.util.PackageUtils;
53 PackageInfo packageInfo = PackageUtils.getPackageInfoAsUser(packageName, in grantAsUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRoleLiveData.java32 import com.android.permissioncontroller.role.utils.PackageUtils;
90 ApplicationInfo qualifyingApplicationInfo = PackageUtils.getApplicationInfoAsUser( in loadValueInBackground()
DRoleListLiveData.java32 import com.android.permissioncontroller.role.utils.PackageUtils;
115 ApplicationInfo holderApplicationInfo = PackageUtils.getApplicationInfoAsUser( in loadValueInBackground()
DRequestRoleActivity.java43 import com.android.permissioncontroller.role.utils.PackageUtils;
141 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(mPackageName, this); in onCreate()
323 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in getApplicationUid()
/packages/apps/Dialer/java/com/android/dialer/oem/
DMotorolaUtils.java24 import com.android.dialer.common.PackageUtils;
150 supportSprintWifiCall = PackageUtils.isPackageEnabled(WIFI_CALL_PACKAGE_NAME, context); in isSupportingSprintWifiCall()

123