/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 230 PointerCoords pointerCoords[2]; in initializeEventWithHistory() local 231 pointerCoords[0].clear(); in initializeEventWithHistory() 232 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory() 233 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in initializeEventWithHistory() 234 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12); in initializeEventWithHistory() 235 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13); in initializeEventWithHistory() 236 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14); in initializeEventWithHistory() 237 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15); in initializeEventWithHistory() 238 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16); in initializeEventWithHistory() 239 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17); in initializeEventWithHistory() [all …]
|
D | InputPublisherAndConsumer_test.cpp | 148 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() local 154 pointerCoords[i].clear(); in PublishAndConsumeMotionEvent() 155 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent() 156 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent() 157 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); in PublishAndConsumeMotionEvent() 158 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); in PublishAndConsumeMotionEvent() 159 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); in PublishAndConsumeMotionEvent() 160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); in PublishAndConsumeMotionEvent() 161 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i); in PublishAndConsumeMotionEvent() 162 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.7 * i); in PublishAndConsumeMotionEvent() [all …]
|
/frameworks/base/services/input/tests/ |
D | InputDispatcher_test.cpp | 145 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F() local 149 pointerCoords[i].clear(); in TEST_F() 156 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 166 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 175 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 185 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 194 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 203 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F() 211 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F() 221 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() [all …]
|
D | InputReader_test.cpp | 1959 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in testMotionRotation() 2057 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2079 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2098 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2106 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2122 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2130 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2148 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2158 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2167 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() [all …]
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 699 PointerCoords[] pointerCoords = new PointerCoords[touches.length]; 707 pointerCoords[x] = touches[x][0]; 714 properties, pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); 720 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); 730 pointerCoords[x] = touches[x][i]; 732 pointerCoords[x] = touches[x][touches[x].length - 1]; 736 MotionEvent.ACTION_MOVE, touches.length, properties, pointerCoords, 0, 0, 1, 1, 745 pointerCoords[x] = touches[x][touches[x].length - 1]; 751 pointerCoords, 0, 0, 1, 1, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); 755 Log.i(LOG_TAG, "x " + pointerCoords[0].x); [all …]
|
/frameworks/base/services/input/ |
D | InputListener.cpp | 73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument 81 this->pointerCoords[i].copyFrom(pointerCoords[i]); in NotifyMotionArgs() 95 pointerCoords[i].copyFrom(other.pointerCoords[i]); in NotifyMotionArgs()
|
D | InputDispatcher.cpp | 439 int32_t x = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked() 441 int32_t y = int32_t(motionEntry->pointerCoords[0]. in enqueueInboundEventLocked() 897 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetailsLocked() 898 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetailsLocked() 899 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetailsLocked() 900 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetailsLocked() 901 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetailsLocked() 902 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetailsLocked() 903 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetailsLocked() 904 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetailsLocked() [all …]
|
D | InputReader.cpp | 1476 pointerCoords[i].copyFrom(other.pointerCoords[i]); in copyFrom() 2444 PointerCoords pointerCoords; in sync() local 2445 pointerCoords.clear(); in sync() 2475 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in sync() 2476 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in sync() 2479 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync() 2480 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync() 2484 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync() 2513 displayId, 1, &pointerProperties, &pointerCoords, in sync() 2523 displayId, 1, &pointerProperties, &pointerCoords, in sync() [all …]
|
D | InputListener.h | 94 PointerCoords pointerCoords[MAX_POINTERS]; member 104 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
D | InputDispatcher.h | 520 PointerCoords pointerCoords[MAX_POINTERS]; member 528 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords); 764 PointerCoords pointerCoords[MAX_POINTERS]; member
|
D | InputReader.h | 788 PointerCoords pointerCoords[MAX_POINTERS]; member 797 return pointerCoords[idToIndex[id]]; in pointerCoordsForId() 1810 static void setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis,
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 297 const PointerCoords* pointerCoords) { in publishMotionEvent() argument 339 msg.body.motion.pointers[i].coords.copyFrom(pointerCoords[i]); in publishMotionEvent() 899 PointerCoords pointerCoords[pointerCount]; in initializeMotionEvent() local 902 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in initializeMotionEvent() 921 pointerCoords); in initializeMotionEvent() 926 PointerCoords pointerCoords[pointerCount]; in addSample() local 928 pointerCoords[i].copyFrom(msg->body.motion.pointers[i].coords); in addSample() 932 event->addSample(msg->body.motion.eventTime, pointerCoords); in addSample()
|
D | Input.cpp | 300 const PointerCoords* pointerCoords) { in initialize() argument 316 addSample(eventTime, pointerCoords); in initialize() 349 const PointerCoords* pointerCoords) { in addSample() argument 351 mSamplePointerCoords.appendArray(pointerCoords, getPointerCount()); in addSample()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 1323 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() 2757 public final void addBatch(long eventTime, PointerCoords[] pointerCoords, int metaState) { in addBatch() argument 2758 nativeAddBatch(mNativePtr, eventTime * NS_PER_MS, pointerCoords, metaState); in addBatch()
|
/frameworks/native/include/input/ |
D | Input.h | 516 const PointerCoords* pointerCoords); 522 const PointerCoords* pointerCoords);
|
D | InputTransport.h | 239 const PointerCoords* pointerCoords);
|