/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/ |
D | UtilsTest.kt | 270 val permissionInfos = Utils.getGroupPermissionInfos(CONTACTS, context) in getGroupPermissionInfos_validGroupName_returnsGroupPermissions() constant 271 assertThat(permissionInfos).isNotNull() in getGroupPermissionInfos_validGroupName_returnsGroupPermissions() 273 for (permissionInfo in permissionInfos!!) { in getGroupPermissionInfos_validGroupName_returnsGroupPermissions() 286 val permissionInfos = Utils.getGroupPermissionInfos(UNDEFINED, context) in getGroupPermissionInfos_undefinedGroup_returnsAllSystemPermissions() constant 287 assertThat(permissionInfos).isNotNull() in getGroupPermissionInfos_undefinedGroup_returnsAllSystemPermissions() 292 val permissionInfos = Utils.getGroupPermissionInfos(READ_CONTACTS, context) in getGroupPermissionInfo_permissionName_returnsSamePermission() constant 293 assertThat(permissionInfos).isNotNull() in getGroupPermissionInfo_permissionName_returnsSamePermission() 294 assertThat(permissionInfos!!.size).isEqualTo(1) in getGroupPermissionInfo_permissionName_returnsSamePermission() 295 assertThat(permissionInfos[0].name).isEqualTo(READ_CONTACTS) in getGroupPermissionInfo_permissionName_returnsSamePermission()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PermGroupLiveData.kt | 66 val permissionInfos = mutableMapOf<String, LightPermInfo>() in <lambda>() constant 93 permissionInfos[permInfo.name] = LightPermInfo(permInfo) in <lambda>() 97 permissionInfos[groupInfo.name] = LightPermInfo(groupInfo as PermissionInfo) in <lambda>() 105 val permGroup = PermGroup(LightPermGroupInfo(groupInfo), permissionInfos) in <lambda>() 110 permissionInfos.values.map { permInfo -> permInfo.packageName }.toMutableSet() in <lambda>()
|
D | PermGroupsPackagesLiveData.kt | 91 for ((groupInfo, permissionInfos) in permGroups) { in <lambda>() constant 99 if (permissionInfos.containsKey(permissionName)) { in <lambda>()
|
D | AppPermGroupUiInfoLiveData.kt | 108 permissionGroup.permissionInfos, in <lambda>() 167 permissionInfos: Collection<LightPermInfo> in <lambda>() 176 for (permissionInfo in permissionInfos) { in <lambda>()
|
D | PermStateLiveData.kt | 91 permissionGroup.permissionInfos[permissionName]?.let { permInfo -> in <lambda>()
|
D | LightAppPermGroupLiveData.kt | 118 val permInfo = permGroup.permissionInfos[permName] ?: continue in <lambda>()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | PermissionControllerTest.java | 173 List<RuntimePermissionPresentationInfo> permissionInfos, int expectedRuntimeGranted, in assertRuntimePermissionLabelsAreValid() argument 197 for (RuntimePermissionPresentationInfo permissionInfo : permissionInfos) { in assertRuntimePermissionLabelsAreValid() 387 List<RuntimePermissionPresentationInfo> permissionInfos; in getAppPermissionsForApp() local 394 permissionInfos = futurePermissionInfos.get(); in getAppPermissionsForApp() 399 assertRuntimePermissionLabelsAreValid(runtimePermissions, permissionInfos, 3, APP); in getAppPermissionsForApp() 414 List<RuntimePermissionPresentationInfo> permissionInfos; in getAppPermissionsForCustomApp() local 420 permissionInfos = futurePermissionInfos.get(); in getAppPermissionsForCustomApp() 425 assertThat(permissionInfos).isNotEmpty(); in getAppPermissionsForCustomApp() 427 assertRuntimePermissionLabelsAreValid(runtimePermissions, permissionInfos, 4, APP2); in getAppPermissionsForCustomApp()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/ |
D | PermGroup.kt | 28 val permissionInfos: Map<String, LightPermInfo> constant in com.android.permissioncontroller.permission.model.livedatatypes.PermGroup 32 val hasRuntimePermissions = permissionInfos.isNotEmpty()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/ |
D | AppPermissionGroup.java | 199 List<PermissionInfo> permissionInfos = null; in create() local 202 permissionInfos = Utils.getPermissionInfosForGroup(context.getPackageManager(), in create() 209 return create(context, packageInfo, groupInfo, permissionInfos, delayChanges); in create() 233 List<PermissionInfo> permissionInfos = null; in create() local 235 permissionInfos = Utils.getPermissionInfosForGroup(app.getPackageManager(), in create() 238 return create(app, packageInfo, groupInfo, permissionInfos, delayChanges); in create() 256 PackageItemInfo groupInfo, List<PermissionInfo> permissionInfos, boolean delayChanges) { in create() argument 261 return create(context, packageInfo, groupInfo, permissionInfos, groupLabel, in create() 279 PackageItemInfo groupInfo, List<PermissionInfo> permissionInfos, in create() argument 285 permissionInfos = new ArrayList<>(); in create() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/ |
D | HealthPermissionsTest.java | 165 PermissionInfo[] permissionInfos = getHealthPermissionInfos(); in testHealthGroupPermissions_noUnexpectedPermissionsDefined() local 166 for (PermissionInfo permissionInfo : permissionInfos) { in testHealthGroupPermissions_noUnexpectedPermissionsDefined()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/ |
D | Permissions.java | 780 List<PermissionInfo> permissionInfos; in createForegroundBackgroundPermissionMappings() local 782 permissionInfos = packageManager.queryPermissionsByGroup( in createForegroundBackgroundPermissionMappings() 789 int permissionInfosSize = permissionInfos.size(); in createForegroundBackgroundPermissionMappings() 792 PermissionInfo permissionInfo = permissionInfos.get(permissionInfosIndex); in createForegroundBackgroundPermissionMappings()
|