/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.aidl | 20 parcelable MotionEvent;
|
H A D | 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:
|
H A D | GestureDetector.java | 24 * Detects various gestures and events using the supplied {@link MotionEvent}s. 26 * motion event has occurred. This class should only be used with {@link MotionEvent}s 32 * <li>In the {@link View#onTouchEvent(MotionEvent)} method ensure you call 33 * {@link #onTouchEvent(MotionEvent)}. The methods defined in your callback 47 * Notified when a tap occurs with the down {@link MotionEvent} 53 boolean onDown(MotionEvent e); 56 * The user has performed a down {@link MotionEvent} and not performed 63 void onShowPress(MotionEvent e); 66 * Notified when a tap occurs with the up {@link MotionEvent} 72 boolean onSingleTapUp(MotionEvent [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Gefingerpoken.java | 19 import android.view.MotionEvent; 23 boolean onInterceptTouchEvent(MotionEvent ev); 24 boolean onTouchEvent(MotionEvent ev);
|
/frameworks/support/v4/eclair/android/support/v4/view/ |
H A D | MotionEventCompatEclair.java | 19 import android.view.MotionEvent; 25 public static int findPointerIndex(MotionEvent event, int pointerId) { 28 public static int getPointerId(MotionEvent event, int pointerIndex) { 31 public static float getX(MotionEvent event, int pointerIndex) { 34 public static float getY(MotionEvent event, int pointerIndex) { 37 public static int getPointerCount(MotionEvent event) {
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | MotionEventCompat.java | 19 import android.view.MotionEvent; 22 * Helper for accessing features in {@link MotionEvent} introduced 30 public int findPointerIndex(MotionEvent event, int pointerId); 31 public int getPointerId(MotionEvent event, int pointerIndex); 32 public float getX(MotionEvent event, int pointerIndex); 33 public float getY(MotionEvent event, int pointerIndex); 34 public int getPointerCount(MotionEvent event); 42 public int findPointerIndex(MotionEvent event, int pointerId) { 50 public int getPointerId(MotionEvent event, int pointerIndex) { 58 public float getX(MotionEvent even [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | VelocityTrackerInterface.java | 19 import android.view.MotionEvent; 26 public void addMovement(MotionEvent event);
|
H A D | NavigationBarViewTaskSwitchHelper.java | 22 import android.view.MotionEvent; 56 public boolean onInterceptTouchEvent(MotionEvent event) { 62 switch (action & MotionEvent.ACTION_MASK) { 63 case MotionEvent.ACTION_DOWN: { 68 case MotionEvent.ACTION_MOVE: { 81 case MotionEvent.ACTION_CANCEL: 82 case MotionEvent.ACTION_UP: 88 public boolean onTouchEvent(MotionEvent event) { 93 public boolean onFling(MotionEvent e1, MotionEvent e [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.h | 25 class MotionEvent; 27 /* Obtains an instance of a DVM MotionEvent object as a copy of a native MotionEvent instance. 29 extern jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event); 31 /* Gets the underlying native MotionEvent instance within a DVM MotionEvent object. 33 extern MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj); 35 /* Recycles a DVM MotionEvent object.
|
H A D | android_view_MotionEvent.cpp | 17 #define LOG_TAG "MotionEvent-JNI" 66 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { 70 return reinterpret_cast<MotionEvent*>( 75 MotionEvent* event) { 80 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { 90 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventObj); 92 destEvent = new MotionEvent(); 347 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); 349 event = new MotionEvent(); [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | EventStreamTransformation.java | 20 import android.view.MotionEvent; 45 * {@link KeyEvent#FLAG_CANCELED}. To cancel a {@link MotionEvent} the handler 46 * has to send an event with action {@link MotionEvent#ACTION_CANCEL}. 68 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags);
|
H A D | 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 firstU [all...] |
H A D | TouchExplorer.java | 32 import android.view.MotionEvent; 33 import android.view.MotionEvent.PointerCoords; 34 import android.view.MotionEvent.PointerProperties; 259 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent(); 269 private void clear(MotionEvent event, int policyFlags) { 320 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) { 394 private void handleMotionEventStateTouchExploring(MotionEvent event, MotionEvent rawEvent, 403 case MotionEvent [all...] |
/frameworks/base/native/android/ |
H A D | 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_even [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackTapPointerEventListener.java | 21 import android.view.MotionEvent; 48 public void onPointerEvent(MotionEvent motionEvent) { 50 switch (action & MotionEvent.ACTION_MASK) { 51 case MotionEvent.ACTION_DOWN: 56 case MotionEvent.ACTION_MOVE: 67 case MotionEvent.ACTION_UP: 68 case MotionEvent.ACTION_POINTER_UP: { 69 int index = (action & MotionEvent.ACTION_POINTER_INDEX_MASK) 70 >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | Interaction.java | 19 import android.view.MotionEvent; 29 public boolean onTouch(View v, MotionEvent event) { 36 public boolean onGenericMotion(View v, MotionEvent event) {
|
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | IWallpaperEngine.aidl | 20 import android.view.MotionEvent; 30 void dispatchPointer(in MotionEvent event);
|
/frameworks/base/core/java/android/text/method/ |
H A D | 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/ |
H A D | EmergencyCarrierArea.java | 21 import android.view.MotionEvent; 47 public boolean onTouch(View v, MotionEvent event) { 50 case MotionEvent.ACTION_DOWN: 53 case MotionEvent.ACTION_UP:
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
H A D | FBOSyncView.java | 23 import android.view.MotionEvent; 80 public boolean onTouchEvent(MotionEvent ev) { 89 switch (action & MotionEvent.ACTION_MASK) { 90 case MotionEvent.ACTION_DOWN: { 96 case MotionEvent.ACTION_MOVE: { 105 case MotionEvent.ACTION_UP: { 110 case MotionEvent.ACTION_CANCEL: { 115 case MotionEvent.ACTION_POINTER_UP: { 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 117 >> MotionEvent [all...] |
H A D | FBOTestView.java | 23 import android.view.MotionEvent; 80 public boolean onTouchEvent(MotionEvent ev) { 89 switch (action & MotionEvent.ACTION_MASK) { 90 case MotionEvent.ACTION_DOWN: { 96 case MotionEvent.ACTION_MOVE: { 105 case MotionEvent.ACTION_UP: { 110 case MotionEvent.ACTION_CANCEL: { 115 case MotionEvent.ACTION_POINTER_UP: { 116 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 117 >> MotionEvent [all...] |
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
H A D | ShadersTestView.java | 22 import android.view.MotionEvent; 74 public boolean onTouchEvent(MotionEvent ev) { 83 switch (action & MotionEvent.ACTION_MASK) { 84 case MotionEvent.ACTION_DOWN: { 90 case MotionEvent.ACTION_MOVE: { 99 case MotionEvent.ACTION_UP: { 104 case MotionEvent.ACTION_CANCEL: { 109 case MotionEvent.ACTION_POINTER_UP: { 110 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 111 >> MotionEvent [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSession.java | 22 import android.view.MotionEvent; 136 * @see android.view.MotionEvent 138 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback); 151 * @see android.view.MotionEvent 153 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback);
|
/frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/ |
H A D | HelloWorldView.java | 23 import android.view.MotionEvent; 65 public boolean onTouchEvent(MotionEvent ev) { 67 if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | ToggleSeekBar.java | 21 import android.view.MotionEvent; 38 public boolean onTouchEvent(MotionEvent event) {
|