Home
last modified time | relevance | path

Searched refs:pointerCount (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DGestureLogParser.java33 final int pointerCount; in getMotionEventFromLogLine() local
59 pointerCount = findInt(line, "pointerCount=(\\d+)"); in getMotionEventFromLogLine()
65 properties = findProperties(line, pointerCount); in getMotionEventFromLogLine()
66 pointerCoords = findCoordinates(line, pointerCount); in getMotionEventFromLogLine()
69 pointerCount, properties, pointerCoords, metaState, buttonState, in getMotionEventFromLogLine()
94 private static MotionEvent.PointerCoords[] findCoordinates(String eventText, int pointerCount) { in findCoordinates() argument
95 if (pointerCount == 0) { in findCoordinates()
99 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in findCoordinates()
102 for (int i = 0; i < pointerCount; i++) { in findCoordinates()
119 String eventText, int pointerCount) { in findProperties() argument
[all …]
DTouchEventGenerator.java140 final int pointerCount = originalEvent.getPointerCount(); in movePointer() local
141 if (pointerIndex >= pointerCount) { in movePointer()
143 pointerIndex + "is not available with pointer count" + pointerCount); in movePointer()
146 final MotionEvent.PointerProperties[] pp = new MotionEvent.PointerProperties[pointerCount]; in movePointer()
147 for (int i = 0; i < pointerCount; i++) { in movePointer()
153 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[pointerCount]; in movePointer()
154 for (int i = 0; i < pointerCount; i++) { in movePointer()
/frameworks/base/services/tests/servicestests/res/raw/
Da11y_three_finger_swipe_down_gesture.log2 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=…
3 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=2, historySize=…
4 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=2, historySize=…
5 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
6 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
7 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
8 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
9 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
10 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
11 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=3, historySize=…
[all …]
Da11y_touch_explore_gesture.log2 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=…
3 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=…
4 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=…
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DEventDispatcher.java200 final int pointerCount = event.getPointerCount(); in offsetEvent() local
201 PointerProperties[] props = PointerProperties.createArray(pointerCount); in offsetEvent()
202 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent()
203 for (int i = 0; i < pointerCount; i++) { in offsetEvent()
271 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointers() local
272 for (int i = 0; i < pointerCount; i++) { in sendDownForAllNotInjectedPointers()
300 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointersWithOriginalDown() local
302 for (int i = 0; i < pointerCount; i++) { in sendDownForAllNotInjectedPointersWithOriginalDown()
319 final int pointerCount = prototype.getPointerCount(); in computeInjectionDownEvent() local
320 if (pointerCount != mState.getReceivedPointerTracker().getReceivedPointerDownCount()) { in computeInjectionDownEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java52 final int pointerCount = 1; in testObtainWithDisplayId() local
53 PointerProperties[] properties = new PointerProperties[pointerCount]; in testObtainWithDisplayId()
54 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId()
55 for (int i = 0; i < pointerCount; i++) { in testObtainWithDisplayId()
68 pointerCount, properties, coords, in testObtainWithDisplayId()
88 pointerCount, properties, coords, in testObtainWithDisplayId()
127 final int pointerCount = 2; in testCalculatesCursorPositionForMultiTouchMouseEvents() local
128 final PointerProperties[] properties = new PointerProperties[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents()
129 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents()
131 for (int i = 0; i < pointerCount; ++i) { in testCalculatesCursorPositionForMultiTouchMouseEvents()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp254 pointerCount = entry.pointerCount; in setPointers()
255 for (uint32_t i = 0; i < entry.pointerCount; i++) { in setPointers()
262 for (uint32_t i = 0; i < pointerCount; i++) { in mergePointerStateTo()
264 other.firstNewPointerIdx = other.pointerCount; in mergePointerStateTo()
266 other.pointerProperties[other.pointerCount].copyFrom(pointerProperties[i]); in mergePointerStateTo()
267 other.pointerCoords[other.pointerCount].copyFrom(pointerCoords[i]); in mergePointerStateTo()
268 other.pointerCount++; in mergePointerStateTo()
300 memento.pointerCount, memento.pointerProperties, in synthesizeCancelationEvents()
319 uint32_t pointerCount = 0; in synthesizePointerDownEvents() local
327 pointerCount++; in synthesizePointerDownEvents()
[all …]
DEntry.cpp216 uint32_t pointerCount, const PointerProperties* pointerProperties, in MotionEntry() argument
234 pointerCount(pointerCount) { in MotionEntry()
235 for (uint32_t i = 0; i < pointerCount; i++) { in MotionEntry()
259 for (uint32_t i = 0; i < pointerCount; i++) { in getDescription()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp172 constexpr size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local
175 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent()
176 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent()
177 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
179 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
202 downTime, eventTime, pointerCount, pointerProperties, in PublishAndConsumeMotionEvent()
243 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); in PublishAndConsumeMotionEvent()
246 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
494 const size_t pointerCount = 1; in TEST_F() local
495 PointerProperties pointerProperties[pointerCount]; in TEST_F()
[all …]
DVerifiedInputEvent_test.cpp35 constexpr size_t pointerCount = 1; in getMotionEventWithFlags() local
36 PointerProperties pointerProperties[pointerCount]; in getMotionEventWithFlags()
37 PointerCoords pointerCoords[pointerCount]; in getMotionEventWithFlags()
38 for (size_t i = 0; i < pointerCount; i++) { in getMotionEventWithFlags()
52 200 /*eventTime*/, pointerCount, pointerProperties, pointerCoords); in getMotionEventWithFlags()
DInputEvent_test.cpp589 const size_t pointerCount = 11; in TEST_F() local
590 PointerProperties pointerProperties[pointerCount]; in TEST_F()
591 PointerCoords pointerCoords[pointerCount]; in TEST_F()
592 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
608 identityTransform, 0 /*downTime*/, 0 /*eventTime*/, pointerCount, in TEST_F()
630 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
798 constexpr size_t pointerCount = 1; in TEST_F() local
799 PointerProperties pointerProperties[pointerCount]; in TEST_F()
800 PointerCoords pointerCoords[pointerCount]; in TEST_F()
801 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
[all …]
DVelocityTracker_test.cpp113 const uint32_t pointerCount = pointers.count(); in resolveAction() local
117 if (lastPointerCount < pointerCount) { in resolveAction()
126 if (pointerCount > nextPointerCount) { in resolveAction()
146 const uint32_t pointerCount = pointers.count(); in createMotionEventStream() local
151 EXPECT_EQ(1U, pointerCount) << "First event should only have 1 pointer"; in createMotionEventStream()
153 EXPECT_EQ(1U, pointerCount) << "Last event should only have 1 pointer"; in createMotionEventStream()
161 PointerCoords coords[pointerCount]; in createMotionEventStream()
162 PointerProperties properties[pointerCount]; in createMotionEventStream()
178 EXPECT_EQ(pointerIndex, pointerCount); in createMotionEventStream()
188 entry.eventTime.count(), pointerCount, properties, coords); in createMotionEventStream()
DStructLayout_test.cpp52 CHECK_OFFSET(InputMessage::Body::Motion, pointerCount, 4); in TestInputMessageAlignment()
159 constexpr size_t pointerCount = 1; in CalculateSinglePointerInputMessageSize() local
161 sizeof(InputMessage::Body::Motion::Pointer) * pointerCount; in CalculateSinglePointerInputMessageSize()
/frameworks/base/core/java/android/view/
DMotionEvent.java1570 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1745 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1753 pointerCount, pointerProperties, pointerCoords); in obtain()
1791 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1795 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()
1831 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1835 ensureSharedTempPointerCapacity(pointerCount); in obtain()
1837 for (int i = 0; i < pointerCount; i++) { in obtain()
1841 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1978 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
[all …]
DInputEventConsistencyVerifier.java361 final int pointerCount = event.getPointerCount(); in onTouchEvent() local
382 if (pointerCount != expectedPointerCount) { in onTouchEvent()
383 problem("ACTION_MOVE contained " + pointerCount in onTouchEvent()
410 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent()
412 + " but the pointer count is " + pointerCount + "."); in onTouchEvent()
427 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent()
429 + " but the pointer count is " + pointerCount + "."); in onTouchEvent()
626 final int pointerCount = event.getPointerCount(); in ensurePointerCountIsOneForThisAction() local
627 if (pointerCount != 1) { in ensurePointerCountIsOneForThisAction()
628 problem("Pointer count is " + pointerCount + " but it should always be 1 for " in ensurePointerCountIsOneForThisAction()
/frameworks/native/services/inputflinger/
DUnwantedInteractionBlocker.cpp113 for (size_t i = 0; i < args.pointerCount; i++) { in getActionUpForPointerId()
152 newArgs.pointerCount = 0; in removePointerIds()
154 for (uint32_t i = 0; i < args.pointerCount; i++) { in removePointerIds()
166 newArgs.pointerProperties[newArgs.pointerCount].copyFrom(args.pointerProperties[i]); in removePointerIds()
167 newArgs.pointerCoords[newArgs.pointerCount].copyFrom(args.pointerCoords[i]); in removePointerIds()
169 newActionIndex = newArgs.pointerCount; in removePointerIds()
171 newArgs.pointerCount++; in removePointerIds()
178 if (newArgs.pointerCount == 1) { in removePointerIds()
197 for (uint32_t i = 0; i < args.pointerCount; i++) { in removeStylusPointerIds()
203 if (withoutStylusPointers.pointerCount == 0 || withoutStylusPointers.action == ACTION_UNKNOWN) { in removeStylusPointerIds()
[all …]
DInputListener.cpp102 int32_t edgeFlags, uint32_t pointerCount, const PointerProperties* pointerProperties, in NotifyMotionArgs() argument
118 pointerCount(pointerCount), in NotifyMotionArgs()
126 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs()
145 pointerCount(other.pointerCount), in NotifyMotionArgs()
153 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs()
170 pointerCount == rhs.pointerCount in operator ==()
180 for (size_t i = 0; i < pointerCount; i++) { in operator ==()
193 for (uint32_t i = 0; i < pointerCount; i++) { in dump()
219 MotionEvent::actionToString(action).c_str(), pointerCount, coords.c_str(), in dump()
/frameworks/native/libs/input/
DInput.cpp463 size_t pointerCount, const PointerProperties* pointerProperties, in initialize() argument
482 &pointerProperties[pointerCount]); in initialize()
514 size_t pointerCount = other->getPointerCount(); in copyFrom() local
518 &other->mSamplePointerCoords[historySize * pointerCount], in copyFrom()
519 &other->mSamplePointerCoords[historySize * pointerCount + pointerCount]); in copyFrom()
614 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local
615 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex()
691 size_t pointerCount = parcel->readInt32(); in readFromParcel() local
693 if (pointerCount == 0 || pointerCount > MAX_POINTERS || in readFromParcel()
732 mPointerProperties.reserve(pointerCount); in readFromParcel()
[all …]
DInputTransport.cpp109 body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
111 ALOGE("Received invalid MOTION: pointerCount = %" PRIu32, body.motion.pointerCount); in isValid()
207 msg->body.motion.pointerCount = body.motion.pointerCount; in getSanitizedCopy()
259 for (size_t i = 0; i < body.motion.pointerCount; i++) { in getSanitizedCopy()
548 uint32_t pointerCount, const PointerProperties* pointerProperties, in publishMotionEvent() argument
568 eventTime, pointerCount, transformString.c_str()); in publishMotionEvent()
576 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent()
578 mChannel->getName().c_str(), pointerCount); in publishMotionEvent()
615 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent()
616 for (uint32_t i = 0; i < pointerCount; i++) { in publishMotionEvent()
[all …]
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp120 static bool validatePointerCount(JNIEnv* env, jint pointerCount) { in validatePointerCount() argument
121 if (pointerCount < 1) { in validatePointerCount()
130 size_t pointerCount) { in validatePointerPropertiesArray() argument
137 if (length < pointerCount) { in validatePointerPropertiesArray()
146 size_t pointerCount) { in validatePointerCoordsObjArray() argument
153 if (length < pointerCount) { in validatePointerCoordsObjArray()
321 jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, in android_view_MotionEvent_nativeInitialize() argument
323 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize()
324 || !validatePointerPropertiesArray(env, pointerPropertiesObjArray, pointerCount) in android_view_MotionEvent_nativeInitialize()
325 || !validatePointerCoordsObjArray(env, pointerCoordsObjArray, pointerCount)) { in android_view_MotionEvent_nativeInitialize()
[all …]
/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp44 size_t pointerCount = points.size(); in generateMotionArgs() local
46 EXPECT_EQ(1U, pointerCount) << "Actions DOWN and UP can only contain a single pointer"; in generateMotionArgs()
49 PointerProperties pointerProperties[pointerCount]; in generateMotionArgs()
50 PointerCoords pointerCoords[pointerCount]; in generateMotionArgs()
55 for (size_t i = 0; i < pointerCount; i++) { in generateMotionArgs()
75 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, pointerCount, in generateMotionArgs()
DUnwantedInteractionBlocker_test.cpp85 size_t pointerCount = points.size(); in generateMotionArgs() local
87 EXPECT_EQ(1U, pointerCount) << "Actions DOWN and UP can only contain a single pointer"; in generateMotionArgs()
90 PointerProperties pointerProperties[pointerCount]; in generateMotionArgs()
91 PointerCoords pointerCoords[pointerCount]; in generateMotionArgs()
93 for (size_t i = 0; i < pointerCount; i++) { in generateMotionArgs()
109 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, pointerCount, in generateMotionArgs()
156 ASSERT_EQ(pointers.size(), args.pointerCount); in assertArgs()
157 for (size_t i = 0; i < args.pointerCount; i++) { in assertArgs()
213 ASSERT_EQ(0u, noPointers.pointerCount); in TEST()
808 ASSERT_EQ(1u, argsList[1].pointerCount); in TEST_F()
[all …]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java358 final int pointerCount = in sendHidTouch() local
361 for (int p = 0; p < pointerCount; p++) { in sendHidTouch()
365 for (int p = 0; p < pointerCount; p++) { in sendHidTouch()
369 sendHidTouchReport(pointerCount); in sendHidTouch()
371 for (int p = 0; p < pointerCount; p++) { in sendHidTouch()
375 sendHidTouchReport(pointerCount); in sendHidTouch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java314 int pointerCount = motionEvent.getPointerCount();
315 for (int i = 0; i < pointerCount; i++) {
327 for (int j = 0; j < pointerCount; j++) {
336 pointerCount,
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java159 final int pointerCount = 1; in injectMotionEvent() local
161 new MotionEvent.PointerProperties[pointerCount]; in injectMotionEvent()
162 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; in injectMotionEvent()
163 for (int i = 0; i < pointerCount; i++) { in injectMotionEvent()
177 MotionEvent event = MotionEvent.obtain(downTime, when, action, pointerCount, in injectMotionEvent()

12