Home
last modified time | relevance | path

Searched refs:permInfo (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPermission.kt39 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 …]
DLightPermInfo.kt44 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/
DPackagePermissionsLiveData.kt61 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()
DPermGroupLiveData.kt92 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
DForegroundPermNamesLiveData.kt48 for (permInfo in permInfos) { in loadDataAndPostValue() constant
49 val backgroundPerm: String? = permInfo.backgroundPermission in loadDataAndPostValue()
52 foregroundPerms.add(permInfo.name) in loadDataAndPostValue()
DLightAppPermGroupLiveData.kt118 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>()
DPermStateLiveData.kt91 permissionGroup.permissionInfos[permissionName]?.let { permInfo -> in <lambda>() method
94 context.packageManager.getPermissionFlags(permInfo.name, packageName, user) in <lambda>()
DAppPermGroupUiInfoLiveData.kt270 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/
DPermissionUtils.java67 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/
DPermissionApps.java224 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/
DRuntimePermissionsUpgradeController.kt193 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>()
DPermissionControllerServiceModel.kt169 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/
DKotlinUtils.kt473 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>()
DPermissionMapping.kt252 val permInfo: PermissionInfo = in getPlatformPermissionsOfGroup() constant
258 permInfos.add(permInfo) in getPlatformPermissionsOfGroup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java414 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/
DPermissionPolicyTest.java255 final PermissionInfo permInfo = declaredPermissionsMap.get(permission); in platformPermissionPolicyIsUnaltered() local
258 + ", package " + permInfo.packageName in platformPermissionPolicyIsUnaltered()
DRestrictedStoragePermissionTest.java642 PermissionInfo permInfo = packageManager.getPermissionInfo(permission, 0); in getPermissionsOfAppWithAnyOfFlags() local
644 if ((permInfo.flags & flags) != 0) { in getPermissionsOfAppWithAnyOfFlags()
DRestrictedPermissionsTest.java494 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/
DGrantRevokeTests.kt211 val permInfo = in createMockPerm() constant
223 permInfo, in createMockPerm()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt1494 permission.permInfo.name, in <lambda>()
1503 permission.permInfo.name + in <lambda>()