Home
last modified time | relevance | path

Searched refs:appPermissionGroup (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java282 AppPermissionGroup appPermissionGroup = null; in getPermissionForegroundGroup() local
288 appPermissionGroup = currentPermissionGroup; in getPermissionForegroundGroup()
294 appPermissionGroup = currentPermissionGroup.getBackgroundPermissions(); in getPermissionForegroundGroup()
299 if (appPermissionGroup == null) { in getPermissionForegroundGroup()
300 appPermissionGroup = AppPermissionGroup.create( in getPermissionForegroundGroup()
305 mGroups.add(appPermissionGroup); in getPermissionForegroundGroup()
307 return appPermissionGroup; in getPermissionForegroundGroup()
315 AppPermissionGroup appPermissionGroup) { in MyMultiTargetSwitchPreference() argument
318 setChecked(appPermissionGroup.areRuntimePermissionsGranted( in MyMultiTargetSwitchPreference()
324 appPermissionGroup.grantRuntimePermissions(false, false, in MyMultiTargetSwitchPreference()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAllAppPermissionsFragment.java275 AppPermissionGroup appPermissionGroup) { in MyMultiTargetSwitchPreference() argument
278 setChecked(appPermissionGroup.areRuntimePermissionsGranted( in MyMultiTargetSwitchPreference()
284 appPermissionGroup.grantRuntimePermissions(true, false, in MyMultiTargetSwitchPreference()
292 if (appPermissionGroup.doesSupportRuntimePermissions()) { in MyMultiTargetSwitchPreference()
295 final int permissionCount = appPermissionGroup.getPermissions().size(); in MyMultiTargetSwitchPreference()
297 Permission current = appPermissionGroup.getPermissions().get(i); in MyMultiTargetSwitchPreference()
309 appPermissionGroup.revokeRuntimePermissions(true, in MyMultiTargetSwitchPreference()
311 } else if (appPermissionGroup.getPermissions().size() == grantedCount) { in MyMultiTargetSwitchPreference()
313 appPermissionGroup.grantRuntimePermissions(true, false); in MyMultiTargetSwitchPreference()
317 appPermissionGroup.revokeRuntimePermissions(true, in MyMultiTargetSwitchPreference()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v31/
DAppPermissionUsage.java262 private static Set<String> getAllOps(AppPermissionGroup appPermissionGroup) { in getAllOps() argument
264 List<Permission> permissions = appPermissionGroup.getPermissions(); in getAllOps()
274 if (appPermissionGroup.getName().equals(Manifest.permission_group.MICROPHONE)) { in getAllOps()
281 if (appPermissionGroup.getName().equals(Manifest.permission_group.CAMERA)) { in getAllOps()
385 AppPermissionGroup appPermissionGroup, in AttributionLabelledGroupUsage() argument
389 mAppPermissionGroup = appPermissionGroup; in AttributionLabelledGroupUsage()
425 Builder(int label, AppPermissionGroup appPermissionGroup) { in Builder() argument
427 mAppPermissionGroup = appPermissionGroup; in Builder()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java478 final AppPermissionGroup appPermissionGroup = appPermissions.getGroupForPermission( in onRevokeRuntimePermission() local
481 if (appPermissionGroup != null) { in onRevokeRuntimePermission()
482 appPermissionGroup.revokeRuntimePermissions(false); in onRevokeRuntimePermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionApps.java370 public PermissionApp(String packageName, AppPermissionGroup appPermissionGroup, in PermissionApp() argument
374 mAppPermissionGroup = appPermissionGroup; in PermissionApp()