1// Signature format: 2.0 2package com.android.permission.persistence { 3 4 public interface RuntimePermissionsPersistence { 5 method @NonNull public static com.android.permission.persistence.RuntimePermissionsPersistence createInstance(); 6 method public void deleteForUser(@NonNull android.os.UserHandle); 7 method @Nullable public com.android.permission.persistence.RuntimePermissionsState readForUser(@NonNull android.os.UserHandle); 8 method public void writeForUser(@NonNull com.android.permission.persistence.RuntimePermissionsState, @NonNull android.os.UserHandle); 9 } 10 11 public final class RuntimePermissionsState { 12 ctor public RuntimePermissionsState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>>, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>>); 13 method @Nullable public String getFingerprint(); 14 method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getPackagePermissions(); 15 method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getSharedUserPermissions(); 16 method public int getVersion(); 17 field public static final int NO_VERSION = -1; // 0xffffffff 18 } 19 20 public static final class RuntimePermissionsState.PermissionState { 21 ctor public RuntimePermissionsState.PermissionState(@NonNull String, boolean, int); 22 method public int getFlags(); 23 method @NonNull public String getName(); 24 method public boolean isGranted(); 25 } 26 27} 28 29package com.android.role.persistence { 30 31 public interface RolesPersistence { 32 method @NonNull public static com.android.role.persistence.RolesPersistence createInstance(); 33 method public void deleteForUser(@NonNull android.os.UserHandle); 34 method @Nullable public com.android.role.persistence.RolesState readForUser(@NonNull android.os.UserHandle); 35 method public void writeForUser(@NonNull com.android.role.persistence.RolesState, @NonNull android.os.UserHandle); 36 } 37 38 public final class RolesState { 39 ctor public RolesState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.Set<java.lang.String>>); 40 method @Nullable public String getPackagesHash(); 41 method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRoles(); 42 method public int getVersion(); 43 } 44 45} 46 47