Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandlerTest.java314 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeDown_doesNotSetExpansion() local
325 assertThat(gestureListener.onScroll(event1, event2, 0, -distanceY)).isTrue(); in testSwipeDown_doesNotSetExpansion()
341 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeDown_whenBouncerInitiallyHidden_doesNotSetExpansion_directionFiltering() local
352 assertThat(gestureListener.onScroll(event1, event2, 0, -distanceY)).isFalse(); in testSwipeDown_whenBouncerInitiallyHidden_doesNotSetExpansion_directionFiltering()
367 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeUp_setsCorrectExpansionAmount() local
369 verifyScroll(.3f, gestureListener); in testSwipeUp_setsCorrectExpansionAmount()
370 verifyScroll(.7f, gestureListener); in testSwipeUp_setsCorrectExpansionAmount()
385 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeUp_keyguardNotSecure_doesNotExpand() local
396 assertThat(gestureListener.onScroll(event1, event2, 0, distanceY)) in testSwipeUp_keyguardNotSecure_doesNotExpand()
415 final OnGestureListener gestureListener = gestureListenerCaptor.getValue(); in testSwipeDown_keyguardNotSecure_doesNotExpand() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/dagger/
DInputSessionModule.java46 android.view.GestureDetector.OnGestureListener gestureListener) { in providesGestureDetector() argument
47 return new GestureDetector(gestureListener); in providesGestureDetector()
DInputSessionComponent.java48 @BindsInstance GestureDetector.OnGestureListener gestureListener, in create() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DTapGestureDetector.kt40 private val gestureListener = object : GestureDetector.SimpleOnGestureListener() { constant
61 gestureDetector = GestureDetector(context, gestureListener) in startGestureListening()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/
DTouchMonitorTest.java409 final GestureDetector.OnGestureListener gestureListener = in testInputGesturePropagation() local
414 verify(gestureListener).onShowPress(eq(event)); in testInputGesturePropagation()
428 final GestureDetector.OnGestureListener gestureListener = in testGestureConsumption() local
431 when(gestureListener.onDown(any())).thenReturn(true); in testGestureConsumption()
437 verify(gestureListener).onDown(eq(event)); in testGestureConsumption()
678 final GestureDetector.OnGestureListener gestureListener = Mockito.mock( in registerGestureListener() local
683 sessionCaptor.getValue().registerGestureListener(gestureListener); in registerGestureListener()
685 return gestureListener; in registerGestureListener()
690 final GestureDetector.OnGestureListener gestureListener = Mockito.mock( in registerGestureListener() local
692 session.registerGestureListener(gestureListener); in registerGestureListener()
[all …]
/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/ambient/touch/
DTouchHandler.java64 boolean registerGestureListener(GestureDetector.OnGestureListener gestureListener); in registerGestureListener() argument
DTouchMonitor.java179 public boolean registerGestureListener(GestureDetector.OnGestureListener gestureListener) {
180 return mGestureListeners.add(gestureListener);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java315 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSingleTap_logAndDismiss() local
316 gestureListener.onSingleTapUp(null); in testSingleTap_logAndDismiss()
336 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSwipeDownLockscreen_logAndOpenQS() local
339 gestureListener.onFling(start, end, 0, 1000); in testSwipeDownLockscreen_logAndOpenQS()
360 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSwipeDown_logAndOpenNotificationShade() local
363 gestureListener.onFling(start, end, 0, 1000); in testSwipeDown_logAndOpenNotificationShade()
386 GestureDetector.SimpleOnGestureListener gestureListener = spy(dialog.mGestureListener); in testSwipeDown_pastStatusBarHeight_shadeNotOpened() local
390 gestureListener.onFling(start, end, 0, 1000); in testSwipeDown_pastStatusBarHeight_shadeNotOpened()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java425 GestureDetector.SimpleOnGestureListener gestureListener = in setQuickScaleEnabled() local
436 mGestureDetector = new GestureDetector(mContext, gestureListener, mHandler); in setQuickScaleEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java225 GestureDetector.OnGestureListener gestureListener = new SwipeDismissGestureListener(); in SwipeDismissHandler() local
226 mGestureDetector = new GestureDetector(context, gestureListener); in SwipeDismissHandler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt134 private val gestureListener = constant in com.android.systemui.media.controls.ui.view.MediaCarouselScrollHandler
199 gestureDetector = GestureDetectorCompat(scrollView.context, gestureListener)