Home | History | Annotate | Download | only in settings

Lines Matching refs:prefs

51     // In the same order as xml/prefs.xml
156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
177 final SharedPreferences prefs = mPrefs;
181 return new SettingsValues(context, prefs, res, inputAttributes);
204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs,
206 return prefs.getBoolean(PREF_SOUND_ON,
210 public static boolean readVibrationEnabled(final SharedPreferences prefs,
213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON,
217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs,
219 return prefs.getBoolean(PREF_AUTO_CORRECTION, true);
226 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs,
228 return prefs.getBoolean(PREF_BLOCK_POTENTIALLY_OFFENSIVE,
236 public static boolean readGestureInputEnabled(final SharedPreferences prefs,
239 && prefs.getBoolean(PREF_GESTURE_INPUT, true);
246 public static boolean readKeyPreviewPopupEnabled(final SharedPreferences prefs,
253 return prefs.getBoolean(PREF_POPUP_ON, defaultKeyPreviewPopup);
256 public static int readKeyPreviewPopupDismissDelay(final SharedPreferences prefs,
258 return Integer.parseInt(prefs.getString(PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY,
263 public static boolean readShowsLanguageSwitchKey(final SharedPreferences prefs) {
264 if (prefs.contains(PREF_SUPPRESS_LANGUAGE_SWITCH_KEY)) {
265 final boolean suppressLanguageSwitchKey = prefs.getBoolean(
267 final SharedPreferences.Editor editor = prefs.edit();
272 return prefs.getBoolean(PREF_SHOW_LANGUAGE_SWITCH_KEY, true);
275 public static String readPrefAdditionalSubtypes(final SharedPreferences prefs,
279 return prefs.getString(PREF_CUSTOM_INPUT_STYLES, predefinedPrefSubtypes);
282 public static void writePrefAdditionalSubtypes(final SharedPreferences prefs,
284 prefs.edit().putString(PREF_CUSTOM_INPUT_STYLES, prefSubtypes).apply();
287 public static float readKeypressSoundVolume(final SharedPreferences prefs,
289 final float volume = prefs.getFloat(
304 public static int readKeyLongpressTimeout(final SharedPreferences prefs,
306 final int milliseconds = prefs.getInt(
316 public static int readKeypressVibrationDuration(final SharedPreferences prefs,
318 final int milliseconds = prefs.getInt(
333 public static float readKeyPreviewAnimationScale(final SharedPreferences prefs,
335 final float fraction = prefs.getFloat(prefKey, UNDEFINED_PREFERENCE_VALUE_FLOAT);
339 public static int readKeyPreviewAnimationDuration(final SharedPreferences prefs,
341 final int milliseconds = prefs.getInt(prefKey, UNDEFINED_PREFERENCE_VALUE_INT);
345 public static float readKeyboardHeight(final SharedPreferences prefs,
347 final float percentage = prefs
356 public static boolean readShowSetupWizardIcon(final SharedPreferences prefs,
358 if (!prefs.contains(PREF_SHOW_SETUP_WIZARD_ICON)) {
365 return prefs.getBoolean(PREF_SHOW_SETUP_WIZARD_ICON, false);
377 public static boolean isInternal(final SharedPreferences prefs) {
378 return prefs.getBoolean(PREF_KEY_IS_INTERNAL, false);
412 public static void writeEmojiRecentKeys(final SharedPreferences prefs, String str) {
413 prefs.edit().putString(PREF_EMOJI_RECENT_KEYS, str).apply();
416 public static String readEmojiRecentKeys(final SharedPreferences prefs) {
417 return prefs.getString(PREF_EMOJI_RECENT_KEYS, "");
421 final SharedPreferences prefs, final int categoryId, final int categoryPageId) {
423 prefs.edit().putInt(key, categoryPageId).apply();
427 final SharedPreferences prefs, final int categoryId) {
429 return prefs.getInt(key, 0);
433 final SharedPreferences prefs, final int categoryId) {
434 prefs.edit().putInt(PREF_LAST_SHOWN_EMOJI_CATEGORY_ID, categoryId).apply();
438 final SharedPreferences prefs, final int defValue) {
439 return prefs.getInt(PREF_LAST_SHOWN_EMOJI_CATEGORY_ID, defValue);
442 private void upgradeAutocorrectionSettings(final SharedPreferences prefs, final Resources res) {
444 prefs.getString(PREF_AUTO_CORRECTION_THRESHOLD_OBSOLETE, null);
446 SharedPreferences.Editor editor = prefs.edit();