Home
last modified time | relevance | path

Searched refs:AMOTION_EVENT_AXIS_Y (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp206 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, position.y); in createTouchMotionEventStream()
276 computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_Y, in computeAndCheckQuadraticVelocity()
295 case AMOTION_EVENT_AXIS_Y: in TEST()
318 EXPECT_EQ(computePlanarVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_Y, in TEST_F()
321 AMOTION_EVENT_AXIS_Y, DEFAULT_POINTER_ID)); in TEST_F()
331 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/0, /*velocity=*/1000); in TEST_F()
332 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/26U, /*velocity=*/2000); in TEST_F()
333 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/27U, /*velocity=*/3000); in TEST_F()
334 computedVelocity.addVelocity(AMOTION_EVENT_AXIS_Y, MAX_POINTER_ID, /*velocity=*/4000); in TEST_F()
341 EXPECT_EQ(*(computedVelocity.getVelocity(AMOTION_EVENT_AXIS_Y, /*id=*/0U)), 1000); in TEST_F()
[all …]
DInputEvent_test.cpp299 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in SetUp()
310 mSamples[0].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 21); in SetUp()
321 mSamples[1].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 111); in SetUp()
332 mSamples[1].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 121); in SetUp()
344 mSamples[2].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 211); in SetUp()
354 mSamples[2].pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 221); in SetUp()
425 ASSERT_NEAR(11, event->getHistoricalRawPointerCoords(0, 0)->getAxisValue(AMOTION_EVENT_AXIS_Y), in assertEqualsEventWithHistory()
427 ASSERT_NEAR(21, event->getHistoricalRawPointerCoords(1, 0)->getAxisValue(AMOTION_EVENT_AXIS_Y), in assertEqualsEventWithHistory()
429 ASSERT_NEAR(111, event->getHistoricalRawPointerCoords(0, 1)->getAxisValue(AMOTION_EVENT_AXIS_Y), in assertEqualsEventWithHistory()
431 ASSERT_NEAR(121, event->getHistoricalRawPointerCoords(1, 1)->getAxisValue(AMOTION_EVENT_AXIS_Y), in assertEqualsEventWithHistory()
[all …]
DInputVerifier_test.cpp44 coords.back().setAxisValue(AMOTION_EVENT_AXIS_Y, 300); in TEST()
DTouchResampling_test.cpp112 coords.back().setAxisValue(AMOTION_EVENT_AXIS_Y, pointer.y); in publishSimpleMotionEvent()
194 motionEvent->getHistoricalAxisValue(AMOTION_EVENT_AXIS_Y, in consumeInputEventEntries()
197 motionEvent->getHistoricalRawAxisValue(AMOTION_EVENT_AXIS_Y, in consumeInputEventEntries()
DMotionPredictor_test.cpp56 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in getMotionEvent()
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp122 info.addMotionRange(AMOTION_EVENT_AXIS_Y, SOURCE, mBoundsInLogicalDisplay.top, in populateMotionRanges()
348 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y) + deltaY); in handleScroll()
461 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 0.f); in handleMultiFingerSwipe()
486 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, in handleMultiFingerSwipe()
487 coords.getAxisValue(AMOTION_EVENT_AXIS_Y) + rotatedDeltaY); in handleMultiFingerSwipe()
545 mFakeFingerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 0.f); in handlePinch()
548 mFakeFingerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 0.f); in handlePinch()
571 mFakeFingerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 0.f); in handlePinch()
573 mFakeFingerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_Y, 0.f); in handlePinch()
/frameworks/native/libs/input/
DVelocityControl.cpp66 mVelocityTracker.addMovement(eventTime, /*pointerId=*/0, AMOTION_EVENT_AXIS_Y, mRawPositionY); in move()
83 std::optional<float> vy = mVelocityTracker.getVelocity(AMOTION_EVENT_AXIS_Y, 0); in scaleDeltas()
156 std::optional<float> vy = mVelocityTracker.getVelocity(AMOTION_EVENT_AXIS_Y, 0); in scaleDeltas()
DMotionPredictor.cpp208 .position.y = coords->getAxisValue(AMOTION_EVENT_AXIS_Y), in record()
216 coords->getAxisValue(AMOTION_EVENT_AXIS_Y)); in record()
303 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, predictedPoint.y); in predict()
DInput.cpp493 scaleAxisValue(*this, AMOTION_EVENT_AXIS_Y, windowYScale); 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()
1099 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, xy.y); in calculateTransformedCoordsInPlace()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp58 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionEvent()
86 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionArgs()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_GamepadKeys.h95 {AMOTION_EVENT_AXIS_Y, -1, 1, ABS_Y, 0, 254}, // Left joystick Y
/frameworks/native/services/inputflinger/tests/
DInputProcessorConverter_test.cpp37 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 2); in generateBasicMotionArgs()
DNotifyArgs_test.cpp61 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, y++); in TEST()
DInputProcessor_test.cpp44 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 1); in generateBasicMotionArgs()
/frameworks/native/include/android/
Dinput.h440 AMOTION_EVENT_AXIS_Y = 1, enumerator
1029 AINPUT_MOTION_RANGE_Y = AMOTION_EVENT_AXIS_Y,
/frameworks/base/libs/input/
DTouchSpotController.cpp97 c.getAxisValue(AMOTION_EVENT_AXIS_X), c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots()
114 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y); in setSpots()
/frameworks/native/include/input/
DInput.h496 return getAxisValue(AMOTION_EVENT_AXIS_Y); in getY()
745 return getRawAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getRawY()
763 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex); in getY()
822 AMOTION_EVENT_AXIS_Y, pointerIndex, historicalIndex); in getHistoricalRawY()
834 AMOTION_EVENT_AXIS_Y, pointerIndex, historicalIndex); in getHistoricalY()
DInputEventBuilders.h45 PointerBuilder& y(float y) { return axis(AMOTION_EVENT_AXIS_Y, y); } in y()
/frameworks/native/services/inputflinger/
DPointerChoreographer.cpp253 newArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, y); in processMouseEventLocked()
280 newArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, y); in processTouchpadEventLocked()
293 newArgs.pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, in processTouchpadEventLocked()
324 const float y = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y); in processDrawingTabletEventLocked()
406 const float y = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_Y); in processStylusHoverEventLocked()
DUnwantedInteractionBlocker.cpp247 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_Y, AINPUT_SOURCE_TOUCHSCREEN); in createPalmFilterDeviceInfo()
631 touches.back().y = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y); in getTouches()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp94 info.addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, mBoundsInLogicalDisplay.top, in populateDeviceInfo()
99 info.addMotionRange(AMOTION_EVENT_AXIS_Y, mSource, -1.0f, 1.0f, 0.0f, mYScale, 0.0f); in populateDeviceInfo()
299 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
DCapturedTouchpadEventConverter.cpp110 tryAddRawMotionRange(/*byref*/ info, AMOTION_EVENT_AXIS_Y, ABS_MT_POSITION_Y); in populateMotionRanges()
295 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, slot.getY()); in makePointerCoordsForSlot()
DTouchInputMapper.cpp690 mOrientedRanges.y.axis = AMOTION_EVENT_AXIS_Y; in initializeOrientedRanges()
2398 out.setAxisValue(AMOTION_EVENT_AXIS_Y, transformed.y); in cookPointerData()
2415 float dy = transformed.y - p.getAxisValue(AMOTION_EVENT_AXIS_Y); in cookPointerData()
2737 mPointerGesture.velocityTracker.addMovement(when, id, AMOTION_EVENT_AXIS_Y, y); in preparePointerGestures()
2867 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, in preparePointerGestures()
2981 coords.getAxisValue(AMOTION_EVENT_AXIS_Y), in preparePointerGestures()
2993 coords.getAxisValue(AMOTION_EVENT_AXIS_Y), in preparePointerGestures()
3041 mPointerGesture.velocityTracker.getVelocity(AMOTION_EVENT_AXIS_Y, id); in getFastestFinger()
3285 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, in prepareMultiFingerPointerGestures()
3379 mPointerGesture.currentGestureCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, in prepareMultiFingerPointerGestures()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h176 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, fdp.ConsumeIntegralInRange<int>(-1000, 1000)); in generateFuzzedMotionArgs()
/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h117 BitSet64::hasBit(pointerCoords[0].bits, AMOTION_EVENT_AXIS_Y)) { in build()

12