Lines Matching refs:res

22 import android.content.res.Configuration;
23 import android.content.res.Resources;
182 protected SettingsValues job(final Resources res) {
183 return new SettingsValues(context, prefs, res, inputAttributes);
211 final Resources res) {
213 res.getBoolean(R.bool.config_default_sound_enabled));
217 final Resources res) {
220 res.getBoolean(R.bool.config_default_vibration_enabled));
224 final Resources res) {
225 final String autoCorrectionOff = res.getString(
231 final Resources res) {
233 res.getBoolean(R.bool.config_block_potentially_offensive));
236 public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources res) {
237 return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
241 final Resources res) {
242 return readFromBuildConfigIfGestureInputEnabled(res)
247 final Resources res) {
249 res.getBoolean(R.bool.config_default_phrase_gesture_enabled));
252 public static boolean readFromBuildConfigIfToShowKeyPreviewPopupOption(final Resources res) {
253 return res.getBoolean(R.bool.config_enable_show_key_preview_popup_option);
257 final Resources res) {
258 final boolean defaultKeyPreviewPopup = res.getBoolean(
260 if (!readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) {
267 final Resources res) {
269 Integer.toString(res.getInteger(
286 final Resources res) {
288 res.getStringArray(R.array.predefined_subtypes));
298 final Resources res) {
302 : readDefaultKeypressSoundVolume(res);
309 public static float readDefaultKeypressSoundVolume(final Resources res) {
310 return Float.parseFloat(ResourceUtils.getDeviceOverrideValue(res,
315 final Resources res) {
319 : readDefaultKeyLongpressTimeout(res);
322 public static int readDefaultKeyLongpressTimeout(final Resources res) {
323 return res.getInteger(R.integer.config_default_longpress_key_timeout);
327 final Resources res) {
331 : readDefaultKeypressVibrationDuration(res);
338 public static int readDefaultKeypressVibrationDuration(final Resources res) {
339 return Integer.parseInt(ResourceUtils.getDeviceOverrideValue(res,
355 public static boolean readUseFullscreenMode(final Resources res) {
356 return res.getBoolean(R.bool.config_use_fullscreen_mode);