/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
MessageView.java | 5 import android.view.MotionEvent; 29 public boolean onTouchEvent(MotionEvent event) {
|
MessageScrollView.java | 22 import android.view.MotionEvent; 76 public boolean onInterceptTouchEvent(MotionEvent ev) { 91 public boolean dispatchTouchEvent(MotionEvent ev) { 94 case MotionEvent.ACTION_DOWN:
|
ConversationWebView.java | 25 import android.view.MotionEvent; 200 public boolean onTouchEvent(MotionEvent ev) { 204 case MotionEvent.ACTION_DOWN: 207 case MotionEvent.ACTION_POINTER_DOWN: 212 final MotionEvent fakeCancel = MotionEvent.obtain(ev); 213 fakeCancel.setAction(MotionEvent.ACTION_CANCEL); 217 case MotionEvent.ACTION_CANCEL: 218 case MotionEvent.ACTION_UP:
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
NonDistinctMultitouchHelper.java | 20 import android.view.MotionEvent; 34 public void processMotionEvent(final MotionEvent me, final KeyEventHandler keyEventHandler) { 72 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 87 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, 89 if (action == MotionEvent.ACTION_UP) { 91 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 105 final MotionEvent me = MotionEvent.obtain(
|
ScrollKeyboardView.java | 22 import android.view.MotionEvent; 131 public boolean onTouchEvent(final MotionEvent e) { 145 private Key getKey(final MotionEvent e) { 163 public boolean onDown(final MotionEvent e) { 177 public void onShowPress(final MotionEvent e) { 178 // User feedback is done at {@link #onDown(MotionEvent)}. 182 public boolean onSingleTapUp(final MotionEvent e) { 196 public boolean onScroll(final MotionEvent e1, final MotionEvent e2, final float distanceX, 203 public boolean onFling(final MotionEvent e1, final MotionEvent e2, final float velocityX [all...] |
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 173 final MotionEvent motionEvent = (MotionEvent)event; 174 if (motionEvent.isTouchEvent()) { 175 onTouchEvent(motionEvent, nestingLevel); 176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 177 onTrackballEvent(motionEvent, nestingLevel); 179 onGenericMotionEvent(motionEvent, nestingLevel); 255 public void onTrackballEvent(MotionEvent event, int nestingLevel) { 267 case MotionEvent.ACTION_DOWN [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthListView.java | 24 import android.view.MotionEvent; 95 public boolean onTouchEvent(MotionEvent ev) { 100 public boolean onInterceptTouchEvent(MotionEvent ev) { 104 private boolean processEvent (MotionEvent ev) { 105 switch (ev.getAction() & MotionEvent.ACTION_MASK) { 107 case MotionEvent.ACTION_CANCEL: 110 case MotionEvent.ACTION_DOWN: 115 case MotionEvent.ACTION_UP: 135 MotionEvent cancelEvent = MotionEvent.obtain(mDownActionTime, SystemClock.uptimeMillis() [all...] |
/development/samples/devbytes/animation/LiveButton/src/com/example/android/livebutton/ |
LiveButton.java | 21 import android.view.MotionEvent; 52 public boolean onTouch(View arg0, MotionEvent arg1) { 53 if (arg1.getAction() == MotionEvent.ACTION_DOWN) { 56 } else if (arg1.getAction() == MotionEvent.ACTION_UP) {
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
LiftToActivateListener.java | 20 import android.view.MotionEvent; 40 public boolean onHover(View v, MotionEvent event) { 46 case MotionEvent.ACTION_HOVER_ENTER: 52 case MotionEvent.ACTION_HOVER_EXIT:
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PanelHolder.java | 22 import android.view.MotionEvent; 73 public boolean onTouchEvent(MotionEvent event) { 75 if (event.getActionMasked() != MotionEvent.ACTION_MOVE) { 81 case MotionEvent.ACTION_DOWN:
|
/frameworks/base/services/java/com/android/server/wm/ |
PointerEventDispatcher.java | 23 import android.view.MotionEvent; 41 if (event instanceof MotionEvent 43 final MotionEvent motionEvent = (MotionEvent)event; 53 listeners[i].onPointerEvent(motionEvent);
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
RsListView.java | 22 import android.view.MotionEvent; 59 public boolean onTouchEvent(MotionEvent ev) 63 if (act == MotionEvent.ACTION_DOWN) { 66 } else if (act == MotionEvent.ACTION_MOVE) {
|
/frameworks/support/v4/kitkat/android/support/v4/view/ |
ScaleGestureDetectorCompatKitKat.java | 20 import android.view.MotionEvent;
|
/packages/apps/Browser/src/com/android/browser/ |
ActivityController.java | 12 import android.view.MotionEvent; 68 boolean dispatchTouchEvent(MotionEvent ev); 70 boolean dispatchTrackballEvent(MotionEvent ev); 72 boolean dispatchGenericMotionEvent(MotionEvent ev);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
ZoomControlBar.java | 24 import android.view.MotionEvent; 82 public boolean dispatchTouchEvent(MotionEvent event) { 87 case MotionEvent.ACTION_OUTSIDE: 88 case MotionEvent.ACTION_CANCEL: 89 case MotionEvent.ACTION_UP: 94 case MotionEvent.ACTION_DOWN: 97 case MotionEvent.ACTION_MOVE:
|
InLineSettingKnob.java | 26 import android.view.MotionEvent; 62 public boolean onTouch(View v, MotionEvent event) { 64 if (event.getAction() == MotionEvent.ACTION_DOWN) { 70 } else if (event.getAction() == MotionEvent.ACTION_UP 71 || event.getAction() == MotionEvent.ACTION_CANCEL) { 79 public boolean onTouch(View v, MotionEvent event) { 81 if (event.getAction() == MotionEvent.ACTION_DOWN) { 87 } else if (event.getAction() == MotionEvent.ACTION_UP 88 || event.getAction() == MotionEvent.ACTION_CANCEL) {
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ContentViewGestureHandler.java | 12 import android.view.MotionEvent; 27 * This class handles all MotionEvent handling done in ContentViewCore including the gesture 74 private MotionEvent mCurrentDownEvent; 78 private final Deque<MotionEvent> mPendingMotionEvents = new ArrayDeque<MotionEvent>(); 170 private MotionEvent mLastLongPressEvent; 217 * This is an interface to handle MotionEvent related communication with the native side also 222 * Send a raw {@link MotionEvent} to the native side 305 public boolean onDown(MotionEvent e) { 324 public boolean onScroll(MotionEvent e1, MotionEvent e2 [all...] |
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
TestTouchUtils.java | 11 import android.view.MotionEvent; 40 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); 54 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, x, y); 55 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, x, y); 108 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, absoluteX, absoluteY); 110 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, absoluteX, absoluteY); 135 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, x, y); 160 sendAction(instrumentation, MotionEvent.ACTION_MOVE, downTime, x, y); 174 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, x, y) [all...] |
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModelView.java | 28 import android.view.MotionEvent; 107 public boolean onTouchEvent(MotionEvent ev) { 116 switch (action & MotionEvent.ACTION_MASK) { 117 case MotionEvent.ACTION_DOWN: { 123 case MotionEvent.ACTION_MOVE: { 132 case MotionEvent.ACTION_UP: { 137 case MotionEvent.ACTION_CANCEL: { 142 case MotionEvent.ACTION_POINTER_UP: { 143 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 144 >> MotionEvent.ACTION_POINTER_INDEX_SHIFT [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TestAppView.java | 40 import android.view.MotionEvent; 89 public boolean onTouchEvent(MotionEvent ev) { 98 switch (action & MotionEvent.ACTION_MASK) { 99 case MotionEvent.ACTION_DOWN: { 105 case MotionEvent.ACTION_MOVE: { 114 case MotionEvent.ACTION_UP: { 119 case MotionEvent.ACTION_CANCEL: { 124 case MotionEvent.ACTION_POINTER_UP: { 125 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) 126 >> MotionEvent.ACTION_POINTER_INDEX_SHIFT [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Hover.java | 28 import android.view.MotionEvent; 77 public boolean onHover(View v, MotionEvent event) { 79 case MotionEvent.ACTION_HOVER_ENTER: 84 case MotionEvent.ACTION_HOVER_MOVE: 89 case MotionEvent.ACTION_HOVER_EXIT:
|
/frameworks/base/core/java/android/inputmethodservice/ |
AbstractInputMethodService.java | 23 import android.view.MotionEvent; 148 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback) { 160 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback) { 213 public boolean onTrackballEvent(MotionEvent event) { 224 public boolean onGenericMotionEvent(MotionEvent event) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 30 import android.view.MotionEvent; 34 import android.view.MotionEvent.PointerCoords; 387 if (ps.mToolType == MotionEvent.TOOL_TYPE_STYLUS 388 || ps.mToolType == MotionEvent.TOOL_TYPE_ERASER) { 406 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT)); 421 private void logMotionEvent(String type, MotionEvent event) { 440 MotionEvent.PointerCoords coords, int id, MotionEvent event) { 444 switch (action & MotionEvent.ACTION_MASK) { 445 case MotionEvent.ACTION_DOWN [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
OverlayView.java | 30 import android.view.MotionEvent; 52 private MotionEvent mStartScrollEvent; 60 public boolean onSingleTapConfirmed(MotionEvent e) { 69 public void onLongPress(MotionEvent e) { 82 mStartScrollEvent = MotionEvent.obtain(e); 162 public boolean onTouchEvent(MotionEvent ev) { 167 case MotionEvent.ACTION_MOVE: { 174 case MotionEvent.ACTION_UP: 175 case MotionEvent.ACTION_CANCEL: {
|
/frameworks/base/services/java/com/android/server/accessibility/ |
AccessibilityInputFilter.java | 29 import android.view.MotionEvent; 148 if (event instanceof MotionEvent 150 MotionEvent motionEvent = (MotionEvent) event; 151 onMotionEvent(motionEvent, policyFlags); 161 private void onMotionEvent(MotionEvent event, int policyFlags) { 185 if (event.getActionMasked() == MotionEvent.ACTION_SCROLL) { 192 if (event.getActionMasked() != MotionEvent.ACTION_DOWN) { 200 if (event.getActionMasked() != MotionEvent.ACTION_HOVER_ENTER) [all...] |