Home
last modified time | relevance | path

Searched refs:isPackageAllowlisted (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
DPackageUtilsTest.java77 assertTrue(PackageUtils.isPackageAllowlisted(context, pm, ALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_true()
101 assertFalse(PackageUtils.isPackageAllowlisted(context, pm, DISALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_package_disallowed()
125 assertFalse(PackageUtils.isPackageAllowlisted(context, pm, ALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_signature_mismatch()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java191 public static boolean isPackageAllowlisted(Context context,
193 return isPackageAllowlisted(context, packageManagerInternal, packageName,
202 return isPackageAllowlisted(context, packageManagerInternal, packageName,
206 private static boolean isPackageAllowlisted(Context context,
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLockTaskControllerTest.java530 mLockTaskController.isPackageAllowlisted(TEST_USER_ID, pkg)); in testUpdateLockTaskPackages()
532 mLockTaskController.isPackageAllowlisted(0, pkg)); in testUpdateLockTaskPackages()
541 mLockTaskController.isPackageAllowlisted(TEST_USER_ID, pkg)); in testUpdateLockTaskPackages()
543 mLockTaskController.isPackageAllowlisted(0, pkg)); in testUpdateLockTaskPackages()
551 mLockTaskController.isPackageAllowlisted(TEST_USER_ID, TEST_PACKAGE_NAME)); in testUpdateLockTaskPackages()
553 mLockTaskController.isPackageAllowlisted(TEST_USER_ID, TEST_PACKAGE_NAME_2)); in testUpdateLockTaskPackages()
787 mLockTaskController.isPackageAllowlisted(TEST_USER_ID, pkg); in getTaskForUpdate()
DSafeActivityOptionsTest.java117 doReturn(false).when(lockTaskController).isPackageAllowlisted(anyInt(), any()); in test_getOptions()
/frameworks/base/services/core/java/com/android/server/wm/
DLockTaskController.java430 return isPackageAllowlisted(userId, packageName); in isActivityAllowed()
822 lockTaskAuth = isPackageAllowlisted(userId, pkg) in getLockTaskAuth()
835 lockTaskAuth = isPackageAllowlisted(userId, pkg) in getLockTaskAuth()
842 boolean isPackageAllowlisted(int userId, String pkg) { in isPackageAllowlisted() method in LockTaskController
DSafeActivityOptions.java322 && !supervisor.mService.getLockTaskController().isPackageAllowlisted( in checkPermissions()
/frameworks/base/services/companion/java/com/android/server/companion/association/
DAssociationRequestsProcessor.java481 return PackageUtils.isPackageAllowlisted(mContext, mPackageManagerInternal, packageName); in mayAssociateWithoutPrompt()
/frameworks/base/services/
Dart-wear-profile27672 PLcom/android/server/wm/LockTaskController;->isPackageAllowlisted(ILjava/lang/String;)Z