Home
last modified time | relevance | path

Searched refs:isDismissGesture (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelper.java215 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java233 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 …]
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
DNotificationSwipeActionHelper.java51 public boolean isDismissGesture(MotionEvent ev); in isDismissGesture() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java726 if (isDismissGesture(ev)) { in onTouchEvent()
769 public boolean isDismissGesture(MotionEvent ev) { in isDismissGesture() method in SwipeHelper