Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DGrantTimePersistenceUnitTest.java112 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_packageAndSharedUserState_restoredCorrectly()
120 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_multipleSharedUserState_restoredCorrectly()
128 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_multiplePackagesState_restoredCorrectly()
136 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_emptyState_restoredCorrectly()
145 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_overwroteState_restoredCorrectly()
155 datastore.readForUser(mUser, DATA_TYPE_CURRENT), PACKAGES_STATE); in testWriteReadData_writeAllStateTypes_restoredCorrectly()
156 assertRestoredStateIsCorrect(datastore.readForUser(mUser, DATA_TYPE_STAGED), EMPTY_STATE); in testWriteReadData_writeAllStateTypes_restoredCorrectly()
164 UserGrantTimeState restoredState = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testWriteReadData_statesForTwoUsersWritten_restoredCorrectly()
167 datastore.readForUser(UserHandle.of(10), DATA_TYPE_CURRENT); in testWriteReadData_statesForTwoUsersWritten_restoredCorrectly()
174 UserGrantTimeState state = datastore.readForUser(mUser, DATA_TYPE_CURRENT); in testReadData_stateIsNotWritten_nullIsReturned()
DFirstGrantTimeUnitTest.java97 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_CURRENT)) in setUp()
99 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_STAGED)) in setUp()
151 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_CURRENT)) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
192 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_CURRENT)).thenReturn(null); in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
193 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_STAGED)).thenReturn(null); in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
206 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_CURRENT)) in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
268 .readForUser( in testCurrentPackage_intentSupported_grantTimeIsNotNull()
346 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_CURRENT)).thenReturn(state); in setupGrantTimeState()
353 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_STAGED)).thenReturn(backupState); in setupGrantTimeState()
/packages/modules/Permission/tests/apex/java/com/android/role/persistence/
DRolesPersistenceTest.kt90 val persistedState = persistence.readForUser(user) in testWriteRead()
101 val persistedState = persistence.readForUser(user) in testWriteCorruptReadFromReserveCopy()
110 val persistedState = persistence.readForUser(user) in testDelete()
/packages/modules/Permission/tests/apex/java/com/android/permission/persistence/
DRuntimePermissionsPersistenceTest.kt88 val persistedState = persistence.readForUser(user) in testWriteRead()
101 val persistedState = persistence.readForUser(user) in testWriteCorruptReadFromReserveCopy()
110 val persistedState = persistence.readForUser(user) in testDelete()
/packages/modules/Permission/service/api/
Dsystem-server-current.txt7 …method @Nullable public com.android.permission.persistence.RuntimePermissionsState readForUser(@No…
42 …method @Nullable public com.android.role.persistence.RolesState readForUser(@NonNull android.os.Us…
/packages/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistence.java43 RuntimePermissionsState readForUser(@NonNull UserHandle user); in readForUser() method
DRuntimePermissionsPersistenceImpl.java98 public RuntimePermissionsState readForUser(@NonNull UserHandle user) { in readForUser() method in RuntimePermissionsPersistenceImpl
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistence.java43 RolesState readForUser(@NonNull UserHandle user); in readForUser() method
DRolesPersistenceImpl.java95 public RolesState readForUser(@NonNull UserHandle user) { in readForUser() method in RolesPersistenceImpl
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeDatastore.java50 UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType); in readForUser() method
DFirstGrantTimeDatastoreXmlPersistence.java46 public UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType) { in readForUser() method in FirstGrantTimeDatastoreXmlPersistence
DFirstGrantTimeManager.java349 UserGrantTimeState backupState = mDatastore.readForUser(user, DATA_TYPE_STAGED); in tryUpdateGrantTimeFromStagedDataLocked()
443 mDatastore.readForUser(userHandle, DATA_TYPE_CURRENT); in restoreCurrentUserStateLocked()
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java462 RolesState roleState = mPersistence.readForUser(UserHandle.of(mUserId)); in readFile()