HomeSort by relevance Sort by last modified time
    Searched refs:MotionEvent (Results 26 - 50 of 673) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/base/native/android/
input.cpp 37 using android::MotionEvent;
86 return static_cast<const MotionEvent*>(motion_event)->getAction();
90 return static_cast<const MotionEvent*>(motion_event)->getFlags();
94 return static_cast<const MotionEvent*>(motion_event)->getMetaState();
98 return static_cast<const MotionEvent*>(motion_event)->getButtonState();
102 return reinterpret_cast<const MotionEvent*>(motion_event)->getEdgeFlags();
106 return static_cast<const MotionEvent*>(motion_event)->getDownTime();
110 return static_cast<const MotionEvent*>(motion_event)->getEventTime();
114 return static_cast<const MotionEvent*>(motion_event)->getXOffset();
118 return static_cast<const MotionEvent*>(motion_event)->getYOffset()
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
SwapButton.java 24 import android.view.MotionEvent;
54 public boolean onTouchEvent(MotionEvent me) {
62 public boolean onDown(MotionEvent e) {
67 public void onShowPress(MotionEvent e) {
71 public boolean onSingleTapUp(MotionEvent e) {
77 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
82 public void onLongPress(MotionEvent e) {
86 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
    [all...]
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
ContentViewGestureHandlerTest.java 13 import android.view.MotionEvent;
14 import android.view.MotionEvent.PointerCoords;
15 import android.view.MotionEvent.PointerProperties;
43 MotionEvent mLastLongPress;
44 MotionEvent mLastShowPress;
45 MotionEvent mLastSingleTap;
46 MotionEvent mLastFling1;
56 public void onLongPress(MotionEvent e) {
57 mLastLongPress = MotionEvent.obtain(e);
62 public void onShowPress(MotionEvent e)
    [all...]
  /cts/tests/src/android/view/cts/
GestureDetectorStubActivity.java 23 import android.view.MotionEvent;
90 public boolean onDown(MotionEvent e) {
95 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
100 public void onLongPress(MotionEvent e) {
104 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
109 public void onShowPress(MotionEvent e) {
113 public boolean onSingleTapUp(MotionEvent e) {
118 public boolean onDoubleTap(MotionEvent e)
    [all...]
  /external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
TapGestureDetector.java 11 import android.view.MotionEvent;
49 * Stores the location of each down MotionEvent (by pointer ID), for detecting motion of any
80 public boolean onTouchEvent(MotionEvent event) {
83 case MotionEvent.ACTION_DOWN:
91 case MotionEvent.ACTION_POINTER_DOWN:
96 case MotionEvent.ACTION_MOVE:
105 case MotionEvent.ACTION_UP:
112 case MotionEvent.ACTION_POINTER_UP:
117 case MotionEvent.ACTION_CANCEL:
128 private void trackDownEvent(MotionEvent event)
    [all...]
  /frameworks/base/services/java/com/android/server/accessibility/
GestureUtils.java 4 import android.view.MotionEvent;
15 public static boolean isTap(MotionEvent down, MotionEvent up, int tapTimeSlop,
20 public static boolean isMultiTap(MotionEvent firstUp, MotionEvent secondUp,
26 private static boolean eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second,
38 public static double computeDistance(MotionEvent first, MotionEvent second, int pointerIndex) {
43 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout)
    [all...]
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyMotionEvent.java 24 import android.view.MotionEvent;
34 private SparseArray<MotionEvent.PointerCoords> mPointers;
52 mPointers = new SparseArray<MotionEvent.PointerCoords>();
63 MotionEvent.PointerCoords c = new MotionEvent.PointerCoords();
128 private MotionEvent getEvent() {
131 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount];
137 MotionEvent ev = MotionEvent.obtain(mDownTime
    [all...]
  /development/samples/CrossCompatibility/src/com/example/android/touchexample/
VersionedGestureDetector.java 21 import android.view.MotionEvent;
47 public abstract boolean onTouchEvent(MotionEvent ev);
58 float getActiveX(MotionEvent ev) {
62 float getActiveY(MotionEvent ev) {
71 public boolean onTouchEvent(MotionEvent ev) {
73 case MotionEvent.ACTION_DOWN: {
78 case MotionEvent.ACTION_MOVE: {
101 float getActiveX(MotionEvent ev) {
106 float getActiveY(MotionEvent ev) {
111 public boolean onTouchEvent(MotionEvent ev)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
PreviewGestures.java 20 import android.view.MotionEvent;
49 private MotionEvent mDown;
50 private MotionEvent mCurrent;
60 public void onLongPress (MotionEvent e) {
68 public boolean onSingleTapUp (MotionEvent e) {
78 public boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
132 public boolean dispatchTouch(MotionEvent m) {
137 if (MotionEvent.ACTION_DOWN == m.getActionMasked()) {
139 mDown = MotionEvent.obtain(m)
    [all...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
EdgeSwipeDetector.java 20 import android.view.MotionEvent;
41 public boolean onTouchEvent(MotionEvent event) {
43 case MotionEvent.ACTION_DOWN:
44 float edgeGutter = event.getDevice().getMotionRange(MotionEvent.AXIS_X).getMax()
52 case MotionEvent.ACTION_MOVE:
58 case MotionEvent.ACTION_UP:
61 float enough = event.getDevice().getMotionRange(MotionEvent.AXIS_X).getMax()
  /frameworks/base/services/java/com/android/server/wm/
StackTapPointerEventListener.java 21 import android.view.MotionEvent;
48 public void onPointerEvent(MotionEvent motionEvent) {
49 final int action = motionEvent.getAction();
50 switch (action & MotionEvent.ACTION_MASK) {
51 case MotionEvent.ACTION_DOWN:
52 mPointerId = motionEvent.getPointerId(0);
53 mDownX = motionEvent.getX();
54 mDownY = motionEvent.getY();
56 case MotionEvent.ACTION_MOVE
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
LauncherAppWidgetHostView.java 22 import android.view.MotionEvent;
67 public boolean onInterceptTouchEvent(MotionEvent ev) {
70 if (ev.getAction() == MotionEvent.ACTION_DOWN) {
83 case MotionEvent.ACTION_DOWN: {
89 case MotionEvent.ACTION_UP:
90 case MotionEvent.ACTION_CANCEL:
99 public boolean onTouchEvent(MotionEvent ev) {
103 case MotionEvent.ACTION_UP:
104 case MotionEvent.ACTION_CANCEL:
  /external/replicaisland/src/com/replica/replicaisland/
SingleTouchFilter.java 3 import android.view.MotionEvent;
7 public void updateTouch(MotionEvent event) {
9 if (event.getAction() == MotionEvent.ACTION_UP) {
MultiTouchFilter.java 5 import android.view.MotionEvent;
12 public void updateTouch(MotionEvent event) {
17 final int actualEvent = action & MotionEvent.ACTION_MASK;
19 if (actualEvent == MotionEvent.ACTION_POINTER_UP ||
20 actualEvent == MotionEvent.ACTION_UP ||
21 actualEvent == MotionEvent.ACTION_CANCEL) {
  /packages/apps/Camera2/src/com/android/camera/ui/
PieMenuButton.java 21 import android.view.MotionEvent;
38 public boolean onTouchEvent(MotionEvent event) {
40 if (MotionEvent.ACTION_UP == event.getAction() && mPressed) {
FilmStripGestureRecognizer.java 21 import android.view.MotionEvent;
55 public void onTouchEvent(MotionEvent event) {
58 if (event.getAction() == MotionEvent.ACTION_UP) {
67 MotionEvent e1, MotionEvent e2, float dx, float dy) {
72 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
78 public boolean onDown(MotionEvent e) {
91 public boolean onSingleTapConfirmed(MotionEvent e) {
96 public boolean onDoubleTap(MotionEvent e)
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
LongPressDetector.java 10 import android.view.MotionEvent;
22 private MotionEvent mCurrentDownEvent;
73 public void onLongPress(MotionEvent event);
76 private static long calculateLongPressTimeoutTime(MotionEvent ev) {
85 void startLongPressTimerIfNeeded(MotionEvent ev) {
86 if (ev.getAction() != MotionEvent.ACTION_DOWN) return;
92 mCurrentDownEvent = MotionEvent.obtain(ev);
99 void cancelLongPressIfNeeded(MotionEvent ev) {
107 switch (action & MotionEvent.ACTION_MASK) {
108 case MotionEvent.ACTION_MOVE
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
HoverInterceptorView.java 23 import android.view.MotionEvent;
48 public boolean onInterceptHoverEvent(MotionEvent event) {
56 public boolean onHoverEvent(MotionEvent event) {
58 if (mInterceptHover && event.getAction() != MotionEvent.ACTION_HOVER_EXIT) {
  /frameworks/base/core/java/android/service/wallpaper/
IWallpaperEngine.aidl 19 import android.view.MotionEvent;
28 void dispatchPointer(in MotionEvent event);
  /frameworks/base/core/java/android/text/method/
MovementMethod.java 21 import android.view.MotionEvent;
48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event);
49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event);
50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event);
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
EmergencyCarrierArea.java 21 import android.view.MotionEvent;
50 public boolean onTouch(View v, MotionEvent event) {
52 case MotionEvent.ACTION_DOWN:
55 case MotionEvent.ACTION_UP:
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
CandidateViewButton.java 20 import android.view.MotionEvent;
46 public boolean onTouchEvent(MotionEvent me) {
53 case MotionEvent.ACTION_DOWN:
57 case MotionEvent.ACTION_UP:
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMotionEvent.java 3 import android.view.MotionEvent;
12 * Shadow for {@code MotionEvent} that uses reflection to create {@code MotionEvent} objects, which cannot otherwise
16 @Implements(MotionEvent.class)
18 @RealObject private MotionEvent realObject;
30 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) {
32 Constructor<MotionEvent> constructor = MotionEvent.class.getDeclaredConstructor();
34 MotionEvent motionEvent = constructor.newInstance()
    [all...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/
AppMenuButtonHelper.java 9 import android.view.MotionEvent;
80 public boolean onDown(MotionEvent e) {
88 public boolean onSingleTapUp(MotionEvent e) {
94 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
105 public boolean onTouch(View view, MotionEvent event) {
106 if (event.getActionMasked() == MotionEvent.ACTION_CANCEL ||
107 event.getActionMasked() == MotionEvent.ACTION_UP) {
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
EmptyConversationListView.java 5 import android.view.MotionEvent;
19 public boolean onTouchEvent(MotionEvent e) {

Completed in 1377 milliseconds

12 3 4 5 6 7 8 91011>>