Lines Matching defs:prototype

824      * @param prototype The prototype from which to create the injected events.
827 private void sendDownForAllNotInjectedPointers(MotionEvent prototype, int policyFlags) {
832 final int pointerCount = prototype.getPointerCount();
834 final int pointerId = prototype.getPointerId(i);
839 sendMotionEvent(prototype, action, pointerIdBits, policyFlags);
880 * @param prototype The prototype from which to create the injected events.
883 private void sendUpForInjectedDownPointers(MotionEvent prototype, int policyFlags) {
886 final int pointerCount = prototype.getPointerCount();
888 final int pointerId = prototype.getPointerId(i);
895 sendMotionEvent(prototype, action, pointerIdBits, policyFlags);
902 * @param prototype The prototype from which to create the injected events.
906 private void sendActionDownAndUp(MotionEvent prototype, int policyFlags,
909 final int pointerId = prototype.getPointerId(prototype.getActionIndex());
911 prototype.setTargetAccessibilityFocus(targetAccessibilityFocus);
912 sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags);
913 prototype.setTargetAccessibilityFocus(targetAccessibilityFocus);
914 sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
920 * @param prototype The prototype from which to create the injected events.
925 private void sendMotionEvent(MotionEvent prototype, int action, int pointerIdBits,
927 prototype.setAction(action);
931 event = prototype;
933 event = prototype.split(pointerIdBits);
968 if (event != prototype) {
1221 public void post(MotionEvent prototype, int pointerIdBits, int policyFlags) {
1223 mPrototype = MotionEvent.obtain(prototype);