Home
last modified time | relevance | path

Searched refs:toCapture (Results 1 – 2 of 2) sorted by relevance

/frameworks/support/core-ui/java/android/support/v4/widget/
DViewDragHelper.java896 boolean tryCaptureViewForDrag(View toCapture, int pointerId) { in tryCaptureViewForDrag() argument
897 if (toCapture == mCapturedView && mActivePointerId == pointerId) { in tryCaptureViewForDrag()
901 if (toCapture != null && mCallback.tryCaptureView(toCapture, pointerId)) { in tryCaptureViewForDrag()
903 captureChildView(toCapture, pointerId); in tryCaptureViewForDrag()
973 final View toCapture = findTopChildUnder((int) x, (int) y); in shouldInterceptTouchEvent() local
976 if (toCapture == mCapturedView && mDragState == STATE_SETTLING) { in shouldInterceptTouchEvent()
977 tryCaptureViewForDrag(toCapture, pointerId); in shouldInterceptTouchEvent()
1002 final View toCapture = findTopChildUnder((int) x, (int) y); in shouldInterceptTouchEvent() local
1003 if (toCapture == mCapturedView) { in shouldInterceptTouchEvent()
1004 tryCaptureViewForDrag(toCapture, pointerId); in shouldInterceptTouchEvent()
[all …]
DDrawerLayout.java2150 final View toCapture; in peekDrawer() local
2155 toCapture = findDrawerWithGravity(Gravity.LEFT); in peekDrawer()
2156 childLeft = (toCapture != null ? -toCapture.getWidth() : 0) + peekDistance; in peekDrawer()
2158 toCapture = findDrawerWithGravity(Gravity.RIGHT); in peekDrawer()
2162 if (toCapture != null && ((leftEdge && toCapture.getLeft() < childLeft) in peekDrawer()
2163 || (!leftEdge && toCapture.getLeft() > childLeft)) in peekDrawer()
2164 && getDrawerLockMode(toCapture) == LOCK_MODE_UNLOCKED) { in peekDrawer()
2165 final LayoutParams lp = (LayoutParams) toCapture.getLayoutParams(); in peekDrawer()
2166 mDragger.smoothSlideViewTo(toCapture, childLeft, toCapture.getTop()); in peekDrawer()
2190 final View toCapture; in onEdgeDragStarted() local
[all …]