/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 270 PointerCoords pointerCoords[2]; in initializeEventWithHistory() local 271 pointerCoords[0].clear(); in initializeEventWithHistory() 272 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory() 273 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in initializeEventWithHistory() 274 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12); in initializeEventWithHistory() 275 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13); in initializeEventWithHistory() 276 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14); in initializeEventWithHistory() 277 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15); in initializeEventWithHistory() 278 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16); in initializeEventWithHistory() 279 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17); in initializeEventWithHistory() [all …]
|
D | InputPublisherAndConsumer_test.cpp | 172 PointerCoords pointerCoords[pointerCount]; in PublishAndConsumeMotionEvent() local 178 pointerCoords[i].clear(); in PublishAndConsumeMotionEvent() 179 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent() 180 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent() 181 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); in PublishAndConsumeMotionEvent() 182 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); in PublishAndConsumeMotionEvent() 183 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); in PublishAndConsumeMotionEvent() 184 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); in PublishAndConsumeMotionEvent() 185 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i); in PublishAndConsumeMotionEvent() 186 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.7 * i); in PublishAndConsumeMotionEvent() [all …]
|
D | VerifiedInputEvent_test.cpp | 36 PointerCoords pointerCoords[pointerCount]; in getMotionEventWithFlags() local 40 pointerCoords[i].clear(); in getMotionEventWithFlags() 52 pointerCoords); in getMotionEventWithFlags()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 66 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() 77 ASSERT_EQ(getMotionEventAxis(motionEvent.pointerCoords[0], common::V1_0::Axis::SIZE), in TEST() 78 motionArgs.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_SIZE)); in TEST() [all …]
|
D | InputReader_test.cpp | 3837 assertCursorPointerCoords(args.pointerCoords[0], in testMotionRotation() 3929 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 1.0f)); in TEST_F() 3947 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 1.0f)); in TEST_F() 3968 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 0.0f)); in TEST_F() 3986 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 0.0f)); in TEST_F() 4003 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], in TEST_F() 4012 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, in TEST_F() 4027 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 1.0f)); in TEST_F() 4031 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 1.0f)); in TEST_F() 4038 ASSERT_NO_FATAL_FAILURE(assertCursorPointerCoords(args.pointerCoords[0], 0.0f, 0.0f, 0.0f)); in TEST_F() [all …]
|
D | InputDispatcher_test.cpp | 512 PointerCoords pointerCoords[MAX_POINTERS + 1]; in TEST_F() local 516 pointerCoords[i].clear(); in TEST_F() 532 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() 546 pointerCoords); in TEST_F() 559 pointerCoords); in TEST_F() 573 pointerCoords); in TEST_F() 586 pointerCoords); in TEST_F() 598 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F() 609 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F() 622 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 36 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()
|
D | TouchEventGenerator.java | 88 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()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 328 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 …]
|
D | RotaryEncoderInputMapper.cpp | 95 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()
|
D | JoystickInputMapper.cpp | 322 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()
|
D | TouchInputMapper.cpp | 157 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() 317 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in dump() 318 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y), in dump() 319 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), in dump() 320 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), in dump() 321 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), in dump() 322 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), in dump() 323 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), in dump() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputState.cpp | 139 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()
|
D | Entry.cpp | 44 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()
|
D | InputDispatcher.cpp | 343 std::vector<PointerCoords> pointerCoords; in createDispatchEntry() local 344 pointerCoords.resize(motionEntry.pointerCount); in createDispatchEntry() 359 pointerCoords[pointerIndex].copyFrom(motionEntry.pointerCoords[pointerIndex]); in createDispatchEntry() 362 pointerCoords[pointerIndex].transform(currTransform); in createDispatchEntry() 365 pointerCoords[pointerIndex].transform(inverseFirstTransform); in createDispatchEntry() 379 pointerCoords.data(), 0 /* xOffset */, 0 /* yOffset */); in createDispatchEntry() 885 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in shouldPruneInboundQueueLocked() 887 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y)); in shouldPruneInboundQueueLocked() 1617 PointerCoords pointerCoords; in enqueueDragEventLocked() local 1618 pointerCoords.copyFrom(motionEntry.pointerCoords[0]); in enqueueDragEventLocked() [all …]
|
D | Entry.h | 177 PointerCoords pointerCoords[MAX_POINTERS]; member 184 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
|
/frameworks/native/services/inputflinger/benchmarks/ |
D | InputDispatcher_benchmarks.cpp | 217 PointerCoords pointerCoords[1]; in generateMotionEvent() local 223 pointerCoords[0].clear(); in generateMotionEvent() 224 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionEvent() 225 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionEvent() 239 /*pointerCount*/ 1, pointerProperties, pointerCoords); in generateMotionEvent() 245 PointerCoords pointerCoords[1]; in generateMotionArgs() local 251 pointerCoords[0].clear(); in generateMotionArgs() 252 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs() 253 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionArgs() 262 pointerProperties, pointerCoords, in generateMotionArgs()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | PointerCountClassifierTest.java | 72 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()
|
/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/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 | 103 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 ==()
|
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() 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()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputShellCommand.java | 119 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | FalsingDataProvider.java | 280 PointerCoords pointerCoords = new PointerCoords(); in unpackMotionEvent() local 281 motionEvent.getHistoricalPointerCoords(j, i, pointerCoords); in unpackMotionEvent() 282 pointerCoordsList.add(pointerCoords); in unpackMotionEvent()
|
/frameworks/base/core/java/android/view/ |
D | MotionEvent.java | 1556 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 1778 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain() 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() [all …]
|