Home
last modified time | relevance | path

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

123

/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/packages/SystemUI/tests/src/com/android/systemui/classifier/
DClassifierTest.java139 protected MotionEvent appendTrackpadMoveEvent(float x, float y, int pointerCount) { in appendTrackpadMoveEvent() argument
140 return appendTrackpadMotionEvent(MotionEvent.ACTION_MOVE, x, y, pointerCount); in appendTrackpadMoveEvent()
144 int pointerCount) { in appendTrackpadPointerDownEvent() argument
145 return appendTrackpadMotionEvent(actionType, x, y, pointerCount); in appendTrackpadPointerDownEvent()
149 int pointerCount) { in appendTrackpadMotionEvent() argument
152 return appendTrackpadMotionEvent(actionType, x, y, pointerCount, eventTime); in appendTrackpadMotionEvent()
156 int pointerCount, long eventTime) { in appendTrackpadMotionEvent() argument
158 new MotionEvent.PointerProperties[pointerCount]; in appendTrackpadMotionEvent()
159 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; in appendTrackpadMotionEvent()
160 for (int i = 0; i < pointerCount; i++) { in appendTrackpadMotionEvent()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp233 pointerCount = 0; in setPointers()
234 for (uint32_t i = 0; i < entry.pointerCount; i++) { in setPointers()
243 pointerProperties[pointerCount].copyFrom(entry.pointerProperties[i]); in setPointers()
244 pointerCoords[pointerCount].copyFrom(entry.pointerCoords[i]); in setPointers()
245 pointerCount++; in setPointers()
250 for (uint32_t i = 0; i < pointerCount; i++) { in mergePointerStateTo()
252 other.firstNewPointerIdx = other.pointerCount; in mergePointerStateTo()
254 other.pointerProperties[other.pointerCount].copyFrom(pointerProperties[i]); in mergePointerStateTo()
255 other.pointerCoords[other.pointerCount].copyFrom(pointerCoords[i]); in mergePointerStateTo()
256 other.pointerCount++; in mergePointerStateTo()
[all …]
DEntry.cpp218 uint32_t pointerCount, const PointerProperties* pointerProperties, in MotionEntry() argument
236 pointerCount(pointerCount) { in MotionEntry()
237 for (uint32_t i = 0; i < pointerCount; i++) { in MotionEntry()
261 for (uint32_t i = 0; i < pointerCount; i++) { in getDescription()
/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/tests/
DNotifyArgs_test.cpp48 uint32_t pointerCount = 2; in TEST() local
49 PointerProperties pointerProperties[pointerCount]; in TEST()
50 PointerCoords pointerCoords[pointerCount]; in TEST()
54 for (size_t i = 0; i < pointerCount; i++) { in TEST()
75 edgeFlags, pointerCount, pointerProperties, pointerCoords, in TEST()
DPreferStylusOverTouch_test.cpp39 size_t pointerCount = points.size(); in generateMotionArgs() local
41 EXPECT_EQ(1U, pointerCount) << "Actions DOWN and UP can only contain a single pointer"; in generateMotionArgs()
44 PointerProperties pointerProperties[pointerCount]; in generateMotionArgs()
45 PointerCoords pointerCoords[pointerCount]; in generateMotionArgs()
50 for (size_t i = 0; i < pointerCount; i++) { in generateMotionArgs()
70 AMOTION_EVENT_EDGE_FLAG_NONE, pointerCount, pointerProperties, in generateMotionArgs()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp166 constexpr size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local
169 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent()
170 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent()
171 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
173 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
196 downTime, eventTime, pointerCount, pointerProperties, in PublishAndConsumeMotionEvent()
237 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); in PublishAndConsumeMotionEvent()
240 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
490 const size_t pointerCount = 1; in TEST_F() local
491 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 /*eventTime=*/200, pointerCount, pointerProperties, pointerCoords); in getMotionEventWithFlags()
DInputEvent_test.cpp631 const size_t pointerCount = 11; in TEST_F() local
632 PointerProperties pointerProperties[pointerCount]; in TEST_F()
633 PointerCoords pointerCoords[pointerCount]; in TEST_F()
634 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
650 identityTransform, /*downTime=*/0, /*eventTime=*/0, pointerCount, in TEST_F()
672 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
840 constexpr size_t pointerCount = 1; in TEST_F() local
841 PointerProperties pointerProperties[pointerCount]; in TEST_F()
842 PointerCoords pointerCoords[pointerCount]; in TEST_F()
843 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
[all …]
DMotionPredictor_test.cpp41 constexpr size_t pointerCount = 1; in getMotionEvent() local
44 for (size_t i = 0; i < pointerCount; i++) { in getMotionEvent()
63 identityTransform, /*downTime=*/100, eventTime.count(), pointerCount, in getMotionEvent()
/frameworks/base/core/java/android/view/
DMotionEvent.java1692 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1867 int pointerCount, in obtain() argument
1875 downTime * NS_PER_MS, eventTime * NS_PER_MS, pointerCount, pointerProperties, in obtain()
1916 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1920 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()
1954 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1958 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()
1994 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1998 ensureSharedTempPointerCapacity(pointerCount); in obtain()
2000 for (int i = 0; i < pointerCount; i++) { in obtain()
[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/libs/input/
DInput.cpp522 size_t pointerCount, const PointerProperties* pointerProperties, in initialize() argument
541 &pointerProperties[pointerCount]); in initialize()
573 size_t pointerCount = other->getPointerCount(); in copyFrom() local
577 &other->mSamplePointerCoords[historySize * pointerCount], in copyFrom()
578 &other->mSamplePointerCoords[historySize * pointerCount + pointerCount]); in copyFrom()
673 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local
674 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex()
750 size_t pointerCount = parcel->readInt32(); in readFromParcel() local
752 if (pointerCount == 0 || pointerCount > MAX_POINTERS || in readFromParcel()
791 mPointerProperties.reserve(pointerCount); in readFromParcel()
[all …]
DInputTransport.cpp168 body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
170 ALOGE("Received invalid MOTION: pointerCount = %" PRIu32, body.motion.pointerCount); in isValid()
266 msg->body.motion.pointerCount = body.motion.pointerCount; in getSanitizedCopy()
318 for (size_t i = 0; i < body.motion.pointerCount; i++) { in getSanitizedCopy()
617 uint32_t pointerCount, const PointerProperties* pointerProperties, in publishMotionEvent() argument
627 mInputVerifier.processMovement(deviceId, action, pointerCount, pointerProperties, in publishMotionEvent()
646 yPrecision, downTime, eventTime, pointerCount, transformString.c_str()); in publishMotionEvent()
654 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent()
656 mChannel->getName().c_str(), pointerCount); in publishMotionEvent()
693 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent()
[all …]
DInputVerifier.cpp34 Result<void> InputVerifier::processMovement(int32_t deviceId, int32_t action, uint32_t pointerCount, in processMovement() argument
38 for (size_t i = 0; i < pointerCount; i++) { in processMovement()
/frameworks/base/tests/Input/src/com/android/test/input/
DMotionPredictorTest.kt51 val pointerCount = 1 in getStylusMotionEvent() constant
52 val properties = arrayOfNulls<MotionEvent.PointerProperties>(pointerCount) in getStylusMotionEvent()
53 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in getStylusMotionEvent()
55 for (i in 0 until pointerCount) { in getStylusMotionEvent()
/frameworks/base/apct-tests/perftests/core/src/android/input/
DMotionPredictorBenchmark.kt52 val pointerCount = 1 in getStylusMotionEvent() constant
53 val properties = arrayOfNulls<MotionEvent.PointerProperties>(pointerCount) in getStylusMotionEvent()
54 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in getStylusMotionEvent()
56 for (i in 0 until pointerCount) { in getStylusMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp135 static bool validatePointerCount(JNIEnv* env, jint pointerCount) { in validatePointerCount() argument
136 if (pointerCount < 1) { in validatePointerCount()
145 size_t pointerCount) { in validatePointerPropertiesArray() argument
152 if (length < pointerCount) { in validatePointerPropertiesArray()
161 size_t pointerCount) { in validatePointerCoordsObjArray() argument
168 if (length < pointerCount) { in validatePointerCoordsObjArray()
339 jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, in android_view_MotionEvent_nativeInitialize() argument
341 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize()
342 || !validatePointerPropertiesArray(env, pointerPropertiesObjArray, pointerCount) in android_view_MotionEvent_nativeInitialize()
343 || !validatePointerCoordsObjArray(env, pointerCoordsObjArray, pointerCount)) { in android_view_MotionEvent_nativeInitialize()
[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.java324 int pointerCount = motionEvent.getPointerCount();
325 for (int i = 0; i < pointerCount; i++) {
337 for (int j = 0; j < pointerCount; j++) {
346 pointerCount,

123