Home
last modified time | relevance | path

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

/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java74 @Mock private SharedPreferences.Editor mSharedPreferenceEditor; field in WallpaperBackupAgentTest
87 when(mSharedPreferences.edit()).thenReturn(mSharedPreferenceEditor); in setUp()
88 when(mSharedPreferenceEditor.putInt(anyString(), anyInt())) in setUp()
89 .thenReturn(mSharedPreferenceEditor); in setUp()
90 doNothing().when(mSharedPreferenceEditor).apply(); in setUp()
123 verify(mSharedPreferenceEditor).putInt(eq(SYSTEM_GENERATION), eq(TEST_SYSTEM_WALLPAPER_ID)); in testOnFullBackup_withOnlyChangedSystem_updatesTheSharedPreferences()
135 InOrder inOrder = inOrder(mSharedPreferenceEditor); in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
136 inOrder.verify(mSharedPreferenceEditor) in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
138 inOrder.verify(mSharedPreferenceEditor).apply(); in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
139 inOrder.verify(mSharedPreferenceEditor).putInt(eq(LOCK_GENERATION), eq(-1)); in testOnFullBackup_withLockChangedToMatchSystem_updatesTheSharedPreferences()
[all …]