Searched refs:getSharedPreferences (Results 1 – 16 of 16) sorted by relevance
42 SharedPreferences eabPref = context.getSharedPreferences( in isInitDone()48 SharedPreferences.Editor eabPref = context.getSharedPreferences( in setInitDone()55 SharedPreferences pref = context.getSharedPreferences(EAB_SHARED_PREF, in getLastContactChangedTimestamp()62 SharedPreferences.Editor eabPref = context.getSharedPreferences( in saveLastContactChangedTimestamp()69 SharedPreferences pref = context.getSharedPreferences(EAB_SHARED_PREF, in getLastProfileContactChangedTimestamp()76 SharedPreferences.Editor eabPref = context.getSharedPreferences( in saveLastProfileContactChangedTimestamp()83 SharedPreferences pref = context.getSharedPreferences(EAB_SHARED_PREF, in getLastContactDeletedTimestamp()90 SharedPreferences.Editor eabPref = context.getSharedPreferences( in saveLastContactDeletedTimestamp()98 SharedPreferences.Editor eabPref = context.getSharedPreferences( in validateDeviceTimestamp()110 SharedPreferences.Editor eabPref = context.getSharedPreferences( in resetEABSharedPref()
48 mCommonPref = mContext.getSharedPreferences(PREFERENCES, Context.MODE_PRIVATE); in setContext()
36 sharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); in setUp()57 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_P… in commit_shouldStoreValues()73 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_P… in commit_shouldClearEditsThatNeedRemoveAndEditsThatNeedCommit()98 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_P… in commit_shouldRemoveValuesThenSetValues()118 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_P… in commit_shouldClearThenSetValues()154 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences(FILENAME, Context.MODE_P… in apply_shouldStoreValues()160 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_… in shouldReturnDefaultValues()171 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_… in shouldRemoveRegisteredListenersOnUnresgister()184 …SharedPreferences anotherSharedPreferences = context.getSharedPreferences("bazBang", Context.MODE_… in shouldTriggerRegisteredListeners()
62 .getSharedPreferences(PREFS, Context.MODE_PRIVATE) in testMoveSharedPreferencesFrom()69 assertThat(dpContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()71 assertThat(context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()76 assertThat(dpContext.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()78 assertThat(context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).contains(PREF_NAME)) in testMoveSharedPreferencesFrom()
544 … final SharedPreferences pref1 = contextWrapper.getSharedPreferences("pref", Context.MODE_PRIVATE);545 … final SharedPreferences pref2 = contextWrapper.getSharedPreferences("pref", Context.MODE_PRIVATE);552 …final SharedPreferences pref1 = contextWrapper.getSharedPreferences("pref1", Context.MODE_PRIVATE);553 …final SharedPreferences pref2 = contextWrapper.getSharedPreferences("pref2", Context.MODE_PRIVATE);
65 Editor backupEditor = getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE).edit(); in writeFromPreferenceFilesToBackupFile()99 SharedPreferences srcSharedPreferences = getSharedPreferences(srcFileName, MODE_PRIVATE); in writeToBackupFile()153 getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE).edit().clear().apply(); in clearBackupFile()167 getSharedPreferences(RESERVED_SHARED_PREFERENCES, MODE_PRIVATE); in writeFromBackupFileToPreferenceFiles()188 editor = getSharedPreferences(fileName, MODE_PRIVATE).edit(); in writeFromBackupFileToPreferenceFiles()
41 SharedPreferences preferences = context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in encodeRingtonePreference()88 SharedPreferences preferences = context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in decodeRingtonePreference()
87 Map<String, ?> prefs = context.getSharedPreferences(prefGroup, MODE_PRIVATE).getAll(); in backup()119 if (context.getSharedPreferences(prefGroup, MODE_PRIVATE).getAll().isEmpty()) { in restore()139 Editor editor = context.getSharedPreferences(prefGroup, MODE_PRIVATE).edit().clear(); in restore()
48 config.setPrefs(getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE)); in onCreate()62 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onDialogClosed()
43 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE);57 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE);94 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
139 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()190 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onResume()346 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreateDialog()
140 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()
102 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onCreate()289 … SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE); in onResume()
82 settingsFragment.getPreferenceScreen().getSharedPreferences(); in onResume()112 settingsFragment.getPreferenceScreen().getSharedPreferences(); in onPause()
103 return mService.getSharedPreferences(filename, 0); in getPref()
114 public SharedPreferences getSharedPreferences(String s, int i) { in getSharedPreferences() method in MockContext.MockContext2