/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
H A D | GestureLogParser.java | 33 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() 95 if (pointerCount == 0) { in findCoordinates() 102 for (int i = 0; i < pointerCount; i++) { in findCoordinates() 119 String eventText, int pointerCount) { in findProperties() argument 120 if (pointerCount == 0) { in findProperties() 125 new MotionEvent.PointerProperties[pointerCount]; in findProperties() [all …]
|
H A D | TouchEventGenerator.java | 140 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()
|
/aosp12/frameworks/base/services/tests/servicestests/res/raw/ |
H A D | a11y_three_finger_swipe_down_gesture.log | 2 …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=… 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=… 28 …nState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=2, historySize=… [all …]
|
H A D | a11y_touch_explore_gesture.log | 2 …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=…
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | MotionEventTest.java | 49 final int pointerCount = 1; in testObtainWithDisplayId() local 50 PointerProperties[] properties = new PointerProperties[pointerCount]; in testObtainWithDisplayId() 51 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId() 52 for (int i = 0; i < pointerCount; i++) { in testObtainWithDisplayId() 65 pointerCount, properties, coords, in testObtainWithDisplayId() 85 pointerCount, properties, coords, in testObtainWithDisplayId() 124 final int pointerCount = 2; in testCalculatesCursorPositionForMultiTouchMouseEvents() local 125 final PointerProperties[] properties = new PointerProperties[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents() 126 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents() 128 for (int i = 0; i < pointerCount; ++i) { in testCalculatesCursorPositionForMultiTouchMouseEvents() [all …]
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
H A D | EventDispatcher.java | 200 final int pointerCount = event.getPointerCount(); in offsetEvent() local 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 327 for (int i = 0; i < pointerCount; ++i) { in computeInjectionDownEvent() 346 pointerCount, in computeInjectionDownEvent() 370 final int pointerCount = prototype.getPointerCount(); in sendUpForInjectedDownPointers() local [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | NonDistinctMultitouchHelper.java | 36 final int pointerCount = me.getPointerCount(); in processMotionEvent() local 38 mOldPointerCount = pointerCount; in processMotionEvent() 41 if (pointerCount > 1 && oldPointerCount > 1) { in processMotionEvent() 54 if (oldPointerCount == 1 && pointerCount == 1) { in processMotionEvent() 66 if (oldPointerCount == 1 && pointerCount == 2) { in processMotionEvent() 80 if (oldPointerCount == 2 && pointerCount == 1) { in processMotionEvent() 101 + pointerCount + " (previously " + oldPointerCount + ")"); in processMotionEvent()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 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() 361 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize() 375 PointerCoords rawPointerCoords[pointerCount]; in android_view_MotionEvent_nativeInitialize() 377 for (jint i = 0; i < pointerCount; i++) { in android_view_MotionEvent_nativeInitialize() 417 size_t pointerCount = event->getPointerCount(); in android_view_MotionEvent_nativeAddBatch() local 422 PointerCoords rawPointerCoords[pointerCount]; in android_view_MotionEvent_nativeAddBatch() [all …]
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/ |
H A D | InputState.cpp | 252 pointerCount = entry.pointerCount; in setPointers() 253 for (uint32_t i = 0; i < entry.pointerCount; i++) { in setPointers() 260 for (uint32_t i = 0; i < pointerCount; i++) { in mergePointerStateTo() 262 other.firstNewPointerIdx = other.pointerCount; in mergePointerStateTo() 265 other.pointerCoords[other.pointerCount].copyFrom(pointerCoords[i]); in mergePointerStateTo() 266 other.pointerCount++; in mergePointerStateTo() 318 uint32_t pointerCount = 0; in synthesizePointerDownEvents() local 326 pointerCount++; in synthesizePointerDownEvents() 331 i < memento.pointerCount; i++) { in synthesizePointerDownEvents() 335 pointerCount++; in synthesizePointerDownEvents() [all …]
|
H A D | Entry.cpp | 202 uint32_t pointerCount, const PointerProperties* pointerProperties, in MotionEntry() argument 220 pointerCount(pointerCount) { in MotionEntry() 221 for (uint32_t i = 0; i < pointerCount; i++) { in MotionEntry() 248 for (uint32_t i = 0; i < pointerCount; i++) { in getDescription()
|
/aosp12/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 170 constexpr size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local 174 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() 175 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 244 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 454 const size_t pointerCount = 1; in TEST_F() local 456 PointerCoords pointerCoords[pointerCount]; in TEST_F() 457 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 475 const size_t pointerCount = 0; in TEST_F() local 477 PointerCoords pointerCoords[pointerCount]; in TEST_F() 495 PointerCoords pointerCoords[pointerCount]; in TEST_F() [all …]
|
H A D | VerifiedInputEvent_test.cpp | 35 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()
|
H A D | InputEvent_test.cpp | 600 const size_t pointerCount = 11; in TEST_F() local 601 PointerProperties pointerProperties[pointerCount]; in TEST_F() 602 PointerCoords pointerCoords[pointerCount]; in TEST_F() 603 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 642 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 820 constexpr size_t pointerCount = 1; in TEST_F() local 822 PointerCoords pointerCoords[pointerCount]; in TEST_F() 823 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 844 constexpr size_t pointerCount = 1; in TEST_F() local 846 PointerCoords pointerCoords[pointerCount]; in TEST_F() [all …]
|
H A D | VelocityTracker_test.cpp | 113 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() 189 entry.eventTime.count(), pointerCount, properties, coords); in createMotionEventStream()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 1820 for (int i = 0; i < pointerCount; i++) { in obtain() 3382 for (int i = 0; i < pointerCount; i++) { in addBatch() 3413 for (int i = 0; i < pointerCount; i++) { in isWithinBoundsNoHistory() 3460 pointerCount, pp, pc); in clampNoHistory() local 3473 for (int i = 0; i < pointerCount; i++) { in getPointerIdBits() 3581 final int pointerCount = getPointerCount(); in updateCursorPosition() local 3582 for (int i = 0; i < pointerCount; ++i) { in updateCursorPosition() 3589 x /= pointerCount; in updateCursorPosition() 3590 y /= pointerCount; in updateCursorPosition() 3600 final int pointerCount = getPointerCount(); in toString() local [all …]
|
H A D | InputEventConsistencyVerifier.java | 361 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()
|
/aosp12/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 109 body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS; in isValid() 252 msg->body.motion.pointerCount = body.motion.pointerCount; in getSanitizedCopy() 568 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent() 604 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent() 1076 for (size_t i = 0; i < pointerCount; i++) { in resampleTouchState() 1350 uint32_t pointerCount = msg->body.motion.pointerCount; in initializeMotionEvent() local 1352 PointerCoords pointerCoords[pointerCount]; in initializeMotionEvent() 1374 uint32_t pointerCount = msg->body.motion.pointerCount; in addSample() local 1375 PointerCoords pointerCoords[pointerCount]; in addSample() 1386 uint32_t pointerCount = msg->body.motion.pointerCount; in canAddSample() local [all …]
|
H A D | Input.cpp | 489 + (historySize * pointerCount), pointerCount); in copyFrom() 589 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local 590 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex() 674 size_t pointerCount = parcel->readInt32(); in readFromParcel() local 676 if (pointerCount == 0 || pointerCount > MAX_POINTERS || in readFromParcel() 713 mPointerProperties.setCapacity(pointerCount); in readFromParcel() 719 for (size_t i = 0; i < pointerCount; i++) { in readFromParcel() 729 for (size_t i = 0; i < pointerCount; i++) { in readFromParcel() 744 parcel->writeInt32(pointerCount); in writeToParcel() 774 for (size_t i = 0; i < pointerCount; i++) { in writeToParcel() [all …]
|
/aosp12/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 102 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 ==()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | MotionEventHelper.java | 50 int pointerCount = e.getPointerCount(); in transformEventOld() local 63 for (int i = 0; i < pointerCount;i++) { in transformEventOld() 68 for (int i = 0; i < pointerCount;i++) { in transformEventOld() 76 pointerCount, pointerIds, pointerCoords, metaState, xPrecision, in transformEventOld()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | FalsingDataProvider.java | 266 int pointerCount = motionEvent.getPointerCount(); in unpackMotionEvent() local 267 for (int i = 0; i < pointerCount; i++) { in unpackMotionEvent() 279 for (int j = 0; j < pointerCount; j++) { in unpackMotionEvent() 288 pointerCount, in unpackMotionEvent() local
|
/aosp12/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | SinkActivity.java | 358 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()
|
/aosp12/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | DragGestureDetector.java | 49 final int pointerCount = event.getPointerCount(); in computeAveragePosition() local 53 for (int p = 0; p < pointerCount; p++) { in computeAveragePosition()
|
/aosp12/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputShellCommand.java | 116 final int pointerCount = 1; in injectMotionEvent() local 118 new MotionEvent.PointerProperties[pointerCount]; in injectMotionEvent() 119 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; in injectMotionEvent() 120 for (int i = 0; i < pointerCount; i++) { in injectMotionEvent() 134 MotionEvent event = MotionEvent.obtain(downTime, when, action, pointerCount, in injectMotionEvent()
|
/aosp12/frameworks/native/services/inputflinger/reader/mapper/ |
H A D | TouchInputMapper.cpp | 100 pointerCount = 0; in clear() 105 pointerCount = other.pointerCount; in copyFrom() 110 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom() 142 pointerCount = 0; in clear() 150 pointerCount = other.pointerCount; in copyFrom() 155 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom() 1497 last.rawPointerData.pointerCount, next.rawPointerData.pointerCount, in sync() 3639 uint32_t pointerCount = 0; in dispatchMotion() local 3650 pointerCount += 1; in dispatchMotion() 3653 ALOG_ASSERT(pointerCount != 0); in dispatchMotion() [all …]
|