Home
last modified time | relevance | path

Searched refs:getSharedPreferences (Results 1 – 25 of 134) sorted by relevance

123456

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java209 return getSharedPreferences().getInt(PreferenceKeys.MIGRATED_VERSION, 0) in hasMigrationCompleted()
219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
232 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
251 return getSharedPreferences().getBoolean(PreferenceKeys.DEFAULT_REPLY_ALL, false); in getDefaultReplyAll()
268 final SharedPreferences sharedPreferences = getSharedPreferences(); in getRemovalAction()
291 final SharedPreferences sharedPreferences = getSharedPreferences(); in getIsConversationListSwipeEnabled()
322 return getSharedPreferences() in getActiveNotificationSet()
338 return getSharedPreferences() in isConversationPhotoTeaserAlreadyShown()
355 return getSharedPreferences() in isLongPressToSelectTipAlreadyShown()
384 final SharedPreferences sharedPreferences = getSharedPreferences(); in getDisplayImagesFromSender()
[all …]
DAccountPreferences.java97 return getSharedPreferences().contains(PreferenceKeys.DEFAULT_INBOX_NOTIFICATIONS_ENABLED); in isDefaultInboxNotificationsEnabledSet()
101 return getSharedPreferences() in getDefaultInboxNotificationsEnabled()
114 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATIONS_ENABLED, true); in areNotificationsEnabled()
123 return getSharedPreferences().getInt(PreferenceKeys.ACCOUNT_SYNC_OFF_DISMISSES, 0); in getNumOfDismissesForAccountSyncOff()
127 final int value = getSharedPreferences().getInt( in resetNumOfDismissesForAccountSyncOff()
135 final int value = getSharedPreferences().getInt( in incNumOfDismissesForAccountSyncOff()
141 return getSharedPreferences().getInt(PreferenceKeys.LAST_SEEN_OUTBOX_COUNT, 0); in getLastSeenOutboxCount()
DFolderPreferences.java207 return getSharedPreferences().contains(PreferenceKeys.NOTIFICATIONS_ENABLED); in isNotificationsEnabledSet()
211 return getSharedPreferences().getBoolean( in areNotificationsEnabled()
221 return getSharedPreferences().getString(PreferenceKeys.NOTIFICATION_RINGTONE, in getNotificationRingtoneUri()
231 return getSharedPreferences().getBoolean(PreferenceKeys.NOTIFICATION_VIBRATE, false); in isNotificationVibrateEnabled()
240 return getSharedPreferences() in isEveryMessageNotificationEnabled()
DVersionedPrefs.java64 mSharedPreferences = context.getSharedPreferences(sharedPrefsName, Context.MODE_PRIVATE); in VersionedPrefs()
98 protected SharedPreferences getSharedPreferences() { in getSharedPreferences() method in VersionedPrefs
194 final SharedPreferences sharedPreferences = getSharedPreferences(); in getBackupPreferences()
263 final Map<String, ?> allPrefs = getSharedPreferences().getAll(); in shouldBackUp()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java52 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in LocalBluetoothPreferences
53 return context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
57 return getSharedPreferences(context).getLong( in getDiscoverableEndTimestamp()
82 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground()
120 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistSelectedDeviceInPicker()
129 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoverableEndTimestamp()
139 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in persistDiscoveringTimestamp()
149 return getSharedPreferences(context).contains(KEY_DOCK_AUTO_CONNECT + addr); in hasDockAutoConnectSetting()
153 return getSharedPreferences(context).getBoolean(KEY_DOCK_AUTO_CONNECT + addr, in getDockAutoConnectSetting()
158 SharedPreferences.Editor editor = getSharedPreferences(context).edit(); in saveDockAutoConnectSetting()
[all …]
DCachedBluetoothDevice.java686 SharedPreferences preferences = mContext.getSharedPreferences( in migratePhonebookPermissionChoice()
729 SharedPreferences preferences = mContext.getSharedPreferences( in migrateMessagePermissionChoice()
761 SharedPreferences preference = mContext.getSharedPreferences( in fetchMessageRejectionCount()
767 SharedPreferences.Editor editor = mContext.getSharedPreferences( in saveMessageRejectionCount()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref()
331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
341 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
346 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
351 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference()
363 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
368 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
385 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
392 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in setSharedPreference()
399 SharedPreferences prefs = context.getSharedPreferences( in removeSharedPreference()
[all …]
DGeneralPreferences.java133 public static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in GeneralPreferences
134 return context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in getSharedPreferences()
152 final SharedPreferences sharedPreferences = getSharedPreferences(activity); in onCreate()
191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, in onCreate()
252 getPreferenceScreen().getSharedPreferences() in onStart()
273 getPreferenceScreen().getSharedPreferences() in onStop()
DCalendarUtils.java126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); in onQueryComplete()
223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in setTimeZone()
273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in getTimeZone()
353 public static SharedPreferences getSharedPreferences(Context context, String prefsName) { in getSharedPreferences() method in CalendarUtils
354 return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE); in getSharedPreferences()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAdvancedSettingsFragment.java58 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate()
118 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume()
141 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
155 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings()
199 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressSoundVolumeSettings()
DSubScreenFragment.java78 final SharedPreferences getSharedPreferences() {
79 return getPreferenceManager().getSharedPreferences();
108 getSharedPreferences().registerOnSharedPreferenceChangeListener(
114 getSharedPreferences().unregisterOnSharedPreferenceChangeListener(
DThemeSettingsFragment.java49 final SharedPreferences prefs = pref.getSharedPreferences(); in updateKeyboardThemeSummary()
76 final SharedPreferences prefs = getSharedPreferences(); in onCreate()
99 KeyboardTheme.saveKeyboardThemeId(mSelectedThemeId, getSharedPreferences()); in onPause()
DDebugSettingsFragment.java167 final SharedPreferences prefs = getSharedPreferences(); in setupKeyLongpressTimeoutSettings()
206 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationScale()
258 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationDuration()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilterController.java89 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences()); in ContactListFilterControllerImpl()
108 private SharedPreferences getSharedPreferences() { in getSharedPreferences() method in ContactListFilterControllerImpl
122 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter); in setContactListFilter()
151 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()), in checkFilterValidity()
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences()
360 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean()
530 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean()
561 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterInt()
796 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterInt()
869 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterIntArray()
923 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterString()
981 final SharedPreferences prefs = context.getSharedPreferences(packageName, in openSession()
DCompatibility.java66 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in onCreate()
152 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in pickDefaultControlPanel()
209 SharedPreferences pref = getSharedPreferences("musicfx", MODE_PRIVATE); in setDefault()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java49 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in onDeleted()
89 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in migrateLegacyWidgetInformation()
176 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadAccountIdPref()
187 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadMailboxIdPref()
/packages/apps/Contacts/src/com/android/contacts/
DContactsActivity.java55 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContactsActivity
58 SharedPreferences prefs = services.getSharedPreferences(); in getSharedPreferences()
64 return super.getSharedPreferences(name, mode); in getSharedPreferences()
DContactsApplication.java78 public SharedPreferences getSharedPreferences(String name, int mode) { in getSharedPreferences() method in ContactsApplication
80 SharedPreferences prefs = sInjectedServices.getSharedPreferences(); in getSharedPreferences()
86 return super.getSharedPreferences(name, mode); in getSharedPreferences()
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountPromptUtils.java55 private static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences() method in AccountPromptUtils
74 return getSharedPreferences(context).getBoolean(KEY_SHOW_ACCOUNT_PROMPT, true); in shouldShowAccountPrompt()
85 getSharedPreferences(context).edit() in neverShowAccountPromptAgain()
/packages/apps/Protips/src/com/android/protips/
DProtipWidget.java73 SharedPreferences pref = context.getSharedPreferences(PREFS_NAME, 0); in setup()
125 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceiveAsync()
138 SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit(); in onReceiveAsync()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java192 SharedPreferences settings = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0); in restoreApplicationData()
214 mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0).edit().clear().apply(); in restoreApplicationData()
221 SharedPreferences.Editor editor = mContext.getSharedPreferences(OPP_PREFERENCE_FILE, 0) in storeApplicationData()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java208 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in onReceive()
224 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in flushInstallQueue()
235 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in processInstallShortcut()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java94 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in removeFromInstallQueue()
164 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in queuePendingShortcutInfo()
180 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in flushInstallQueue()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockSettings.java34 getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener( in onCreate()
45 getPreferenceManager().getSharedPreferences().unregisterOnSharedPreferenceChangeListener( in onDestroy()

123456