Home
last modified time | relevance | path

Searched refs:pointerIndex (Results 1 – 6 of 6) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DSystemPointerIconButton.java45 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon() argument
50 final float x = event.getX(pointerIndex); in onResolvePointerIcon()
51 final float y = event.getY(pointerIndex); in onResolvePointerIcon()
DLivePointerIconButton.java48 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon() argument
68 final float relativeX = (event.getX(pointerIndex) / getWidth()) - 0.5f; in onResolvePointerIcon()
69 final float relativeY = (event.getY(pointerIndex) / getHeight()) - 0.5f; in onResolvePointerIcon()
DResourcePointerIconButton.java47 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon() argument
DStaticPointerIconButton.java49 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex) { in onResolvePointerIcon() argument
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DVersionedGestureDetector.java122 final int pointerIndex = (ev.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) in onTouchEvent() local
124 final int pointerId = ev.getPointerId(pointerIndex); in onTouchEvent()
128 final int newPointerIndex = pointerIndex == 0 ? 1 : 0; in onTouchEvent()
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DDynamicListView.java260 int pointerIndex = event.findPointerIndex(mActivePointerId); in onTouchEvent() local
262 mLastEventY = (int) event.getY(pointerIndex); in onTouchEvent()
290 pointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_INDEX_MASK) >> in onTouchEvent()
292 final int pointerId = event.getPointerId(pointerIndex); in onTouchEvent()