Home
last modified time | relevance | path

Searched refs:RolesState (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesState.java37 public final class RolesState { class
68 public RolesState(int version, @Nullable String packagesHash, in RolesState() method in RolesState
82 public RolesState(int version, @Nullable String packagesHash, in RolesState() method in RolesState
138 RolesState that = (RolesState) object; in equals()
DRolesPersistenceImpl.java95 public RolesState readForUser(@NonNull UserHandle user) { in readForUser()
121 private static RolesState parseXml(@NonNull XmlPullParser parser) in parseXml()
140 private static RolesState parseRoles(@NonNull XmlPullParser parser) in parseRoles()
167 return new RolesState(version, packagesHash, roles, fallbackEnabledRoles); in parseRoles()
192 public void writeForUser(@NonNull RolesState roles, @NonNull UserHandle user) { in writeForUser()
236 @NonNull RolesState roles) throws IOException { in serializeRoles()
DRolesPersistence.java43 RolesState readForUser(@NonNull UserHandle user); in readForUser()
53 void writeForUser(@NonNull RolesState roles, @NonNull UserHandle user); in writeForUser()
/packages/modules/Permission/service/api/
Dsystem-server-current.txt42 …method @Nullable public com.android.role.persistence.RolesState readForUser(@NonNull android.os.Us…
43 …method public void writeForUser(@NonNull com.android.role.persistence.RolesState, @NonNull android…
46 public final class RolesState {
47 …ctor public RolesState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.Se…
48 …ndroid.permission.flags.system_server_role_controller_enabled") public RolesState(int, @Nullable S…
/packages/modules/Permission/tests/apex/java/com/android/role/persistence/
DRolesPersistenceTest.kt48 private lateinit var state: RolesState
52 private val stateVersionUndefined = RolesState(VERSION_UNDEFINED, PACKAGE_HASH, defaultRoles)
54 RolesState(VERSION_FALLBACK_MIGRATED, PACKAGE_HASH, defaultRoles, setOf(ROLE_NAME))
115 private fun getState(): RolesState = in getState()
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java38 import com.android.role.persistence.RolesState;
442 RolesState roles; in writeFile()
452 roles = new RolesState(mVersion, packagesHash, in writeFile()
462 RolesState roleState = mPersistence.readForUser(UserHandle.of(mUserId)); in readFile()