Home
last modified time | relevance | path

Searched refs:onMotionEvent (Results 1 – 25 of 56) sorted by relevance

123

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DFalsingDataProviderTest.java163 mDataProvider.onMotionEvent(motionEventA); in test_unpackMotionEvents()
185 mDataProvider.onMotionEvent(motionEventOrigin); in test_getAngle()
190 mDataProvider.onMotionEvent(motionEventOrigin); in test_getAngle()
196 mDataProvider.onMotionEvent(motionEventOrigin); in test_getAngle()
206 mDataProvider.onMotionEvent(motionEventOrigin); in test_isHorizontal()
211 mDataProvider.onMotionEvent(motionEventOrigin); in test_isHorizontal()
216 mDataProvider.onMotionEvent(motionEventOrigin); in test_isHorizontal()
226 mDataProvider.onMotionEvent(motionEventOrigin); in test_isVertical()
231 mDataProvider.onMotionEvent(motionEventOrigin); in test_isVertical()
289 mDataProvider.onMotionEvent( in test_IsFromTrackpad()
[all …]
H A DFalsingCollectorImplTest.java179 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testPassThroughGesture()
185 orderedCalls.verify(mFalsingDataProvider).onMotionEvent( in testPassThroughGesture()
187 orderedCalls.verify(mFalsingDataProvider).onMotionEvent(up); in testPassThroughGesture()
197 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testAvoidGesture()
202 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testAvoidGesture()
212 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testIgnoreActionOutside()
216 verify(mFalsingDataProvider).onMotionEvent(up); in testIgnoreActionOutside()
228 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testAvoidUnlocked()
232 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testAvoidUnlocked()
247 verify(mFalsingDataProvider, never()).onMotionEvent(any(MotionEvent.class)); in testGestureWhenDozing()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
H A DBubblesNavBarMotionEventHandlerTest.java77 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_swipeUpInGestureZone_handled()
78 mMotionEventHandler.onMotionEvent(newEvent(ACTION_MOVE, 0, 690)); in testMotionEvent_swipeUpInGestureZone_handled()
79 mMotionEventHandler.onMotionEvent(newEvent(ACTION_MOVE, 0, 490)); in testMotionEvent_swipeUpInGestureZone_handled()
80 mMotionEventHandler.onMotionEvent(newEvent(ACTION_MOVE, 0, 390)); in testMotionEvent_swipeUpInGestureZone_handled()
81 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 0, 390)); in testMotionEvent_swipeUpInGestureZone_handled()
95 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 500)); in testMotionEvent_swipeUpOutsideGestureZone_ignored()
96 mMotionEventHandler.onMotionEvent(newEvent(ACTION_MOVE, 0, 100)); in testMotionEvent_swipeUpOutsideGestureZone_ignored()
97 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 0, 100)); in testMotionEvent_swipeUpOutsideGestureZone_ignored()
105 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_horizontalMoveMoreThanTouchSlop_handled()
107 mMotionEventHandler.onMotionEvent(newEvent(ACTION_UP, 100, 990)); in testMotionEvent_horizontalMoveMoreThanTouchSlop_handled()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragDetectorTest.kt74 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
80 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP)))
93 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
101 dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y)))
106 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y)))
119 assertFalse(dragDetector.onMotionEvent(
127 assertTrue(dragDetector.onMotionEvent(
134 assertTrue(dragDetector.onMotionEvent(
148 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
182 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_HOVER_MOVE)))
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DTwoFingersDownOrSwipeTest.java81 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleDownEvent_GestureCanceledAfterTimeout()
93 mGesturesObserver.onMotionEvent(event, event, 0); in sendTwoFingerDownEvent_onGestureCompleted()
108 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleTapEvent_onGestureCancelled()
109 mGesturesObserver.onMotionEvent(upEvent, upEvent, 0); in sendSingleTapEvent_onGestureCancelled()
120 mGesturesObserver.onMotionEvent(event, event, 0); in firstPointerMove_twoPointersDown_onGestureCompleted()
124 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in firstPointerMove_twoPointersDown_onGestureCompleted()
136 mGesturesObserver.onMotionEvent(event, event, 0); in secondPointerMove_twoPointersDown_onGestureCompleted()
140 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in secondPointerMove_twoPointersDown_onGestureCompleted()
H A DSimpleSwipeTest.java72 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleDownEvent_onGestureCanceledAfterTimeout()
88 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSwipeEvent_onGestureCompleted()
89 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in sendSwipeEvent_onGestureCompleted()
104 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleTapEvent_onGestureCanceled()
105 mGesturesObserver.onMotionEvent(upEvent, upEvent, 0); in sendSingleTapEvent_onGestureCanceled()
H A DMagnificationGesturesObserverTest.java80 mObserver.onMotionEvent(moveEvent, moveEvent, 0); in onActionMove_onGestureCanceled()
93 mObserver.onMotionEvent(downEvent, downEvent, 0); in onActionDown_shouldNotDetection_onGestureCanceled()
107 mObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_unrecognizedEvents_onDetectionCanceledAfterTimeout()
122 mObserver.onMotionEvent(downEvent, downEvent, 0); in sendEventsOfSwiping_onGestureCompleted()
123 mObserver.onMotionEvent(moveEvent, moveEvent, 0); in sendEventsOfSwiping_onGestureCompleted()
H A DMagnificationGestureHandlerTest.java73 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_isFromScreen_onMotionEventInternal()
87 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_downEvent_handleInteractionStart()
101 mMgh.onMotionEvent(upEvent, upEvent, /* policyFlags= */ 0); in onMotionEvent_upEvent_handleInteractionEnd()
115 mMgh.onMotionEvent(cancelEvent, cancelEvent, /* policyFlags= */ 0); in onMotionEvent_cancelEvent_handleInteractionEnd()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DMotionEventInjectorTest.java221 verify(next).onMotionEvent(argThat(allOf(mIsLineEnd, hasRightDownTime)), in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
259 mMotionEventInjector.onMotionEvent(mClickDownEvent, mClickDownEvent, 0); in testRegularEvent_afterGestureComplete_shouldPassToNext()
260 verify(next).onMotionEvent(argThat(mIsClickDown), argThat(mIsClickDown), in testRegularEvent_afterGestureComplete_shouldPassToNext()
267 mMotionEventInjector.onMotionEvent(mClickDownEvent, mClickDownEvent, 0); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
276 verify(next).onMotionEvent( in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
287 mMotionEventInjector.onMotionEvent(mouseEvent, mouseEvent, 0); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
299 mMotionEventInjector.onMotionEvent(mClickDownEvent, mClickDownEvent, 0); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
300 mMotionEventInjector.onMotionEvent(mClickUpEvent, mClickUpEvent, 0); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
309 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
311 verify(next).onMotionEvent( in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
H A DGesturesObserverTest.java76 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in onActionMove_onGestureCancelled()
88 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_unrecognizedEvents_onGestureCancelledAfterTimeout()
104 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_recognizedEvents_onGestureCompleted()
105 mGesturesObserver.onMotionEvent(moveEvent, moveEvent, 0); in onMotionEvent_recognizedEvents_onGestureCompleted()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DDragDetector.java61 boolean onMotionEvent(MotionEvent ev) { in onMotionEvent() method in DragDetector
62 return onMotionEvent(null /* view */, ev); in onMotionEvent()
71 boolean onMotionEvent(View v, MotionEvent ev) { in onMotionEvent() method in DragDetector
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DWindowMagnificationGestureHandler.java144 mCurrentState.onMotionEvent(event, rawEvent, policyFlags); in onMotionEventInternal()
268 void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags); in onMotionEvent() method
330 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in WindowMagnificationGestureHandler.PanningScalingGestureState
361 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in WindowMagnificationGestureHandler.DelegatingState
391 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in WindowMagnificationGestureHandler.ViewportDraggingState
477 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in WindowMagnificationGestureHandler.DetectingState
478 mGesturesObserver.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
H A DMagnificationGestureHandler.java103 public final void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in MagnificationGestureHandler
142 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent()
151 super.onMotionEvent(event, rawEvent, policyFlags); in dispatchTransformedEvent()
H A DGesturesObserver.java89 public boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in GesturesObserver
102 matcher.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
H A DMagnificationGesturesObserver.java110 boolean onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in MagnificationGesturesObserver
122 return mGesturesObserver.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
H A DFullScreenMagnificationGestureHandler.java229 stateHandler.onMotionEvent(event, rawEvent, policyFlags); in handleEventWith()
341 void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) in onMotionEvent() method
402 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in FullScreenMagnificationGestureHandler.PanningScalingState
565 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) in onMotionEvent() method in FullScreenMagnificationGestureHandler.ViewportDraggingState
672 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in FullScreenMagnificationGestureHandler.DelegatingState
765 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in FullScreenMagnificationGestureHandler.DetectingState
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java75 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method in AutoclickController
94 super.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
449 AutoclickController.super.onMotionEvent(downEvent, downEvent, mEventPolicyFlags); in sendClick()
452 AutoclickController.super.onMotionEvent(pressEvent, pressEvent, mEventPolicyFlags); in sendClick()
455 AutoclickController.super.onMotionEvent(releaseEvent, releaseEvent, mEventPolicyFlags); in sendClick()
458 AutoclickController.super.onMotionEvent(upEvent, upEvent, mEventPolicyFlags); in sendClick()
H A DEventStreamTransformation.java68 default void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { in onMotionEvent() method
71 next.onMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
/aosp14/frameworks/base/core/java/android/accessibilityservice/
H A DTouchInteractionController.java178 void onMotionEvent(MotionEvent event) { in onMotionEvent() method in TouchInteractionController
197 executor.execute(() -> callback.onMotionEvent(event)); in sendEventToAllListeners()
200 callback.onMotionEvent(event); in sendEventToAllListeners()
434 void onMotionEvent(@NonNull MotionEvent event); in onMotionEvent() method
H A DIAccessibilityServiceClient.aidl53 void onMotionEvent(in MotionEvent event); in onMotionEvent() method
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
H A DOneHandedTouchHandler.java83 private boolean onMotionEvent(MotionEvent ev) { in onMotionEvent() method in OneHandedTouchHandler
125 onMotionEvent((MotionEvent) ev); in onInputEvent()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
H A DBackPanelControllerTest.kt222 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_DOWN, START_X, 0f))
226 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_MOVE, x, 0f))
230 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_UP, x, 0f))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingDataProvider.java92 void onMotionEvent(MotionEvent motionEvent) { in onMotionEvent() method in FalsingDataProvider
116 mMotionEventListeners.forEach(listener -> listener.onMotionEvent(motionEvent)); in onMotionEvent()
453 void onMotionEvent(MotionEvent ev);
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubblesNavBarInputEventReceiver.java46 handled = mMotionEventHandler.onMotionEvent((MotionEvent) event); in onInputEvent()
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DNavigationEdgeBackPlugin.java52 void onMotionEvent(MotionEvent motionEvent); in onMotionEvent() method

123