Searched refs:mDefaultPrefs (Results 1 – 1 of 1) sorted by relevance
49 private SharedPreferences mDefaultPrefs; field in PrefsBackupHelperTest55 mDefaultPrefs = InstrumentationRegistry.getContext().getSharedPreferences("prefs1", 0); in setUp()58 mPrefsBackupHelper = new PrefsBackupHelper(mDefaultPrefs); in setUp()67 mDefaultPrefs.edit().clear().commit(); in clearSharedPrefs()73 mDefaultPrefs.edit().putInt(LOCAL_PREFERENCE_1, 1).commit(); in testPrepareBackupFile_BackupLocalPreferences()82 mDefaultPrefs.edit().putBoolean(SCOPED_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupScopedPreferences()91 mDefaultPrefs.edit().putBoolean(NON_BACKUP_PREFERENCE, true).commit(); in testPrepareBackupFile_BackupNotInterestedPreferences()101 mDefaultPrefs.edit().putString(LOCAL_PREFERENCE_1, "String is not accepted").commit(); in testPrepareBackupFile_BackupUnexpectedType()119 assertEquals(mDefaultPrefs.getInt(LOCAL_PREFERENCE_1, 0), 1); in testRestorePreferences_RestoreLocalPreferences()128 assertEquals(mDefaultPrefs.getBoolean(SCOPED_PREFERENCE, false), true); in testRestorePreferences_RestoreScopedPreferences()[all …]