/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | GrantTimePersistenceUnitTest.java | 112 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()
|
D | FirstGrantTimeUnitTest.java | 97 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/ |
D | RolesPersistenceTest.kt | 90 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/ |
D | RuntimePermissionsPersistenceTest.kt | 88 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/ |
D | system-server-current.txt | 7 …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/ |
D | RuntimePermissionsPersistence.java | 43 RuntimePermissionsState readForUser(@NonNull UserHandle user); in readForUser() method
|
D | RuntimePermissionsPersistenceImpl.java | 98 public RuntimePermissionsState readForUser(@NonNull UserHandle user) { in readForUser() method in RuntimePermissionsPersistenceImpl
|
/packages/modules/Permission/service/java/com/android/role/persistence/ |
D | RolesPersistence.java | 43 RolesState readForUser(@NonNull UserHandle user); in readForUser() method
|
D | RolesPersistenceImpl.java | 95 public RolesState readForUser(@NonNull UserHandle user) { in readForUser() method in RolesPersistenceImpl
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | FirstGrantTimeDatastore.java | 50 UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType); in readForUser() method
|
D | FirstGrantTimeDatastoreXmlPersistence.java | 46 public UserGrantTimeState readForUser(@NonNull UserHandle user, @DataType int dataType) { in readForUser() method in FirstGrantTimeDatastoreXmlPersistence
|
D | FirstGrantTimeManager.java | 349 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/ |
D | RoleUserState.java | 462 RolesState roleState = mPersistence.readForUser(UserHandle.of(mUserId)); in readFile()
|