Searched refs:backupState (Results 1 – 2 of 2) sorted by relevance
349 UserGrantTimeState backupState = mDatastore.readForUser(user, DATA_TYPE_STAGED); in tryUpdateGrantTimeFromStagedDataLocked() local350 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()
349 UserGrantTimeState backupState = new UserGrantTimeState(DEFAULT_VERSION); in setupGrantTimeState() local351 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()