Home
last modified time | relevance | path

Searched refs:thumbLength (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DScrollBarUtils.java35 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument
37 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
38 if (thumbOffset > size - thumbLength) { in getThumbOffset()
39 thumbOffset = size - thumbLength; in getThumbOffset()
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java152 final int thumbLength = in draw() local
155 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range, in draw()
158 drawThumb(canvas, r, thumbOffset, thumbLength, vertical); in draw()
/frameworks/base/core/java/android/view/
DView.java6970 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.height(), bounds.width(),
6972 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.height(), thumbLength,
6975 final int adjust = Math.max(mScrollCache.scrollBarMinTouchTarget - thumbLength, 0) / 2;
6977 && y >= thumbTop - adjust && y <= thumbTop + thumbLength + adjust) {
6998 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.width(), bounds.height(),
7000 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.width(), thumbLength,
7003 final int adjust = Math.max(mScrollCache.scrollBarMinTouchTarget - thumbLength, 0) / 2;
7004 if (x >= thumbLeft - adjust && x <= thumbLeft + thumbLength + adjust
15816 final int thumbLength = ScrollBarUtils.getThumbLength( in handleScrollBarDragging() local
15819 bounds.height(), thumbLength, extent, range, offset); in handleScrollBarDragging()
[all …]