Home
last modified time | relevance | path

Searched refs:AMOTION_EVENT_AXIS_X (Results 1 – 24 of 24) sorted by relevance

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp171 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
210 case AMOTION_EVENT_AXIS_X: in computeAndCheckVelocity()
249 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
261 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
262 computeAndCheckVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
270 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
271 computeAndCheckVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
301 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
345 computeAndCheckVelocity(VelocityTracker::Strategy::IMPULSE, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
347 computeAndCheckVelocity(VelocityTracker::Strategy::LSQ2, motions, AMOTION_EVENT_AXIS_X, in TEST_F()
[all …]
DInputEvent_test.cpp257 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory()
267 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 20); in initializeEventWithHistory()
284 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 110); in initializeEventWithHistory()
293 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 120); in initializeEventWithHistory()
304 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 210); in initializeEventWithHistory()
313 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 220); in initializeEventWithHistory()
597 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); in TEST_F()
656 pointerCoords.back().setAxisValue(AMOTION_EVENT_AXIS_X, x); in createMotionEvent()
DInputPublisherAndConsumer_test.cpp183 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp84 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, minX, maxX, 0.0f, 0.0f, 0.0f); in populateDeviceInfo()
88 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, 0.0f); in populateDeviceInfo()
367 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, xCursorPosition); in sync()
373 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
DTouchInputMapper.cpp722 mOrientedRanges.x.axis = AMOTION_EVENT_AXIS_X; in initializeOrientedRanges()
2350 out.setAxisValue(AMOTION_EVENT_AXIS_X, xTransformed); in cookPointerData()
2374 float dx = xTransformed - p.getAxisValue(AMOTION_EVENT_AXIS_X); in cookPointerData()
2616 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in dispatchPointerGestures()
2881 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in preparePointerGestures()
2920 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
3033 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in preparePointerGestures()
3282 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
3375 .setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
3411 id, index, properties.toolType, coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
[all …]
DJoystickInputMapper.cpp232 case AMOTION_EVENT_AXIS_X: in isCenteredAxis()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_GamepadKeys.h94 {AMOTION_EVENT_AXIS_X, -1, 1, ABS_X, 0, 254}, // Left joystick X
/frameworks/native/include/input/
DInput.h387 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX()
628 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getRawX()
642 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX()
704 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalRawX()
716 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalX()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp37 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
DInputClassifier_test.cpp44 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
DPreferStylusOverTouch_test.cpp61 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, points[i].x); in generateMotionArgs()
DUnwantedInteractionBlocker_test.cpp99 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, points[i].x); in generateMotionArgs()
124 info.addMotionRange(AMOTION_EVENT_AXIS_X, AINPUT_SOURCE_TOUCHSCREEN, 0, 1599, /*flat*/ 0, in generateTestDeviceInfo()
DInputReader_test.cpp3082 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), scaledAxisEpsilon); in assertPointerCoords()
5965 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
5991 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6005 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6019 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6033 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6057 EXPECT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6081 EXPECT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6105 EXPECT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
6129 EXPECT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
[all …]
DInputDispatcher_test.cpp1349 PointerBuilder& x(float x) { return axis(AMOTION_EVENT_AXIS_X, x); } in x()
1528 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, points[i].x); in generateMotionArgs()
3392 motionArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in TEST_F()
4328 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 300); in testInjectedMotion()
/frameworks/base/libs/input/
DTouchSpotController.cpp88 c.getAxisValue(AMOTION_EVENT_AXIS_X), c.getAxisValue(AMOTION_EVENT_AXIS_Y), in setSpots()
104 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
DPointerController.cpp206 outSpotCoords[index].setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in setSpots()
/frameworks/native/include/android/
Dinput.h422 AMOTION_EVENT_AXIS_X = 0, enumerator
930 AINPUT_MOTION_RANGE_X = AMOTION_EVENT_AXIS_X,
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp215 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionEvent()
243 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs()
/frameworks/native/libs/input/
DInput.cpp359 scaleAxisValue(*this, AMOTION_EVENT_AXIS_X, windowXScale); in scale()
423 setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in transform()
897 if (axis == AMOTION_EVENT_AXIS_X || axis == AMOTION_EVENT_AXIS_Y) { in calculateTransformedAxisValue()
899 static_assert(AMOTION_EVENT_AXIS_X == 0 && AMOTION_EVENT_AXIS_Y == 1); in calculateTransformedAxisValue()
929 out.setAxisValue(AMOTION_EVENT_AXIS_X, xy.x); in calculateTransformedCoords()
DInputTransport.cpp1073 msgCoords.setAxisValue(AMOTION_EVENT_AXIS_X, resampleCoords.getX()); in rewriteMessage()
1196 resampledCoords.setAxisValue(AMOTION_EVENT_AXIS_X, in resampleTouchState()
/frameworks/native/services/inputflinger/
DUnwantedInteractionBlocker.cpp216 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_X, AINPUT_SOURCE_TOUCHSCREEN); in createPalmFilterDeviceInfo()
598 touches.back().x = args.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X); in getTouches()
DInputCommonConverter.cpp218 static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_X) == common::Axis::X);
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp202 outRawPointerCoords->setAxisValue(AMOTION_EVENT_AXIS_X, in pointerCoordsToNative()
415 {AMOTION_EVENT_AXIS_X, gPointerCoordsClassInfo.x}, in android_view_MotionEvent_nativeGetPointerCoords()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp933 motionEntry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in shouldPruneInboundQueueLocked()
1741 entry.pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails()
2069 x = int32_t(entry.pointerCoords[pointerIndex].getAxisValue(AMOTION_EVENT_AXIS_X)); in findTouchedWindowTargetsLocked()
2245 const int32_t x = int32_t(entry.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in findTouchedWindowTargetsLocked()
4004 args->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in notifyMotion()