Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DInputEvent_test.cpp231 PointerCoords pointerCoords[2]; in initializeEventWithHistory() local
232 pointerCoords[0].clear(); in initializeEventWithHistory()
233 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory()
234 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in initializeEventWithHistory()
235 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12); in initializeEventWithHistory()
236 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13); in initializeEventWithHistory()
237 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14); in initializeEventWithHistory()
238 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15); in initializeEventWithHistory()
239 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16); in initializeEventWithHistory()
240 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17); in initializeEventWithHistory()
[all …]
DInputPublisherAndConsumer_test.cpp147 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() local
153 pointerCoords[i].clear(); in PublishAndConsumeMotionEvent()
154 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
155 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent()
156 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); in PublishAndConsumeMotionEvent()
157 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); in PublishAndConsumeMotionEvent()
158 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); in PublishAndConsumeMotionEvent()
159 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); in PublishAndConsumeMotionEvent()
160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i); in PublishAndConsumeMotionEvent()
161 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.7 * i); in PublishAndConsumeMotionEvent()
[all …]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DWebViewEventSender.java180 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[numPoints]; in touchStart() local
185 pointerCoords[i] = new MotionEvent.PointerCoords(); in touchStart()
186 pointerCoords[i].x = mTouchPoints.get(i).getX(); in touchStart()
187 pointerCoords[i].y = mTouchPoints.get(i).getY(); in touchStart()
192 MotionEvent.ACTION_DOWN, numPoints, pointerIds, pointerCoords, in touchStart()
205 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[numPoints]; in touchMove() local
211 pointerCoords[i] = new MotionEvent.PointerCoords(); in touchMove()
212 pointerCoords[numMovedPoints].x = mTouchPoints.get(i).getX(); in touchMove()
213 pointerCoords[numMovedPoints].y = mTouchPoints.get(i).getY(); in touchMove()
225 numMovedPoints, pointerIds, pointerCoords, in touchMove()
[all …]
/frameworks/base/services/input/tests/
DInputDispatcher_test.cpp144 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F() local
148 pointerCoords[i].clear(); in TEST_F()
155 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
165 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
174 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
184 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
193 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
202 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
210 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
220 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputReader_test.cpp1929 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in testMotionRotation()
2027 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2049 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2068 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2076 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2092 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2100 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2118 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2128 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
2137 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F()
[all …]
/frameworks/base/services/input/
DInputListener.cpp73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument
81 this->pointerCoords[i].copyFrom(pointerCoords[i]); in NotifyMotionArgs()
94 pointerCoords[i].copyFrom(other.pointerCoords[i]); in NotifyMotionArgs()
DInputReader.cpp1488 pointerCoords[i].copyFrom(other.pointerCoords[i]); in copyFrom()
2434 PointerCoords pointerCoords; in sync() local
2435 pointerCoords.clear(); in sync()
2464 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in sync()
2465 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in sync()
2467 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
2468 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
2471 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync()
2500 1, &pointerProperties, &pointerCoords, mXPrecision, mYPrecision, downTime); in sync()
2509 1, &pointerProperties, &pointerCoords, mXPrecision, mYPrecision, downTime); in sync()
[all …]
DInputDispatcher.cpp426 int32_t x = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked()
428 int32_t y = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked()
862 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked()
863 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked()
864 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked()
865 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked()
866 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked()
867 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked()
868 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked()
869 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked()
[all …]
DInputListener.h93 PointerCoords pointerCoords[MAX_POINTERS]; member
103 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputDispatcher.h516 PointerCoords pointerCoords[MAX_POINTERS]; member
523 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords);
757 PointerCoords pointerCoords[MAX_POINTERS]; member
DInputReader.h737 PointerCoords pointerCoords[MAX_POINTERS]; member
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DEventSenderImpl.java457 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[numPoints]; in executeTouchEvent() local
480 pointerCoords[numPoints] = new MotionEvent.PointerCoords(); in executeTouchEvent()
481 pointerCoords[numPoints].x = getTouchPoints().get(i).getX(); in executeTouchEvent()
482 pointerCoords[numPoints].y = getTouchPoints().get(i).getY(); in executeTouchEvent()
493 numPoints, pointerIds, pointerCoords, in executeTouchEvent()
/frameworks/base/libs/androidfw/
DInputTransport.cpp291 const PointerCoords* pointerCoords) { in publishMotionEvent() argument
333 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); in publishMotionEvent()
890 PointerCoords pointerCoords[pointerCount]; in initializeMotionEvent() local
893 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in initializeMotionEvent()
912 pointerCoords); in initializeMotionEvent()
917 PointerCoords pointerCoords[pointerCount]; in addSample() local
919 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in addSample()
923 event->addSample(msg->body.motion.eventTime, pointerCoords); in addSample()
DInput.cpp298 const PointerCoords* pointerCoords) { in initialize() argument
314 addSample(eventTime, pointerCoords); in initialize()
347 const PointerCoords* pointerCoords) { in addSample() argument
349 mSamplePointerCoords.appendArray(pointerCoords, getPointerCount()); in addSample()
/frameworks/base/core/java/android/view/
DMotionEvent.java1323 int pointerCount, PointerProperties[] pointerIds, PointerCoords[] pointerCoords); in nativeInitialize() argument
1328 PointerCoords[] pointerCoords, int metaState); in nativeAddBatch() argument
1432 PointerCoords[] pointerCoords, int metaState, int buttonState, in obtain() argument
1440 pointerCount, pointerProperties, pointerCoords); in obtain()
1475 int action, int pointerCount, int[] pointerIds, PointerCoords[] pointerCoords, in obtain() argument
1486 pointerCoords, metaState, 0, xPrecision, yPrecision, deviceId, in obtain()
2759 public final void addBatch(long eventTime, PointerCoords[] pointerCoords, int metaState) { in addBatch() argument
2760 nativeAddBatch(mNativePtr, eventTime * NS_PER_MS, pointerCoords, metaState); in addBatch()
/frameworks/base/include/androidfw/
DInput.h508 const PointerCoords* pointerCoords);
514 const PointerCoords* pointerCoords);
DInputTransport.h236 const PointerCoords* pointerCoords);