Searched refs:thumbLength (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollBarUtils.java | 35 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()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 152 final int thumbLength = in draw() local 155 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range, in draw() 158 drawThumb(canvas, r, thumbOffset, thumbLength, vertical); in draw()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | View.java | 7187 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.height(), bounds.width(), 7189 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.height(), thumbLength, 7194 && y >= thumbTop - adjust && y <= thumbTop + thumbLength + adjust) { 7217 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds.width(), thumbLength, 7221 if (x >= thumbLeft - adjust && x <= thumbLeft + thumbLength + adjust 16959 final int thumbLength = ScrollBarUtils.getThumbLength( in handleScrollBarDragging() local 16962 bounds.height(), thumbLength, extent, range, offset); in handleScrollBarDragging() 16965 final float maxThumbOffset = bounds.height() - thumbLength; in handleScrollBarDragging() 16988 final int thumbLength = ScrollBarUtils.getThumbLength( in handleScrollBarDragging() local 16991 bounds.width(), thumbLength, extent, range, offset); in handleScrollBarDragging() [all …]
|