Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
DInputEvent_test.cpp59 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
69 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F()
84 ASSERT_EQ(OK, coords.setAxisValue(0, 4)); in TEST_F()
100 ASSERT_EQ(OK, coords.setAxisValue(2, 1)); in TEST_F()
117 ASSERT_EQ(OK, coords.setAxisValue(1, 6)); in TEST_F()
135 ASSERT_EQ(OK, coords.setAxisValue(axis, axis)); in TEST_F()
141 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
161 inCoords.setAxisValue(2, 5); in TEST_F()
162 inCoords.setAxisValue(5, 8); in TEST_F()
247 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in initializeEventWithHistory()
[all …]
DInputPublisherAndConsumer_test.cpp177 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, 100 * i); in PublishAndConsumeMotionEvent()
178 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, 200 * i); in PublishAndConsumeMotionEvent()
179 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 0.5 * i); in PublishAndConsumeMotionEvent()
180 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.7 * i); in PublishAndConsumeMotionEvent()
181 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 1.5 * i); in PublishAndConsumeMotionEvent()
182 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 1.7 * i); in PublishAndConsumeMotionEvent()
183 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.5 * i); in PublishAndConsumeMotionEvent()
184 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 2.7 * i); in PublishAndConsumeMotionEvent()
185 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, 3.5 * i); in PublishAndConsumeMotionEvent()
DVelocityTracker_test.cpp169 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_X, entry.positions[pointerId].x); in createMotionEventStream()
170 coords[pointerIndex].setAxisValue(AMOTION_EVENT_AXIS_Y, entry.positions[pointerId].y); in createMotionEventStream()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp37 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
38 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 2); in generateBasicMotionArgs()
39 coords.setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.5); in generateBasicMotionArgs()
DInputClassifier_test.cpp41 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
42 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 1); in generateBasicMotionArgs()
DInputDispatcher_test.cpp958 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, position.x);
959 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, position.y);
1013 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, points[i].x); in generateMotionArgs()
1014 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, points[i].y); in generateMotionArgs()
1600 motionArgs.pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, in TEST_F()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp333 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, xCursorPosition); in sync()
334 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, yCursorPosition); in sync()
335 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in sync()
336 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in sync()
339 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, deltaX); in sync()
340 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, deltaY); in sync()
344 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in sync()
429 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_VSCROLL, vscroll); in sync()
430 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_HSCROLL, hscroll); in sync()
DTouchInputMapper.cpp1646 coords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pressure); in applyExternalStylusTouchState()
2245 out.setAxisValue(AMOTION_EVENT_AXIS_X, xTransformed); in cookPointerData()
2246 out.setAxisValue(AMOTION_EVENT_AXIS_Y, yTransformed); in cookPointerData()
2247 out.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pressure); in cookPointerData()
2248 out.setAxisValue(AMOTION_EVENT_AXIS_SIZE, size); in cookPointerData()
2249 out.setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, touchMajor); in cookPointerData()
2250 out.setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, touchMinor); in cookPointerData()
2251 out.setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, orientation); in cookPointerData()
2252 out.setAxisValue(AMOTION_EVENT_AXIS_TILT, tilt); in cookPointerData()
2253 out.setAxisValue(AMOTION_EVENT_AXIS_DISTANCE, distance); in cookPointerData()
[all …]
DRotaryEncoderInputMapper.cpp120 pointerCoords.setAxisValue(AMOTION_EVENT_AXIS_SCROLL, scroll * mScalingFactor); in sync()
DJoystickInputMapper.cpp347 pointerCoords->setAxisValue(axis, value); in setPointerCoordsAxisValue()
354 pointerCoords->setAxisValue(compatAxis, value); in setPointerCoordsAxisValue()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp200 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionEvent()
201 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionEvent()
227 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 100); in generateMotionArgs()
228 pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 100); in generateMotionArgs()
/frameworks/native/libs/input/
DInput.cpp194 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue() function in android::PointerCoords
223 c.setAxisValue(axis, value * scaleFactor); in scaleAxisValue()
248 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset); in applyOffset()
249 setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset); in applyOffset()
545 c.setAxisValue(AMOTION_EVENT_AXIS_X, (x - mXOffset) / mXScale); in transform()
546 c.setAxisValue(AMOTION_EVENT_AXIS_Y, (y - mYOffset) / mYScale); in transform()
549 c.setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, in transform()
DInputTransport.cpp916 msgCoords.setAxisValue(AMOTION_EVENT_AXIS_X, resampleCoords.getX()); in rewriteMessage()
917 msgCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, resampleCoords.getY()); in rewriteMessage()
1039 resampledCoords.setAxisValue(AMOTION_EVENT_AXIS_X, in resampleTouchState()
1041 resampledCoords.setAxisValue(AMOTION_EVENT_AXIS_Y, in resampleTouchState()
/frameworks/native/include/input/
DInput.h334 status_t setAxisValue(int32_t axis, float value);
/frameworks/base/core/java/android/view/
DMotionEvent.java4030 public void setAxisValue(int axis, float value) { in setAxisValue() method in MotionEvent.PointerCoords
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt33060 method public void setAxisValue(int, float);
/frameworks/base/api/
Dcurrent.txt53359 method public void setAxisValue(int, float);