Lines Matching refs:prototype

817      * @param prototype The prototype from which to create the injected events.
820 private void sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) {
825 final int pointerCount = prototype.getPointerCount();
827 final int pointerId = prototype.getPointerId(i);
832 sendMotionEvent(prototype, action, pointerIdBits, policyFlags);
873 * @param prototype The prototype from which to create the injected events.
876 private void sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) {
879 final int pointerCount = prototype.getPointerCount();
881 final int pointerId = prototype.getPointerId(i);
888 sendMotionEvent(prototype, action, pointerIdBits, policyFlags);
895 * @param prototype The prototype from which to create the injected events.
899 private void sendActionDownAndUp(MotionEvent prototype, int policyFlags,
902 final int pointerId = prototype.getPointerId(prototype.getActionIndex());
904 prototype.setTargetAccessibilityFocus(targetAccessibilityFocus);
905 sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags);
906 prototype.setTargetAccessibilityFocus(targetAccessibilityFocus);
907 sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
913 * @param prototype The prototype from which to create the injected events.
918 private void sendMotionEvent(MotionEvent prototype, int action, int pointerIdBits,
920 prototype.setAction(action);
924 event = prototype;
927 event = prototype.split(pointerIdBits);
964 if (event != prototype) {
1217 public void post(MotionEvent prototype, int pointerIdBits, int policyFlags) {
1219 mPrototype = MotionEvent.obtain(prototype);