Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp145 const size_t pointerCount = 3; in PublishAndConsumeMotionEvent() local
147 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent()
148 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent()
149 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
151 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
168 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
197 EXPECT_EQ(pointerCount, motionEvent->getPointerCount()); in PublishAndConsumeMotionEvent()
200 for (size_t i = 0; i < pointerCount; i++) { in PublishAndConsumeMotionEvent()
254 const size_t pointerCount = 0; in TEST_F() local
255 PointerProperties pointerProperties[pointerCount]; in TEST_F()
[all …]
DInputEvent_test.cpp547 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()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp114 static bool validatePointerCount(JNIEnv* env, jint pointerCount) { in validatePointerCount() argument
115 if (pointerCount < 1) { in validatePointerCount()
124 size_t pointerCount) { in validatePointerPropertiesArray() argument
131 if (length < pointerCount) { in validatePointerPropertiesArray()
140 size_t pointerCount) { in validatePointerCoordsObjArray() argument
147 if (length < pointerCount) { in validatePointerCoordsObjArray()
155 static bool validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) { in validatePointerIndex() argument
156 if (pointerIndex < 0 || size_t(pointerIndex) >= pointerCount) { in validatePointerIndex()
343 jint pointerCount, jobjectArray pointerPropertiesObjArray, in android_view_MotionEvent_nativeInitialize() argument
345 if (!validatePointerCount(env, pointerCount) in android_view_MotionEvent_nativeInitialize()
[all …]
/frameworks/native/libs/input/
DInput.cpp298 size_t pointerCount, in initialize() argument
313 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize()
340 size_t pointerCount = other->getPointerCount(); in copyFrom() local
343 + (historySize * pointerCount), pointerCount); in copyFrom()
396 size_t pointerCount = mPointerProperties.size(); in findPointerIndex() local
397 for (size_t i = 0; i < pointerCount; i++) { in findPointerIndex()
491 size_t pointerCount = parcel->readInt32(); in readFromParcel() local
493 if (pointerCount == 0 || pointerCount > MAX_POINTERS || sampleCount == 0) { in readFromParcel()
511 mPointerProperties.setCapacity(pointerCount); in readFromParcel()
515 mSamplePointerCoords.setCapacity(sampleCount * pointerCount); in readFromParcel()
[all …]
DInputTransport.cpp74 return body.motion.pointerCount > 0 in isValid()
75 && body.motion.pointerCount <= MAX_POINTERS; in isValid()
295 size_t pointerCount, in publishMotionEvent() argument
306 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
314 if (pointerCount > MAX_POINTERS || pointerCount < 1) { in publishMotionEvent()
316 mChannel->getName().string(), pointerCount); in publishMotionEvent()
336 msg.body.motion.pointerCount = pointerCount; in publishMotionEvent()
337 for (size_t i = 0; i < pointerCount; i++) { in publishMotionEvent()
657 for (size_t i = 0; i < msg->body.motion.pointerCount; i++) { in rewriteMessage()
701 size_t pointerCount = event->getPointerCount(); in resampleTouchState() local
[all …]
DVelocityTracker.cpp297 size_t pointerCount = event->getPointerCount(); in addMovement() local
298 if (pointerCount > MAX_POINTERS) { in addMovement()
299 pointerCount = MAX_POINTERS; in addMovement()
303 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
308 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
313 Position positions[pointerCount]; in addMovement()
318 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
327 for (size_t i = 0; i < pointerCount; i++) { in addMovement()
/frameworks/base/services/input/
DInputListener.cpp72 int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, in NotifyMotionArgs() argument
77 edgeFlags(edgeFlags), displayId(displayId), pointerCount(pointerCount), in NotifyMotionArgs()
79 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs()
91 pointerCount(other.pointerCount), in NotifyMotionArgs()
93 for (uint32_t i = 0; i < pointerCount; i++) { in NotifyMotionArgs()
DInputDispatcher.cpp121 static bool isValidMotionAction(int32_t action, size_t pointerCount) { in isValidMotionAction() argument
136 return index >= 0 && size_t(index) < pointerCount; in isValidMotionAction()
143 static bool validateMotionEvent(int32_t action, size_t pointerCount, in validateMotionEvent() argument
145 if (! isValidMotionAction(action, pointerCount)) { in validateMotionEvent()
149 if (pointerCount < 1 || pointerCount > MAX_POINTERS) { in validateMotionEvent()
151 pointerCount, MAX_POINTERS); in validateMotionEvent()
155 for (size_t i = 0; i < pointerCount; i++) { in validateMotionEvent()
890 for (uint32_t i = 0; i < entry->pointerCount; i++) { in logOutboundMotionDetailsLocked()
1324 && entry->pointerCount == 1 in findTouchedWindowTargetsLocked()
1795 if (inputTarget->pointerIds.count() != originalMotionEntry->pointerCount) { in prepareDispatchCycleLocked()
[all …]
DInputListener.h92 uint32_t pointerCount; member
103 int32_t edgeFlags, int32_t displayId, uint32_t pointerCount,
DInputReader.cpp1422 pointerCount = 0; in clear()
1427 pointerCount = other.pointerCount; in copyFrom()
1431 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom()
1464 pointerCount = 0; in clear()
1470 pointerCount = other.pointerCount; in copyFrom()
1474 for (uint32_t i = 0; i < pointerCount; i++) { in copyFrom()
2668 mLastRawPointerData.pointerCount); in dump()
2669 for (uint32_t i = 0; i < mLastRawPointerData.pointerCount; i++) { in dump()
2683 mLastCookedPointerData.pointerCount); in dump()
2684 for (uint32_t i = 0; i < mLastCookedPointerData.pointerCount; i++) { in dump()
[all …]
DInputDispatcher.h518 uint32_t pointerCount; member
527 nsecs_t downTime, int32_t displayId, uint32_t pointerCount,
762 uint32_t pointerCount; member
DInputReader.h751 uint32_t pointerCount; member
786 uint32_t pointerCount; member
/frameworks/base/core/java/android/view/
DMotionEvent.java1323 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1431 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1440 pointerCount, pointerProperties, pointerCoords); in obtain()
1475 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1479 ensureSharedTempPointerCapacity(pointerCount); in obtain()
1481 for (int i = 0; i < pointerCount; i++) { in obtain()
1485 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1581 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
2788 final int pointerCount = nativeGetPointerCount(mNativePtr); in addBatch() local
2789 if (pointerCount != nativeGetPointerCount(event.mNativePtr)) { in addBatch()
[all …]
DInputEventConsistencyVerifier.java353 final int pointerCount = event.getPointerCount(); in onTouchEvent() local
374 if (pointerCount != expectedPointerCount) { in onTouchEvent()
375 problem("ACTION_MOVE contained " + pointerCount in onTouchEvent()
402 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent()
404 + " but the pointer count is " + pointerCount + "."); in onTouchEvent()
419 if (actionIndex < 0 || actionIndex >= pointerCount) { in onTouchEvent()
421 + " but the pointer count is " + pointerCount + "."); in onTouchEvent()
559 final int pointerCount = event.getPointerCount(); in ensurePointerCountIsOneForThisAction() local
560 if (pointerCount != 1) { in ensurePointerCountIsOneForThisAction()
561 problem("Pointer count is " + pointerCount + " but it should always be 1 for " in ensurePointerCountIsOneForThisAction()
/frameworks/native/include/input/
DInputTransport.h89 size_t pointerCount; member
103 + sizeof(Pointer) * pointerCount; in size()
237 size_t pointerCount,
363 for (size_t i = 0; i < msg->body.motion.pointerCount; i++) { in initializeFrom()
DInput.h514 size_t pointerCount,
/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/services/java/com/android/server/accessibility/
DScreenMagnifier.java411 final int pointerCount = event.getPointerCount(); in handleMotionEventStateDelegating() local
412 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); in handleMotionEventStateDelegating()
413 PointerProperties[] properties = getTempPointerPropertiesWithMinSize(pointerCount); in handleMotionEventStateDelegating()
414 for (int i = 0; i < pointerCount; i++) { in handleMotionEventStateDelegating()
421 event.getEventTime(), event.getAction(), pointerCount, properties, in handleMotionEventStateDelegating()
808 final int pointerCount = event.getPointerCount(); in obtainEventWithOffsetTimeAndDownTime() local
809 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); in obtainEventWithOffsetTimeAndDownTime()
810 PointerProperties[] properties = getTempPointerPropertiesWithMinSize(pointerCount); in obtainEventWithOffsetTimeAndDownTime()
811 for (int i = 0; i < pointerCount; i++) { in obtainEventWithOffsetTimeAndDownTime()
818 event.getAction(), pointerCount, properties, coords, in obtainEventWithOffsetTimeAndDownTime()
DTouchExplorer.java869 final int pointerCount = prototype.getPointerCount(); in sendDownForAllNotInjectedPointers() local
870 for (int i = 0; i < pointerCount; i++) { in sendDownForAllNotInjectedPointers()
923 final int pointerCount = prototype.getPointerCount(); in sendUpForInjectedDownPointers() local
924 for (int i = 0; i < pointerCount; i++) { in sendUpForInjectedDownPointers()
1021 final int pointerCount = event.getPointerCount(); in offsetEvent() local
1022 PointerProperties[] props = PointerProperties.createArray(pointerCount); in offsetEvent()
1023 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent()
1024 for (int i = 0; i < pointerCount; i++) { in offsetEvent()
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java836 final int pointerCount = MotionEventCompat.getPointerCount(ev); in saveLastMotion() local
837 for (int i = 0; i < pointerCount; i++) { in saveLastMotion()
999 final int pointerCount = MotionEventCompat.getPointerCount(ev); in shouldInterceptTouchEvent() local
1000 for (int i = 0; i < pointerCount; i++) { in shouldInterceptTouchEvent()
1122 final int pointerCount = MotionEventCompat.getPointerCount(ev); in processTouchEvent() local
1123 for (int i = 0; i < pointerCount; i++) { in processTouchEvent()
1152 final int pointerCount = MotionEventCompat.getPointerCount(ev); in processTouchEvent() local
1153 for (int i = 0; i < pointerCount; i++) { in processTouchEvent()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DSystemGesturesPointerEventListener.java144 final int pointerCount = move.getPointerCount();
145 for (int p = 0; p < pointerCount; p++) {
DEnableAccessibilityController.java169 final int pointerCount = event.getPointerCount(); in onTouchEvent() local
179 if (pointerCount > 2) { in onTouchEvent()
/frameworks/base/services/input/tests/
DInputReader_test.cpp2054 ASSERT_EQ(uint32_t(1), args.pointerCount); in TEST_F()
2076 ASSERT_EQ(uint32_t(1), args.pointerCount); in TEST_F()
2872 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
2896 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
2919 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
2970 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
2993 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3036 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3061 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
3084 ASSERT_EQ(size_t(1), motionArgs.pointerCount); in TEST_F()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java1184 final int pointerCount = me.getPointerCount();
1189 if (pointerCount != mOldPointerCount) {
1190 if (pointerCount == 1) {
1208 if (pointerCount == 1) {
1217 mOldPointerCount = pointerCount;
/frameworks/base/core/java/android/widget/
DEditor.java3703 int pointerCount = event.getPointerCount(); in updateMinAndMaxOffsets() local
3704 for (int index = 0; index < pointerCount; index++) { in updateMinAndMaxOffsets()