Home
last modified time | relevance | path

Searched refs:backupState (Results 1 – 2 of 2) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java349 UserGrantTimeState backupState = mDatastore.readForUser(user, DATA_TYPE_STAGED); in tryUpdateGrantTimeFromStagedDataLocked() local
350 if (backupState == null) { in tryUpdateGrantTimeFromStagedDataLocked()
356 stagedTime = backupState.getPackageGrantTimes().get(packageName); in tryUpdateGrantTimeFromStagedDataLocked()
377 backupState.getPackageGrantTimes().remove(packageName); in tryUpdateGrantTimeFromStagedDataLocked()
379 mDatastore.writeForUser(backupState, user, DATA_TYPE_STAGED); in tryUpdateGrantTimeFromStagedDataLocked()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java349 UserGrantTimeState backupState = new UserGrantTimeState(DEFAULT_VERSION); in setupGrantTimeState() local
351 backupState.setPackageGrantTime(SELF_PACKAGE_NAME, stagedTime); in setupGrantTimeState()
353 when(mDatastore.readForUser(CURRENT_USER, DATA_TYPE_STAGED)).thenReturn(backupState); in setupGrantTimeState()
354 return backupState; in setupGrantTimeState()