Lines Matching refs:prefs

59     // From preferences, in the same order as xml/prefs.xml:
112 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res,
129 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true);
130 mVibrateOn = Settings.readVibrationEnabled(prefs, res);
131 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res);
132 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res);
133 mSlidingKeyInputPreviewEnabled = prefs.getBoolean(
135 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res)
138 final String autoCorrectionThresholdRawValue = prefs.getString(
142 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false)
145 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */;
146 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true);
147 mUsePersonalizedDicts = prefs.getBoolean(Settings.PREF_KEY_USE_PERSONALIZED_DICTS, true);
148 mUseDoubleSpacePeriod = prefs.getBoolean(Settings.PREF_KEY_USE_DOUBLE_SPACE_PERIOD, true)
150 mBlockPotentiallyOffensive = Settings.readBlockPotentiallyOffensive(prefs, res);
152 mBigramPredictionEnabled = readBigramPredictionEnabled(prefs, res);
155 mEnableMetricsLogging = prefs.getBoolean(Settings.PREF_ENABLE_METRICS_LOGGING, true);
157 && prefs.getBoolean(DebugSettings.PREF_SHOW_UI_TO_ACCEPT_TYPED_WORD, true);
159 mKeyLongpressTimeout = Settings.readKeyLongpressTimeout(prefs, res);
160 mKeypressVibrationDuration = Settings.readKeypressVibrationDuration(prefs, res);
161 mKeypressSoundVolume = Settings.readKeypressSoundVolume(prefs, res);
162 mKeyPreviewPopupDismissDelay = Settings.readKeyPreviewPopupDismissDelay(prefs, res);
165 mGestureInputEnabled = Settings.readGestureInputEnabled(prefs, res);
166 mGestureTrailEnabled = prefs.getBoolean(Settings.PREF_GESTURE_PREVIEW_TRAIL, true);
167 mGestureFloatingPreviewTextEnabled = prefs.getBoolean(
169 mPhraseGestureEnabled = Settings.readPhraseGestureEnabled(prefs, res);
172 mSuggestionsEnabledPerUserSettings = readSuggestionsEnabled(prefs);
174 prefs, mAdditionalFeaturesSettingValues);
177 mIsInternal = Settings.isInternal(prefs);
178 mHasCustomKeyPreviewAnimationParams = prefs.getBoolean(
181 prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_DURATION,
184 prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_DURATION,
191 prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_X_SCALE,
194 prefs, DebugSettings.PREF_KEY_PREVIEW_SHOW_UP_START_Y_SCALE,
197 prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_X_SCALE,
200 prefs, DebugSettings.PREF_KEY_PREVIEW_DISMISS_END_Y_SCALE,
286 private static boolean readSuggestionsEnabled(final SharedPreferences prefs) {
287 if (prefs.contains(Settings.PREF_SHOW_SUGGESTIONS_SETTING_OBSOLETE)) {
289 prefs.getString(Settings.PREF_SHOW_SUGGESTIONS_SETTING_OBSOLETE, null));
290 prefs.edit()
295 return prefs.getBoolean(Settings.PREF_SHOW_SUGGESTIONS, true);
298 private static boolean readBigramPredictionEnabled(final SharedPreferences prefs,
300 return prefs.getBoolean(Settings.PREF_BIGRAM_PREDICTIONS, res.getBoolean(
335 private static boolean needsToShowVoiceInputKey(final SharedPreferences prefs,
339 if (prefs.contains(Settings.PREF_VOICE_MODE_OBSOLETE)) {
341 final String voiceMode = prefs.getString(
344 prefs.edit()
350 return prefs.getBoolean(Settings.PREF_VOICE_INPUT_KEY, true);