Searched refs:isPackageAllowlisted (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/ |
D | PackageUtilsTest.java | 77 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/ |
D | PackageUtils.java | 191 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/ |
D | LockTaskControllerTest.java | 530 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()
|
D | SafeActivityOptionsTest.java | 117 doReturn(false).when(lockTaskController).isPackageAllowlisted(anyInt(), any()); in test_getOptions()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LockTaskController.java | 430 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
|
D | SafeActivityOptions.java | 322 && !supervisor.mService.getLockTaskController().isPackageAllowlisted( in checkPermissions()
|
/frameworks/base/services/companion/java/com/android/server/companion/association/ |
D | AssociationRequestsProcessor.java | 481 return PackageUtils.isPackageAllowlisted(mContext, mPackageManagerInternal, packageName); in mayAssociateWithoutPrompt()
|
/frameworks/base/services/ |
D | art-wear-profile | 27672 PLcom/android/server/wm/LockTaskController;->isPackageAllowlisted(ILjava/lang/String;)Z
|