Home
last modified time | relevance | path

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

12

/aosp12/frameworks/native/libs/input/tests/
H A DInputEvent_test.cpp271 PointerCoords pointerCoords[2]; in initializeEventWithHistory() local
272 pointerCoords[0].clear(); in initializeEventWithHistory()
282 pointerCoords[1].clear(); in initializeEventWithHistory()
299 pointerCoords); in initializeEventWithHistory()
602 PointerCoords pointerCoords[pointerCount]; in TEST_F() local
607 pointerCoords[i].clear(); in TEST_F()
621 pointerCoords); in TEST_F()
667 std::vector<PointerCoords> pointerCoords; in createTouchDownEvent() local
668 pointerCoords.emplace_back().clear(); in createTouchDownEvent()
826 pointerCoords[i].clear(); in TEST_F()
[all …]
H A DInputPublisherAndConsumer_test.cpp174 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() local
180 pointerCoords[i].clear(); in PublishAndConsumeMotionEvent()
181 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
182 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent()
249 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent()
251 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in PublishAndConsumeMotionEvent()
456 PointerCoords pointerCoords[pointerCount]; in TEST_F() local
459 pointerCoords[i].clear(); in TEST_F()
477 PointerCoords pointerCoords[pointerCount]; in TEST_F() local
495 PointerCoords pointerCoords[pointerCount]; in TEST_F() local
[all …]
H A DVerifiedInputEvent_test.cpp37 PointerCoords pointerCoords[pointerCount]; in getMotionEventWithFlags() local
41 pointerCoords[i].clear(); in getMotionEventWithFlags()
52 200 /*eventTime*/, pointerCount, pointerProperties, pointerCoords); in getMotionEventWithFlags()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputClassifierConverter_test.cpp66 ASSERT_EQ(1, motionArgs.pointerCoords[0].getX()); in TEST()
67 ASSERT_EQ(2, motionArgs.pointerCoords[0].getY()); in TEST()
68 ASSERT_EQ(0.5, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
69 ASSERT_EQ(3U, BitSet64::count(motionArgs.pointerCoords[0].bits)); in TEST()
73 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::X), in TEST()
74 motionArgs.pointerCoords[0].getX()); in TEST()
75 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::Y), in TEST()
76 motionArgs.pointerCoords[0].getY()); in TEST()
78 motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
79 ASSERT_EQ(BitSet64::count(motionArgs.pointerCoords[0].bits), in TEST()
[all …]
H A DInputReader_test.cpp3864 assertCursorPointerCoords(args.pointerCoords[0], in testMotionRotation()
4485 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4513 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4523 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4528 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4537 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4542 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4552 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4573 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
4601 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DMotionEventHelper.java52 PointerCoords[] pointerCoords = getPointerCoords(e); in transformEventOld() local
62 float[] xy = new float[pointerCoords.length * 2]; in transformEventOld()
64 xy[2 * i] = pointerCoords[i].x; in transformEventOld()
65 xy[2 * i + 1] = pointerCoords[i].y; in transformEventOld()
69 pointerCoords[i].x = xy[2 * i]; in transformEventOld()
70 pointerCoords[i].y = xy[2 * i + 1]; in transformEventOld()
71 pointerCoords[i].orientation = transformAngle( in transformEventOld()
72 m, pointerCoords[i].orientation); in transformEventOld()
76 pointerCount, pointerIds, pointerCoords, metaState, xPrecision, in transformEventOld()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
H A DGestureLogParser.java36 final MotionEvent.PointerCoords[] pointerCoords; in getMotionEventFromLogLine() local
66 pointerCoords = findCoordinates(line, pointerCount); in getMotionEventFromLogLine()
69 pointerCount, properties, pointerCoords, metaState, buttonState, in getMotionEventFromLogLine()
107 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in findCoordinates() local
108 pointerCoords.x = x; in findCoordinates()
109 pointerCoords.y = y; in findCoordinates()
110 pointerCoords.pressure = 1; in findCoordinates()
111 pointerCoords.size = 1; in findCoordinates()
113 coords[i] = pointerCoords; in findCoordinates()
H A DTouchEventGenerator.java88 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in generateMultiplePointersEvent() local
89 pointerCoords.x = pointFs[i].x; in generateMultiplePointersEvent()
90 pointerCoords.y = pointFs[i].y; in generateMultiplePointersEvent()
91 pointerCoordsArray[i] = pointerCoords; in generateMultiplePointersEvent()
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DCursorInputMapper.cpp328 PointerCoords pointerCoords; in sync() local
329 pointerCoords.clear(); in sync()
373 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, xCursorPosition); in sync()
374 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, yCursorPosition); in sync()
375 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
376 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
380 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
381 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
382 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
383 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
[all …]
H A DRotaryEncoderInputMapper.cpp95 PointerCoords pointerCoords; in sync() local
96 pointerCoords.clear(); in sync()
122 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_SCROLL, scroll * mScalingFactor); in sync()
128 &pointerCoords, 0, 0, AMOTION_EVENT_INVALID_CURSOR_POSITION, in sync()
H A DJoystickInputMapper.cpp322 PointerCoords pointerCoords; in sync() local
323 pointerCoords.clear(); in sync()
327 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.axis, axis.currentValue); in sync()
329 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.highAxis, in sync()
344 &pointerProperties, &pointerCoords, 0, 0, in sync()
350 void JoystickInputMapper::setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, in setPointerCoordsAxisValue() argument
352 pointerCoords->setAxisValue(axis, value); in setPointerCoordsAxisValue()
359 pointerCoords->setAxisValue(compatAxis, value); in setPointerCoordsAxisValue()
H A DTouchInputMapper.cpp157 pointerCoords[i].copyFrom(other.pointerCoords[i]); in copyFrom()
310 const PointerCoords& pointerCoords = mLastCookedState.cookedPointerData.pointerCoords[i]; in dump() local
316 i, pointerProperties.id, pointerCoords.getX(), pointerCoords.getY(), in dump()
2596 PointerCoords pointerCoords; in dispatchPointerGestures() local
2597 pointerCoords.clear(); in dispatchPointerGestures()
2598 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in dispatchPointerGestures()
2599 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in dispatchPointerGestures()
3599 PointerCoords pointerCoords; in dispatchPointerSimple() local
3600 pointerCoords.copyFrom(mPointerSimple.currentCoords); in dispatchPointerSimple()
3637 PointerCoords pointerCoords[MAX_POINTERS]; in dispatchMotion() local
[all …]
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DInputState.cpp139 if (entry.pointerCoords[0].isEmpty()) { in trackMotion()
145 } else if (!entry.pointerCoords[0].isEmpty()) { in trackMotion()
255 pointerCoords[i].copyFrom(entry.pointerCoords[i]); in setPointers()
265 other.pointerCoords[other.pointerCount].copyFrom(pointerCoords[i]); in mergePointerStateTo()
299 memento.pointerCoords, 0 /*xOffset*/, in synthesizeCancelationEvents()
320 PointerCoords pointerCoords[MAX_POINTERS]; in synthesizePointerDownEvents() local
325 pointerCoords[i].copyFrom(memento.pointerCoords[i]); in synthesizePointerDownEvents()
334 pointerCoords[i].copyFrom(memento.pointerCoords[i]); in synthesizePointerDownEvents()
352 pointerCount, pointerProperties, pointerCoords, in synthesizePointerDownEvents()
H A DEntry.cpp44 const float rawX = entry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X); in verifiedMotionEventFromMotionEntry()
45 const float rawY = entry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y); in verifiedMotionEventFromMotionEntry()
203 const PointerCoords* pointerCoords, float xOffset, float yOffset) in MotionEntry() argument
223 this->pointerCoords[i].copyFrom(pointerCoords[i]); in MotionEntry()
225 this->pointerCoords[i].applyOffset(xOffset, yOffset); in MotionEntry()
252 msg += StringPrintf("%d: (%.1f, %.1f)", pointerProperties[i].id, pointerCoords[i].getX(), in getDescription()
253 pointerCoords[i].getY()); in getDescription()
H A DInputDispatcher.cpp351 std::vector<PointerCoords> pointerCoords; in createDispatchEntry() local
352 pointerCoords.resize(motionEntry.pointerCount); in createDispatchEntry()
367 pointerCoords[pointerIndex].copyFrom(motionEntry.pointerCoords[pointerIndex]); in createDispatchEntry()
370 pointerCoords[pointerIndex].transform(currTransform); in createDispatchEntry()
373 pointerCoords[pointerIndex].transform(inverseFirstTransform); in createDispatchEntry()
1643 PointerCoords pointerCoords; in enqueueDragEventLocked() local
1644 pointerCoords.copyFrom(motionEntry.pointerCoords[0]); in enqueueDragEventLocked()
1645 pointerCoords.transform(windowHandle->getInfo()->transform); in enqueueDragEventLocked()
1650 pointerCoords.getY()); in enqueueDragEventLocked()
1684 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails()
[all …]
/aosp12/frameworks/native/services/inputflinger/benchmarks/
H A DInputDispatcher_benchmarks.cpp219 PointerCoords pointerCoords[1]; in generateMotionEvent() local
225 pointerCoords[0].clear(); in generateMotionEvent()
226 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionEvent()
227 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionEvent()
241 /*pointerCount*/ 1, pointerProperties, pointerCoords); in generateMotionEvent()
247 PointerCoords pointerCoords[1]; in generateMotionArgs() local
253 pointerCoords[0].clear(); in generateMotionArgs()
254 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs()
255 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionArgs()
264 pointerProperties, pointerCoords, in generateMotionArgs()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A DPointerCountClassifierTest.java72 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer() local
74 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer()
89 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testPass_multiPointerDragDown() local
91 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testPass_multiPointerDragDown()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DPinchZoomAction.java83 final MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[]{pc1, pc2}; in sendPinchZoomAction() local
86 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
93 2, pointerProperties, pointerCoords, 0, 0, 1, 1, 0, 0, 0, 0); in sendPinchZoomAction()
131 MotionEvent.ACTION_MOVE, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
151 MotionEvent.ACTION_POINTER_UP, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
166 MotionEvent.ACTION_POINTER_UP, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
/aosp12/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DInteractionController.java697 PointerCoords[] pointerCoords = new PointerCoords[touches.length];
705 pointerCoords[x] = touches[x][0];
712 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
718 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
728 pointerCoords[x] = touches[x][i];
730 pointerCoords[x] = touches[x][touches[x].length - 1];
734 MotionEvent.ACTION_MOVE, touches.length, properties, pointerCoords, 0, 0, 1, 1,
743 pointerCoords[x] = touches[x][touches[x].length - 1];
749 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0);
753 Log.i(LOG_TAG, "x " + pointerCoords[0].x);
[all …]
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DDirectoryListBot.java394 MotionEvent.PointerCoords[] pointerCoords = {new MotionEvent.PointerCoords()}; in getTestMotionEvent() local
395 pointerCoords[0].clear(); in getTestMotionEvent()
396 pointerCoords[0].x = x; in getTestMotionEvent()
397 pointerCoords[0].y = y; in getTestMotionEvent()
398 pointerCoords[0].pressure = 0; in getTestMotionEvent()
399 pointerCoords[0].size = 1; in getTestMotionEvent()
407 pointerCoords, in getTestMotionEvent()
/aosp12/frameworks/native/services/inputflinger/
H A DInputListener.cpp103 const PointerCoords* pointerCoords, float xPrecision, float yPrecision, in NotifyMotionArgs() argument
128 this->pointerCoords[i].copyFrom(pointerCoords[i]); in NotifyMotionArgs()
155 pointerCoords[i].copyFrom(other.pointerCoords[i]); in NotifyMotionArgs()
183 && pointerCoords[i] == rhs.pointerCoords[i]; in operator ==()
H A DInputClassifierConverter.cpp346 coords.bits = args.pointerCoords[i].bits; in getHidlPropertiesAndCoords()
348 args.pointerCoords[i].values, in getHidlPropertiesAndCoords()
349 args.pointerCoords[i].values + BitSet64::count(args.pointerCoords[i].bits)); in getHidlPropertiesAndCoords()
374 std::vector<common::V1_0::PointerCoords> pointerCoords; in notifyMotionArgsToHalMotionEvent() local
375 getHidlPropertiesAndCoords(args, /*out*/&pointerProperties, /*out*/&pointerCoords); in notifyMotionArgsToHalMotionEvent()
377 event.pointerCoords = pointerCoords; in notifyMotionArgsToHalMotionEvent()
/aosp12/frameworks/base/services/core/java/com/android/server/input/
H A DInputShellCommand.java119 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[pointerCount]; in injectMotionEvent() local
124 pointerCoords[i] = new MotionEvent.PointerCoords(); in injectMotionEvent()
125 pointerCoords[i].x = x; in injectMotionEvent()
126 pointerCoords[i].y = y; in injectMotionEvent()
127 pointerCoords[i].pressure = pressure; in injectMotionEvent()
128 pointerCoords[i].size = DEFAULT_SIZE; in injectMotionEvent()
135 pointerProperties, pointerCoords, DEFAULT_META_STATE, DEFAULT_BUTTON_STATE, in injectMotionEvent()
/aosp12/frameworks/base/core/java/android/view/
H A DMotionEvent.java1556 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1559 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument
1729 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1736 pointerCount, pointerProperties, pointerCoords); in obtain()
1775 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1814 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1825 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain()
2019 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords) { in initialize() argument
2023 pointerCoords); in initialize()
3337 public final void addBatch(long eventTime, PointerCoords[] pointerCoords, int metaState) { in addBatch() argument
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DFalsingDataProvider.java280 PointerCoords pointerCoords = new PointerCoords(); in unpackMotionEvent() local
281 motionEvent.getHistoricalPointerCoords(j, i, pointerCoords); in unpackMotionEvent()
282 pointerCoordsList.add(pointerCoords); in unpackMotionEvent()

12