/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageRedEye.java | 26 import android.view.MotionEvent; 47 public boolean onTouchEvent(MotionEvent event) { 62 if (event.getAction() == MotionEvent.ACTION_DOWN) { 67 if (event.getAction() == MotionEvent.ACTION_MOVE) { 71 if (event.getAction() == MotionEvent.ACTION_UP) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheelContainer.java | 26 import android.view.MotionEvent; 69 public boolean dispatchTouchEvent(MotionEvent event) { 83 if (action == MotionEvent.ACTION_DOWN || action == MotionEvent.ACTION_UP) { 91 event.setAction(MotionEvent.ACTION_CANCEL);
|
IndicatorControlWheel.java | 32 import android.view.MotionEvent; 93 private MotionEvent mLastMotionEvent; 247 private void injectMotionEvent(int viewIndex, MotionEvent event, int action) { 254 public boolean dispatchTouchEvent(MotionEvent event) { 273 if ((index != mPressedIndex) || (action == MotionEvent.ACTION_DOWN)) { 275 injectMotionEvent(mPressedIndex, event, MotionEvent.ACTION_CANCEL); 280 if ((index != -1) && (action == MotionEvent.ACTION_MOVE)) { 282 injectMotionEvent(index, event, MotionEvent.ACTION_DOWN); 286 if ((index != -1) && (action != MotionEvent.ACTION_MOVE)) { 292 && (action == MotionEvent.ACTION_MOVE)) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
AccessibilityUtils.java | 28 import android.view.MotionEvent; 119 public boolean isTouchExplorationEvent(final MotionEvent event) { 121 return action == MotionEvent.ACTION_HOVER_ENTER 122 || action == MotionEvent.ACTION_HOVER_EXIT 123 || action == MotionEvent.ACTION_HOVER_MOVE;
|
AccessibilityEntityProvider.java | 30 import android.view.MotionEvent; 216 final MotionEvent downEvent = MotionEvent.obtain( 217 downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 0); 218 final MotionEvent upEvent = MotionEvent.obtain( 219 downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, x, y, 0);
|
/frameworks/base/core/java/android/gesture/ |
GestureOverlayView.java | 27 import android.view.MotionEvent; 464 final MotionEvent event = MotionEvent.obtain(now, now, 465 MotionEvent.ACTION_CANCEL, 0.0f, 0.0f, 0); 494 public boolean dispatchTouchEvent(MotionEvent event) { 503 event.setAction(MotionEvent.ACTION_CANCEL); 514 private boolean processEvent(MotionEvent event) { 516 case MotionEvent.ACTION_DOWN: 520 case MotionEvent.ACTION_MOVE: 529 case MotionEvent.ACTION_UP [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardWidgetFrame.java | 36 import android.view.MotionEvent; 160 public boolean onInterceptTouchEvent(MotionEvent ev) { 164 case MotionEvent.ACTION_DOWN: 167 case MotionEvent.ACTION_MOVE: 170 case MotionEvent.ACTION_POINTER_DOWN: 171 case MotionEvent.ACTION_UP: 172 case MotionEvent.ACTION_CANCEL: 182 public boolean onTouchEvent(MotionEvent ev) { 186 case MotionEvent.ACTION_MOVE: 189 case MotionEvent.ACTION_POINTER_DOWN [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 27 import android.view.MotionEvent; 102 private float getPos(MotionEvent ev) { 205 public boolean onInterceptTouchEvent(MotionEvent ev) { 209 case MotionEvent.ACTION_DOWN: 239 case MotionEvent.ACTION_MOVE: 255 case MotionEvent.ACTION_UP: 256 case MotionEvent.ACTION_CANCEL: 330 public boolean onTouchEvent(MotionEvent ev) { 345 case MotionEvent.ACTION_OUTSIDE: 346 case MotionEvent.ACTION_MOVE [all...] |
/cts/tests/src/android/app/cts/ |
InstrumentationTestActivity.java | 29 import android.view.MotionEvent; 53 private MotionEvent mMotionEvent; 74 public boolean onTouchEvent(MotionEvent event) { 79 public boolean onTrackballEvent(MotionEvent event) { 127 public boolean onTouchEvent(MotionEvent event) { 215 public boolean onTrackballEvent(MotionEvent event) { 335 public MotionEvent getMotionEvent() {
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
CandidateView.java | 26 import android.view.MotionEvent; 100 public boolean onScroll(MotionEvent e1, MotionEvent e2, 262 public boolean onTouchEvent(MotionEvent me) { 274 case MotionEvent.ACTION_DOWN: 278 case MotionEvent.ACTION_MOVE: 288 case MotionEvent.ACTION_UP:
|
/packages/apps/Camera/tests/src/com/android/camera/activity/ |
CameraTestCase.java | 29 import android.view.MotionEvent; 195 MotionEvent down = MotionEvent.obtain(0, 0, 196 MotionEvent.ACTION_DOWN, x, y, 0, 0, 0, 0, 0, 0, 0); 197 MotionEvent up = MotionEvent.obtain(0, 0, 198 MotionEvent.ACTION_UP, x, y, 0, 0, 0, 0, 0, 0, 0);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MoreKeysKeyboardView.java | 22 import android.view.MotionEvent; 194 public boolean onTouchEvent(final MotionEvent me) { 202 case MotionEvent.ACTION_DOWN: 203 case MotionEvent.ACTION_POINTER_DOWN: 206 case MotionEvent.ACTION_UP: 207 case MotionEvent.ACTION_POINTER_UP: 210 case MotionEvent.ACTION_MOVE:
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
UsabilityStudyLogUtils.java | 28 import android.view.MotionEvent; 113 public static void writeMotionEvent(final MotionEvent me) { 126 case MotionEvent.ACTION_UP: 129 case MotionEvent.ACTION_DOWN: 132 case MotionEvent.ACTION_POINTER_UP: 135 case MotionEvent.ACTION_POINTER_DOWN: 138 case MotionEvent.ACTION_MOVE:
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
DesktopView.java | 19 import android.view.MotionEvent; 311 public boolean onTouchEvent(MotionEvent event) { 323 case MotionEvent.ACTION_DOWN: 329 case MotionEvent.ACTION_MOVE: 338 case MotionEvent.ACTION_UP: 377 MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { 408 public boolean onDown(MotionEvent e) { 429 public void onLongPress(MotionEvent e) {
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
Input.java | 25 import android.view.MotionEvent; 197 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x, y, 1.0f); 198 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x, y, 0.0f); 206 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x1, y1, 1.0f); 212 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), 216 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x2, y2, 0.0f); 228 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, dx, dy, 0.0f); 238 * Builds a MotionEvent and injects it into the event stream. 241 * @param action the MotionEvent.ACTION_* for the event 254 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
AutoScrollHelper.java | 24 import android.view.MotionEvent; 455 public boolean onTouch(View v, MotionEvent event) { 462 case MotionEvent.ACTION_DOWN: 466 case MotionEvent.ACTION_MOVE: 479 case MotionEvent.ACTION_UP: 480 case MotionEvent.ACTION_CANCEL: 673 * Sends a {@link MotionEvent#ACTION_CANCEL} event to the target view, 678 final MotionEvent cancel = MotionEvent.obtain( 679 eventTime, eventTime, MotionEvent.ACTION_CANCEL, 0, 0, 0) [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceRandom.java | 26 import android.view.MotionEvent; 269 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_DOWN) 280 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_MOVE) 290 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_POINTER_DOWN 291 | (1 << MotionEvent.ACTION_POINTER_INDEX_SHIFT)) 301 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_MOVE) 309 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_POINTER_UP 310 | (1 << MotionEvent.ACTION_POINTER_INDEX_SHIFT)) 317 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_UP) 358 mQ.addLast(new MonkeyTrackballEvent(MotionEvent.ACTION_MOVE [all...] |
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
FountainView.java | 40 import android.view.MotionEvent; 73 public boolean onTouchEvent(MotionEvent ev) 79 } else if (act == MotionEvent.ACTION_POINTER_UP) {
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
FountainView.java | 40 import android.view.MotionEvent; 73 public boolean onTouchEvent(MotionEvent ev) 79 } else if (act == MotionEvent.ACTION_POINTER_UP) {
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
BallsView.java | 40 import android.view.MotionEvent; 74 public boolean onTouchEvent(MotionEvent ev) 80 } else if (act == MotionEvent.ACTION_POINTER_UP) {
|
/packages/apps/Camera/src/com/android/camera/ui/ |
Switch.java | 38 import android.view.MotionEvent; 223 public boolean onTouchEvent(MotionEvent ev) { 227 case MotionEvent.ACTION_DOWN: { 238 case MotionEvent.ACTION_MOVE: { 274 case MotionEvent.ACTION_UP: 275 case MotionEvent.ACTION_CANCEL: { 289 private void cancelSuperTouch(MotionEvent ev) { 290 MotionEvent cancel = MotionEvent.obtain(ev); 291 cancel.setAction(MotionEvent.ACTION_CANCEL) [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
Switch.java | 35 import android.view.MotionEvent; 214 public boolean onTouchEvent(MotionEvent ev) { 218 case MotionEvent.ACTION_DOWN: { 229 case MotionEvent.ACTION_MOVE: { 265 case MotionEvent.ACTION_UP: 266 case MotionEvent.ACTION_CANCEL: { 280 private void cancelSuperTouch(MotionEvent ev) { 281 MotionEvent cancel = MotionEvent.obtain(ev); 282 cancel.setAction(MotionEvent.ACTION_CANCEL) [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
SwipeHelper.java | 29 import android.view.MotionEvent; 214 public boolean onInterceptTouchEvent(MotionEvent ev) { 217 case MotionEvent.ACTION_DOWN: 231 case MotionEvent.ACTION_MOVE: 257 case MotionEvent.ACTION_UP: 258 case MotionEvent.ACTION_CANCEL: 350 public boolean onTouchEvent(MotionEvent ev) { 357 case MotionEvent.ACTION_OUTSIDE: 358 case MotionEvent.ACTION_MOVE: 395 case MotionEvent.ACTION_UP [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 28 import android.view.MotionEvent; 202 public boolean onInterceptTouchEvent(MotionEvent ev) { 205 case MotionEvent.ACTION_DOWN: 222 case MotionEvent.ACTION_MOVE: 250 case MotionEvent.ACTION_UP: 251 case MotionEvent.ACTION_CANCEL: 352 public boolean onTouchEvent(MotionEvent ev) { 359 case MotionEvent.ACTION_OUTSIDE: 360 case MotionEvent.ACTION_MOVE: 400 case MotionEvent.ACTION_UP [all...] |
/frameworks/base/core/java/android/view/ |
MotionEvent.java | 56 * The MotionEvent class provides many methods to query the position and other properties of 92 * void printSamples(MotionEvent ev) { 112 * The interpretation of the contents of a MotionEvent varies significantly depending 168 public final class MotionEvent extends InputEvent implements Parcelable { 176 * a pointer id inside a {@link MotionEvent}. 256 * {@link View#onGenericMotionEvent(MotionEvent)} rather than 257 * {@link View#onTouchEvent(MotionEvent)}. 272 * {@link View#onGenericMotionEvent(MotionEvent)} rather than 273 * {@link View#onTouchEvent(MotionEvent)}. 285 * {@link View#onGenericMotionEvent(MotionEvent)} rather tha [all...] |