Lines Matching refs:motionEvent
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:
277 case MotionEvent.ACTION_UP:
287 case MotionEvent.ACTION_MOVE:
291 problem("Invalid action " + MotionEvent.actionToString(action)
318 public void onTouchEvent(MotionEvent event, int nestingLevel) {
324 final boolean newStream = action == MotionEvent.ACTION_DOWN
325 || action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_OUTSIDE;
356 case MotionEvent.ACTION_DOWN:
365 case MotionEvent.ACTION_UP:
371 case MotionEvent.ACTION_MOVE: {
382 case MotionEvent.ACTION_CANCEL:
386 case MotionEvent.ACTION_OUTSIDE:
397 if (actionMasked == MotionEvent.ACTION_POINTER_DOWN) {
418 } else if (actionMasked == MotionEvent.ACTION_POINTER_UP) {
436 problem("Invalid action " + MotionEvent.actionToString(action)
459 public void onGenericMotionEvent(MotionEvent event, int nestingLevel) {
471 case MotionEvent.ACTION_HOVER_ENTER:
475 case MotionEvent.ACTION_HOVER_MOVE:
478 case MotionEvent.ACTION_HOVER_EXIT:
485 case MotionEvent.ACTION_SCROLL:
495 case MotionEvent.ACTION_MOVE:
539 final MotionEvent motionEvent = (MotionEvent)event;
540 if (motionEvent.isTouchEvent()) {
542 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
558 private void ensurePointerCountIsOneForThisAction(MotionEvent event) {
562 + MotionEvent.actionToString(event.getAction()));
566 private void ensureHistorySizeIsZeroForThisAction(MotionEvent event) {
570 + MotionEvent.actionToString(event.getAction()));