Home
last modified time | relevance | path

Searched refs:motionEvent (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Car/Notification/src/com/android/car/notification/
DHeadsUpNotificationOnTouchListener.java75 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
76 motionEvent.offsetLocation(mTranslationX, /* deltaY= */ 0); in onTouch()
79 switch (motionEvent.getActionMasked()) { in onTouch()
81 mDownX = motionEvent.getRawX(); in onTouch()
83 mVelocityTracker.addMovement(motionEvent); in onTouch()
92 float deltaX = motionEvent.getRawX() - mDownX; in onTouch()
93 mVelocityTracker.addMovement(motionEvent); in onTouch()
145 mVelocityTracker.addMovement(motionEvent); in onTouch()
146 float deltaX = motionEvent.getRawX() - mDownX; in onTouch()
153 MotionEvent cancelEvent = MotionEvent.obtain(motionEvent); in onTouch()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DAssistantGestureTutorialFragment.java42 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
43 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN && mTutorialController != null) { in onTouch()
44 mTutorialController.setRippleHotspot(motionEvent.getX(), motionEvent.getY()); in onTouch()
46 return super.onTouch(view, motionEvent); in onTouch()
DBackGestureTutorialFragment.java42 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
43 if (motionEvent.getAction() == MotionEvent.ACTION_DOWN && mTutorialController != null) { in onTouch()
44 mTutorialController.setRippleHotspot(motionEvent.getX(), motionEvent.getY()); in onTouch()
46 return super.onTouch(view, motionEvent); in onTouch()
DTutorialFragment.java135 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
137 return mEdgeBackGestureHandler.onTouch(view, motionEvent) in onTouch()
138 | mNavBarGestureHandler.onTouch(view, motionEvent); in onTouch()
DEdgeBackGestureHandler.java138 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
140 onMotionEvent(motionEvent); in onTouch()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/quickstep/
DOrientationTouchTransformerTest.java255 MotionEvent motionEvent = generateMotionEvent(motionAction, x, y); in generateAndTransformMotionEvent() local
256 mTouchTransformer.transform(motionEvent); in generateAndTransformMotionEvent()
257 return motionEvent; in generateAndTransformMotionEvent()
261 MotionEvent motionEvent = generateAndTransformMotionEvent(MotionEvent.ACTION_DOWN, x, y); in tapAndAssertTrue() local
262 assertTrue(assertion.getCondition(motionEvent)); in tapAndAssertTrue()
267 MotionEvent motionEvent = generateAndTransformMotionEvent(MotionEvent.ACTION_DOWN, x, y); in tapAndAssertFalse() local
268 assertFalse(assertion.getCondition(motionEvent)); in tapAndAssertFalse()
273 boolean getCondition(MotionEvent motionEvent); in getCondition() argument
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java481 public boolean onTouch(final View view, final MotionEvent motionEvent) { in onTouch() argument
482 switch (motionEvent.getAction()) { in onTouch()
487 final float dx = motionEvent.getRawX() - mDownEvent.getRawX(); in onTouch()
488 final float dy = motionEvent.getRawY() - mDownEvent.getRawY(); in onTouch()
491 (motionEvent.getEventTime() - mDownEvent.getEventTime()) / 1000.0f; in onTouch()
522 mDownEvent = MotionEvent.obtain(motionEvent); in onTouch()
535 final float dx = mDownEvent.getRawX() - motionEvent.getRawX(); in onTouch()
536 final float dy = mDownEvent.getRawY() - motionEvent.getRawY(); in onTouch()
DCameraManager.java272 public boolean onTouch(final View view, final MotionEvent motionEvent) { in setSurface()
273 if ((motionEvent.getActionMasked() & MotionEvent.ACTION_UP) == in setSurface()
277 (int) motionEvent.getX() + view.getLeft(), in setSurface()
278 (int) motionEvent.getY() + view.getTop()); in setSurface()
DCameraMediaChooser.java97 public boolean onTouch(final View view, final MotionEvent motionEvent) { in createView()
/packages/apps/Dialer/java/com/android/dialer/widget/
DLockableViewPager.java42 public boolean onInterceptTouchEvent(MotionEvent motionEvent) { in onInterceptTouchEvent() argument
43 return !swipingLocked && super.onInterceptTouchEvent(motionEvent); in onInterceptTouchEvent()
47 public boolean onTouchEvent(MotionEvent motionEvent) { in onTouchEvent() argument
48 return !swipingLocked && super.onTouchEvent(motionEvent); in onTouchEvent()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripLayout.java250 public boolean onTouch(View view, MotionEvent motionEvent) { in onFinishInflate()
253 motionEvent.setLocation(motionEvent.getX() + mFilmstripContentLayout.getX(), in onFinishInflate()
254 motionEvent.getY() + mFilmstripContentLayout.getY()); in onFinishInflate()
255 mGestureRecognizer.onTouchEvent(motionEvent); in onFinishInflate()
/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
DRotaryDirectManipulationWidgets.java80 .setRotationHandler((v, motionEvent) -> { in onCreateView()
84 float scroll = motionEvent.getAxisValue(MotionEvent.AXIS_SCROLL); in onCreateView()
103 .setRotationHandler((v, motionEvent) -> { in onCreateView()
105 float scroll = motionEvent.getAxisValue(MotionEvent.AXIS_SCROLL); in onCreateView()
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DPressAndHoldTouchListener.java41 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
42 switch (motionEvent.getAction()) { in onTouch()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DOnContinuousScrollListener.java86 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
88 switch (motionEvent.getAction()) { in onTouch()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java133 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() argument
134 mLastTouchPos.set(motionEvent.getX(), motionEvent.getY()); in onTouch()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java203 public boolean onTouch(final View view, final MotionEvent motionEvent) { in setSurface()
204 if ((motionEvent.getActionMasked() & MotionEvent.ACTION_UP) in setSurface()
208 (int) motionEvent.getX() + view.getLeft(), in setSurface()
209 (int) motionEvent.getY() + view.getTop()); in setSurface()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DDragAndDropAccessibilityDelegate.java129 public boolean onHover(View view, MotionEvent motionEvent) { in onHover() argument
130 return dispatchHoverEvent(motionEvent); in onHover()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DTouchDriverAwarenessSupplier.java280 MotionEvent motionEvent = (MotionEvent) event; in onInputEvent() local
281 if (motionEvent.getActionMasked() == MotionEvent.ACTION_UP) { in onInputEvent()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBothAxesSwipeDetector.java95 boolean onDrag(PointF displacement, MotionEvent motionEvent); in onDrag() argument
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java1868 MotionEvent motionEvent = MotionEvent.obtain(/* downTime= */ upTime, in injectMotionEvent() local
1884 if (motionEvent != null) { in injectMotionEvent()
1885 mInputManager.injectInputEvent(motionEvent, in injectMotionEvent()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java405 seekbar.setOnTouchListener((view, motionEvent) -> true); in bindPreview()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTouchInteractionService.java242 public void onQuickStep(MotionEvent motionEvent) { }