Searched refs:AMOTION_EVENT_AXIS_RELATIVE_X (Results 1 – 8 of 8) sorted by relevance
/frameworks/native/libs/input/ |
D | Input.cpp | 365 scaleAxisValue(*this, AMOTION_EVENT_AXIS_RELATIVE_X, windowXScale); in scale() 426 if (BitSet64::hasBit(bits, AMOTION_EVENT_AXIS_RELATIVE_X) || in transform() 429 const vec2 relativeXy = rotation.transform(getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in transform() 431 setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, relativeXy.x); in transform() 903 if (axis == AMOTION_EVENT_AXIS_RELATIVE_X || axis == AMOTION_EVENT_AXIS_RELATIVE_Y) { in calculateTransformedAxisValue() 906 {coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in calculateTransformedAxisValue() 908 return axis == AMOTION_EVENT_AXIS_RELATIVE_X ? relativeXy.x : relativeXy.y; in calculateTransformedAxisValue() 934 {coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in calculateTransformedCoords() 936 out.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, relativeXy.x); in calculateTransformedCoords()
|
/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 658 pointerCoords.back().setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in createMotionEvent() 691 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 705 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 711 ASSERT_NEAR(event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), in TEST_F() 712 changedEvent.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), 0.001); in TEST_F() 786 ASSERT_EQ(rel.x, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 90 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, in populateDeviceInfo() 369 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync() 375 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
|
D | TouchInputMapper.cpp | 203 info->addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -x.max, x.max, x.flat, in populateDeviceInfo() 314 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in dump() 2376 out.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in cookPointerData()
|
/frameworks/native/include/android/ |
D | input.h | 680 AMOTION_EVENT_AXIS_RELATIVE_X = 27, enumerator
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 220 outRawPointerCoords->setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, in pointerCoordsToNative() 424 {AMOTION_EVENT_AXIS_RELATIVE_X, gPointerCoordsClassInfo.relativeX}, in android_view_MotionEvent_nativeGetPointerCoords()
|
/frameworks/native/services/inputflinger/ |
D | InputCommonConverter.cpp | 248 static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_RELATIVE_X) == common::Axis::RELATIVE_X);
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 5008 const float relX = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X); in TEST_F() 5052 ASSERT_EQ(-20, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X)); in TEST_F() 9611 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, AINPUT_SOURCE_TOUCHPAD); in TEST_F()
|