Home
last modified time | relevance | path

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

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionControllerTest.java172 private void assertRuntimePermissionLabelsAreValid(List<String> runtimePermissions, in assertRuntimePermissionLabelsAreValid() argument
176 for (String permission : runtimePermissions) { in assertRuntimePermissionLabelsAreValid()
386 List<String> runtimePermissions; in getAppPermissionsForApp() local
392 runtimePermissions = PermissionUtils.getRuntimePermissions(APP); in getAppPermissionsForApp()
393 assertThat(runtimePermissions).isNotEmpty(); in getAppPermissionsForApp()
399 assertRuntimePermissionLabelsAreValid(runtimePermissions, permissionInfos, 3, APP); in getAppPermissionsForApp()
413 List<String> runtimePermissions; in getAppPermissionsForCustomApp() local
418 runtimePermissions = PermissionUtils.getRuntimePermissions(APP2); in getAppPermissionsForCustomApp()
426 assertThat(runtimePermissions.size()).isEqualTo(6); in getAppPermissionsForCustomApp()
427 assertRuntimePermissionLabelsAreValid(runtimePermissions, permissionInfos, 4, APP2); in getAppPermissionsForCustomApp()
/packages/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceImpl.java215 public void writeForUser(@NonNull RuntimePermissionsState runtimePermissions, in writeForUser() argument
227 serializeRuntimePermissions(serializer, runtimePermissions); in writeForUser()
259 @NonNull RuntimePermissionsState runtimePermissions) throws IOException { in serializeRuntimePermissions() argument
262 int version = runtimePermissions.getVersion(); in serializeRuntimePermissions()
264 String fingerprint = runtimePermissions.getFingerprint(); in serializeRuntimePermissions()
270 : runtimePermissions.getPackagePermissions().entrySet()) { in serializeRuntimePermissions()
281 : runtimePermissions.getSharedUserPermissions().entrySet()) { in serializeRuntimePermissions()
DRuntimePermissionsPersistence.java53 void writeForUser(@NonNull RuntimePermissionsState runtimePermissions, in writeForUser() argument
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java338 ArrayList<String> runtimePermissions = new ArrayList<>(); in getRuntimePermissions() local
343 runtimePermissions.add(perm); in getRuntimePermissions()
347 return runtimePermissions; in getRuntimePermissions()