[go: nahoru, domu]

Searched refs:mActivePointerId (Results 1 - 25 of 25) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java59 private int mActivePointerId; field in class:PhotoViewPager
127 mActivePointerId = INVALID_POINTER;
133 final int activePointerId = mActivePointerId;
163 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
170 if (pointerId == mActivePointerId) {
174 mActivePointerId = MotionEventCompat.getPointerId(ev, newPointerIndex);
/frameworks/support/design/src/android/support/design/widget/
H A DHeaderBehavior.java43 private int mActivePointerId = INVALID_POINTER; field in class:HeaderBehavior
74 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
81 final int activePointerId = mActivePointerId;
103 mActivePointerId = INVALID_POINTER;
132 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
142 mActivePointerId);
172 mActivePointerId);
178 mActivePointerId = INVALID_POINTER;
H A DSwipeDismissBehavior.java217 private int mActivePointerId = INVALID_POINTER_ID;
222 return mActivePointerId == INVALID_POINTER_ID && canSwipeDismissView(child);
227 mActivePointerId = activePointerId;
248 mActivePointerId = INVALID_POINTER_ID;
H A DBottomSheetBehavior.java144 private int mActivePointerId; field in class:BottomSheetBehavior
240 mActivePointerId = MotionEvent.INVALID_POINTER_ID;
252 mActivePointerId = event.getPointerId(event.getActionIndex());
255 mIgnoreEvents = mActivePointerId == MotionEvent.INVALID_POINTER_ID &&
527 mActivePointerId = ViewDragHelper.INVALID_POINTER;
564 return VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId);
577 if (mState == STATE_EXPANDED && mActivePointerId == pointerId) {
/frameworks/base/core/java/android/widget/
H A DForwardingListener.java57 private int mActivePointerId; field in class:ForwardingListener
112 mActivePointerId = MotionEvent.INVALID_POINTER_ID;
168 mActivePointerId = srcEvent.getPointerId(0);
181 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId);
266 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
H A DHorizontalScrollView.java135 private int mActivePointerId = INVALID_POINTER; field in class:HorizontalScrollView
139 * Used by {@link #mActivePointerId}.
480 final int activePointerId = mActivePointerId;
518 mActivePointerId = ev.getPointerId(0);
536 mActivePointerId = INVALID_POINTER;
544 mActivePointerId = ev.getPointerId(index);
549 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
589 mActivePointerId = ev.getPointerId(0);
593 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
595 Log.e(TAG, "Invalid pointerId=" + mActivePointerId
[all...]
H A DScrollView.java141 private int mActivePointerId = INVALID_POINTER; field in class:ScrollView
161 * Used by {@link #mActivePointerId}.
514 final int activePointerId = mActivePointerId;
559 mActivePointerId = ev.getPointerId(0);
582 mActivePointerId = INVALID_POINTER;
640 mActivePointerId = ev.getPointerId(0);
645 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
647 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
720 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
729 mActivePointerId
[all...]
H A DStackView.java105 * Used by {@link #mActivePointerId}.
128 private int mActivePointerId; field in class:StackView
196 mActivePointerId = INVALID_POINTER;
623 if (mActivePointerId == INVALID_POINTER) {
626 mActivePointerId = ev.getPointerId(0);
631 int pointerIndex = ev.findPointerIndex(mActivePointerId);
649 mActivePointerId = INVALID_POINTER;
713 int pointerIndex = ev.findPointerIndex(mActivePointerId);
758 mActivePointerId = INVALID_POINTER;
769 if (pointerId == mActivePointerId) {
[all...]
H A DAbsListView.java648 private int mActivePointerId = INVALID_POINTER; field in class:AbsListView
652 * Used by {@link #mActivePointerId}.
3843 mActivePointerId = id;
3867 mActivePointerId = ev.getPointerId(0);
3935 int pointerIndex = ev.findPointerIndex(mActivePointerId);
3938 mActivePointerId = ev.getPointerId(pointerIndex);
4077 (velocityTracker.getYVelocity(mActivePointerId) * mVelocityScale);
4125 final int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
4149 mActivePointerId = INVALID_POINTER;
4193 mActivePointerId
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DViewDragHelper.java116 private int mActivePointerId = INVALID_POINTER; field in class:ViewDragHelper
467 mActivePointerId = activePointerId;
484 return mActivePointerId;
499 mActivePointerId = INVALID_POINTER;
541 mActivePointerId = INVALID_POINTER;
571 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
572 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId));
704 (int) VelocityTrackerCompat.getXVelocity(mVelocityTracker, mActivePointerId),
705 (int) VelocityTrackerCompat.getYVelocity(mVelocityTracker, mActivePointerId),
896 if (toCapture == mCapturedView && mActivePointerId
[all...]
H A DSwipeRefreshLayout.java127 private int mActivePointerId = INVALID_POINTER; field in class:SwipeRefreshLayout
683 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
685 final float initialDownY = getMotionEventY(ev, mActivePointerId);
693 if (mActivePointerId == INVALID_POINTER) {
698 final float y = getMotionEventY(ev, mActivePointerId);
717 mActivePointerId = INVALID_POINTER;
996 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
1001 pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
1024 mActivePointerId = MotionEventCompat.getPointerId(ev, pointerIndex);
1033 pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
[all...]
H A DNestedScrollView.java150 private int mActivePointerId = INVALID_POINTER; field in class:NestedScrollView
161 * Used by {@link #mActivePointerId}.
636 final int activePointerId = mActivePointerId;
679 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
699 mActivePointerId = INVALID_POINTER;
753 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
759 mActivePointerId);
761 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
838 mActivePointerId);
847 mActivePointerId
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DForwardingListener.java56 private int mActivePointerId; field in class:ForwardingListener
155 mActivePointerId = srcEvent.getPointerId(0);
168 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId);
253 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewTouchHandler.java86 int mActivePointerId = INACTIVE_POINTER_ID; field in class:TaskStackViewTouchHandler
239 mActivePointerId = ev.getPointerId(0);
249 mActivePointerId = ev.getPointerId(index);
259 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
314 if (pointerId == mActivePointerId) {
317 mActivePointerId = ev.getPointerId(newPointerIndex);
329 int activePointerIndex = ev.findPointerIndex(mActivePointerId);
331 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId);
354 mActivePointerId = INACTIVE_POINTER_ID;
360 mActivePointerId
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp62 int32_t mActivePointerId; member in class:android::VelocityTrackerState
68 mVelocityTracker(strategy), mActivePointerId(-1) {
73 mActivePointerId = -1;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
H A DItemTouchHelper.java218 int mActivePointerId = ACTIVE_POINTER_ID_NONE; field in class:ItemTouchHelper
312 mActivePointerId = MotionEventCompat.getPointerId(event, 0);
330 mActivePointerId = ACTIVE_POINTER_ID_NONE;
332 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) {
335 final int index = MotionEventCompat.findPointerIndex(event, mActivePointerId);
359 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) {
364 .findPointerIndex(event, mActivePointerId);
391 mActivePointerId = ACTIVE_POINTER_ID_NONE;
396 if (pointerId == mActivePointerId) {
400 mActivePointerId
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java102 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; field in class:ResolverDrawerLayout
258 mActivePointerId = ev.getPointerId(0);
297 mActivePointerId = ev.getPointerId(0);
306 int index = ev.findPointerIndex(mActivePointerId);
308 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting");
310 mActivePointerId = ev.getPointerId(0);
335 mActivePointerId = pointerId;
363 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId);
396 if (pointerId == mActivePointerId) {
402 mActivePointerId
[all...]
H A DPointerLocationView.java125 private int mActivePointerId; field in class:PointerLocationView
175 mActivePointerId = 0;
231 if (mActivePointerId >= 0) {
232 final PointerState ps = mPointers.get(mActivePointerId);
561 if (mActivePointerId < 0 ||
562 !mPointers.get(mActivePointerId).mCurDown) {
563 mActivePointerId = id;
642 if (mActivePointerId == id) {
643 mActivePointerId = event.getPointerId(index == 0 ? 1 : 0);
H A DViewPager.java193 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
196 * Used by {@link #mActivePointerId}.
1840 mActivePointerId = INVALID_POINTER;
1872 final int activePointerId = mActivePointerId;
1927 mActivePointerId = ev.getPointerId(0);
1998 mActivePointerId = ev.getPointerId(0);
2003 final int pointerIndex = ev.findPointerIndex(mActivePointerId);
2029 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
2038 final int initialVelocity = (int) velocityTracker.getXVelocity(mActivePointerId);
2053 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
[all...]
/frameworks/native/libs/input/
H A DVelocityTracker.cpp112 mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) {
206 mActivePointerId = -1;
215 if (mActivePointerId >= 0 && idBits.hasBit(mActivePointerId)) {
216 mActivePointerId = !remainingIdBits.isEmpty() ? remainingIdBits.firstMarkedBit() : -1;
240 if (mActivePointerId < 0 || !idBits.hasBit(mActivePointerId)) {
241 mActivePointerId = idBits.isEmpty() ? -1 : idBits.firstMarkedBit();
248 eventTime, idBits.value, mActivePointerId);
/frameworks/native/include/input/
H A DVelocityTracker.h99 inline int32_t getActivePointerId() const { return mActivePointerId; }
109 int32_t mActivePointerId; member in class:android::VelocityTracker
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java122 private int mActivePointerId; field in class:StaggeredGridView
287 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
297 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
300 mActivePointerId + " - did StaggeredGridView receive an inconsistent " +
328 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
333 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
336 mActivePointerId + " - did StaggeredGridView receive an inconsistent " +
366 mActivePointerId);
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java207 private int mActivePointerId = INVALID_POINTER; field in class:ViewPager
210 * Used by {@link #mActivePointerId}.
2049 final int activePointerId = mActivePointerId;
2104 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
2183 mActivePointerId = MotionEventCompat.getPointerId(ev, 0);
2188 final int pointerIndex = MotionEventCompat.findPointerIndex(ev, mActivePointerId);
2220 ev, mActivePointerId);
2230 velocityTracker, mActivePointerId);
2240 MotionEventCompat.findPointerIndex(ev, mActivePointerId);
2260 mActivePointerId
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java104 * Sentinel value for no current active pointer. Used by {@link #mActivePointerId}.
133 private int mActivePointerId; field in class:NotificationStackScrollLayout
1217 mActivePointerId = ev.getPointerId(0);
1221 final int activePointerIndex = ev.findPointerIndex(mActivePointerId);
1223 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent");
1269 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId);
1291 mActivePointerId = INVALID_POINTER;
1301 mActivePointerId = INVALID_POINTER;
1309 mActivePointerId = ev.getPointerId(index);
1314 mLastMotionY = (int) ev.getY(ev.findPointerIndex(mActivePointerId));
[all...]
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java5061 private int mActivePointerId = -1; field in class:ViewRootImpl.SyntheticTouchNavigationHandler
5154 mActivePointerId = event.getPointerId(0);
5172 if (mActivePointerId < 0) {
5175 final int index = event.findPointerIndex(mActivePointerId);
5199 final float vx = mVelocityTracker.getXVelocity(mActivePointerId);
5200 final float vy = mVelocityTracker.getYVelocity(mActivePointerId);
5233 if (mActivePointerId >= 0) {
5234 mActivePointerId = -1;

Completed in 682 milliseconds