Home
last modified time | relevance | path

Searched refs:permissionInfo (Results 1 – 7 of 7) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermissionGroups.java251 for (PermissionInfo permissionInfo : installedPackage.permissions) { in getPermissionGroups()
253 if (!seenPermissions.add(permissionInfo.name)) { in getPermissionGroups()
258 if (permissionInfo.getProtection() != PermissionInfo.PROTECTION_DANGEROUS in getPermissionGroups()
259 || (permissionInfo.flags & PermissionInfo.FLAG_INSTALLED) == 0) { in getPermissionGroups()
265 permissionInfo.name)) { in getPermissionGroups()
270 if (!requestedPermissions.contains(permissionInfo.name)) { in getPermissionGroups()
274 CharSequence label = loadItemInfoLabel(context, permissionInfo); in getPermissionGroups()
275 Drawable icon = loadItemInfoIcon(context, permissionInfo); in getPermissionGroups()
277 PermissionApps permApps = new PermissionApps(context, permissionInfo.name, in getPermissionGroups()
282 PermissionGroup group = new PermissionGroup(permissionInfo.name, in getPermissionGroups()
[all …]
DPermission.java46 public Permission(String name, @NonNull PermissionInfo permissionInfo, boolean granted, in Permission() argument
48 mPermissionInfo = permissionInfo; in Permission()
50 mBackgroundPermissionName = permissionInfo.backgroundPermission; in Permission()
56 (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in Permission()
58 (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0; in Permission()
DAppPermissionGroup.java138 PermissionInfo permissionInfo; in create() local
140 permissionInfo = context.getPackageManager().getPermissionInfo(permissionName, 0); in create()
145 if ((permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in create()
147 || (permissionInfo.flags & PermissionInfo.FLAG_INSTALLED) == 0 in create()
148 || (permissionInfo.flags & PermissionInfo.FLAG_REMOVED) != 0) { in create()
152 String group = Utils.getGroupOfPermission(permissionInfo); in create()
153 PackageItemInfo groupInfo = permissionInfo; in create()
247 for (PermissionInfo permissionInfo : permissionInfos) { in create()
248 if (requestedPermission.equals(permissionInfo.name)) { in create()
249 requestedPermissionInfo = permissionInfo; in create()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppPermissionsPreferenceController.java91 for (PermissionInfo permissionInfo : installedPackage.permissions) { in getGrantedPermissionGroups()
92 if (permissions.contains(permissionInfo.name) in getGrantedPermissionGroups()
93 && !grantedPermissionGroups.contains(permissionInfo.group)) { in getGrantedPermissionGroups()
94 grantedPermissionGroups.add(permissionInfo.group); in getGrantedPermissionGroups()
117 for (PermissionInfo permissionInfo : permissions) { in getAllPermissionsInGroups()
118 result.add(permissionInfo.name); in getAllPermissionsInGroups()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DAppPermissionsEntryPreferenceController.java99 for (PermissionInfo permissionInfo : permissions) { in getAllPermissionsInGroups()
100 result.add(permissionInfo.name); in getAllPermissionsInGroups()
117 for (PermissionInfo permissionInfo : installedPackage.permissions) { in getGrantedPermissionGroups()
118 if (permissions.contains(permissionInfo.name)) { in getGrantedPermissionGroups()
119 grantedPermissionGroups.add(permissionInfo.group); in getGrantedPermissionGroups()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java714 PermissionInfo permissionInfo = permissionInfos.get(permissionInfosIndex); in createForegroundBackgroundPermissionMappings() local
716 String permission = permissionInfo.name; in createForegroundBackgroundPermissionMappings()
719 String backgroundPermission = permissionInfo.backgroundPermission; in createForegroundBackgroundPermissionMappings()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DUtils.java365 PermissionInfo permissionInfo = context.getPackageManager() in getGroupPermissionInfos() local
368 permissions.add(permissionInfo); in getGroupPermissionInfos()