/packages/apps/Calendar/src/com/android/calendar/ |
H A D | GeneralPreferences.java | 191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, 197 if (!prefs.getBoolean(KEY_HOME_TZ_ENABLED, false)) { 198 mTimeZoneId = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone()); 358 * @param prefs the preferences to upgrade 360 private void migrateOldPreferences(SharedPreferences prefs) { argument 363 mVibrate.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)); 366 if (!prefs.contains(KEY_ALERTS) && prefs.contains(KEY_ALERTS_TYPE)) { 367 String type = prefs.getString(KEY_ALERTS_TYPE, ALERT_TYPE_STATUS_BAR); 382 prefs [all...] |
H A D | AllInOneActivity.java | 431 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(this); 432 prefs.registerOnSharedPreferenceChangeListener(this); 574 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(this); 575 prefs.unregisterOnSharedPreferenceChangeListener(this); 613 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(this); 614 prefs.unregisterOnSharedPreferenceChangeListener(this); 839 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument
|
H A D | Utils.java | 221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); 229 return prefs.getInt(GeneralPreferences.KEY_DETAILED_VIEW, 238 return prefs.getInt( 310 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { argument 312 if (prefs.contains(KEY_ALERTS_VIBRATE_WHEN)) { 317 String vibrateWhen = prefs.getString(KEY_ALERTS_VIBRATE_WHEN, null); 320 prefs.edit().remove(KEY_ALERTS_VIBRATE_WHEN).commit(); 324 vibrate = prefs.getBoolean(GeneralPreferences.KEY_ALERTS_VIBRATE, 331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); 332 Set<String> ss = prefs [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/ |
H A D | CallSubjectDialog.java | 410 * @param prefs Shared preferences. 413 public static List<String> loadSubjectHistory(SharedPreferences prefs) { argument 414 int historySize = prefs.getInt(PREF_KEY_SUBJECT_HISTORY_COUNT, 0); 418 String historyItem = prefs.getString(PREF_KEY_SUBJECT_HISTORY_ITEM + ix, null); 428 * Saves the subject history list to shared prefs, removing older items so that there are only
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerFragment.java | 703 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument 704 if (prefs.equals(mPrefs)) { 705 if (key.equals(Timers.REFRESH_UI_WITH_LATEST_DATA) && prefs.getBoolean(key, false)) {
|
H A D | TimerObj.java | 85 public void writeToSharedPref(SharedPreferences prefs) { argument 88 final Set<String> timerIds = getTimerIds(prefs); 91 final SharedPreferences.Editor editor = prefs.edit() 106 public void readFromSharedPref(SharedPreferences prefs) { argument 109 mStartTime = prefs.getLong(PREF_START_TIME + id, 0); 110 mTimeLeft = prefs.getLong(PREF_TIME_LEFT + id, 0); 111 mOriginalLength = prefs.getLong(PREF_ORIGINAL_TIME + id, 0); 112 mSetupLength = prefs.getLong(PREF_SETUP_TIME + id, 0); 113 mState = prefs.getInt(PREF_STATE + id, 0); 114 mPriorState = prefs 119 deleteFromSharedPref(SharedPreferences prefs) argument 260 getTimerFromSharedPrefs(SharedPreferences prefs, int timerId) argument 267 getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers) argument 281 getTimersFromSharedPrefs(SharedPreferences prefs, List<TimerObj> timers, int state) argument 292 putTimersInSharedPrefs(SharedPreferences prefs, List<TimerObj> timers) argument 298 resetTimersInSharedPrefs(SharedPreferences prefs) argument 308 getTimerIds(SharedPreferences prefs) argument [all...] |
H A D | TimerFullScreenFragment.java | 886 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { argument 887 if (prefs.equals(mPrefs)) { 888 if (key.equals(Timers.REFRESH_UI_WITH_LATEST_DATA) && prefs.getBoolean(key, false)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiCategory.java | 163 public EmojiCategory(final SharedPreferences prefs, final Resources res, argument 165 mPrefs = prefs;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | Utils.java | 263 public static void clearSwSharedPref(SharedPreferences prefs) { argument 264 SharedPreferences.Editor editor = prefs.edit(); 268 int lapNum = prefs.getInt(Stopwatches.PREF_LAP_NUM, Stopwatches.STOPWATCH_RESET);
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | StopwatchFragment.java | 452 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); 453 prefs.registerOnSharedPreferenceChangeListener(this); 454 readFromSharedPref(prefs); 455 mTime.readFromSharedPref(prefs, "sw"); 491 // in shared prefs 492 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); 493 prefs.unregisterOnSharedPreferenceChangeListener(this); 494 writeToSharedPref(prefs); 495 mTime.writeToSharedPref(prefs, "sw"); 545 SharedPreferences prefs 741 writeToSharedPref(SharedPreferences prefs) argument 773 readFromSharedPref(SharedPreferences prefs) argument 804 onSharedPreferenceChanged(SharedPreferences prefs, String key) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | MigrateFromRestoreTask.java | 74 SharedPreferences prefs = prefs(context); 75 Point sourceSize = parsePoint(prefs.getString(KEY_MIGRATION_SOURCE_SIZE, "")); 80 for (String s : prefs.getStringSet(KEY_MIGRATION_WIDGET_MINSIZE, 748 prefs(context).edit() 755 return !TextUtils.isEmpty(prefs(context).getString(KEY_MIGRATION_SOURCE_SIZE, "")); 759 prefs(context).edit().remove(KEY_MIGRATION_SOURCE_SIZE) 763 private static SharedPreferences prefs(Context context) { method in class:MigrateFromRestoreTask
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | SettingsValues.java | 64 // From preferences, in the same order as xml/prefs.xml: 122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, argument 134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); 135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); 136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); 137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); 138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( 140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) 144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) 147 ? Settings.readShowsLanguageSwitchKey(prefs) 306 readSuggestionsEnabled(final SharedPreferences prefs) argument 318 readBigramPredictionEnabled(final SharedPreferences prefs, final Resources res) argument 355 needsToShowVoiceInputKey(final SharedPreferences prefs, final Resources res) argument [all...] |
H A D | Settings.java | 51 // In the same order as xml/prefs.xml 156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { argument 177 final SharedPreferences prefs = mPrefs; 181 return new SettingsValues(context, prefs, res, inputAttributes); 204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, argument 206 return prefs.getBoolean(PREF_SOUND_ON, 210 public static boolean readVibrationEnabled(final SharedPreferences prefs, argument 213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, 217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs, argument 219 return prefs 226 readBlockPotentiallyOffensive(final SharedPreferences prefs, final Resources res) argument 236 readGestureInputEnabled(final SharedPreferences prefs, final Resources res) argument 246 readKeyPreviewPopupEnabled(final SharedPreferences prefs, final Resources res) argument 256 readKeyPreviewPopupDismissDelay(final SharedPreferences prefs, final Resources res) argument 263 readShowsLanguageSwitchKey(final SharedPreferences prefs) argument 275 readPrefAdditionalSubtypes(final SharedPreferences prefs, final Resources res) argument 282 writePrefAdditionalSubtypes(final SharedPreferences prefs, final String prefSubtypes) argument 287 readKeypressSoundVolume(final SharedPreferences prefs, final Resources res) argument 304 readKeyLongpressTimeout(final SharedPreferences prefs, final Resources res) argument 316 readKeypressVibrationDuration(final SharedPreferences prefs, final Resources res) argument 333 readKeyPreviewAnimationScale(final SharedPreferences prefs, final String prefKey, final float defaultValue) argument 339 readKeyPreviewAnimationDuration(final SharedPreferences prefs, final String prefKey, final int defaultValue) argument 345 readKeyboardHeight(final SharedPreferences prefs, final float defaultValue) argument 356 readShowSetupWizardIcon(final SharedPreferences prefs, final Context context) argument 377 isInternal(final SharedPreferences prefs) argument 412 writeEmojiRecentKeys(final SharedPreferences prefs, String str) argument 416 readEmojiRecentKeys(final SharedPreferences prefs) argument 420 writeLastTypedEmojiCategoryPageId( final SharedPreferences prefs, final int categoryId, final int categoryPageId) argument 426 readLastTypedEmojiCategoryPageId( final SharedPreferences prefs, final int categoryId) argument 432 writeLastShownEmojiCategoryId( final SharedPreferences prefs, final int categoryId) argument 437 readLastShownEmojiCategoryId( final SharedPreferences prefs, final int defValue) argument 442 upgradeAutocorrectionSettings(final SharedPreferences prefs, final Resources res) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertService.java | 114 // Shared prefs key for storing whether the EVENT_REMINDER event from the provider 270 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); 276 if (!prefs.getBoolean(GeneralPreferences.KEY_ALERTS, true)) { 303 return generateAlerts(context, nm, AlertUtils.createAlarmManager(context), prefs, 308 AlarmManagerInterface alarmMgr, SharedPreferences prefs, Cursor alertCursor, 329 NotificationPrefs notificationPrefs = new NotificationPrefs(context, prefs, 863 Context context, boolean highPriority, NotificationPrefs prefs, 873 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal); 878 quietUpdate = prefs.quietUpdate; 882 ringtone = prefs 307 generateAlerts(Context context, NotificationMgr nm, AlarmManagerInterface alarmMgr, SharedPreferences prefs, Cursor alertCursor, final long currentTime, final int maxNotifications) argument 862 postNotification(NotificationInfo info, String summaryText, Context context, boolean highPriority, NotificationPrefs prefs, NotificationMgr notificationMgr, int notificationId) argument 964 private SharedPreferences prefs; field in class:AlertService.NotificationPrefs 973 NotificationPrefs(Context context, SharedPreferences prefs, boolean quietUpdate) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ViewImage.java | 678 SharedPreferences prefs, String key, int defaultValue) { 679 String value = prefs.getString(key, null); 677 getPreferencesInteger( SharedPreferences prefs, String key, int defaultValue) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactsProvider2.java | 1568 private static LocaleSet getProviderPrefLocales(SharedPreferences prefs) { argument 1569 final String providerLocaleString = prefs.getString(PREF_LOCALE, null); 1580 // On startup need to reload the locale set from prefs for update. 1581 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); 1582 return updateLocaleSet(getProviderPrefLocales(prefs), curLocale); 1586 private static LocaleSet getLocaleSet(SharedPreferences prefs, Locale curLocale) { argument 1587 return updateLocaleSet(getProviderPrefLocales(prefs), curLocale); 1791 private static boolean needsToUpdateLocaleData(SharedPreferences prefs, argument 1794 final String providerLocales = prefs.getString(PREF_LOCALE, null); 1826 final SharedPreferences prefs [all...] |