Home
last modified time | relevance | path

Searched refs:PermissionState (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/apex/permission/service/java/com/android/permission/persistence/
DRuntimePermissionsState.java57 private final Map<String, List<PermissionState>> mPackagePermissions;
63 private final Map<String, List<PermissionState>> mSharedUserPermissions;
74 @NonNull Map<String, List<PermissionState>> packagePermissions, in RuntimePermissionsState()
75 @NonNull Map<String, List<PermissionState>> sharedUserPermissions) { in RuntimePermissionsState()
107 public Map<String, List<PermissionState>> getPackagePermissions() { in getPackagePermissions()
117 public Map<String, List<PermissionState>> getSharedUserPermissions() { in getSharedUserPermissions()
144 public static final class PermissionState { class in RuntimePermissionsState
169 public PermissionState(@NonNull String name, boolean granted, int flags) { in PermissionState() method in RuntimePermissionsState.PermissionState
211 PermissionState that = (PermissionState) object; in equals()
DRuntimePermissionsPersistenceImpl.java112 Map<String, List<RuntimePermissionsState.PermissionState>> packagePermissions = in parseRuntimePermissions()
114 Map<String, List<RuntimePermissionsState.PermissionState>> sharedUserPermissions = in parseRuntimePermissions()
128 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions()
135 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions()
148 private static List<RuntimePermissionsState.PermissionState> parsePermissions( in parsePermissions()
150 List<RuntimePermissionsState.PermissionState> permissions = new ArrayList<>(); in parsePermissions()
166 RuntimePermissionsState.PermissionState permission = in parsePermissions()
167 new RuntimePermissionsState.PermissionState(name, granted, flags); in parsePermissions()
212 for (Map.Entry<String, List<RuntimePermissionsState.PermissionState>> entry in serializeRuntimePermissions()
215 List<RuntimePermissionsState.PermissionState> permissions = entry.getValue(); in serializeRuntimePermissions()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java420 public PermissionState getInstallPermissionState(String name) { in getInstallPermissionState()
431 public PermissionState getRuntimePermissionState(String name, int userId) { in getRuntimePermissionState()
441 public List<PermissionState> getInstallPermissionStates() { in getInstallPermissionStates()
450 public List<PermissionState> getRuntimePermissionStates(int userId) { in getRuntimePermissionStates()
463 PermissionState installPermState = getInstallPermissionState(name); in getPermissionFlags()
467 PermissionState runtimePermState = getRuntimePermissionState(name, userId); in getPermissionFlags()
632 private PermissionState getPermissionState(String name, int userId) { in getPermissionState()
646 private List<PermissionState> getPermissionStatesInternal(int userId) { in getPermissionStatesInternal()
654 List<PermissionState> permissionStates = new ArrayList<>(); in getPermissionStatesInternal()
660 PermissionState permissionState = permissionData.getPermissionState(userId); in getPermissionStatesInternal()
[all …]
DDefaultPermissionGrantPolicy.java1626 private SparseArray<ArrayMap<String, PermissionState>> mDelayedPermissionState =
1672 private @NonNull PermissionState getPermissionState(@NonNull String permission, in getPermissionState()
1678 ArrayMap<String, PermissionState> uidState; in getPermissionState()
1688 PermissionState permState; in getPermissionState()
1692 permState = new PermissionState(permission, pkg, user); in getPermissionState()
1702 PermissionState state = getPermissionState(permission, pkg, user); in getPermissionFlags()
1710 PermissionState state = getPermissionState(permission, pkg, user); in updatePermissionFlags()
1718 PermissionState state = getPermissionState(permission, pkg, user); in grantPermission()
1726 PermissionState state = getPermissionState(permission, pkg, user); in revokePermission()
1734 PermissionState state = getPermissionState(permission, pkg, user); in isGranted()
[all …]
DPermissionManagerService.java151 import com.android.server.pm.permission.PermissionsState.PermissionState;
2774 PermissionState permState = origPermissions in restorePermissionState()
2884 PermissionState permState = origPermissions in restorePermissionState()
3953 List<PermissionState> installPermStates = permissionsState.getInstallPermissionStates(); in revokeUnusedSharedUserPermissionsLocked()
3956 PermissionState permissionState = installPermStates.get(i); in revokeUnusedSharedUserPermissionsLocked()
3971 List<PermissionState> runtimePermStates = permissionsState in revokeUnusedSharedUserPermissionsLocked()
3975 PermissionState permissionState = runtimePermStates.get(i); in revokeUnusedSharedUserPermissionsLocked()
/frameworks/base/apex/permission/service/api/
Dsystem-server-current.txt12 …e.PermissionState>>, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission…
14 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getPackageP…
15 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getSharedUs…
20 public static final class RuntimePermissionsState.PermissionState {
21 ctor public RuntimePermissionsState.PermissionState(@NonNull String, boolean, int);
/frameworks/base/services/api/
Dcurrent.txt12 …e.PermissionState>>, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission…
14 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getPackageP…
15 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getSharedUs…
20 public static final class RuntimePermissionsState.PermissionState {
21 ctor public RuntimePermissionsState.PermissionState(@NonNull String, boolean, int);
/frameworks/base/apex/permission/framework/java/android/permission/
DPermissionState.java22 public class PermissionState {} class
/frameworks/base/apex/permission/tests/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt51 private val permissionState = RuntimePermissionsState.PermissionState("permission", true, 3)
/frameworks/base/services/
Dart-profile-boot13 …/permission/PermissionsState$PermissionState;->access$100(Lcom/android/server/pm/permission/Permis…
20 …/permission/PermissionsState$PermissionState;->access$000(Lcom/android/server/pm/permission/Permis…
32 Lcom/android/server/pm/permission/PermissionsState$PermissionState;-><init>(Ljava/lang/String;)V
33 …/permission/PermissionsState$PermissionState;->access$002(Lcom/android/server/pm/permission/Permis…
38 …/permission/PermissionsState$PermissionState;->access$102(Lcom/android/server/pm/permission/Permis…
39 Lcom/android/server/pm/permission/PermissionsState$PermissionState;->isDefault()Z
69 …pm/permission/PermissionsState$PermissionState;-><init>(Lcom/android/server/pm/permission/Permissi…
185 …issionState(Ljava/lang/String;I)Lcom/android/server/pm/permission/PermissionsState$PermissionState;
186 …sionData;->getPermissionState(I)Lcom/android/server/pm/permission/PermissionsState$PermissionState;
188 …issionState(Ljava/lang/String;I)Lcom/android/server/pm/permission/PermissionsState$PermissionState;
[all …]
Dart-profile27291 …/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;-><init>(Lcom…
27292 …/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;-><init>(Lcom…
27293 …r/pm/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;->apply()V
27294 …/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;->initFlags()V
27295 …/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;->initGranted…
27305 …roid/server/pm/permission/DefaultPermissionGrantPolicy$DelayingPackageManagerCache$PermissionState;
27662 …sionData;->getPermissionState(I)Lcom/android/server/pm/permission/PermissionsState$PermissionState;
27671 …pm/permission/PermissionsState$PermissionState;-><init>(Lcom/android/server/pm/permission/Permissi…
27672 HSPLcom/android/server/pm/permission/PermissionsState$PermissionState;-><init>(Ljava/lang/String;)V
27673 …/permission/PermissionsState$PermissionState;->access$000(Lcom/android/server/pm/permission/Permis…
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java112 import com.android.server.pm.permission.PermissionsState.PermissionState;
2257 void writePermissionsLPr(XmlSerializer serializer, List<PermissionState> permissionStates) in writePermissionsLPr()
2265 for (PermissionState permissionState : permissionStates) { in writePermissionsLPr()
5125 final List<PermissionState> permissions = in dumpSharedUsersLPr()
5186 List<PermissionState> permissionStates, boolean dumpAll) { in dumpRuntimePermissionsLPr()
5189 for (PermissionState permissionState : permissionStates) { in dumpRuntimePermissionsLPr()
5228 List<PermissionState> permissionStates = permissionsState.getInstallPermissionStates(); in dumpInstallPermissionsLPr()
5231 for (PermissionState permissionState : permissionStates) { in dumpInstallPermissionsLPr()
5474 Map<String, List<RuntimePermissionsState.PermissionState>> packagePermissions = in writePermissionsSync()
5481 List<RuntimePermissionsState.PermissionState> permissions = in writePermissionsSync()
[all …]