Lines Matching defs:MotionEvent

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 {
177 * a pointer id inside a {@link MotionEvent}.
257 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
258 * {@link View#onTouchEvent(MotionEvent)}.
273 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
274 * {@link View#onTouchEvent(MotionEvent)}.
286 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
287 * {@link View#onTouchEvent(MotionEvent)}.
299 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
300 * {@link View#onTouchEvent(MotionEvent)}.
312 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
313 * {@link View#onTouchEvent(MotionEvent)}.
325 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
326 * {@link View#onTouchEvent(MotionEvent)}.
502 * @see MotionEvent.PointerCoords#x
527 * @see MotionEvent.PointerCoords#y
549 * @see MotionEvent.PointerCoords#pressure
569 * @see MotionEvent.PointerCoords#size
590 * @see MotionEvent.PointerCoords#touchMajor
613 * @see MotionEvent.PointerCoords#touchMinor
638 * @see MotionEvent.PointerCoords#toolMajor
663 * @see MotionEvent.PointerCoords#toolMinor
690 * @see MotionEvent.PointerCoords#orientation
708 * @see MotionEvent.PointerCoords#getAxisValue(int)
726 * @see MotionEvent.PointerCoords#getAxisValue(int)
744 * @see MotionEvent.PointerCoords#getAxisValue(int)
760 * @see MotionEvent.PointerCoords#getAxisValue(int)
776 * @see MotionEvent.PointerCoords#getAxisValue(int)
794 * @see MotionEvent.PointerCoords#getAxisValue(int)
810 * @see MotionEvent.PointerCoords#getAxisValue(int)
826 * @see MotionEvent.PointerCoords#getAxisValue(int)
842 * @see MotionEvent.PointerCoords#getAxisValue(int)
858 * @see MotionEvent.PointerCoords#getAxisValue(int)
874 * @see MotionEvent.PointerCoords#getAxisValue(int)
890 * @see MotionEvent.PointerCoords#getAxisValue(int)
906 * @see MotionEvent.PointerCoords#getAxisValue(int)
923 * @see MotionEvent.PointerCoords#getAxisValue(int)
939 * @see MotionEvent.PointerCoords#getAxisValue(int)
956 * @see MotionEvent.PointerCoords#getAxisValue(int)
974 * @see MotionEvent.PointerCoords#getAxisValue(int, int)
1008 * @see MotionEvent.PointerCoords#getAxisValue(int, int)
1021 * @see MotionEvent.PointerCoords#getAxisValue(int, int)
1032 * @see MotionEvent.PointerCoords#getAxisValue(int)
1043 * @see MotionEvent.PointerCoords#getAxisValue(int)
1054 * @see MotionEvent.PointerCoords#getAxisValue(int)
1065 * @see MotionEvent.PointerCoords#getAxisValue(int)
1076 * @see MotionEvent.PointerCoords#getAxisValue(int)
1087 * @see MotionEvent.PointerCoords#getAxisValue(int)
1098 * @see MotionEvent.PointerCoords#getAxisValue(int)
1109 * @see MotionEvent.PointerCoords#getAxisValue(int)
1120 * @see MotionEvent.PointerCoords#getAxisValue(int)
1131 * @see MotionEvent.PointerCoords#getAxisValue(int)
1142 * @see MotionEvent.PointerCoords#getAxisValue(int)
1153 * @see MotionEvent.PointerCoords#getAxisValue(int)
1164 * @see MotionEvent.PointerCoords#getAxisValue(int)
1175 * @see MotionEvent.PointerCoords#getAxisValue(int)
1186 * @see MotionEvent.PointerCoords#getAxisValue(int)
1197 * @see MotionEvent.PointerCoords#getAxisValue(int)
1414 private static MotionEvent gRecyclerTop;
1436 // Pointer to the native MotionEvent object that contains the actual data.
1439 private MotionEvent mNext;
1501 private MotionEvent() {
1516 static private MotionEvent obtain() {
1517 final MotionEvent ev;
1521 return new MotionEvent();
1532 * Create a new MotionEvent, filling in all of the basic values that
1555 * MotionEvent.
1559 static public MotionEvent obtain(long downTime, long eventTime,
1564 MotionEvent ev = obtain();
1574 * Create a new MotionEvent, filling in all of the basic values that
1595 * MotionEvent.
1603 static public MotionEvent obtain(long downTime, long eventTime,
1621 * Create a new MotionEvent, filling in all of the basic values that
1647 * MotionEvent.
1649 static public MotionEvent obtain(long downTime, long eventTime, int action,
1652 MotionEvent ev = obtain();
1676 * Create a new MotionEvent, filling in all of the basic values that
1703 * MotionEvent.
1709 static public MotionEvent obtain(long downTime, long eventTime, int action,
1717 * Create a new MotionEvent, filling in a subset of the basic motion
1731 static public MotionEvent obtain(long downTime, long eventTime, int action,
1738 * Create a new MotionEvent, copying from an existing one.
1740 static public MotionEvent obtain(MotionEvent other) {
1745 MotionEvent ev = obtain();
1751 * Create a new MotionEvent, copying from an existing one, but not including
1754 static public MotionEvent obtainNoHistory(MotionEvent other) {
1759 MotionEvent ev = obtain();
1766 public MotionEvent copy() {
1771 * Recycle the MotionEvent, to be re-used by a later caller. After calling
2826 * MotionEvent. For touch events, clients can use this to determine if the
2842 * MotionEvent.
2950 public final boolean addBatch(MotionEvent event) {
3029 public final MotionEvent clampNoHistory(float left, float top, float right, float bottom) {
3030 MotionEvent ev = obtain();
3075 public final MotionEvent split(int idBits) {
3076 MotionEvent ev = obtain();
3157 msg.append("MotionEvent { action=").append(actionToString(getAction()));
3169 msg.append(", buttonState=").append(MotionEvent.buttonStateToString(getButtonState()));
3332 public static final Parcelable.Creator<MotionEvent> CREATOR
3333 = new Parcelable.Creator<MotionEvent>() {
3334 public MotionEvent createFromParcel(Parcel in) {
3335 in.readInt(); // skip token, we already know this is a MotionEvent
3336 return MotionEvent.createFromParcelBody(in);
3339 public MotionEvent[] newArray(int size) {
3340 return new MotionEvent[size];
3345 public static MotionEvent createFromParcelBody(Parcel in) {
3346 MotionEvent ev = obtain();
3366 * creating new {@link MotionEvent} objects and to query pointer coordinates
3405 * @see MotionEvent#AXIS_X
3412 * @see MotionEvent#AXIS_Y
3423 * @see MotionEvent#AXIS_PRESSURE
3436 * @see MotionEvent#AXIS_SIZE
3446 * @see MotionEvent#AXIS_TOUCH_MAJOR
3456 * @see MotionEvent#AXIS_TOUCH_MINOR
3468 * @see MotionEvent#AXIS_TOOL_MAJOR
3480 * @see MotionEvent#AXIS_TOOL_MINOR
3493 * @see MotionEvent#AXIS_ORIENTATION
3551 * @see MotionEvent#AXIS_X
3552 * @see MotionEvent#AXIS_Y
3595 * @see MotionEvent#AXIS_X
3596 * @see MotionEvent#AXIS_Y
3667 * when creating new {@link MotionEvent} objects and to query pointer properties in bulk.
3699 * @see MotionEvent#getPointerId(int)
3707 * @see MotionEvent#getToolType(int)