Lines Matching refs:event

31         public int findPointerIndex(MotionEvent event, int pointerId);
32 public int getPointerId(MotionEvent event, int pointerIndex);
33 public float getX(MotionEvent event, int pointerIndex);
34 public float getY(MotionEvent event, int pointerIndex);
35 public int getPointerCount(MotionEvent event);
36 public int getSource(MotionEvent event);
37 float getAxisValue(MotionEvent event, int axis);
38 float getAxisValue(MotionEvent event, int axis, int pointerIndex);
39 int getButtonState(MotionEvent event);
47 public int findPointerIndex(MotionEvent event, int pointerId) {
55 public int getPointerId(MotionEvent event, int pointerIndex) {
63 public float getX(MotionEvent event, int pointerIndex) {
65 return event.getX();
70 public float getY(MotionEvent event, int pointerIndex) {
72 return event.getY();
77 public int getPointerCount(MotionEvent event) {
82 public int getSource(MotionEvent event) {
87 public float getAxisValue(MotionEvent event, int axis) {
92 public float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
97 public int getButtonState(MotionEvent event) {
107 public int findPointerIndex(MotionEvent event, int pointerId) {
108 return MotionEventCompatEclair.findPointerIndex(event, pointerId);
111 public int getPointerId(MotionEvent event, int pointerIndex) {
112 return MotionEventCompatEclair.getPointerId(event, pointerIndex);
115 public float getX(MotionEvent event, int pointerIndex) {
116 return MotionEventCompatEclair.getX(event, pointerIndex);
119 public float getY(MotionEvent event, int pointerIndex) {
120 return MotionEventCompatEclair.getY(event, pointerIndex);
123 public int getPointerCount(MotionEvent event) {
124 return MotionEventCompatEclair.getPointerCount(event);
133 public int getSource(MotionEvent event) {
134 return MotionEventCompatGingerbread.getSource(event);
144 public float getAxisValue(MotionEvent event, int axis) {
145 return MotionEventCompatHoneycombMr1.getAxisValue(event, axis);
149 public float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
150 return MotionEventCompatHoneycombMr1.getAxisValue(event, axis, pointerIndex);
160 public int getButtonState(MotionEvent event) {
161 return MotionEventCompatICS.getButtonState(event);
459 public static int getActionMasked(MotionEvent event) {
460 return event.getAction() & ACTION_MASK;
467 public static int getActionIndex(MotionEvent event) {
468 return (event.getAction() & ACTION_POINTER_INDEX_MASK)
477 public static int findPointerIndex(MotionEvent event, int pointerId) {
478 return IMPL.findPointerIndex(event, pointerId);
486 public static int getPointerId(MotionEvent event, int pointerIndex) {
487 return IMPL.getPointerId(event, pointerIndex);
495 public static float getX(MotionEvent event, int pointerIndex) {
496 return IMPL.getX(event, pointerIndex);
504 public static float getY(MotionEvent event, int pointerIndex) {
505 return IMPL.getY(event, pointerIndex);
509 * The number of pointers of data contained in this event. Always
512 public static int getPointerCount(MotionEvent event) {
513 return IMPL.getPointerCount(event);
517 * Gets the source of the event.
519 * @return The event source or {@link InputDeviceCompat#SOURCE_UNKNOWN} if unknown.
521 public static int getSource(MotionEvent event) {
522 return IMPL.getSource(event);
526 * Determines whether the event is from the given source.
528 * @return Whether the event is from the given source.
530 public static boolean isFromSource(MotionEvent event, int source) {
531 return (getSource(event) & source) == source;
543 public static float getAxisValue(MotionEvent event, int axis) {
544 return IMPL.getAxisValue(event, axis);
559 public static float getAxisValue(MotionEvent event, int axis, int pointerIndex) {
560 return IMPL.getAxisValue(event, axis, pointerIndex);
565 * @param event
568 public static int getButtonState(MotionEvent event) {
569 return IMPL.getButtonState(event);