/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 205 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, position.x); in createTouchMotionEventStream() 273 computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, in computeAndCheckQuadraticVelocity() 294 case AMOTION_EVENT_AXIS_X: in TEST() 314 EXPECT_EQ(computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, in TEST_F() 317 AMOTION_EVENT_AXIS_X, DEFAULT_POINTER_ID)); in TEST_F() 327 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/0, /*velocity=*/200); in TEST_F() 328 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/26U, /*velocity=*/400); in TEST_F() 329 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, /*id=*/27U, /*velocity=*/650); in TEST_F() 330 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_X, MAX_POINTER_ID, /*velocity=*/750); in TEST_F() 337 EXPECT_EQ(*(computedVelocity.getVelocity(AMOTION_EVENT_AXIS_X, /*id=*/0U)), 200); in TEST_F() [all …]
|
D | InputVerifier_test.cpp | 43 coords.back().setAxisValue(AMOTION_EVENT_AXIS_X, 75); in TEST()
|
D | InputEvent_test.cpp | 298 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in SetUp() 309 mSamples[0].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 20); in SetUp() 320 mSamples[1].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 110); in SetUp() 331 mSamples[1].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 120); in SetUp() 343 mSamples[2].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 210); in SetUp() 353 mSamples[2].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 220); in SetUp() 819 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); in TEST_F() 880 pointerCoords.back().setAxisValue(AMOTION_EVENT_AXIS_X, x); in createMotionEvent() 1094 pc.setAxisValue(AMOTION_EVENT_AXIS_X, rawCoords.x); in TEST_F()
|
D | TouchResampling_test.cpp | 111 coords.back().setAxisValue(AMOTION_EVENT_AXIS_X, pointer.x); in publishSimpleMotionEvent() 188 motionEvent->getHistoricalAxisValue(AMOTION_EVENT_AXIS_X, in consumeInputEventEntries() 191 motionEvent->getHistoricalRawAxisValue(AMOTION_EVENT_AXIS_X, in consumeInputEventEntries()
|
/frameworks/native/services/inputflinger/reader/mapper/gestures/ |
D | GestureConverter.cpp | 120 info.addMotionRange(AMOTION_EVENT_AXIS_X, SOURCE, mBoundsInLogicalDisplay.left, in populateMotionRanges() 347 coords.setAxisValue(AMOTION_EVENT_AXIS_X, coords.getAxisValue(AMOTION_EVENT_AXIS_X) + deltaX); in handleScroll() 460 coords.setAxisValue(AMOTION_EVENT_AXIS_X, xCoord); in handleMultiFingerSwipe() 484 coords.setAxisValue(AMOTION_EVENT_AXIS_X, in handleMultiFingerSwipe() 485 coords.getAxisValue(AMOTION_EVENT_AXIS_X) + rotatedDeltaX); in handleMultiFingerSwipe() 544 mFakeFingerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 0.f - mPinchFingerSeparation / 2); in handlePinch() 547 mFakeFingerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 0.f + mPinchFingerSeparation / 2); in handlePinch() 570 mFakeFingerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 0.f - mPinchFingerSeparation / 2); in handlePinch() 572 mFakeFingerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 0.f + mPinchFingerSeparation / 2); in handlePinch()
|
/frameworks/native/libs/input/ |
D | VelocityControl.cpp | 65 mVelocityTracker.addMovement(eventTime, /*pointerId=*/0, AMOTION_EVENT_AXIS_X, mRawPositionX); in move() 82 std::optional<float> vx = mVelocityTracker.getVelocity(AMOTION_EVENT_AXIS_X, 0); in scaleDeltas() 155 std::optional<float> vx = mVelocityTracker.getVelocity(AMOTION_EVENT_AXIS_X, 0); in scaleDeltas()
|
D | MotionPredictor.cpp | 207 .position.x = coords->getAxisValue(AMOTION_EVENT_AXIS_X), in record() 215 coords->getAxisValue(AMOTION_EVENT_AXIS_X), in record() 302 coords.setAxisValue(AMOTION_EVENT_AXIS_X, predictedPoint.x); in predict()
|
D | VelocityTracker.cpp | 69 {{AMOTION_EVENT_AXIS_X, VelocityTracker::Strategy::LSQ2}, 74 static const std::set<int32_t> PLANAR_AXES = {AMOTION_EVENT_AXIS_X, AMOTION_EVENT_AXIS_Y}; 1031 lsq2.addMovement(mvt.eventTime, pointerId, AMOTION_EVENT_AXIS_X, mvt.position); in getVelocity() 1033 std::optional<float> v = lsq2.getVelocity(AMOTION_EVENT_AXIS_X, pointerId); in getVelocity()
|
D | Input.cpp | 492 scaleAxisValue(*this, AMOTION_EVENT_AXIS_X, windowXScale); in scale() 1068 if (axis == AMOTION_EVENT_AXIS_X || axis == AMOTION_EVENT_AXIS_Y) { in calculateTransformedAxisValue() 1070 static_assert(AMOTION_EVENT_AXIS_X == 0 && AMOTION_EVENT_AXIS_Y == 1); in calculateTransformedAxisValue() 1098 coords.setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in calculateTransformedCoordsInPlace()
|
/frameworks/native/services/inputflinger/benchmarks/ |
D | InputDispatcher_benchmarks.cpp | 57 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionEvent() 85 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_GamepadKeys.h | 94 {AMOTION_EVENT_AXIS_X, -1, 1, ABS_X, 0, 254}, // Left joystick X
|
/frameworks/native/services/inputflinger/tests/ |
D | InputProcessorConverter_test.cpp | 36 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
|
D | NotifyArgs_test.cpp | 60 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, x++); in TEST()
|
D | InputProcessor_test.cpp | 43 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
|
/frameworks/native/include/android/ |
D | input.h | 425 AMOTION_EVENT_AXIS_X = 0, enumerator 1027 AINPUT_MOTION_RANGE_X = AMOTION_EVENT_AXIS_X,
|
/frameworks/base/libs/input/ |
D | TouchSpotController.cpp | 97 c.getAxisValue(AMOTION_EVENT_AXIS_X), c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots() 113 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
|
/frameworks/native/include/input/ |
D | Input.h | 492 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX() 741 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getRawX() 755 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX() 817 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalRawX() 829 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalX()
|
D | InputEventBuilders.h | 43 PointerBuilder& x(float x) { return axis(AMOTION_EVENT_AXIS_X, x); } in x()
|
/frameworks/native/services/inputflinger/ |
D | PointerChoreographer.cpp | 252 newArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in processMouseEventLocked() 279 newArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in processTouchpadEventLocked() 291 newArgs.pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, in processTouchpadEventLocked() 323 const float x = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X); in processDrawingTabletEventLocked() 405 const float x = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X); in processStylusHoverEventLocked()
|
D | UnwantedInteractionBlocker.cpp | 237 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_X, AINPUT_SOURCE_TOUCHSCREEN); in createPalmFilterDeviceInfo() 630 touches.back().x = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X); in getTouches()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 92 info.addMotionRange(AMOTION_EVENT_AXIS_X, mSource, mBoundsInLogicalDisplay.left, in populateDeviceInfo() 98 info.addMotionRange(AMOTION_EVENT_AXIS_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, 0.0f); in populateDeviceInfo() 298 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
|
D | CapturedTouchpadEventConverter.cpp | 109 tryAddRawMotionRange(/*byref*/ info, AMOTION_EVENT_AXIS_X, ABS_MT_POSITION_X); in populateMotionRanges() 294 coords.setAxisValue(AMOTION_EVENT_AXIS_X, slot.getX()); in makePointerCoordsForSlot()
|
D | TouchInputMapper.cpp | 688 mOrientedRanges.x.axis = AMOTION_EVENT_AXIS_X; in initializeOrientedRanges() 2397 out.setAxisValue(AMOTION_EVENT_AXIS_X, transformed.x); in cookPointerData() 2414 float dx = transformed.x - p.getAxisValue(AMOTION_EVENT_AXIS_X); in cookPointerData() 2736 mPointerGesture.velocityTracker.addMovement(when, id, AMOTION_EVENT_AXIS_X, x); in preparePointerGestures() 2865 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures() 2980 coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures() 2992 coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures() 3039 mPointerGesture.velocityTracker.getVelocity(AMOTION_EVENT_AXIS_X, id); in getFastestFinger() 3283 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in prepareMultiFingerPointerGestures() 3376 mPointerGesture.currentGestureCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, in prepareMultiFingerPointerGestures() [all …]
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | FuzzedInputStream.h | 175 coords.setAxisValue(AMOTION_EVENT_AXIS_X, fdp.ConsumeIntegralInRange<int>(-1000, 1000)); in generateFuzzedMotionArgs()
|
/frameworks/native/services/inputflinger/include/ |
D | NotifyArgsBuilders.h | 116 BitSet64::hasBit(pointerCoords[0].bits, AMOTION_EVENT_AXIS_X) && in build()
|