/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/ |
D | LightPermission.kt | 39 val permInfo: LightPermInfo, constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPermission 47 permInfo: LightPermInfo, 50 ) : this(pkgInfo, permInfo, permState.granted, permState.permFlags, foregroundPerms) 53 val name = permInfo.name 55 val backgroundPermission: String? = permInfo.backgroundPermission 73 val isInstantPerm = permInfo.protectionFlags and PermissionInfo.PROTECTION_FLAG_INSTANT != 0 80 permName == permInfo.name && 91 permInfo.protectionFlags and PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY != 0 100 !isRuntimePlatformPermission(permInfo.name) || 108 (permInfo.flags and PermissionInfo.FLAG_HARD_RESTRICTED) != 0 -> { [all …]
|
D | LightPermInfo.kt | 44 permInfo: PermissionInfo 46 permInfo.name, 47 permInfo.packageName, 48 permInfo.group, 49 permInfo.backgroundPermission, 50 permInfo.protection, 51 permInfo.protectionFlags, 52 permInfo.flags
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PackagePermissionsLiveData.kt | 61 val permInfo = in loadDataAndPostValue() constant 69 permInfo.flags and PermissionInfo.FLAG_INSTALLED == 0 || in loadDataAndPostValue() 70 permInfo.flags and PermissionInfo.FLAG_REMOVED != 0 in loadDataAndPostValue() 77 permInfo.protectionFlags and PermissionInfo.PROTECTION_FLAG_INSTANT == 0 in loadDataAndPostValue() 84 (permInfo.protectionFlags and in loadDataAndPostValue() 92 if (permInfo.protection != PermissionInfo.PROTECTION_DANGEROUS) { in loadDataAndPostValue() 93 if (permInfo.protection == PermissionInfo.PROTECTION_NORMAL) { in loadDataAndPostValue() 96 otherPermsList.add(permInfo.name) in loadDataAndPostValue() 101 groupName = PermissionMapping.getGroupOfPermission(permInfo) ?: permName in loadDataAndPostValue()
|
D | PermGroupLiveData.kt | 92 for (permInfo in permInfos) { in <lambda>() constant 93 permissionInfos[permInfo.name] = LightPermInfo(permInfo) in <lambda>() 110 permissionInfos.values.map { permInfo -> permInfo.packageName }.toMutableSet() in <lambda>() method
|
D | ForegroundPermNamesLiveData.kt | 48 for (permInfo in permInfos) { in loadDataAndPostValue() constant 49 val backgroundPerm: String? = permInfo.backgroundPermission in loadDataAndPostValue() 52 foregroundPerms.add(permInfo.name) in loadDataAndPostValue()
|
D | LightAppPermGroupLiveData.kt | 118 val permInfo = permGroup.permissionInfos[permName] ?: continue in <lambda>() constant 121 LightPermission(packageInfo, permInfo, permState, foregroundPerms) in <lambda>() 179 val newPerm = permissionMap[permName]?.permInfo ?: continue in <lambda>()
|
D | PermStateLiveData.kt | 91 permissionGroup.permissionInfos[permissionName]?.let { permInfo -> in <lambda>() method 94 context.packageManager.getPermissionFlags(permInfo.name, packageName, user) in <lambda>()
|
D | AppPermGroupUiInfoLiveData.kt | 270 val permInfo = allPermInfos[permName] ?: continue in <lambda>() constant 271 permInfo.backgroundPermission?.let { backgroundPerm -> in <lambda>()
|
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/ |
D | PermissionUtils.java | 67 PermissionState(int permissionFlags, PermissionInfo permInfo, boolean granted) { in PermissionState() argument 69 mPermissionInfo = permInfo; in PermissionState() 160 PermissionInfo permInfo = null; in getPermissionState() local 162 permInfo = context.getPackageManager().getPermissionInfo(permissionName, 0); in getPermissionState() 175 if ((permInfo.getProtectionFlags() & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0) { in getPermissionState() 179 if ((permInfo.getProtectionFlags() & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0) { in getPermissionState() 195 return new PermissionState(permissionFlags, permInfo, granted); in getPermissionState()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/ |
D | PermissionApps.java | 224 PermissionInfo permInfo = groupPermInfos.get(i); in loadPermissionApps() local 225 if ((permInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in loadPermissionApps() 227 && (permInfo.flags & PermissionInfo.FLAG_INSTALLED) != 0 in loadPermissionApps() 228 && (permInfo.flags & PermissionInfo.FLAG_REMOVED) == 0) { in loadPermissionApps() 229 targetPermInfos.add(permInfo); in loadPermissionApps() 334 PermissionInfo permInfo = mPm.getPermissionInfo(mGroupName, 0); in loadGroupInfo() 335 if ((permInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in loadGroupInfo() 340 info = permInfo; in loadGroupInfo()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | RuntimePermissionsUpgradeController.kt | 193 addSource(permProvider) { permInfo -> in <lambda>() method 194 if (permInfo != null) { in <lambda>() 367 val permInfo = permInfoLiveDt.value!! in <lambda>() constant 370 permInfo.flags and in <lambda>() 377 restrictedPermissions.add(permInfo.name) in <lambda>() 494 perm.permInfo, in <lambda>() 672 perm.permInfo, in <lambda>()
|
D | PermissionControllerServiceModel.kt | 169 val permInfo = in <lambda>() constant 176 if (Utils.isPermissionDangerousInstalledNotRemoved(permInfo)) { in <lambda>() 177 permToGroup[permName] = PermissionMapping.getGroupOfPermission(permInfo) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | KotlinUtils.kt | 473 val permInfo = context.packageManager.getPermissionInfo(permName, 0) in <lambda>() constant 475 if (permInfo.icon != 0) { in <lambda>() 479 permInfo.loadUnbadgedIcon(context.packageManager), in <lambda>() 485 val groupName = PermissionMapping.getGroupOfPermission(permInfo) ?: permInfo.name in <lambda>() 509 val permInfo = context.packageManager.getPermissionInfo(permName, 0) in <lambda>() constant 510 permInfo.loadDescription(context.packageManager) ?: "" in <lambda>() 773 perm.permInfo, in <lambda>() 1072 return LightPermission(perm.pkgInfo, perm.permInfo, newState, perm.foregroundPerms) to in <lambda>() 1387 return LightPermission(perm.pkgInfo, perm.permInfo, newState, perm.foregroundPerms) to in <lambda>()
|
D | PermissionMapping.kt | 252 val permInfo: PermissionInfo = in getPlatformPermissionsOfGroup() constant 258 permInfos.add(permInfo) in getPlatformPermissionsOfGroup()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ManagePermissionsActivity.java | 414 PermissionInfo permInfo = getPackageManager().getPermissionInfo( in onCreate() local 416 permissionGroupName = PermissionMapping.getGroupOfPermission(permInfo); in onCreate() 547 PermissionInfo permInfo = getPackageManager().getPermissionInfo( in getGroupFromPermission() local 549 return PermissionMapping.getGroupOfPermission(permInfo); in getGroupFromPermission()
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | PermissionPolicyTest.java | 255 final PermissionInfo permInfo = declaredPermissionsMap.get(permission); in platformPermissionPolicyIsUnaltered() local 258 + ", package " + permInfo.packageName in platformPermissionPolicyIsUnaltered()
|
D | RestrictedStoragePermissionTest.java | 642 PermissionInfo permInfo = packageManager.getPermissionInfo(permission, 0); in getPermissionsOfAppWithAnyOfFlags() local 644 if ((permInfo.flags & flags) != 0) { in getPermissionsOfAppWithAnyOfFlags()
|
D | RestrictedPermissionsTest.java | 494 PermissionInfo permInfo = packageManager.getPermissionInfo(permission, 0); in getPermissionsOfAppWithAnyOfFlags() local 496 if ((permInfo.flags & flags) != 0) { in getPermissionsOfAppWithAnyOfFlags()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/ |
D | GrantRevokeTests.kt | 211 val permInfo = in createMockPerm() constant 223 permInfo, in createMockPerm()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | AppPermissionViewModel.kt | 1494 permission.permInfo.name, in <lambda>() 1503 permission.permInfo.name + in <lambda>()
|