Lines Matching refs:sp
353 final SharedPreferences sp, final Resources res) {
355 Settings.readVibrationEnabled(sp, res));
357 Settings.readKeypressSoundEnabled(sp, res));
360 private void setupKeypressVibrationDurationSettings(final SharedPreferences sp,
370 sp.edit().putInt(key, value).apply();
375 sp.edit().remove(key).apply();
380 return Settings.readKeypressVibrationDuration(sp, res);
403 private void setupKeyLongpressTimeoutSettings(final SharedPreferences sp,
413 sp.edit().putInt(key, value).apply();
418 sp.edit().remove(key).apply();
423 return Settings.readKeyLongpressTimeout(sp, res);
441 private void setupKeypressSoundVolumeSettings(final SharedPreferences sp, final Resources res) {
461 sp.edit().putFloat(key, getValueFromPercentage(value)).apply();
466 sp.edit().remove(key).apply();
471 return getPercentageFromValue(Settings.readKeypressSoundVolume(sp, res));