Searched refs:AMOTION_EVENT_AXIS_RELATIVE_X (Results 1 – 8 of 8) sorted by relevance
/aosp12/frameworks/native/libs/input/ |
H A D | Input.cpp | 324 scaleAxisValue(*this, AMOTION_EVENT_AXIS_RELATIVE_X, windowXScale); in scale() 394 if (BitSet64::hasBit(bits, AMOTION_EVENT_AXIS_RELATIVE_X) || in transform() 397 const vec2 relativeXy = rotation.transform(getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in transform() 399 setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, relativeXy.x); in transform() 551 if (axis == AMOTION_EVENT_AXIS_RELATIVE_X || axis == AMOTION_EVENT_AXIS_RELATIVE_Y) { in getHistoricalRawAxisValue() 555 coords->getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in getHistoricalRawAxisValue() 557 return axis == AMOTION_EVENT_AXIS_RELATIVE_X ? relativeXy.x : relativeXy.y; in getHistoricalRawAxisValue() 575 if (axis == AMOTION_EVENT_AXIS_RELATIVE_X || axis == AMOTION_EVENT_AXIS_RELATIVE_Y) { in getHistoricalAxisValue() 579 AMOTION_EVENT_AXIS_RELATIVE_X), in getHistoricalAxisValue() 582 return axis == AMOTION_EVENT_AXIS_RELATIVE_X ? relativeXy.x : relativeXy.y; in getHistoricalAxisValue()
|
/aosp12/frameworks/native/libs/input/tests/ |
H A D | InputEvent_test.cpp | 671 pointerCoords.back().setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in createTouchDownEvent() 698 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 712 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 718 ASSERT_NEAR(event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), in TEST_F() 719 changedEvent.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), 0.001); in TEST_F() 755 ASSERT_EQ(42, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 771 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 783 ASSERT_EQ(-42, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 795 ASSERT_EQ(96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 807 ASSERT_EQ(96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F()
|
/aosp12/frameworks/native/services/inputflinger/reader/mapper/ |
H A D | CursorInputMapper.cpp | 85 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, in populateDeviceInfo() 375 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync() 382 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
|
H A D | TouchInputMapper.cpp | 204 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -x.max, x.max, x.flat, in populateDeviceInfo() 317 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in dump() 2360 out.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in cookPointerData()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 218 outRawPointerCoords->setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, in pointerCoordsToNative() 273 float rawRelX = rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X); in pointerCoordsFromNative() 309 bits.clearBit(AMOTION_EVENT_AXIS_RELATIVE_X); in pointerCoordsFromNative()
|
/aosp12/frameworks/native/include/android/ |
H A D | input.h | 677 AMOTION_EVENT_AXIS_RELATIVE_X = 27, enumerator
|
/aosp12/frameworks/native/services/inputflinger/ |
H A D | InputClassifierConverter.cpp | 271 static_assert(static_cast<common::V1_0::Axis>(AMOTION_EVENT_AXIS_RELATIVE_X) ==
|
/aosp12/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 8783 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, AINPUT_SOURCE_TOUCHPAD); in TEST_F()
|