Searched refs:AMOTION_EVENT_AXIS_RELATIVE_X (Results 1 – 11 of 11) sorted by relevance
/frameworks/native/libs/input/ |
D | Input.cpp | 425 scaleAxisValue(*this, AMOTION_EVENT_AXIS_RELATIVE_X, windowXScale); in scale() 485 if (BitSet64::hasBit(bits, AMOTION_EVENT_AXIS_RELATIVE_X) || in transform() 488 const vec2 relativeXy = rotation.transform(getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in transform() 490 setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, relativeXy.x); in transform() 962 if (axis == AMOTION_EVENT_AXIS_RELATIVE_X || axis == AMOTION_EVENT_AXIS_RELATIVE_Y) { in calculateTransformedAxisValue() 965 {coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in calculateTransformedAxisValue() 967 return axis == AMOTION_EVENT_AXIS_RELATIVE_X ? relativeXy.x : relativeXy.y; in calculateTransformedAxisValue() 993 {coords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in calculateTransformedCoords() 995 out.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, relativeXy.x); in calculateTransformedCoords()
|
/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 700 pointerCoords.back().setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in createMotionEvent() 733 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 747 ASSERT_EQ(-96, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0)); in TEST_F() 753 ASSERT_NEAR(event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), in TEST_F() 754 changedEvent.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), 0.001); in TEST_F() 828 ASSERT_NEAR(rel.x, event.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0), EPSILON); in TEST_F()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 99 info.addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, in populateDeviceInfo() 299 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync() 305 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
|
D | TouchInputMapper.cpp | 158 info.addMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, mSource, -x.max, x.max, x.flat, x.fuzz, in populateDeviceInfo() 256 pointerCoords.getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X), in dump() 2464 out.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, dx); in cookPointerData()
|
/frameworks/native/services/inputflinger/reader/mapper/gestures/ |
D | GestureConverter.cpp | 171 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in handleMove() 195 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0); in handleButtonsChange() 272 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, 0); in releaseAllButtons()
|
/frameworks/native/services/inputflinger/tests/ |
D | TestInputListenerMatchers.h | 101 const auto argX = arg.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X);
|
D | InputDeviceMetricsCollector_test.cpp | 204 .axis(AMOTION_EVENT_AXIS_RELATIVE_X, 100) in TEST_P() 230 .axis(AMOTION_EVENT_AXIS_RELATIVE_X, 1) in TEST_P()
|
D | InputReader_test.cpp | 4691 const float relX = args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X); in TEST_F() 4735 ASSERT_EQ(-20, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X)); in TEST_F() 10418 deviceInfo.getMotionRange(AMOTION_EVENT_AXIS_RELATIVE_X, AINPUT_SOURCE_TOUCHPAD); in TEST_F()
|
/frameworks/native/include/android/ |
D | input.h | 687 AMOTION_EVENT_AXIS_RELATIVE_X = 27, enumerator
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 235 outRawPointerCoords->setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, in pointerCoordsToNative() 442 {AMOTION_EVENT_AXIS_RELATIVE_X, gPointerCoordsClassInfo.relativeX}, in android_view_MotionEvent_nativeGetPointerCoords()
|
/frameworks/native/services/inputflinger/ |
D | InputCommonConverter.cpp | 243 static_assert(static_cast<common::Axis>(AMOTION_EVENT_AXIS_RELATIVE_X) == common::Axis::RELATIVE_X);
|