Home
last modified time | relevance | path

Searched refs:getPointerCount (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DEventDispatcher.java117 final PointerProperties[] properties = new PointerProperties[event.getPointerCount()]; in sendMotionEvent()
118 final PointerCoords[] coords = new PointerCoords[event.getPointerCount()]; in sendMotionEvent()
119 for (int i = 0; i < event.getPointerCount(); i++) { in sendMotionEvent()
128 event.getPointerCount(), properties, coords, in sendMotionEvent()
219 final int pointerCount = event.getPointerCount(); in offsetEvent()
234 event.getPointerCount(), in offsetEvent()
290 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointers()
319 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointersWithOriginalDown()
338 final int pointerCount = prototype.getPointerCount(); in computeInjectionDownEvent()
389 final int pointerCount = prototype.getPointerCount(); in sendUpForInjectedDownPointers()
DSecondFingerMultiTap.java66 if (event.getPointerCount() > 2) { in onPointerDown()
87 if (event.getPointerCount() > 2) { in onPointerUp()
112 switch (event.getPointerCount()) { in onMove()
DTouchExplorer.java709 switch (event.getPointerCount()) { in handleActionMoveStateTouchInteracting()
734 for (int index = 0; index < event.getPointerCount(); ++index) { in handleActionMoveStateTouchInteracting()
798 if (event.getPointerCount() == 3) { in handleActionMoveStateTouchInteracting()
886 switch (event.getPointerCount()) { in handleActionMoveStateTouchExploring()
1003 switch (event.getPointerCount()) { in handleMotionEventStateDragging()
1183 if (event.getPointerCount() != 2) { in computeDraggingPointerIdIfNeeded()
1270 for (int i = 0; i < event.getPointerCount(); ++i) { in allPointersDownOnBottomEdge()
1506 if (event.getPointerCount() < 0) { in checkForMalformedEvent()
1507 throw new IllegalArgumentException("Invalid pointer count: " + event.getPointerCount()); in checkForMalformedEvent()
1509 for (int i = 0; i < event.getPointerCount(); ++i) { in checkForMalformedEvent()
[all …]
DMultiFingerMultiTap.java161 final int currentFingerCount = event.getPointerCount(); in onPointerDown()
225 final int baseIndex = event.getPointerCount() - 1; in initBaseLocation()
DMultiFingerSwipe.java130 int pointerIndex = rawEvent.getPointerCount() - 1; in onDown()
162 if (event.getPointerCount() > mTargetFingerCount) { in onPointerDown()
167 if (mCurrentFingerCount != rawEvent.getPointerCount()) { in onPointerDown()
DGestureUtils.java53 for (int i = 0; i < moveEvent.getPointerCount(); i++) { in distanceClosestPointerToPoint()
/frameworks/native/services/inputflinger/
DUnwantedInteractionBlocker.cpp133 for (size_t i = 0; i < args.getPointerCount(); i++) { in getActionUpForPointerId()
175 for (uint32_t i = 0; i < args.getPointerCount(); i++) { in removePointerIds()
190 newActionIndex = newArgs.getPointerCount() - 1; in removePointerIds()
198 if (newArgs.getPointerCount() == 1) { in removePointerIds()
217 for (uint32_t i = 0; i < args.getPointerCount(); i++) { in removeStylusPointerIds()
223 if (withoutStylusPointers.getPointerCount() == 0 || in removeStylusPointerIds()
289 LOG_ALWAYS_FATAL_IF(args.getPointerCount() == 0, "0 pointers in %s", args.dump().c_str()); in cancelSuppressedPointers()
301 for (uint32_t i = 0; i < oldArgs.getPointerCount(); i++) { in cancelSuppressedPointers()
313 if (removedArgs.getPointerCount() == 1) { in cancelSuppressedPointers()
331 if (removedArgs.getPointerCount() <= 0 || removedArgs.action == ACTION_UNKNOWN) { in cancelSuppressedPointers()
[all …]
DInputDeviceMetricsSource.cpp54 LOG_ALWAYS_FATAL_IF(motionArgs.getPointerCount() < 1, "Received motion args without pointers"); in getUsageSourcesForMotionArgs()
57 for (uint32_t i = 0; i < motionArgs.getPointerCount(); i++) { in getUsageSourcesForMotionArgs()
DNotifyArgs.cpp119 for (uint32_t i = 0; i < getPointerCount(); i++) { in dump()
144 MotionEvent::actionToString(action).c_str(), getPointerCount(), in dump()
DPointerChoreographer.cpp227 if (args.getPointerCount() != 1) { in processMouseEventLocked()
269 if (args.getPointerCount() == 1 && args.classification == MotionClassification::NONE) { in processTouchpadEventLocked()
290 for (uint32_t i = 0; i < newArgs.getPointerCount(); i++) { in processTouchpadEventLocked()
307 if (args.getPointerCount() != 1) { in processDrawingTabletEventLocked()
371 for (size_t i = 0; i < args.getPointerCount(); i++) { in processTouchscreenAndStylusEventLocked()
390 if (args.getPointerCount() != 1) { in processStylusHoverEventLocked()
DInputCommonConverter.cpp295 outPointerProperties.reserve(args.getPointerCount()); in getHalPropertiesAndCoords()
296 outPointerCoords.reserve(args.getPointerCount()); in getHalPropertiesAndCoords()
297 for (size_t i = 0; i < args.getPointerCount(); i++) { in getHalPropertiesAndCoords()
354 args.downTime, args.eventTime, args.getPointerCount(), in toMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DPointerCountClassifier.java49 mMaxPointerCount = motionEvent.getPointerCount(); in onTouchEvent()
51 mMaxPointerCount = Math.max(mMaxPointerCount, motionEvent.getPointerCount()); in onTouchEvent()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java101 Log.v(TAG, "ACTION_DOWN " + event.getPointerCount()); in onCreate()
105 Log.v(TAG, "ACTION_UP " + event.getPointerCount()); in onCreate()
109 Log.v(TAG, "ACTION_MOVE " + event.getPointerCount()); in onCreate()
112 if (event.getPointerCount() > 1) { in onCreate()
115 if (event.getPointerCount() == 2) { in onCreate()
160 if (inMultiTouch && event.getPointerCount() == 1) { in onCreate()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMainActivity.java101 Log.v(TAG, "ACTION_DOWN " + event.getPointerCount()); in onCreate()
105 Log.v(TAG, "ACTION_UP " + event.getPointerCount()); in onCreate()
109 Log.v(TAG, "ACTION_MOVE " + event.getPointerCount()); in onCreate()
112 if (event.getPointerCount() > 1) { in onCreate()
115 if (event.getPointerCount() == 2) { in onCreate()
160 if (inMultiTouch && event.getPointerCount() == 1) { in onCreate()
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp269 for (uint32_t i = 0; i < entry.getPointerCount(); i++) { in setPointers()
284 for (uint32_t i = 0; i < getPointerCount(); i++) { in mergePointerStateTo()
286 other.firstNewPointerIdx = other.getPointerCount(); in mergePointerStateTo()
293 size_t InputState::MotionMemento::getPointerCount() const { in getPointerCount() function in android::inputdispatcher::InputState::MotionMemento
467 i < memento.getPointerCount(); i++) { in synthesizePointerDownEvents()
503 for (uint32_t pointerIdx = 0; pointerIdx < memento.getPointerCount(); pointerIdx++) { in synthesizeCancelationEventsForPointers()
510 if (canceledPointerIndices.size() == memento.getPointerCount()) { in synthesizeCancelationEventsForPointers()
DInputState.h121 size_t getPointerCount() const;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandler.java532 && event.getPointerCount() == 2 // includes the pointer currently being released in onMotionEvent()
696 if (event.getPointerCount() > 2) { in onMotionEvent()
771 if (event.getPointerCount() != 1) { in onMotionEvent()
953 && event.getPointerCount() == 2; in onMotionEvent()
956 if (event.getPointerCount() == 2) { in onMotionEvent()
1001 if (isMultiTapTriggered(2 /* taps */) && event.getPointerCount() == 1) { in onMotionEvent()
1005 && event.getPointerCount() == 2) { in onMotionEvent()
1007 } else if (isActivated() && event.getPointerCount() == 2) { in onMotionEvent()
1018 && event.getPointerCount() == 1) { in onMotionEvent()
1243 if (isActivated() && event.getPointerCount() == 2) { in onMotionEvent()
[all …]
DTwoFingersDownOrSwipe.java62 if (event.getPointerCount() == 2) { in onPointerDown()
/frameworks/native/services/inputflinger/tests/
DTestEventMatchers.h286 if (mPointerIndex >= event.getPointerCount()) { in MatchAndExplain()
344 if (mPointerIndex >= event.getPointerCount()) { in MatchAndExplain()
387 if (event.getPointerCount() != mPointerCount) { in MatchAndExplain()
389 << event.getPointerCount(); in MatchAndExplain()
424 for (size_t pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) { in MatchAndExplain()
476 for (size_t pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) { in MatchAndExplain()
DUnwantedInteractionBlocker_test.cpp142 ASSERT_EQ(pointers.size(), args.getPointerCount()); in assertArgs()
143 for (size_t i = 0; i < args.getPointerCount(); i++) { in assertArgs()
199 ASSERT_EQ(0u, noPointers.getPointerCount()); in TEST()
774 ASSERT_EQ(1u, argsList[1].getPointerCount()); in TEST_F()
961 ASSERT_EQ(1u, argsList[0].getPointerCount()); in TEST_F()
989 ASSERT_EQ(2u, argsList[0].getPointerCount()); in TEST_F()
1004 ASSERT_EQ(1u, argsList[0].getPointerCount()); in TEST_F()
DInputReader_test.cpp1690 ASSERT_EQ(points.size(), args.getPointerCount()); in assertReceivedMotion()
1691 for (size_t i = 0; i < args.getPointerCount(); i++) { in assertReceivedMotion()
4769 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4793 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4816 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4866 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4889 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4934 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4961 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
4986 ASSERT_EQ(size_t(1), motionArgs.getPointerCount()); in TEST_F()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp404 ASSERT_EQ(2U, event->getPointerCount()); in assertEqualsEventWithHistory()
583 ASSERT_EQ(event.getPointerCount(), copy.getPointerCount()); in TEST_F()
607 ASSERT_EQ(splitDown.getPointerCount(), 1u); in TEST_F()
618 ASSERT_EQ(splitPointerDown.getPointerCount(), 2u); in TEST_F()
631 ASSERT_EQ(splitMove.getPointerCount(), 1u); in TEST_F()
650 ASSERT_EQ(splitUp.getPointerCount(), 1u); in TEST_F()
661 ASSERT_EQ(splitPointerUp.getPointerCount(), 2u); in TEST_F()
675 ASSERT_EQ(splitMove.getPointerCount(), 2u); in TEST_F()
698 ASSERT_EQ(splitUp.getPointerCount(), 1u); in TEST_F()
720 ASSERT_EQ(splitMove.getPointerCount(), 2u); in TEST_F()
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
DBallsView.java88 int pcount = ev.getPointerCount(); in onTouchEvent()
/frameworks/native/libs/input/
DMotionPredictor.cpp188 if (event.getPointerCount() != 1) { in record()
324 event.getPointerCount(), event.getPointerProperties(), &coords); in predict()
DInput.cpp612 size_t pointerCount = other->getPointerCount(); in copyFrom()
648 &pointerCoords[getPointerCount()]); in addSample()
687 if (CC_UNLIKELY(pointerIndex < 0 || pointerIndex >= getPointerCount())) { in getRawPointerCoords()
690 const size_t position = getHistorySize() * getPointerCount() + pointerIndex; in getRawPointerCoords()
707 if (CC_UNLIKELY(pointerIndex < 0 || pointerIndex >= getPointerCount())) { in getHistoricalRawPointerCoords()
714 const size_t position = historicalIndex * getPointerCount() + pointerIndex; in getHistoricalRawPointerCoords()
1152 const size_t pointerCount = event.getPointerCount(); in operator <<()

123