/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 236 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 …]
|
D | InputPublisherAndConsumer_test.cpp | 153 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/ |
D | InputClassifierConverter_test.cpp | 63 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 …]
|
D | InputDispatcher_test.cpp | 239 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F() local 243 pointerCoords[i].clear(); in TEST_F() 255 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 265 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 274 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 284 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 293 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 302 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F() 311 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F() 321 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() [all …]
|
D | InputReader_test.cpp | 2429 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in testMotionRotation() 2527 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2546 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2568 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2587 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2606 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2614 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2630 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2635 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() 2643 ASSERT_NO_FATAL_FAILURE(assertPointerCoords(args.pointerCoords[0], in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 324 PointerCoords pointerCoords; in sync() local 325 pointerCoords.clear(); in sync() 354 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in sync() 355 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in sync() 356 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync() 357 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync() 360 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync() 361 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync() 365 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync() 404 &pointerCoords, mXPrecision, mYPrecision, downTime, in sync() [all …]
|
D | RotaryEncoderInputMapper.cpp | 93 PointerCoords pointerCoords; in sync() local 94 pointerCoords.clear(); in sync() 120 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_SCROLL, scroll * mScalingFactor); in sync() 126 /* deviceTimestamp */ 0, 1, &pointerProperties, &pointerCoords, in sync()
|
D | JoystickInputMapper.cpp | 315 PointerCoords pointerCoords; in sync() local 316 pointerCoords.clear(); in sync() 321 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.axis, axis.currentValue); in sync() 323 setPointerCoordsAxisValue(&pointerCoords, axis.axisInfo.highAxis, in sync() 338 /* deviceTimestamp */ 0, 1, &pointerProperties, &pointerCoords, 0, 0, 0, in sync() 343 void JoystickInputMapper::setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, in setPointerCoordsAxisValue() argument 345 pointerCoords->setAxisValue(axis, value); in setPointerCoordsAxisValue() 352 pointerCoords->setAxisValue(compatAxis, value); in setPointerCoordsAxisValue()
|
D | TouchInputMapper.cpp | 155 pointerCoords[i].copyFrom(other.pointerCoords[i]); in copyFrom() 291 const PointerCoords& pointerCoords = mLastCookedState.cookedPointerData.pointerCoords[i]; in dump() local 297 i, pointerProperties.id, pointerCoords.getX(), pointerCoords.getY(), in dump() 298 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump() 299 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump() 300 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump() 301 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump() 302 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump() 303 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), in dump() 304 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TILT), in dump() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | PointerCountClassifierTest.java | 70 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testFail_multiPointer() local 72 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer() 86 MotionEvent.PointerCoords[] pointerCoords = MotionEvent.PointerCoords.createArray(2); in testPass_multiPointerDragDown() local 88 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testPass_multiPointerDragDown()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | PinchZoomAction.java | 83 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/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 166 const PointerCoords* pointerCoords, float xOffset, float yOffset) in MotionEntry() argument 185 this->pointerCoords[i].copyFrom(pointerCoords[i]); in MotionEntry() 187 this->pointerCoords[i].applyOffset(xOffset, yOffset); in MotionEntry() 213 msg += StringPrintf("%d: (%.1f, %.1f)", pointerProperties[i].id, pointerCoords[i].getX(), in appendDescription() 214 pointerCoords[i].getY()); in appendDescription()
|
D | InputState.cpp | 135 if (entry->pointerCoords[0].isEmpty()) { in trackMotion() 141 } else if (!entry->pointerCoords[0].isEmpty()) { in trackMotion() 246 pointerCoords[i].copyFrom(entry->pointerCoords[i]); in setPointers() 275 memento.pointerProperties, memento.pointerCoords, 0 /*xOffset*/, in synthesizeCancelationEvents()
|
D | Entry.h | 134 PointerCoords pointerCoords[MAX_POINTERS]; member 141 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
D | InputDispatcher.cpp | 462 int32_t(motionEntry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked() 464 int32_t(motionEntry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y)); in enqueueInboundEventLocked() 982 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails() 983 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y), in logOutboundMotionDetails() 984 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in logOutboundMotionDetails() 985 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE), in logOutboundMotionDetails() 986 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in logOutboundMotionDetails() 987 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in logOutboundMotionDetails() 988 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in logOutboundMotionDetails() 989 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in logOutboundMotionDetails() [all …]
|
D | InputState.h | 100 PointerCoords pointerCoords[MAX_POINTERS]; member
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 697 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/ |
D | InputListener.cpp | 95 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 ==()
|
D | InputClassifierConverter.cpp | 346 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() 373 std::vector<common::V1_0::PointerCoords> pointerCoords; in notifyMotionArgsToHalMotionEvent() local 374 getHidlPropertiesAndCoords(args, /*out*/&pointerProperties, /*out*/&pointerCoords); in notifyMotionArgsToHalMotionEvent() 376 event.pointerCoords = pointerCoords; in notifyMotionArgsToHalMotionEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProvider.java | 228 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/ |
D | MotionEvent.java | 1527 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() 3226 public final void addBatch(long eventTime, PointerCoords[] pointerCoords, int metaState) { in addBatch() argument 3227 nativeAddBatch(mNativePtr, eventTime * NS_PER_MS, pointerCoords, metaState); in addBatch()
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 119 PointerCoords pointerCoords[MAX_POINTERS]; member 132 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationGestureHandlerTest.java | 631 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/ |
D | Input.cpp | 257 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()
|
D | InputTransport.cpp | 487 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()
|