Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 17 of 17) sorted by relevance

/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DVersionedGestureDetector.java47 public abstract boolean onTouchEvent(MotionEvent ev); in onTouchEvent() argument
58 float getActiveX(MotionEvent ev) { in getActiveX() argument
59 return ev.getX(); in getActiveX()
62 float getActiveY(MotionEvent ev) { in getActiveY() argument
63 return ev.getY(); in getActiveY()
71 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
72 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 …]
DTouchExampleView.java50 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
51 mDetector.onTouchEvent(ev); in onTouchEvent()
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/
DDragFrameLayout.java105 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
106 final int action = ev.getActionMasked(); in onInterceptTouchEvent()
111 return mDragHelper.shouldInterceptTouchEvent(ev); in onInterceptTouchEvent()
115 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
116 mDragHelper.processTouchEvent(ev); in onTouchEvent()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyMotionEvent.java137 MotionEvent ev = MotionEvent.obtain(mDownTime, in getEvent() local
141 return ev; in getEvent()
DMonkeySourceScript.java958 MonkeyEvent ev; in getNextEvent() local
969 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()
DMonkey.java1204 MonkeyEvent ev = mEventSource.getNextEvent(); in runMonkeyCycles() local
1205 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()
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardFlip.java159 public int getStack(MotionEvent ev) { in getStack() argument
160 boolean isLeft = ev.getX() <= mCardWidth; in getStack()
/development/samples/training/NavigationDrawer/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/multiscreen/newsreader/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/InteractiveChart/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/ContactsList/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/ControllerSample/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/EffectiveNavigation/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/ActivityLifecycle/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/basic/FragmentBasics/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/location-aware/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/development/samples/training/AnimationsDemo/libs/
Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...