Searched refs:ev (Results 1 – 7 of 7) sorted by relevance
47 public abstract boolean onTouchEvent(MotionEvent ev); in onTouchEvent() argument58 float getActiveX(MotionEvent ev) { in getActiveX() argument59 return ev.getX(); in getActiveX()62 float getActiveY(MotionEvent ev) { in getActiveY() argument63 return ev.getY(); in getActiveY()71 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument72 switch (ev.getAction()) { in onTouchEvent()74 mLastTouchX = getActiveX(ev); in onTouchEvent()75 mLastTouchY = getActiveY(ev); in onTouchEvent()79 final float x = getActiveX(ev); in onTouchEvent()[all …]
50 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument51 mDetector.onTouchEvent(ev); in onTouchEvent()
105 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument106 final int action = ev.getActionMasked(); in onInterceptTouchEvent()111 return mDragHelper.shouldInterceptTouchEvent(ev); in onInterceptTouchEvent()115 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument116 mDragHelper.processTouchEvent(ev); in onTouchEvent()
137 MotionEvent ev = MotionEvent.obtain(mDownTime, in getEvent() local141 return ev; in getEvent()
958 MonkeyEvent ev; in getNextEvent() local969 ev = mQ.getFirst(); in getNextEvent()975 if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_KEY) { in getNextEvent()976 adjustKeyEventTime((MonkeyKeyEvent) ev); in getNextEvent()977 } else if (ev.getEventType() == MonkeyEvent.EVENT_TYPE_TOUCH in getNextEvent()978 || ev.getEventType() == MonkeyEvent.EVENT_TYPE_TRACKBALL) { in getNextEvent()979 adjustMotionEventTime((MonkeyMotionEvent) ev); in getNextEvent()981 return ev; in getNextEvent()
1204 MonkeyEvent ev = mEventSource.getNextEvent(); in runMonkeyCycles() local1205 if (ev != null) { in runMonkeyCycles()1206 int injectCode = ev.injectEvent(mWm, mAm, mVerbose); in runMonkeyCycles()1209 if (ev instanceof MonkeyKeyEvent) { in runMonkeyCycles()1211 } else if (ev instanceof MonkeyMotionEvent) { in runMonkeyCycles()1213 } else if (ev instanceof MonkeyFlipEvent) { in runMonkeyCycles()1215 } else if (ev instanceof MonkeyRotationEvent) { in runMonkeyCycles()1229 if (!(ev instanceof MonkeyThrottleEvent)) { in runMonkeyCycles()
159 public int getStack(MotionEvent ev) { in getStack() argument160 boolean isLeft = ev.getX() <= mCardWidth; in getStack()