Home
last modified time | relevance | path

Searched refs:motionEvent (Results 1 – 13 of 13) 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/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/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/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/go/quickstep/src/com/android/quickstep/
DTouchInteractionService.java117 public void onQuickStep(MotionEvent motionEvent) { }
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java375 seekbar.setOnTouchListener((view, motionEvent) -> true); in bindPreview()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTouchInteractionService.java210 public void onQuickStep(MotionEvent motionEvent) { }
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DThemeFragment.java454 seekbar.setOnTouchListener((view, motionEvent) -> true); in ThemePreviewAdapter()