Lines Matching refs:percent
97 // The size of a single step in the text zoom range, in percent
102 // The size of a single step in the double tap zoom range, in percent
199 * Update from TextSize enum to zoom percent
520 static int getRawTextZoom(int percent) {
521 return (percent - 100) / TEXT_ZOOM_STEP + TEXT_ZOOM_START_VAL;
529 static int getRawDoubleTapZoom(int percent) {
530 return (percent - 100) / DOUBLE_TAP_ZOOM_STEP + DOUBLE_TAP_ZOOM_START_VAL;
593 public void setTextZoom(int percent) {
594 mPrefs.edit().putInt(PREF_TEXT_ZOOM, getRawTextZoom(percent)).apply();
603 public void setDoubleTapZoom(int percent) {
604 mPrefs.edit().putInt(PREF_DOUBLE_TAP_ZOOM, getRawDoubleTapZoom(percent)).apply();