Home
last modified time | relevance | path

Searched refs:gestureListener (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/
DBouncerSwipeTouchHandlerTest.java182 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeUp_whenBouncerInitiallyShowing_doesNotSetExpansion() local
193 assertThat(gestureListener.onScroll(event1, event2, 0, distanceY)) in testSwipeUp_whenBouncerInitiallyShowing_doesNotSetExpansion()
209 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeDown_whenBouncerInitiallyHidden_doesNotSetExpansion() local
220 assertThat(gestureListener.onScroll(event1, event2, 0, distanceY)) in testSwipeDown_whenBouncerInitiallyHidden_doesNotSetExpansion()
236 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeUp_setsCorrectExpansionAmount() local
238 verifyScroll(.3f, Direction.UP, false, gestureListener); in testSwipeUp_setsCorrectExpansionAmount()
243 verifyScroll(.7f, Direction.UP, false, gestureListener); in testSwipeUp_setsCorrectExpansionAmount()
258 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeDown_setsCorrectExpansionAmount() local
260 verifyScroll(.3f, Direction.DOWN, true, gestureListener); in testSwipeDown_setsCorrectExpansionAmount()
265 verifyScroll(.7f, Direction.DOWN, true, gestureListener); in testSwipeDown_setsCorrectExpansionAmount()
[all …]
DDreamOverlayTouchMonitorTest.java282 final GestureDetector.OnGestureListener gestureListener = in testInputGesturePropagation() local
287 verify(gestureListener).onShowPress(eq(event)); in testInputGesturePropagation()
301 final GestureDetector.OnGestureListener gestureListener = in testGestureConsumption() local
304 when(gestureListener.onDown(any())).thenReturn(true); in testGestureConsumption()
310 verify(gestureListener).onDown(eq(event)); in testGestureConsumption()
547 final GestureDetector.OnGestureListener gestureListener = Mockito.mock( in registerGestureListener() local
552 sessionCaptor.getValue().registerGestureListener(gestureListener); in registerGestureListener()
554 return gestureListener; in registerGestureListener()
559 final GestureDetector.OnGestureListener gestureListener = Mockito.mock( in registerGestureListener() local
561 session.registerGestureListener(gestureListener); in registerGestureListener()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DTapGestureDetector.kt37 private val gestureListener = object : GestureDetector.SimpleOnGestureListener() { constant
58 gestureDetector = GestureDetector(context, gestureListener) in startGestureListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/
DInputSession.java57 GestureDetector.OnGestureListener gestureListener, in InputSession() argument
61 mGestureDetector = new GestureDetector(gestureListener); in InputSession()
DDreamTouchHandler.java58 boolean registerGestureListener(GestureDetector.OnGestureListener gestureListener); in registerGestureListener() argument
DDreamOverlayTouchMonitor.java153 public boolean registerGestureListener(GestureDetector.OnGestureListener gestureListener) {
154 return mGestureListeners.add(gestureListener);
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleRangeBehavior.kt72 val gestureListener = ToggleRangeGestureListener(cvh.layout) in <lambda>() constant
73 val gestureDetector = GestureDetector(context, gestureListener) in <lambda>()
80 if (e.getAction() == MotionEvent.ACTION_UP && gestureListener.isDragging) { in <lambda>()
82 gestureListener.isDragging = false in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/dagger/
DInputSessionComponent.java45 @BindsInstance GestureDetector.OnGestureListener gestureListener, in create() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java288 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSingleTap_logAndDismiss() local
289 gestureListener.onSingleTapUp(null); in testSingleTap_logAndDismiss()
309 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSwipeDownLockscreen_logAndOpenQS() local
312 gestureListener.onFling(start, end, 0, 1000); in testSwipeDownLockscreen_logAndOpenQS()
333 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSwipeDown_logAndOpenNotificationShade() local
336 gestureListener.onFling(start, end, 0, 1000); in testSwipeDown_logAndOpenNotificationShade()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java404 GestureDetector.SimpleOnGestureListener gestureListener = in setQuickScaleEnabled() local
415 mGestureDetector = new GestureDetector(mContext, gestureListener, mHandler); in setQuickScaleEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java219 GestureDetector.OnGestureListener gestureListener = new SwipeDismissGestureListener(); in SwipeDismissHandler() local
220 mGestureDetector = new GestureDetector(context, gestureListener); in SwipeDismissHandler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
DMediaCarouselScrollHandler.kt126 private val gestureListener = constant in com.android.systemui.media.controls.ui.MediaCarouselScrollHandler
192 gestureDetector = GestureDetectorCompat(scrollView.context, gestureListener)