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.java852 PermissionInfo permissionInfo = extraPermissions.get(name); in getPermissionInfo() local
853 if (permissionInfo != null) { in getPermissionInfo()
854 return permissionInfo; in getPermissionInfo()
1052 for (PermissionInfo permissionInfo : extraPermissions.values()) { in queryPermissionsByGroup()
1053 if (Objects.equals(permissionInfo.group, group)) { in queryPermissionsByGroup()
1054 result.add(permissionInfo); in queryPermissionsByGroup()
DShadowPackageManager.java503 public void addPermissionInfo(PermissionInfo permissionInfo) { in addPermissionInfo() argument
504 extraPermissions.put(permissionInfo.name, permissionInfo); in addPermissionInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java437 PermissionInfo permissionInfo = new PermissionInfo(); in getPermissionInfo_addedPermissions() local
438 permissionInfo.name = "manually_added_permission"; in getPermissionInfo_addedPermissions()
439 shadowPackageManager.addPermissionInfo(permissionInfo); in getPermissionInfo_addedPermissions()
2218 PermissionInfo permissionInfo = new PermissionInfo(); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo() local
2219 permissionInfo.name = "some_name"; in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2220 shadowPackageManager.addPermissionInfo(permissionInfo); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2225 assertThat(permissions.get(0).name).isEqualTo(permissionInfo.name); in queryPermissionsByGroup_nullMatchesPermissionsNotAssociatedWithGroup_with_addPermissionInfo()
2230 PermissionInfo permissionInfo = new PermissionInfo(); in queryPermissionsByGroup_with_addPermissionInfo() local
2231 permissionInfo.name = "some_name"; in queryPermissionsByGroup_with_addPermissionInfo()
2232 permissionInfo.group = "some_group"; in queryPermissionsByGroup_with_addPermissionInfo()
[all …]