Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DInputEvent_test.cpp236 PointerCoords pointerCoords[2]; in initializeEventWithHistory() local
237 pointerCoords[0].clear(); in initializeEventWithHistory()
238 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory()
239 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in initializeEventWithHistory()
240 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12); in initializeEventWithHistory()
241 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13); in initializeEventWithHistory()
242 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14); in initializeEventWithHistory()
243 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15); in initializeEventWithHistory()
244 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16); in initializeEventWithHistory()
245 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17); in initializeEventWithHistory()
[all …]
DInputPublisherAndConsumer_test.cpp153 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() local
159 pointerCoords[i].clear(); in PublishAndConsumeMotionEvent()
160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
161 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent()
162 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); in PublishAndConsumeMotionEvent()
163 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); in PublishAndConsumeMotionEvent()
164 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); in PublishAndConsumeMotionEvent()
165 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); in PublishAndConsumeMotionEvent()
166 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i); in PublishAndConsumeMotionEvent()
167 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.7 * i); in PublishAndConsumeMotionEvent()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp63 ASSERT_EQ(1, motionArgs.pointerCoords[0].getX()); in TEST()
64 ASSERT_EQ(2, motionArgs.pointerCoords[0].getY()); in TEST()
65 ASSERT_EQ(0.5, motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
66 ASSERT_EQ(3U, BitSet64::count(motionArgs.pointerCoords[0].bits)); in TEST()
70 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::X), in TEST()
71 motionArgs.pointerCoords[0].getX()); in TEST()
72 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::Y), in TEST()
73 motionArgs.pointerCoords[0].getY()); in TEST()
74 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::SIZE), in TEST()
75 motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST()
[all …]
DInputDispatcher_test.cpp237 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F() local
241 pointerCoords[i].clear(); in TEST_F()
253 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
263 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
272 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
282 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
291 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
300 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
309 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
319 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputReader_test.cpp2417 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in testMotionRotation()
2515 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2534 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2556 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2575 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2594 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2602 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2618 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2623 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2631 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
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()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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 …]
/frameworks/native/services/inputflinger/
DInputListener.cpp95 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument
108 this->pointerCoords[i].copyFrom(pointerCoords[i]); in NotifyMotionArgs()
123 pointerCoords[i].copyFrom(other.pointerCoords[i]); in NotifyMotionArgs()
156 && pointerCoords[i] == rhs.pointerCoords[i]; in operator ==()
DInputReader.cpp1669 pointerCoords[i].copyFrom(other.pointerCoords[i]); in copyFrom()
2772 PointerCoords pointerCoords; in sync() local
2773 pointerCoords.clear(); in sync()
2803 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in sync()
2804 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in sync()
2805 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
2806 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
2809 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
2810 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
2814 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync()
[all …]
DInputDispatcher.cpp512 int32_t x = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked()
514 int32_t y = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked()
1035 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails()
1036 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetails()
1037 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetails()
1038 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetails()
1039 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetails()
1040 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetails()
1041 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetails()
1042 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetails()
[all …]
DInputDispatcher.h576 PointerCoords pointerCoords[MAX_POINTERS]; member
584 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
836 PointerCoords pointerCoords[MAX_POINTERS]; member
DInputReader.h543 PointerCoords pointerCoords[MAX_POINTERS]; member
552 return pointerCoords[idToIndex[id]]; in pointerCoordsForId()
556 return pointerCoords[idToIndex[id]]; in editPointerCoordsWithId()
1803 static void setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DPointerCountClassifierTest.java68 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer() local
70 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java228 PointerCoords pointerCoords = new PointerCoords(); in unpackMotionEvent() local
229 motionEvent.getHistoricalPointerCoords(j, i, pointerCoords); in unpackMotionEvent()
230 pointerCoordsList.add(pointerCoords); in unpackMotionEvent()
/frameworks/base/core/java/android/view/
DMotionEvent.java1527 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1530 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument
1690 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1698 pointerCount, pointerProperties, pointerCoords); in obtain()
1737 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1740 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()
1776 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1787 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain()
3225 public final void addBatch(long eventTime, PointerCoords[] pointerCoords, int metaState) { in addBatch() argument
3226 nativeAddBatch(mNativePtr, eventTime * NS_PER_MS, pointerCoords, metaState); in addBatch()
/frameworks/native/services/inputflinger/include/
DInputListener.h119 PointerCoords pointerCoords[MAX_POINTERS]; member
132 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationGestureHandlerTest.java631 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords();
632 pointerCoords.x = x;
633 pointerCoords.y = y;
642 /* pointerCoords */ new MotionEvent.PointerCoords[] { defPointerCoords, pointerCoords },
/frameworks/native/libs/input/
DInput.cpp257 const PointerCoords* pointerCoords) { in initialize() argument
275 addSample(eventTime, pointerCoords); in initialize()
310 const PointerCoords* pointerCoords) { in addSample() argument
312 mSamplePointerCoords.appendArray(pointerCoords, getPointerCount()); in addSample()
DInputTransport.cpp487 const PointerCoords* pointerCoords) { in publishMotionEvent() argument
540 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); in publishMotionEvent()
1132 PointerCoords pointerCoords[pointerCount]; in initializeMotionEvent() local
1135 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in initializeMotionEvent()
1157 pointerCoords); in initializeMotionEvent()
1162 PointerCoords pointerCoords[pointerCount]; in addSample() local
1164 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in addSample()
1168 event->addSample(msg->body.motion.eventTime, pointerCoords); in addSample()
/frameworks/native/include/input/
DInput.h622 const PointerCoords* pointerCoords);
628 const PointerCoords* pointerCoords);
DInputTransport.h284 const PointerCoords* pointerCoords);
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...