Searched refs:thumbLength (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollBarUtils.java | 34 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument 36 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset() 37 if (thumbOffset > size - thumbLength) { in getThumbOffset() 38 thumbOffset = size - thumbLength; in getThumbOffset()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 148 final int thumbLength = in draw() local 151 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range, in draw() 154 drawThumb(canvas, r, thumbOffset, thumbLength, vertical); in draw()
|
/frameworks/base/core/java/android/view/ |
D | View.java | 6687 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.height(), bounds.width(), 6689 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.height(), thumbLength, 6692 final int adjust = Math.max(mScrollCache.scrollBarMinTouchTarget - thumbLength, 0) / 2; 6694 && y >= thumbTop - adjust && y <= thumbTop + thumbLength + adjust) { 6715 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.width(), bounds.height(), 6717 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.width(), thumbLength, 6720 final int adjust = Math.max(mScrollCache.scrollBarMinTouchTarget - thumbLength, 0) / 2; 6721 if (x >= thumbLeft - adjust && x <= thumbLeft + thumbLength + adjust 14666 final int thumbLength = ScrollBarUtils.getThumbLength( in handleScrollBarDragging() local 14669 bounds.height(), thumbLength, extent, range, offset); in handleScrollBarDragging() [all …]
|