/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 146 const size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local 148 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() 149 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() 150 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 152 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent() 169 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent() 198 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); in PublishAndConsumeMotionEvent() 201 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent() 255 const size_t pointerCount = 0; in TEST_F() local 256 PointerProperties pointerProperties[pointerCount]; in TEST_F() [all …]
|
D | InputEvent_test.cpp | 547 const size_t pointerCount = 11; in TEST_F() local 548 PointerProperties pointerProperties[pointerCount]; in TEST_F() 549 PointerCoords pointerCoords[pointerCount]; in TEST_F() 550 for (size_t i = 0; i < pointerCount; i++) { in TEST_F() 561 0, 0, 0, 0, 0, 0, pointerCount, pointerProperties, pointerCoords); in TEST_F() 582 for (size_t i = 0; i < pointerCount; i++) { in TEST_F()
|
D | StructLayout_test.cpp | 64 CHECK_OFFSET(InputMessage::Body::Motion, pointerCount, 72); in TestInputMessageAlignment()
|
/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 jint pointerCount, jobjectArray pointerPropertiesObjArray, in android_view_MotionEvent_nativeInitialize() argument 342 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize() [all …]
|
/frameworks/native/libs/input/ |
D | Input.cpp | 230 size_t pointerCount, in initialize() argument 246 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize() 274 size_t pointerCount = other->getPointerCount(); in copyFrom() local 277 + (historySize * pointerCount), pointerCount); in copyFrom() 330 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local 331 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex() 425 size_t pointerCount = parcel->readInt32(); in readFromParcel() local 427 if (pointerCount == 0 || pointerCount > MAX_POINTERS || in readFromParcel() 447 mPointerProperties.setCapacity(pointerCount); in readFromParcel() 451 mSamplePointerCoords.setCapacity(sampleCount * pointerCount); in readFromParcel() [all …]
|
D | InputTransport.cpp | 79 return body.motion.pointerCount > 0 in isValid() 80 && body.motion.pointerCount <= MAX_POINTERS; in isValid() 301 uint32_t pointerCount, in publishMotionEvent() argument 312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent() 320 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent() 322 mChannel->getName().string(), pointerCount); in publishMotionEvent() 343 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent() 344 for (uint32_t i = 0; i < pointerCount; i++) { in publishMotionEvent() 665 for (uint32_t i = 0; i < msg->body.motion.pointerCount; i++) { in rewriteMessage() 709 size_t pointerCount = event->getPointerCount(); in resampleTouchState() local [all …]
|
D | VelocityTracker.cpp | 299 size_t pointerCount = event->getPointerCount(); in addMovement() local 300 if (pointerCount > MAX_POINTERS) { in addMovement() 301 pointerCount = MAX_POINTERS; in addMovement() 305 for (size_t i = 0; i < pointerCount; i++) { in addMovement() 310 for (size_t i = 0; i < pointerCount; i++) { in addMovement() 315 Position positions[pointerCount]; in addMovement() 320 for (size_t i = 0; i < pointerCount; i++) { in addMovement() 329 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 72 int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, in NotifyMotionArgs() argument 78 edgeFlags(edgeFlags), displayId(displayId), pointerCount(pointerCount), in NotifyMotionArgs() 80 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs() 91 edgeFlags(other.edgeFlags), displayId(other.displayId), pointerCount(other.pointerCount), in NotifyMotionArgs() 93 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs()
|
D | InputDispatcher.cpp | 122 static bool isValidMotionAction(int32_t action, int32_t actionButton, int32_t pointerCount) { in isValidMotionAction() argument 137 return index >= 0 && index < pointerCount; in isValidMotionAction() 147 static bool validateMotionEvent(int32_t action, int32_t actionButton, size_t pointerCount, in validateMotionEvent() argument 149 if (! isValidMotionAction(action, actionButton, pointerCount)) { in validateMotionEvent() 153 if (pointerCount < 1 || pointerCount > MAX_POINTERS) { in validateMotionEvent() 155 pointerCount, MAX_POINTERS); in validateMotionEvent() 159 for (size_t i = 0; i < pointerCount; i++) { in validateMotionEvent() 901 for (uint32_t i = 0; i < entry->pointerCount; i++) { in logOutboundMotionDetailsLocked() 1302 && entry->pointerCount == 1 in findTouchedWindowTargetsLocked() 1827 if (inputTarget->pointerIds.count() != originalMotionEntry->pointerCount) { in prepareDispatchCycleLocked() [all …]
|
D | InputListener.h | 93 uint32_t pointerCount; member 105 int32_t edgeFlags, int32_t displayId, uint32_t pointerCount,
|
D | InputReader.cpp | 1550 pointerCount = 0; in clear() 1555 pointerCount = other.pointerCount; in copyFrom() 1559 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom() 1592 pointerCount = 0; in clear() 1598 pointerCount = other.pointerCount; in copyFrom() 1602 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom() 2980 mLastRawState.rawPointerData.pointerCount); in dump() 2981 for (uint32_t i = 0; i < mLastRawState.rawPointerData.pointerCount; i++) { in dump() 2996 mLastCookedState.cookedPointerData.pointerCount); in dump() 2997 for (uint32_t i = 0; i < mLastCookedState.cookedPointerData.pointerCount; i++) { in dump() [all …]
|
D | InputDispatcher.h | 522 uint32_t pointerCount; member 531 int32_t displayId, uint32_t pointerCount, 774 uint32_t pointerCount; member
|
D | InputReader.h | 833 uint32_t pointerCount; member 868 uint32_t pointerCount; member
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 1446 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument 1560 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument 1569 pointerCount, pointerProperties, pointerCoords); in obtain() 1604 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument 1608 ensureSharedTempPointerCapacity(pointerCount); in obtain() 1610 for (int i = 0; i < pointerCount; i++) { in obtain() 1614 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain() 1710 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument 2965 final int pointerCount = nativeGetPointerCount(mNativePtr); in addBatch() local 2966 if (pointerCount != nativeGetPointerCount(event.mNativePtr)) { in addBatch() [all …]
|
D | InputEventConsistencyVerifier.java | 357 final int pointerCount = event.getPointerCount(); in onTouchEvent() local 378 if (pointerCount != expectedPointerCount) { in onTouchEvent() 379 problem("ACTION_MOVE contained " + pointerCount in onTouchEvent() 406 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent() 408 + " but the pointer count is " + pointerCount + "."); in onTouchEvent() 423 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent() 425 + " but the pointer count is " + pointerCount + "."); in onTouchEvent() 621 final int pointerCount = event.getPointerCount(); in ensurePointerCountIsOneForThisAction() local 622 if (pointerCount != 1) { in ensurePointerCountIsOneForThisAction() 623 problem("Pointer count is " + pointerCount + " but it should always be 1 for " in ensurePointerCountIsOneForThisAction()
|
/frameworks/native/include/input/ |
D | InputTransport.h | 97 uint32_t pointerCount; member 112 + sizeof(Pointer) * pointerCount; in size() 247 uint32_t pointerCount, 373 for (uint32_t i = 0; i < msg->body.motion.pointerCount; i++) { in initializeFrom()
|
D | Input.h | 571 size_t pointerCount,
|
/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/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 846 final int pointerCount = ev.getPointerCount(); in saveLastMotion() local 847 for (int i = 0; i < pointerCount; i++) { in saveLastMotion() 1016 final int pointerCount = ev.getPointerCount(); in shouldInterceptTouchEvent() local 1017 for (int i = 0; i < pointerCount; i++) { in shouldInterceptTouchEvent() 1169 final int pointerCount = ev.getPointerCount(); in processTouchEvent() local 1170 for (int i = 0; i < pointerCount; i++) { in processTouchEvent() 1203 final int pointerCount = ev.getPointerCount(); in processTouchEvent() local 1204 for (int i = 0; i < pointerCount; i++) { in processTouchEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationGestureHandler.java | 244 final int pointerCount = event.getPointerCount(); in dispatchTransformedEvent() local 245 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); in dispatchTransformedEvent() 247 pointerCount); in dispatchTransformedEvent() 248 for (int i = 0; i < pointerCount; i++) { in dispatchTransformedEvent() 255 event.getEventTime(), event.getAction(), pointerCount, properties, in dispatchTransformedEvent()
|
D | TouchExplorer.java | 832 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointers() local 833 for (int i = 0; i < pointerCount; i++) { in sendDownForAllNotInjectedPointers() 886 final int pointerCount = prototype.getPointerCount(); in sendUpForInjectedDownPointers() local 887 for (int i = 0; i < pointerCount; i++) { in sendUpForInjectedDownPointers() 988 final int pointerCount = event.getPointerCount(); in offsetEvent() local 989 PointerProperties[] props = PointerProperties.createArray(pointerCount); in offsetEvent() 990 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent() 991 for (int i = 0; i < pointerCount; i++) { in offsetEvent()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 2072 ASSERT_EQ(uint32_t(1), args.pointerCount); in TEST_F() 2094 ASSERT_EQ(uint32_t(1), args.pointerCount); in TEST_F() 2910 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 2934 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 2957 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 3008 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 3031 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 3074 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 3099 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() 3122 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SystemGesturesPointerEventListener.java | 192 final int pointerCount = move.getPointerCount(); in detectSwipe() local 193 for (int p = 0; p < pointerCount; p++) { in detectSwipe()
|
D | EnableAccessibilityController.java | 176 final int pointerCount = event.getPointerCount(); in onTouchEvent() local 186 if (pointerCount > 2) { in onTouchEvent()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 1198 final int pointerCount = me.getPointerCount(); 1203 if (pointerCount != mOldPointerCount) { 1204 if (pointerCount == 1) { 1222 if (pointerCount == 1) { 1231 mOldPointerCount = pointerCount;
|