Lines Matching defs:motionEvent
29 import android.view.MotionEvent;
53 private MotionEvent.PointerProperties[] mPointerProperties =
54 new MotionEvent.PointerProperties[MAX_POINTERS];
55 private MotionEvent.PointerCoords[] mPointerCoords =
56 new MotionEvent.PointerCoords[MAX_POINTERS];
79 public void injectEvents(List<MotionEvent> events,
89 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
130 private void injectEventsMainThread(List<MotionEvent> events,
153 MotionEvent event = events.get(i);
156 mPointerCoords = new MotionEvent.PointerCoords[numPointers];
157 mPointerProperties = new MotionEvent.PointerProperties[numPointers];
161 mPointerCoords[j] = new MotionEvent.PointerCoords();
162 mPointerProperties[j] = new MotionEvent.PointerProperties();
169 * MotionEvent doesn't have a setEventTime() method (it carries around history data,
172 MotionEvent offsetEvent = MotionEvent.obtain(startTime + event.getDownTime(),
183 private void sendMotionEventToNext(MotionEvent event, MotionEvent rawEvent,
187 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
190 if ((event.getActionMasked() == MotionEvent.ACTION_UP)
191 || (event.getActionMasked() == MotionEvent.ACTION_CANCEL)) {
200 MotionEvent cancelEvent =
201 MotionEvent.obtain(now, now, MotionEvent.ACTION_CANCEL, 0.0f, 0.0f, 0);
231 injectEventsMainThread((List<MotionEvent>) args.arg1,
239 MotionEvent motionEvent = (MotionEvent) message.obj;
240 sendMotionEventToNext(motionEvent, motionEvent,