Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java388 final int pointerCount = motionEvent.getPointerCount(); in verifyCurrentPointerData() local
389 assertEquals(pointerCount, pointerPropertiesBuilders.length); in verifyCurrentPointerData()
390 assertEquals(pointerCount, pointerCoordsBuilders.length); in verifyCurrentPointerData()
393 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
398 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
403 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
408 for (int i = 0; i < pointerCount; i++) { in verifyCurrentPointerData()
417 final int pointerCount = motionEvent.getPointerCount(); in verifyHistoricalPointerData() local
418 assertEquals(pointerCount, pointerCoordsBuilders.length); in verifyHistoricalPointerData()
422 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/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java317 final int pointerCount = event.getPointerCount(); in splitBatchedMotionEvent() local
319 new MotionEvent.PointerProperties[pointerCount]; in splitBatchedMotionEvent()
320 MotionEvent.PointerCoords[] currentCoords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent()
321 for (int p = 0; p < pointerCount; p++) { in splitBatchedMotionEvent()
329 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent()
331 for (int p = 0; p < pointerCount; p++) { in splitBatchedMotionEvent()
337 pointerCount, properties, coords, in splitBatchedMotionEvent()
348 pointerCount, properties, currentCoords, in splitBatchedMotionEvent()
/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.cpp133 outMsg->body.motion.pointerCount = msg.body.motion.pointerCount; in sanitizeMessage()
135 for (size_t i = 0; i < msg.body.motion.pointerCount; i++) { in sanitizeMessage()
186 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()