Lines Matching defs:touchBounds

5827             final Rect touchBounds = mScrollCache.mScrollBarTouchBounds;
5828 getVerticalScrollBarBounds(null, touchBounds);
5829 if (touchBounds.contains((int) x, (int) y)) {
5834 final Rect touchBounds = mScrollCache.mScrollBarTouchBounds;
5835 getHorizontalScrollBarBounds(null, touchBounds);
5836 if (touchBounds.contains((int) x, (int) y)) {
5855 final Rect touchBounds = mScrollCache.mScrollBarTouchBounds;
5856 getVerticalScrollBarBounds(bounds, touchBounds);
5866 if (x >= touchBounds.left && x <= touchBounds.right
5882 final Rect touchBounds = mScrollCache.mScrollBarTouchBounds;
5883 getHorizontalScrollBarBounds(bounds, touchBounds);
5894 && y >= touchBounds.top && y <= touchBounds.bottom) {
16568 @Nullable Rect touchBounds) {
16569 final Rect bounds = drawBounds != null ? drawBounds : touchBounds;
16586 if (touchBounds == null) {
16589 if (touchBounds != bounds) {
16590 touchBounds.set(bounds);
16593 if (touchBounds.height() < minTouchTarget) {
16594 final int adjust = (minTouchTarget - touchBounds.height()) / 2;
16595 touchBounds.bottom = Math.min(touchBounds.bottom + adjust, mScrollY + height);
16596 touchBounds.top = touchBounds.bottom - minTouchTarget;
16598 if (touchBounds.width() < minTouchTarget) {
16599 final int adjust = (minTouchTarget - touchBounds.width()) / 2;
16600 touchBounds.left -= adjust;
16601 touchBounds.right = touchBounds.left + minTouchTarget;
16605 private void getVerticalScrollBarBounds(@Nullable Rect bounds, @Nullable Rect touchBounds) {
16607 getStraightVerticalScrollBarBounds(bounds, touchBounds);
16609 getRoundVerticalScrollBarBounds(bounds != null ? bounds : touchBounds);
16625 @Nullable Rect touchBounds) {
16626 final Rect bounds = drawBounds != null ? drawBounds : touchBounds;
16652 if (touchBounds == null) {
16655 if (touchBounds != bounds) {
16656 touchBounds.set(bounds);
16659 if (touchBounds.width() < minTouchTarget) {
16660 final int adjust = (minTouchTarget - touchBounds.width()) / 2;
16662 touchBounds.right = Math.min(touchBounds.right + adjust, mScrollX + width);
16663 touchBounds.left = touchBounds.right - minTouchTarget;
16665 touchBounds.left = Math.max(touchBounds.left + adjust, mScrollX);
16666 touchBounds.right = touchBounds.left + minTouchTarget;
16669 if (touchBounds.height() < minTouchTarget) {
16670 final int adjust = (minTouchTarget - touchBounds.height()) / 2;
16671 touchBounds.top -= adjust;
16672 touchBounds.bottom = touchBounds.top + minTouchTarget;