/frameworks/base/core/java/android/view/ |
MotionEvent.aidl | 20 parcelable MotionEvent;
|
GestureDetector.java | 25 * Detects various gestures and events using the supplied {@link MotionEvent}s. 27 * motion event has occurred. This class should only be used with {@link MotionEvent}s 33 * <li>In the {@link View#onTouchEvent(MotionEvent)} method ensure you call 34 * {@link #onTouchEvent(MotionEvent)}. The methods defined in your callback 48 * Notified when a tap occurs with the down {@link MotionEvent} 54 boolean onDown(MotionEvent e); 57 * The user has performed a down {@link MotionEvent} and not performed 64 void onShowPress(MotionEvent e); 67 * Notified when a tap occurs with the up {@link MotionEvent} 73 boolean onSingleTapUp(MotionEvent e) [all...] |
TouchDelegate.java | 20 import android.view.MotionEvent; 32 * {@link android.view.View#onTouchEvent(MotionEvent)} to {@link #onTouchEvent(MotionEvent)}. 106 public boolean onTouchEvent(MotionEvent event) { 114 case MotionEvent.ACTION_DOWN: 122 case MotionEvent.ACTION_UP: 123 case MotionEvent.ACTION_MOVE: 132 case MotionEvent.ACTION_CANCEL:
|
ScaleGestureDetector.java | 25 * using the supplied {@link MotionEvent}s. The {@link OnScaleGestureListener} 27 * This class should only be used with {@link MotionEvent}s reported via touch. 33 * <li>In the {@link View#onTouchEvent(MotionEvent)} method ensure you call 34 * {@link #onTouchEvent(MotionEvent)}. The methods defined in your 136 private MotionEvent mPrevEvent; 137 private MotionEvent mCurrEvent; 164 public boolean onTouchEvent(MotionEvent event) { 169 switch (action & MotionEvent.ACTION_MASK) { 170 case MotionEvent.ACTION_POINTER_DOWN: { 181 mPrevEvent = MotionEvent.obtain(event) [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
IWallpaperEngine.aidl | 19 import android.view.MotionEvent; 27 void dispatchPointer(in MotionEvent event);
|
/frameworks/base/services/java/com/android/server/ |
InputDevice.java | 21 import android.view.MotionEvent; 60 final int[] curTouchVals = new int[MotionEvent.NUM_SAMPLE_DATA * 2]; 71 MotionEvent currentMove = null; 83 final int[] mLastData = new int[MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS]; 91 final int[] mNextData = new int[(MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS) 92 + MotionEvent.NUM_SAMPLE_DATA]; 106 final int[] mHistoryData = new int[(MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS) 108 final int[] mAveragedData = new int[MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS]; 116 final float[] mReportData = new float[MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS]; 208 final int ioff = i * MotionEvent.NUM_SAMPLE_DATA [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
GestureDetector_SimpleOnGestureListenerTest.java | 25 import android.view.MotionEvent; 67 args = {MotionEvent.class} 72 args = {MotionEvent.class} 77 args = {MotionEvent.class} 82 args = {MotionEvent.class, MotionEvent.class, float.class, float.class} 87 args = {MotionEvent.class} 92 args = {MotionEvent.class, MotionEvent.class, float.class, float.class} 97 args = {MotionEvent.class [all...] |
TouchDelegateTest.java | 25 import android.view.MotionEvent; 41 private static final int ACTION_DOWN = MotionEvent.ACTION_DOWN; 42 private static final int ACTION_UP = MotionEvent.ACTION_UP; 43 private static final int ACTION_CANCEL = MotionEvent.ACTION_CANCEL; 44 private static final int ACTION_MOVE = MotionEvent.ACTION_MOVE; 59 private MotionEvent mActionDownInside; 60 private MotionEvent mActionDownOutside; 61 private MotionEvent mActionUpInside; 62 private MotionEvent mActionUpOutside; 63 private MotionEvent mActionMoveInside [all...] |
/frameworks/base/services/java/com/android/server/status/ |
CloseDragHandle.java | 21 import android.view.MotionEvent; 38 public boolean onTouchEvent(MotionEvent event) { 39 if (event.getAction() != MotionEvent.ACTION_DOWN) { 46 public boolean onInterceptTouchEvent(MotionEvent event) {
|
LatestItemView.java | 22 import android.view.MotionEvent; 31 public boolean dispatchTouchEvent(MotionEvent ev) {
|
/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...] |
/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:
|
/frameworks/base/core/java/android/widget/ |
NumberPickerButton.java | 22 import android.view.MotionEvent; 54 public boolean onTouchEvent(MotionEvent event) { 60 public boolean onTrackballEvent(MotionEvent event) { 74 private void cancelLongpressIfRequired(MotionEvent event) { 75 if ((event.getAction() == MotionEvent.ACTION_CANCEL) 76 || (event.getAction() == MotionEvent.ACTION_UP)) {
|
ZoomButton.java | 23 import android.view.MotionEvent; 57 public boolean onTouchEvent(MotionEvent event) { 58 if ((event.getAction() == MotionEvent.ACTION_CANCEL) 59 || (event.getAction() == MotionEvent.ACTION_UP)) {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
NumberPickerButton.java | 22 import android.view.MotionEvent; 54 public boolean onTouchEvent(MotionEvent event) { 60 public boolean onTrackballEvent(MotionEvent event) { 74 private void cancelLongpressIfRequired(MotionEvent event) { 75 if ((event.getAction() == MotionEvent.ACTION_CANCEL) 76 || (event.getAction() == MotionEvent.ACTION_UP)) {
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
ScaleGestureDetector.java | 21 import android.view.MotionEvent; 25 * ("multitouch") using the supplied {@link MotionEvent}s. The 28 * {@link MotionEvent}s reported via touch. 34 * <li>In the {@link View#onTouchEvent(MotionEvent)} method ensure you call 35 * {@link #onTouchEvent(MotionEvent)}. The methods defined in your callback will 131 private MotionEvent mPrevEvent; 132 private MotionEvent mCurrEvent; 169 public boolean onTouchEvent(MotionEvent event) { 175 if (action == MotionEvent.ACTION_POINTER_1_DOWN) { 178 if (action == MotionEvent.ACTION_POINTER_2_DOWN) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinKeyboardView.java | 33 import android.view.MotionEvent; 121 private boolean handleSuddenJump(MotionEvent me) { 133 if (action == MotionEvent.ACTION_UP) mDisableDisambiguation = false; 138 case MotionEvent.ACTION_DOWN: 143 case MotionEvent.ACTION_MOVE: 155 MotionEvent translated = MotionEvent.obtain(me.getEventTime(), me.getEventTime(), 156 MotionEvent.ACTION_UP, 167 case MotionEvent.ACTION_UP: 171 MotionEvent translated = MotionEvent.obtain(me.getEventTime(), me.getEventTime() [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
AccountFolderListItem.java | 23 import android.view.MotionEvent; 68 public boolean onTouchEvent(MotionEvent event) { 89 case MotionEvent.ACTION_DOWN: 96 case MotionEvent.ACTION_CANCEL: 100 case MotionEvent.ACTION_UP:
|
MessageListItem.java | 23 import android.view.MotionEvent; 81 public boolean onTouchEvent(MotionEvent event) { 95 case MotionEvent.ACTION_DOWN: 102 case MotionEvent.ACTION_CANCEL: 106 case MotionEvent.ACTION_UP:
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherAppWidgetHostView.java | 22 import android.view.MotionEvent; 48 public boolean onInterceptTouchEvent(MotionEvent ev) { 58 case MotionEvent.ACTION_DOWN: { 63 case MotionEvent.ACTION_UP: 64 case MotionEvent.ACTION_CANCEL:
|
DragLayer.java | 21 import android.view.MotionEvent; 52 public boolean onInterceptTouchEvent(MotionEvent ev) { 57 public boolean onTouchEvent(MotionEvent ev) {
|
/frameworks/base/core/java/android/text/method/ |
MovementMethod.java | 21 import android.view.MotionEvent; 39 MotionEvent event); 41 MotionEvent event);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
FallView.java | 22 import android.view.MotionEvent; 46 public boolean onTouchEvent(MotionEvent event) { 48 case MotionEvent.ACTION_DOWN: 49 //case MotionEvent.ACTION_MOVE:
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyMotionEvent.java | 24 import android.view.MotionEvent; 115 private MotionEvent getEvent() { 117 return MotionEvent.obtain(mDownTime, SystemClock.uptimeMillis(), 122 return MotionEvent.obtain(mDownTime, mEventTime, 137 if (mAction == MotionEvent.ACTION_DOWN) { 139 } else if (mAction == MotionEvent.ACTION_UP) { 149 MotionEvent me = getEvent();
|
/cts/tests/tests/text/src/android/text/method/cts/ |
ScrollingMovementMethodTest.java | 34 import android.view.MotionEvent; 101 args = {TextView.class, Spannable.class, MotionEvent.class} 136 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)); 146 MotionEvent.obtain(now, now, MotionEvent.ACTION_MOVE, tinyDist, 0, 0)); 155 MotionEvent.obtain(now, now, MotionEvent.ACTION_UP, tinyDist, 0, 0)); 163 MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 0, 0, 0)) [all...] |