/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
VersionedGestureDetector.java | 97 private int mActivePointerId = INVALID_POINTER_ID; 115 mActivePointerId = ev.getPointerId(0); 119 mActivePointerId = INVALID_POINTER_ID; 125 if (pointerId == mActivePointerId) { 129 mActivePointerId = ev.getPointerId(newPointerIndex); 136 mActivePointerIndex = ev.findPointerIndex(mActivePointerId);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
PhotoViewPager.java | 59 private int mActivePointerId; 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/base/core/java/android/widget/ |
ForwardingListener.java | 57 private int mActivePointerId; 113 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 169 mActivePointerId = srcEvent.getPointerId(0); 182 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); 267 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
|
HorizontalScrollView.java | 138 private int mActivePointerId = INVALID_POINTER; 142 * Used by {@link #mActivePointerId}. 488 final int activePointerId = mActivePointerId; 526 mActivePointerId = ev.getPointerId(0); 544 mActivePointerId = INVALID_POINTER; 552 mActivePointerId = ev.getPointerId(index); 557 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); 597 mActivePointerId = ev.getPointerId(0); 601 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 603 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent") [all...] |
StackView.java | 105 * Used by {@link #mActivePointerId}. 128 private int mActivePointerId; 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...] |
ScrollView.java | 146 private int mActivePointerId = INVALID_POINTER; 166 * Used by {@link #mActivePointerId}. 524 final int activePointerId = mActivePointerId; 569 mActivePointerId = ev.getPointerId(0); 592 mActivePointerId = INVALID_POINTER; 650 mActivePointerId = ev.getPointerId(0); 655 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 657 Log.e(TAG, "Invalid pointerId=" + mActivePointerId + " in onTouchEvent"); 730 int initialVelocity = (int) velocityTracker.getYVelocity(mActivePointerId); 739 mActivePointerId = INVALID_POINTER [all...] |
/frameworks/base/core/jni/ |
android_view_VelocityTracker.cpp | 62 int32_t mActivePointerId; 68 mVelocityTracker(strategy), mActivePointerId(-1) { 73 mActivePointerId = -1;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
PipTouchState.java | 47 private int mActivePointerId; 76 mActivePointerId = ev.getPointerId(0); 78 Log.e(TAG, "Setting active pointer id on DOWN: " + mActivePointerId); 94 int pointerIndex = ev.findPointerIndex(mActivePointerId); 96 Log.e(TAG, "Invalid active pointer id on MOVE: " + mActivePointerId); 128 if (pointerId == mActivePointerId) { 131 mActivePointerId = ev.getPointerId(newPointerIndex); 134 mActivePointerId); 152 int pointerIndex = ev.findPointerIndex(mActivePointerId); 154 Log.e(TAG, "Invalid active pointer id on UP: " + mActivePointerId); [all...] |
/frameworks/native/include/input/ |
VelocityTracker.h | 99 inline int32_t getActivePointerId() const { return mActivePointerId; } 109 int32_t mActivePointerId;
|
/frameworks/support/design/src/android/support/design/widget/ |
HeaderBehavior.java | 42 private int mActivePointerId = INVALID_POINTER; 73 mActivePointerId = ev.getPointerId(0); 80 final int activePointerId = mActivePointerId; 102 mActivePointerId = INVALID_POINTER; 131 mActivePointerId = ev.getPointerId(0); 140 final int activePointerIndex = ev.findPointerIndex(mActivePointerId); 169 float yvel = mVelocityTracker.getYVelocity(mActivePointerId); 175 mActivePointerId = INVALID_POINTER;
|
BottomSheetBehavior.java | 161 int mActivePointerId; 273 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 286 mActivePointerId = event.getPointerId(event.getActionIndex()); 289 mIgnoreEvents = mActivePointerId == MotionEvent.INVALID_POINTER_ID && 579 mActivePointerId = ViewDragHelper.INVALID_POINTER; 617 return mVelocityTracker.getYVelocity(mActivePointerId); 649 if (mState == STATE_EXPANDED && mActivePointerId == pointerId) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ForwardingListener.java | 60 private int mActivePointerId; 121 mActivePointerId = MotionEvent.INVALID_POINTER_ID; 177 mActivePointerId = srcEvent.getPointerId(0); 190 final int activePointerIndex = srcEvent.findPointerIndex(mActivePointerId); 275 final boolean handled = dst.onForwardedEvent(dstEvent, mActivePointerId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
ResolverDrawerLayout.java | 104 private int mActivePointerId = MotionEvent.INVALID_POINTER_ID; 268 mActivePointerId = ev.getPointerId(0); 307 mActivePointerId = ev.getPointerId(0); 316 int index = ev.findPointerIndex(mActivePointerId); 318 Log.e(TAG, "Bad pointer id " + mActivePointerId + ", resetting"); 320 mActivePointerId = ev.getPointerId(0); 345 mActivePointerId = pointerId; 373 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); 406 if (pointerId == mActivePointerId) { 412 mActivePointerId = ev.getPointerId(newPointerIndex) [all...] |
PointerLocationView.java | 125 private int mActivePointerId; 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); [all...] |
ViewPager.java | 166 private int mActivePointerId = INVALID_POINTER; 169 * Used by {@link #mActivePointerId}. [all...] |
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
DynamicListView.java | 93 private int mActivePointerId = INVALID_POINTER_ID; 253 mActivePointerId = event.getPointerId(0); 256 if (mActivePointerId == INVALID_POINTER_ID) { 260 int pointerIndex = event.findPointerIndex(mActivePointerId); 293 if (pointerId == mActivePointerId) { 390 mActivePointerId = INVALID_POINTER_ID; 448 mActivePointerId = INVALID_POINTER_ID;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
MoreKeysKeyboardView.java | 51 private int mActivePointerId; 160 mActivePointerId = pointerId; 166 if (mActivePointerId != pointerId) { 179 if (mActivePointerId != pointerId) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskStackViewTouchHandler.java | 86 int mActivePointerId = INACTIVE_POINTER_ID; 239 mActivePointerId = ev.getPointerId(0); 249 mActivePointerId = ev.getPointerId(index); 259 int activePointerIndex = ev.findPointerIndex(mActivePointerId); 315 if (pointerId == mActivePointerId) { 318 mActivePointerId = ev.getPointerId(newPointerIndex); 330 int activePointerIndex = ev.findPointerIndex(mActivePointerId); 332 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 356 mActivePointerId = INACTIVE_POINTER_ID; 362 mActivePointerId = INACTIVE_POINTER_ID [all...] |
/frameworks/support/core-ui/java/android/support/v4/view/ |
ViewPager.java | 201 private int mActivePointerId = INVALID_POINTER; 204 * Used by {@link #mActivePointerId}. [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
SwipeRefreshLayout.java | 126 private int mActivePointerId = INVALID_POINTER; 696 mActivePointerId = ev.getPointerId(0); 699 pointerIndex = ev.findPointerIndex(mActivePointerId); 707 if (mActivePointerId == INVALID_POINTER) { 712 pointerIndex = ev.findPointerIndex(mActivePointerId); 727 mActivePointerId = INVALID_POINTER; [all...] |
ViewDragHelper.java | 115 private int mActivePointerId = INVALID_POINTER; 468 mActivePointerId = activePointerId; 485 return mActivePointerId; 500 mActivePointerId = INVALID_POINTER; 542 mActivePointerId = INVALID_POINTER; 572 (int) mVelocityTracker.getXVelocity(mActivePointerId), 573 (int) mVelocityTracker.getYVelocity(mActivePointerId)); 705 (int) mVelocityTracker.getXVelocity(mActivePointerId), 706 (int) mVelocityTracker.getYVelocity(mActivePointerId), [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
GalleryThumbnailView.java | 76 private int mActivePointerId; 288 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 298 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 301 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + 329 mActivePointerId = MotionEventCompat.getPointerId(ev, 0); 334 final int index = MotionEventCompat.findPointerIndex(ev, mActivePointerId); 337 mActivePointerId + " - did StaggeredGridView receive an inconsistent " + 367 mActivePointerId);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationContainer.java | 127 private int mActivePointerId; 398 mActivePointerId = ev.getPointerId(0); 402 final int pointerIndex = ev.findPointerIndex(mActivePointerId); [all...] |
/frameworks/base/core/java/com/android/internal/widget/helper/ |
ItemTouchHelper.java | 213 int mActivePointerId = ACTIVE_POINTER_ID_NONE; 306 mActivePointerId = event.getPointerId(0); 324 mActivePointerId = ACTIVE_POINTER_ID_NONE; 326 } else if (mActivePointerId != ACTIVE_POINTER_ID_NONE) { 329 final int index = event.findPointerIndex(mActivePointerId); 353 if (mActivePointerId == ACTIVE_POINTER_ID_NONE) { 357 final int activePointerIndex = event.findPointerIndex(mActivePointerId); 384 mActivePointerId = ACTIVE_POINTER_ID_NONE; 389 if (pointerId == mActivePointerId) { 393 mActivePointerId = event.getPointerId(newPointerIndex) [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
StaggeredGridView.java | 122 private int mActivePointerId; 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); [all...] |