Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DLegacyManifestParser.java418 PermissionInfo permissionInfo = new PermissionInfo(); in createPermissionInfo() local
419 populatePackageItemInfo(permissionInfo, owner, itemData); in createPermissionInfo()
421 permissionInfo.group = itemData.getPermissionGroup(); in createPermissionInfo()
422 permissionInfo.protectionLevel = decodeProtectionLevel(itemData.getProtectionLevel()); in createPermissionInfo()
423 permissionInfo.metaData = metaDataToBundle(itemData.getMetaData().getValueMap()); in createPermissionInfo()
429 permissionInfo.descriptionRes = in createPermissionInfo()
438 permissionInfo.labelRes = in createPermissionInfo()
441 permissionInfo.nonLocalizedLabel = labelRefOrString; in createPermissionInfo()
445 return permissionInfo; in createPermissionInfo()
DShadowApplicationPackageManager.java831 PermissionInfo permissionInfo = extraPermissions.get(name); in getPermissionInfo() local
832 if (permissionInfo != null) { in getPermissionInfo()
833 return permissionInfo; in getPermissionInfo()
1031 for (PermissionInfo permissionInfo : extraPermissions.values()) { in queryPermissionsByGroup()
1032 if (Objects.equals(permissionInfo.group, group)) { in queryPermissionsByGroup()
1033 result.add(permissionInfo); in queryPermissionsByGroup()
DShadowPackageManager.java502 public void addPermissionInfo(PermissionInfo permissionInfo) { in addPermissionInfo() argument
503 extraPermissions.put(permissionInfo.name, permissionInfo); in addPermissionInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java434 PermissionInfo permissionInfo = new PermissionInfo(); in getPermissionInfo_addedPermissions() local
435 permissionInfo.name = "manually_added_permission"; in getPermissionInfo_addedPermissions()
436 shadowPackageManager.addPermissionInfo(permissionInfo); in getPermissionInfo_addedPermissions()
2178 PermissionInfo permissionInfo = new PermissionInfo(); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo() local
2179 permissionInfo.name = "some_name"; in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2180 shadowPackageManager.addPermissionInfo(permissionInfo); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2185 assertThat(permissions.get(0).name).isEqualTo(permissionInfo.name); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2190 PermissionInfo permissionInfo = new PermissionInfo(); in queryPermissionsByGroup_with_addPermissionInfo() local
2191 permissionInfo.name = "some_name"; in queryPermissionsByGroup_with_addPermissionInfo()
2192 permissionInfo.group = "some_group"; in queryPermissionsByGroup_with_addPermissionInfo()
[all …]