HomeSort by relevance Sort by last modified time
    Searched refs:thumbLength (Results 1 - 4 of 4) sorted by null

  /frameworks/base/core/java/com/android/internal/widget/
ScrollBarUtils.java 31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) {
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
34 if (thumbOffset > size - thumbLength) {
35 thumbOffset = size - thumbLength;
  /frameworks/support/car/src/main/java/androidx/car/widget/
PagedScrollBarView.java 189 int thumbLength = calculateScrollThumbLength(range, extent);
190 int thumbOffset = calculateScrollThumbOffset(range, offset, thumbLength);
195 if (lp.height != thumbLength) {
196 lp.height = thumbLength;
223 int thumbLength = calculateScrollThumbLength(range, extent);
224 int thumbOffset = calculateScrollThumbOffset(range, offset, thumbLength);
229 if (lp.height != thumbLength) {
230 lp.height = thumbLength;
502 * @param thumbLength The current length of the thumb in pixels.
505 private int calculateScrollThumbOffset(int range, int offset, int thumbLength) {
    [all...]
  /frameworks/base/core/java/android/widget/
ScrollBarDrawable.java 143 final int thumbLength =
146 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range,
149 drawThumb(canvas, r, thumbOffset, thumbLength, vertical);
  /frameworks/base/core/java/android/view/
View.java     [all...]

Completed in 119 milliseconds