Home
last modified time | relevance | path

Searched refs:writeForUser (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DGrantTimePersistenceUnitTest.java111 datastore.writeForUser(DEFAULT_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_packageAndSharedUserState_restoredCorrectly()
119 datastore.writeForUser(SHARED_USERS_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_multipleSharedUserState_restoredCorrectly()
127 datastore.writeForUser(PACKAGES_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_multiplePackagesState_restoredCorrectly()
135 datastore.writeForUser(EMPTY_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_emptyState_restoredCorrectly()
143 datastore.writeForUser(PACKAGES_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_overwroteState_restoredCorrectly()
144 datastore.writeForUser(DEFAULT_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_overwroteState_restoredCorrectly()
152 datastore.writeForUser(PACKAGES_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_writeAllStateTypes_restoredCorrectly()
153 datastore.writeForUser(EMPTY_STATE, mUser, DATA_TYPE_STAGED); in testWriteReadData_writeAllStateTypes_restoredCorrectly()
162 datastore.writeForUser(PACKAGES_STATE, mUser, DATA_TYPE_CURRENT); in testWriteReadData_statesForTwoUsersWritten_restoredCorrectly()
163 datastore.writeForUser(SHARED_USERS_STATE, UserHandle.of(10), DATA_TYPE_CURRENT); in testWriteReadData_statesForTwoUsersWritten_restoredCorrectly()
DFirstGrantTimeUnitTest.java165 verify(mDatastore).writeForUser(captor.capture(), eq(CURRENT_USER), anyInt()); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
263 .writeForUser( in testCurrentPackage_intentSupported_grantTimeIsNotNull()
/packages/modules/Permission/tests/apex/java/com/android/role/persistence/
DRolesPersistenceTest.kt89 persistence.writeForUser(state, user) in testWriteRead()
97 persistence.writeForUser(state, user) in testWriteCorruptReadFromReserveCopy()
108 persistence.writeForUser(state, user) in testDelete()
/packages/modules/Permission/tests/apex/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt87 persistence.writeForUser(state, user) in testWriteRead()
95 persistence.writeForUser(state, user) in testWriteCorruptReadFromReserveCopy()
108 persistence.writeForUser(state, user) in testDelete()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java142 mDatastore.writeForUser( in setFirstGrantTime()
240 mDatastore.writeForUser(updatedState, user, DATA_TYPE_CURRENT); in updateFirstGrantTimesFromPermissionState()
278 mDatastore.writeForUser(state, userId, DATA_TYPE_STAGED); in applyAndStageGrantTimeStateForUser()
310 mDatastore.writeForUser(updatedState, userHandle, DATA_TYPE_CURRENT); in onPackageRemoved()
339 mDatastore.writeForUser( in updateGrantTimesWithStagedDataLocked()
379 mDatastore.writeForUser(backupState, user, DATA_TYPE_STAGED); in tryUpdateGrantTimeFromStagedDataLocked()
504 mDatastore.writeForUser(recordedState, user, DATA_TYPE_CURRENT); in validateAndCorrectRecordedStateForUser()
DFirstGrantTimeDatastore.java57 void writeForUser( in writeForUser() method
DFirstGrantTimeDatastoreXmlPersistence.java60 public void writeForUser( in writeForUser() method in FirstGrantTimeDatastoreXmlPersistence
/packages/modules/Permission/service/api/
Dsystem-server-current.txt8 …method public void writeForUser(@NonNull com.android.permission.persistence.RuntimePermissionsStat…
43 …method public void writeForUser(@NonNull com.android.role.persistence.RolesState, @NonNull android…
/packages/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistence.java53 void writeForUser(@NonNull RuntimePermissionsState runtimePermissions, in writeForUser() method
DRuntimePermissionsPersistenceImpl.java215 public void writeForUser(@NonNull RuntimePermissionsState runtimePermissions, in writeForUser() method in RuntimePermissionsPersistenceImpl
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistence.java53 void writeForUser(@NonNull RolesState roles, @NonNull UserHandle user); in writeForUser() method
DRolesPersistenceImpl.java192 public void writeForUser(@NonNull RolesState roles, @NonNull UserHandle user) { in writeForUser() method in RolesPersistenceImpl
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java457 mPersistence.writeForUser(roles, UserHandle.of(mUserId)); in writeFile()