Lines Matching refs:scale
227 void onProgressRefresh(float scale, boolean fromUser) {
228 super.onProgressRefresh(scale, fromUser);
231 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE);
257 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
261 setThumbPos(w, thumb, scale, 0);
278 setThumbPos(w, thumb, scale, gap);
286 private void setThumbPos(int w, Drawable thumb, float scale, int gap) {
295 int thumbPos = (int) (scale * available);
427 float scale;
431 scale = 0.0f;
433 scale = 1.0f;
435 scale = (float)(available - x + mPaddingLeft) / (float)available;
440 scale = 0.0f;
442 scale = 1.0f;
444 scale = (float)(x - mPaddingLeft) / (float)available;
449 progress += scale * max;
565 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
569 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE);