Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp169 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
205 case AMOTION_EVENT_AXIS_X: in computeAndCheckVelocity()
244 computeAndCheckVelocity("impulse", motions, AMOTION_EVENT_AXIS_X, 1600); in TEST_F()
255 computeAndCheckVelocity("impulse", motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
256 computeAndCheckVelocity("lsq2", motions, AMOTION_EVENT_AXIS_X, 0); in TEST_F()
267 computeAndCheckVelocity("impulse", motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
268 computeAndCheckVelocity("lsq2", motions, AMOTION_EVENT_AXIS_X, 500); in TEST_F()
298 computeAndCheckVelocity("impulse", motions, AMOTION_EVENT_AXIS_X, 623.577637); in TEST_F()
340 computeAndCheckVelocity("impulse", motions, AMOTION_EVENT_AXIS_X, 872.794617); in TEST_F()
341 computeAndCheckVelocity("lsq2", motions, AMOTION_EVENT_AXIS_X, 951.698181); in TEST_F()
[all …]
DInputEvent_test.cpp238 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory()
248 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 20); in initializeEventWithHistory()
264 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 110); in initializeEventWithHistory()
273 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 120); in initializeEventWithHistory()
284 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 210); in initializeEventWithHistory()
293 pointerCoords[1].setAxisValue(AMOTION_EVENT_AXIS_X, 220); in initializeEventWithHistory()
568 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); in TEST_F()
DInputPublisherAndConsumer_test.cpp160 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
212 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in PublishAndConsumeMotionEvent()
216 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
/frameworks/native/include/input/
DInput.h282 return getAxisValue(AMOTION_EVENT_AXIS_X); in getX()
487 return getRawAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getRawX()
497 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex); in getX()
546 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalRawX()
558 AMOTION_EVENT_AXIS_X, pointerIndex, historicalIndex); in getHistoricalX()
/frameworks/native/libs/input/
DInput.cpp153 scaleAxisValue(*this, AMOTION_EVENT_AXIS_X, windowXScale); in scale()
166 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset); in applyOffset()
326 case AMOTION_EVENT_AXIS_X: in getAxisValue()
348 case AMOTION_EVENT_AXIS_X: in getHistoricalAxisValue()
438 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X) + oldXOffset; in transform()
441 c.setAxisValue(AMOTION_EVENT_AXIS_X, x - mXOffset); in transform()
DInputTransport.cpp876 msgCoords.setAxisValue(AMOTION_EVENT_AXIS_X, resampleCoords.getX()); in rewriteMessage()
999 resampledCoords.setAxisValue(AMOTION_EVENT_AXIS_X, in resampleTouchState()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp76 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, minX, maxX, 0.0f, 0.0f, 0.0f); in populateDeviceInfo()
80 info->addMotionRange(AMOTION_EVENT_AXIS_X, mSource, -1.0f, 1.0f, 0.0f, mXScale, 0.0f); in populateDeviceInfo()
354 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in sync()
360 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
DTouchInputMapper.cpp798 mOrientedRanges.x.axis = AMOTION_EVENT_AXIS_X; in configureSurface()
2284 out.setAxisValue(AMOTION_EVENT_AXIS_X, x); in cookPointerData()
2532 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in dispatchPointerGestures()
2796 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in preparePointerGestures()
2835 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
2948 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in preparePointerGestures()
3194 mPointerGesture.currentGestureCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
3287 .setAxisValue(AMOTION_EVENT_AXIS_X, in preparePointerGestures()
3324 id, index, properties.toolType, coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
3335 id, index, properties.toolType, coords.getAxisValue(AMOTION_EVENT_AXIS_X), in preparePointerGestures()
[all …]
DJoystickInputMapper.cpp225 case AMOTION_EVENT_AXIS_X: in isCenteredAxis()
/frameworks/native/include/android/
Dinput.h409 AMOTION_EVENT_AXIS_X = 0, enumerator
882 AINPUT_MOTION_RANGE_X = AMOTION_EVENT_AXIS_X,
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp37 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
DInputClassifier_test.cpp41 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
DInputDispatcher_test.cpp537 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, x); in injectMotionDown()
575 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs()
DInputReader_test.cpp1878 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), 1); in assertPointerCoords()
4022 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
4046 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
4060 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
4074 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
4088 ASSERT_NEAR(50, args.pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X), 1); in TEST_F()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp197 outRawPointerCoords->setAxisValue(AMOTION_EVENT_AXIS_X, in pointerCoordsToNative()
261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset); in pointerCoordsFromNative()
281 bits.clearBit(AMOTION_EVENT_AXIS_X); in pointerCoordsFromNative()
/frameworks/base/libs/input/
DPointerController.cpp285 c.getAxisValue(AMOTION_EVENT_AXIS_X), in setSpots()
312 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X); in setSpots()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp462 int32_t(motionEntry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in enqueueInboundEventLocked()
982 entry->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in logOutboundMotionDetails()
1317 int32_t x = int32_t(entry->pointerCoords[pointerIndex].getAxisValue(AMOTION_EVENT_AXIS_X)); in findTouchedWindowTargetsLocked()
1399 int32_t x = int32_t(entry->pointerCoords[0].getAxisValue(AMOTION_EVENT_AXIS_X)); in findTouchedWindowTargetsLocked()
2734 args->pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X), in notifyMotion()
/frameworks/native/services/inputflinger/
DInputClassifierConverter.cpp217 static_assert(static_cast<common::V1_0::Axis>(AMOTION_EVENT_AXIS_X) ==