Home
last modified time | relevance | path

Searched refs:activePointerIndex (Results 1 – 7 of 7) sorted by relevance

/aosp12/frameworks/base/core/java/android/widget/
H A DForwardingListener.java182 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); in onTouchObserved() local
183 if (activePointerIndex >= 0) { in onTouchObserved()
184 final float x = srcEvent.getX(activePointerIndex); in onTouchObserved()
185 final float y = srcEvent.getY(activePointerIndex); in onTouchObserved()
H A DStackView.java770 final int activePointerIndex = ev.getActionIndex();
771 final int pointerId = ev.getPointerId(activePointerIndex);
784 if (index != activePointerIndex) {
791 float oldX = ev.getX(activePointerIndex);
792 float oldY = ev.getY(activePointerIndex);
H A DHorizontalScrollView.java714 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() local
715 if (activePointerIndex == -1) { in onTouchEvent()
720 final int x = (int) ev.getX(activePointerIndex); in onTouchEvent()
744 final float displacement = ev.getY(activePointerIndex) / getHeight(); in onTouchEvent()
H A DScrollView.java775 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onTouchEvent() local
776 if (activePointerIndex == -1) { in onTouchEvent()
781 final int y = (int) ev.getY(activePointerIndex); in onTouchEvent()
810 final float displacement = ev.getX(activePointerIndex) / getWidth(); in onTouchEvent()
/aosp12/frameworks/base/core/java/com/android/internal/widget/helper/
H A DItemTouchHelper.java357 final int activePointerIndex = event.findPointerIndex(mActivePointerId);
358 if (activePointerIndex >= 0) {
359 checkSelectForSwipe(action, event, activePointerIndex);
368 if (activePointerIndex >= 0) {
369 updateDxDy(event, mSelectedFlags, activePointerIndex);
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java2021 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2022 final float x = ev.getX(activePointerIndex);
2023 needsInvalidate |= performDrag(x, ev.getY(activePointerIndex));
2045 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2046 final float x = ev.getX(activePointerIndex);
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationStackScrollLayout.java3482 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); in onScrollTouch() local
3483 if (activePointerIndex == -1) { in onScrollTouch()
3488 final int y = (int) ev.getY(activePointerIndex); in onScrollTouch()
3489 final int x = (int) ev.getX(activePointerIndex); in onScrollTouch()