Home
last modified time | relevance | path

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

/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java65 private static final String LOCK_GENERATION = "lock_gen"; field in WallpaperBackupAgentTest
139 inOrder.verify(mSharedPreferenceEditor).putInt(eq(LOCK_GENERATION), eq(-1)); in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
209 when(mSharedPreferences.getInt(eq(LOCK_GENERATION), eq(-1))).thenReturn(-1); in mockUnbackedUpState()
215 when(mSharedPreferences.getInt(eq(LOCK_GENERATION), eq(-1))) in mockBackedUpState()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java78 static final String LOCK_GENERATION = "lock_gen"; field in WallpaperBackupAgent
135 final int lastLockGeneration = prefs.getInt(LOCK_GENERATION, -1); in onFullBackup()
194 prefs.edit().putInt(LOCK_GENERATION, lockGeneration).apply(); in onFullBackup()
206 prefs.edit().putInt(LOCK_GENERATION, lockGeneration).apply(); in onFullBackup()
278 .putInt(LOCK_GENERATION, -1) in onRestoreFinished()