Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPermissionHelperTest.java23 import static android.content.pm.PackageManager.GET_PERMISSIONS;
133 when(mPackageManager.getInstalledPackages(eq((long) GET_PERMISSIONS), anyInt())) in testGetAppsRequestingPermission()
151 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_otherPermission()
166 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_noPermissions()
182 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_singlePermissions()
198 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_twoPermissions()
441 when(mPackageManager.getInstalledPackages(eq((long) GET_PERMISSIONS), anyInt())) in testGetNotificationPermissionValues()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DPackageManagers.kt76 getPackageInfoAsUser(packageName, PackageManager.GET_PERMISSIONS.toLong(), userId) in getPackageInfoAsUserCached()
84 getPackageInfoAsUser(packageName, PackageManager.GET_PERMISSIONS.toLong(), userId) in getPackageInfoAsUserCached()
/frameworks/base/services/core/java/com/android/server/notification/
DPermissionHelper.java21 import static android.content.pm.PackageManager.GET_PERMISSIONS;
87 PackageInfo pi = mPackageManager.getPackageInfo(pkg, GET_PERMISSIONS, userId); in hasRequestedPermission()
131 parceledList = mPackageManager.getInstalledPackages(GET_PERMISSIONS, userId); in getInstalledPackages()
290 PackageInfo pi = mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, userId); in packageRequestsNotificationPermission()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUnarchiveActivity.java20 import static android.content.pm.PackageManager.GET_PERMISSIONS;
131 .getPackageInfo(callingPackage, GET_PERMISSIONS).requestedPermissions; in getRequestedPermissions()
DInstallStart.java245 PackageManager.GET_PERMISSIONS); in isUidRequestingPermission()
DPackageInstallerActivity.java614 PackageManager.GET_PERMISSIONS in processPackageUri()
636 PackageManager.GET_PERMISSIONS); in processPackageUri()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java21 import static android.content.pm.PackageManager.GET_PERMISSIONS;
81 final PackageInfoFlags flags = PackageInfoFlags.of(GET_PERMISSIONS | GET_CONFIGURATIONS); in getPackageInfo()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java238 PackageManager.MATCH_ANY_USER | PackageManager.GET_PERMISSIONS); in installPackage()
263 PackageManager.GET_PERMISSIONS | PackageManager.GET_CONFIGURATIONS); in installPackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java357 PackageManager.GET_META_DATA | PackageManager.GET_PERMISSIONS, 0); in testSwitchMultipleUsers()
389 PackageManager.GET_META_DATA | PackageManager.GET_PERMISSIONS, 0); in testSwitchThenUnlockMultipleUsers()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DPackageUtil.kt186 pm.getPackageInfo(packageName!!, PackageManager.GET_PERMISSIONS) in isUidRequestingPermission()
DInstallRepository.kt577 PackageManager.GET_PERMISSIONS in <lambda>()
607 getPackageInfo(context, it, PackageManager.GET_PERMISSIONS) in <lambda>()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java32 import static android.content.pm.PackageManager.GET_PERMISSIONS;
741 packageInfo = userPackageManager.getPackageInfo(packageName, GET_PERMISSIONS); in resetAppOpPermissionsIfNotRequestedForUid()
1058 pkgInfo = mPackageManager.getPackageInfo(pkgName, GET_PERMISSIONS); in addPackage()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerTests.java633 PackageManager.GET_PERMISSIONS in assertPermissions()
2814 | PackageManager.GET_PERMISSIONS | PackageManager.GET_PROVIDERS in testGetInstalledPackagesAll()
2859 | PackageManager.GET_PERMISSIONS | PackageManager.GET_PROVIDERS in testGetUnInstalledPackagesAll()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java428 PackageManager.GET_PERMISSIONS | PackageManager.GET_ATTRIBUTIONS_LONG)); in getSubattributionLabelsForPackage()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java139 if ((flags & PackageManager.GET_PERMISSIONS) != 0) { in generate()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java1105 packageName, PackageManager.GET_PERMISSIONS, in start()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java180 if ((flags & PackageManager.GET_PERMISSIONS) != 0) { in generateWithComponents()
/frameworks/base/core/java/android/content/pm/
DPackageManager.java826 GET_PERMISSIONS,
1063 public static final int GET_PERMISSIONS = 0x00001000; field in PackageManager
/frameworks/base/services/core/java/com/android/server/pm/
DComputerEngine.java1513 final Set<String> installedPermissions = ((flags & PackageManager.GET_PERMISSIONS) == 0 in generatePackageInfo()
1517 final Set<String> grantedPermissions = ((flags & PackageManager.GET_PERMISSIONS) == 0 in generatePackageInfo()
4638 if ((flags & PackageManager.GET_PERMISSIONS) == 0) { in addPackageHoldingPermissions()
DPackageManagerShellCommand.java2670 packageInfos = pm.getInstalledPackages(PackageManager.GET_PERMISSIONS); in runGrantRevokePermission()
2674 PackageManager.GET_PERMISSIONS)); in runGrantRevokePermission()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java119 | PackageManager.GET_PERMISSIONS;
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskSupervisor.java1359 .getPackageInfoAsUser(callingPackage, PackageManager.GET_PERMISSIONS, in getActionRestrictionForCallingPackage()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1041 PackageManager.GET_PERMISSIONS, Process.myUid(),
6918 PackageManager.GET_PERMISSIONS, Process.myUid(), mContext.getUserId());
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3285 PackageManager.GET_META_DATA | PackageManager.GET_PERMISSIONS, serviceUserId); in bindWallpaperComponentLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java126 | PackageManager.GET_PERMISSIONS | PackageManager.MATCH_KNOWN_PACKAGES;

12