Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java316 final int pointerCount = event.getPointerCount(); in splitBatchedMotionEvent() local
318 new MotionEvent.PointerProperties[pointerCount]; in splitBatchedMotionEvent()
319 MotionEvent.PointerCoords[] currentCoords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent()
320 for (int p = 0; p < pointerCount; p++) { in splitBatchedMotionEvent()
328 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent()
330 for (int p = 0; p < pointerCount; p++) { in splitBatchedMotionEvent()
336 pointerCount, properties, coords, in splitBatchedMotionEvent()
347 pointerCount, properties, currentCoords, in splitBatchedMotionEvent()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java407 final int pointerCount = motionEvent.getPointerCount(); in verifyCurrentPointerData() local
408 assertEquals(pointerCount, pointerPropertiesBuilders.length); in verifyCurrentPointerData()
409 assertEquals(pointerCount, pointerCoordsBuilders.length); in verifyCurrentPointerData()
412 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
417 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
422 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
427 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
436 final int pointerCount = motionEvent.getPointerCount(); in verifyHistoricalPointerData() local
437 assertEquals(pointerCount, pointerCoordsBuilders.length); in verifyHistoricalPointerData()
441 for (int i = 0; i < pointerCount; i++) { in verifyHistoricalPointerData()
[all …]
DTouchDelegateTest.java210 private void dispatchMultiTouchMotionEventToActivity(int action, int pointerCount, in dispatchMultiTouchMotionEventToActivity() argument
215 new MotionEvent.PointerProperties[pointerCount]; in dispatchMultiTouchMotionEventToActivity()
216 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in dispatchMultiTouchMotionEventToActivity()
218 for (int i = 0; i < pointerCount; i++) { in dispatchMultiTouchMotionEventToActivity()
227 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, pointerCount, in dispatchMultiTouchMotionEventToActivity()
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp57 jint pointerCount = env->CallIntMethod(obj, gMotionEventMethodIds.getPointerCount); in nativeMotionEventTest() local
76 ASSERT(AMotionEvent_getPointerCount(event) == pointerCount, in nativeMotionEventTest()
78 pointerCount); in nativeMotionEventTest()
80 for (int i = 0; i < pointerCount; i++) { in nativeMotionEventTest()
/cts/libs/input/src/com/android/cts/input/
DInputJsonParser.java492 int pointerCount = pointers == null ? 1 : pointers.length(); in parseMotionEvent() local
495 new MotionEvent.PointerProperties[pointerCount]; in parseMotionEvent()
496 for (int i = 0; i < pointerCount; i++) { in parseMotionEvent()
502 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in parseMotionEvent()
503 for (int i = 0; i < pointerCount; i++) { in parseMotionEvent()
519 for (int i = 0; i < pointerCount; i++) { in parseMotionEvent()
536 pointerCount, properties, coords, 0, buttonState, 0f, 0f, in parseMotionEvent()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp135 outMsg->body.motion.pointerCount = msg.body.motion.pointerCount; in sanitizeMessage()
137 for (size_t i = 0; i < msg.body.motion.pointerCount; i++) { in sanitizeMessage()
188 msg.body.motion.pointerCount = MAX_POINTERS; in makeMessageValid()
/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt107 for (i in 0 until event.pointerCount) { in assertToolType()