Lines Matching refs:res
21 import android.content.res.Resources;
50 final Resources res = getResources();
69 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) {
75 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger(
78 res.getString(R.string.key_preview_popup_dismiss_no_delay),
79 res.getString(R.string.key_preview_popup_dismiss_default_delay),
89 Settings.readKeyPreviewPopupEnabled(prefs, res));
92 if (!res.getBoolean(R.bool.config_setup_wizard_available)) {
101 final String applicationName = res.getString(applicationLabelRes);
102 final String enableMetricsLoggingTitle = res.getString(
129 final Resources res = getResources();
132 Settings.readKeyPreviewPopupEnabled(prefs, res));
142 final Resources res = getResources();
144 Settings.readVibrationEnabled(prefs, res));
146 Settings.readKeypressSoundEnabled(prefs, res));
156 final Resources res = getResources();
170 return Settings.readKeypressVibrationDuration(prefs, res);
175 return Settings.readDefaultKeypressVibrationDuration(res);
186 return res.getString(R.string.settings_system_default);
188 return res.getString(R.string.abbreviation_unit_milliseconds, value);
200 final Resources res = getResources();
225 return getPercentageFromValue(Settings.readKeypressSoundVolume(prefs, res));
230 return getPercentageFromValue(Settings.readDefaultKeypressSoundVolume(res));
236 return res.getString(R.string.settings_system_default);