Searched refs:isDismissGesture (Results 1 – 4 of 4) sorted by relevance
215 if (isDismissGesture(ev)) { in handleMenuRowSwipe()236 boolean isDismissGesture = isDismissGesture(ev); in handleSwipeFromClosedState()244 boolean isNonDismissGestureTowardsMenu = gestureTowardsMenu && !isDismissGesture; in handleSwipeFromClosedState()248 gestureFastEnough && !gestureTowardsMenu && !isDismissGesture; in handleSwipeFromClosedState()261 } else if (isDismissGesture && !gestureTowardsMenu) { in handleSwipeFromClosedState()272 boolean isDismissGesture = isDismissGesture(ev); in handleSwipeFromOpenState()277 if (withinSnapMenuThreshold && !isDismissGesture) { in handleSwipeFromOpenState()281 } else if (isDismissGesture && !menuRow.shouldSnapBack()) { in handleSwipeFromOpenState()
233 doReturn(true).when(mSwipeHelper).isDismissGesture(any()); in testHandleUpEvent_menuRowWithoutMenu_dismiss()241 verify(mSwipeHelper, times(1)).isDismissGesture(mEvent); in testHandleUpEvent_menuRowWithoutMenu_dismiss()249 doReturn(false).when(mSwipeHelper).isDismissGesture(any()); in testHandleUpEvent_menuRowWithoutMenu_snapback()257 verify(mSwipeHelper, times(1)).isDismissGesture(mEvent); in testHandleUpEvent_menuRowWithoutMenu_snapback()266 doReturn(true).when(mSwipeHelper).isDismissGesture(any()); in testHandleUpEvent_menuRowWithOpenMenu_dismissed()275 verify(mSwipeHelper, times(1)).isDismissGesture(mEvent); in testHandleUpEvent_menuRowWithOpenMenu_dismissed()283 doReturn(false).when(mSwipeHelper).isDismissGesture(any()); in testHandleUpEvent_menuRowWithOpenMenu_snapback()292 verify(mSwipeHelper, times(1)).isDismissGesture(mEvent); in testHandleUpEvent_menuRowWithOpenMenu_snapback()301 doReturn(true).when(mSwipeHelper).isDismissGesture(any()); in testHandleUpEvent_menuRowWithClosedMenu_dismissed()310 verify(mSwipeHelper, times(1)).isDismissGesture(mEvent); in testHandleUpEvent_menuRowWithClosedMenu_dismissed()[all …]
51 public boolean isDismissGesture(MotionEvent ev); in isDismissGesture() method
726 if (isDismissGesture(ev)) { in onTouchEvent()769 public boolean isDismissGesture(MotionEvent ev) { in isDismissGesture() method in SwipeHelper