Home
last modified time | relevance | path

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

/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java64 private static final String SYSTEM_GENERATION = "system_gen"; field in WallpaperBackupAgentTest
123 verify(mSharedPreferenceEditor).putInt(eq(SYSTEM_GENERATION), eq(TEST_SYSTEM_WALLPAPER_ID)); in testOnFullBackup_withOnlyChangedSystem_updatesTheSharedPreferences()
137 .putInt(eq(SYSTEM_GENERATION), eq(TEST_SYSTEM_WALLPAPER_ID)); in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
208 when(mSharedPreferences.getInt(eq(SYSTEM_GENERATION), eq(-1))).thenReturn(-1); in mockUnbackedUpState()
213 when(mSharedPreferences.getInt(eq(SYSTEM_GENERATION), eq(-1))) in mockBackedUpState()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java76 static final String SYSTEM_GENERATION = "system_gen"; field in WallpaperBackupAgent
133 final int lastSysGeneration = prefs.getInt(SYSTEM_GENERATION, -1); in onFullBackup()
179 prefs.edit().putInt(SYSTEM_GENERATION, sysGeneration).apply(); in onFullBackup()
276 .putInt(SYSTEM_GENERATION, -1) in onRestoreFinished()