Searched refs:newPointerIdx (Results 1 – 5 of 5) sorted by relevance
160 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onTouchEvent() local162 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent()163 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent()164 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent()165 mActivePointerId = ev.getPointerId(newPointerIdx); in onTouchEvent()
144 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onMotionEvent() local146 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()147 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()148 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()149 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()
170 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onMotionEvent() local172 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()173 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()174 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()175 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()
93 final int newPointerIdx = pointerIndex == 0 ? 1 : 0; in onMotionEvent() local96 mDownY = ev.getY(newPointerIdx); in onMotionEvent()97 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()
254 final int newPointerIdx = ptrIdx == 0 ? 1 : 0; in onMotionEvent() local256 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()257 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()258 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()259 mActivePointerId = ev.getPointerId(newPointerIdx); in onMotionEvent()