/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
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() 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 …]
|
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()
|
/frameworks/base/services/tests/servicestests/res/raw/ |
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=… 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 …]
|
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=…
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 48 final int pointerCount = 1; in testObtainWithDisplayId() local 49 PointerProperties[] properties = new PointerProperties[pointerCount]; in testObtainWithDisplayId() 50 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId() 51 for (int i = 0; i < pointerCount; i++) { in testObtainWithDisplayId() 64 pointerCount, properties, coords, in testObtainWithDisplayId() 84 pointerCount, properties, coords, in testObtainWithDisplayId() 123 final int pointerCount = 2; in testCalculatesCursorPositionForMultiTouchMouseEvents() local 124 final PointerProperties[] properties = new PointerProperties[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents() 125 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents() 127 for (int i = 0; i < pointerCount; ++i) { in testCalculatesCursorPositionForMultiTouchMouseEvents() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | EventDispatcher.java | 200 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/jni/ |
D | android_view_MotionEvent.cpp | 117 static bool validatePointerCount(JNIEnv* env, jint pointerCount) { in validatePointerCount() argument 118 if (pointerCount < 1) { in validatePointerCount() 127 size_t pointerCount) { in validatePointerPropertiesArray() argument 134 if (length < pointerCount) { in validatePointerPropertiesArray() 143 size_t pointerCount) { in validatePointerCoordsObjArray() argument 150 if (length < pointerCount) { in validatePointerCoordsObjArray() 158 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { in validatePointerIndex() argument 159 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { in validatePointerIndex() 340 jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, in android_view_MotionEvent_nativeInitialize() argument 342 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
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() 264 other.pointerProperties[other.pointerCount].copyFrom(pointerProperties[i]); in mergePointerStateTo() 265 other.pointerCoords[other.pointerCount].copyFrom(pointerCoords[i]); in mergePointerStateTo() 266 other.pointerCount++; in mergePointerStateTo() 298 memento.pointerCount, memento.pointerProperties, in synthesizeCancelationEvents() 318 uint32_t pointerCount = 0; in synthesizePointerDownEvents() local 326 pointerCount++; in synthesizePointerDownEvents() [all …]
|
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()
|
D | Entry.h | 175 uint32_t pointerCount; member 183 float yCursorPosition, nsecs_t downTime, uint32_t pointerCount,
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 168 constexpr size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local 171 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() 172 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() 173 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 175 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent() 196 displayHeight, downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent() 238 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); in PublishAndConsumeMotionEvent() 241 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 451 const size_t pointerCount = 1; in TEST_F() local 452 PointerProperties pointerProperties[pointerCount]; in TEST_F() [all …]
|
D | VerifiedInputEvent_test.cpp | 34 constexpr size_t pointerCount = 1; in getMotionEventWithFlags() local 35 PointerProperties pointerProperties[pointerCount]; in getMotionEventWithFlags() 36 PointerCoords pointerCoords[pointerCount]; in getMotionEventWithFlags() 37 for (size_t i = 0; i < pointerCount; i++) { in getMotionEventWithFlags() 51 100 /*downTime*/, 200 /*eventTime*/, pointerCount, pointerProperties, in getMotionEventWithFlags()
|
D | InputEvent_test.cpp | 599 const size_t pointerCount = 11; in TEST_F() local 600 PointerProperties pointerProperties[pointerCount]; in TEST_F() 601 PointerCoords pointerCoords[pointerCount]; in TEST_F() 602 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 619 0 /*downTime*/, 0 /*eventTime*/, pointerCount, pointerProperties, in TEST_F() 641 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 760 constexpr size_t pointerCount = 1; in TEST_F() local 761 PointerProperties pointerProperties[pointerCount]; in TEST_F() 762 PointerCoords pointerCoords[pointerCount]; in TEST_F() 763 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() [all …]
|
D | VelocityTracker_test.cpp | 112 const uint32_t pointerCount = pointers.count(); in resolveAction() local 116 if (lastPointerCount < pointerCount) { in resolveAction() 125 if (pointerCount > nextPointerCount) { in resolveAction() 145 const uint32_t pointerCount = pointers.count(); in createMotionEventStream() local 150 EXPECT_EQ(1U, pointerCount) << "First event should only have 1 pointer"; in createMotionEventStream() 152 EXPECT_EQ(1U, pointerCount) << "Last event should only have 1 pointer"; in createMotionEventStream() 160 PointerCoords coords[pointerCount]; in createMotionEventStream() 161 PointerProperties properties[pointerCount]; in createMotionEventStream() 177 EXPECT_EQ(pointerIndex, pointerCount); in createMotionEventStream() 188 entry.eventTime.count(), pointerCount, properties, coords); in createMotionEventStream()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 1556 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument 1728 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument 1736 pointerCount, pointerProperties, pointerCoords); in obtain() 1774 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument 1778 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain() 1814 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument 1818 ensureSharedTempPointerCapacity(pointerCount); in obtain() 1820 for (int i = 0; i < pointerCount; i++) { in obtain() 1824 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain() 1961 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument [all …]
|
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()
|
/frameworks/native/services/inputflinger/ |
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 ==()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 414 nsecs_t eventTime, size_t pointerCount, in initialize() argument 434 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize() 467 size_t pointerCount = other->getPointerCount(); in copyFrom() local 470 + (historySize * pointerCount), pointerCount); in copyFrom() 547 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local 548 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex() 625 size_t pointerCount = parcel->readInt32(); in readFromParcel() local 627 if (pointerCount == 0 || pointerCount > MAX_POINTERS || in readFromParcel() 663 mPointerProperties.setCapacity(pointerCount); in readFromParcel() 667 mSamplePointerCoords.setCapacity(sampleCount * pointerCount); in readFromParcel() [all …]
|
D | InputTransport.cpp | 109 body.motion.pointerCount > 0 && body.motion.pointerCount <= MAX_POINTERS; in isValid() 111 ALOGE("Received invalid MOTION: pointerCount = %" PRIu32, body.motion.pointerCount); in isValid() 250 msg->body.motion.pointerCount = body.motion.pointerCount; in getSanitizedCopy() 252 for (size_t i = 0; i < body.motion.pointerCount; i++) { in getSanitizedCopy() 537 int32_t displayHeight, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, in publishMotionEvent() argument 557 eventTime, pointerCount, transformString.c_str()); in publishMotionEvent() 565 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent() 567 mChannel->getName().c_str(), pointerCount); in publishMotionEvent() 600 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent() 601 for (uint32_t i = 0; i < pointerCount; i++) { in publishMotionEvent() [all …]
|
D | VelocityTracker.cpp | 277 size_t pointerCount = event->getPointerCount(); in addMovement() local 278 if (pointerCount > MAX_POINTERS) { in addMovement() 279 pointerCount = MAX_POINTERS; in addMovement() 283 for (size_t i = 0; i < pointerCount; i++) { in addMovement() 288 for (size_t i = 0; i < pointerCount; i++) { in addMovement() 293 positions.resize(pointerCount); in addMovement() 298 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
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
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
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()
|
/frameworks/base/services/core/java/com/android/server/input/ |
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()
|
/frameworks/native/include/input/ |
D | InputTransport.h | 141 uint32_t pointerCount; member 162 + sizeof(Pointer) * pointerCount; in size() 359 nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, 544 for (uint32_t i = 0; i < msg.body.motion.pointerCount; i++) { in initializeFrom()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
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() 290 mLastRawState.rawPointerData.pointerCount); in dump() 291 for (uint32_t i = 0; i < mLastRawState.rawPointerData.pointerCount; i++) { in dump() 306 mLastCookedState.cookedPointerData.pointerCount); in dump() 307 for (uint32_t i = 0; i < mLastCookedState.cookedPointerData.pointerCount; i++) { in dump() [all …]
|