HomeSort by relevance Sort by last modified time
    Searched refs:getAxisValue (Results 1 - 25 of 34) sorted by null

1 2

  /frameworks/native/libs/input/tests/
InputEvent_test.cpp 49 ASSERT_EQ(0, coords.getAxisValue(0))
50 << "getAxisValue should return zero because axis is not present";
51 ASSERT_EQ(0, coords.getAxisValue(1))
52 << "getAxisValue should return zero because axis is not present";
59 ASSERT_EQ(0, coords.getAxisValue(0))
60 << "getAxisValue should return zero because axis is not present";
61 ASSERT_EQ(5, coords.getAxisValue(1))
62 << "getAxisValue should return value of axis";
70 ASSERT_EQ(0, coords.getAxisValue(0))
71 << "getAxisValue should return zero because axis is not present"
    [all...]
InputPublisherAndConsumer_test.cpp 205 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X),
207 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y),
209 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset,
211 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset,
213 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_PRESSURE),
215 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_SIZE),
217 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR),
219 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR),
221 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR),
223 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR)
    [all...]
  /frameworks/native/include/input/
Input.h 183 float getAxisValue(int32_t axis) const;
189 return getAxisValue(AMOTION_EVENT_AXIS_X);
193 return getAxisValue(AMOTION_EVENT_AXIS_Y);
391 float getAxisValue(int32_t axis, size_t pointerIndex) const;
394 return getAxisValue(AMOTION_EVENT_AXIS_X, pointerIndex);
398 return getAxisValue(AMOTION_EVENT_AXIS_Y, pointerIndex);
402 return getAxisValue(AMOTION_EVENT_AXIS_PRESSURE, pointerIndex);
406 return getAxisValue(AMOTION_EVENT_AXIS_SIZE, pointerIndex);
410 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, pointerIndex);
414 return getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, pointerIndex)
    [all...]
  /frameworks/native/libs/input/
Input.cpp 160 float PointerCoords::getAxisValue(int32_t axis) const {
199 float value = c.getAxisValue(axis);
359 return getRawPointerCoords(pointerIndex)->getAxisValue(axis);
362 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const {
363 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis);
380 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis);
385 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis);
477 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X) + oldXOffset;
478 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y) + oldYOffset;
483 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION)
    [all...]
InputTransport.cpp 664 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_X),
665 resampleCoords.getAxisValue(AMOTION_EVENT_AXIS_Y),
666 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_X),
667 msgCoords.getAxisValue(AMOTION_EVENT_AXIS_Y));
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
PointerLocationView.java 406 ps.mCoords.getAxisValue(MotionEvent.AXIS_TILT));
507 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1)
509 .append(" Distance=").append(coords.getAxisValue(MotionEvent.AXIS_DISTANCE), 1)
510 .append(" VScroll=").append(coords.getAxisValue(MotionEvent.AXIS_VSCROLL), 1)
511 .append(" HScroll=").append(coords.getAxisValue(MotionEvent.AXIS_HSCROLL), 1)
513 .append(event.getAxisValue(MotionEvent.AXIS_GENERIC_1), 3)
514 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_2), 3).append(")")
515 .append(", (").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_3), 3)
516 .append(", ").append(event.getAxisValue(MotionEvent.AXIS_GENERIC_4), 3)
615 ps.mBoundingLeft = event.getAxisValue(MotionEvent.AXIS_GENERIC_1, i)
    [all...]
  /frameworks/base/core/jni/
android_view_MotionEvent.cpp 259 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset);
261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset);
263 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_PRESSURE));
265 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_SIZE));
267 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR));
269 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR));
271 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR));
273 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR));
275 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION));
308 outValues[index++] = rawPointerCoords->getAxisValue(axis)
    [all...]
  /frameworks/base/services/input/
PointerController.cpp 252 c.getAxisValue(AMOTION_EVENT_AXIS_X),
253 c.getAxisValue(AMOTION_EVENT_AXIS_Y),
254 c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE));
266 const SpriteIcon& icon = c.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE) > 0
268 float x = c.getAxisValue(AMOTION_EVENT_AXIS_X);
269 float y = c.getAxisValue(AMOTION_EVENT_AXIS_Y);
InputDispatcher.cpp 440 getAxisValue(AMOTION_EVENT_AXIS_X));
442 getAxisValue(AMOTION_EVENT_AXIS_Y));
    [all...]
InputReader.cpp     [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
GameControllerInput.java 243 public float getAxisValue(int axisIndex) {
293 final float value = event.getAxisValue(axis);
395 column.setContent(Float.toString(state.getAxisValue(i)));
GameView.java 275 final float value = historyPos < 0 ? event.getAxisValue(axis)
  /frameworks/base/core/java/android/text/method/
BaseMovementMethod.java 101 hscroll = event.getAxisValue(MotionEvent.AXIS_VSCROLL);
103 vscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL);
104 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
TouchPaint.java 427 event.getAxisValue(MotionEvent.AXIS_DISTANCE, j),
428 event.getAxisValue(MotionEvent.AXIS_TILT, j));
  /frameworks/base/native/android/
input.cpp 187 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index);
  /frameworks/base/services/input/tests/
InputReader_test.cpp     [all...]
  /frameworks/base/core/java/android/view/
MotionEvent.java 57 * pointers, such as {@link #getX(int)}, {@link #getY(int)}, {@link #getAxisValue},
131 * {@link #AXIS_HSCROLL} axes. See {@link #getAxisValue(int)} for information
264 * vertical and/or horizontal scroll offsets. Use {@link #getAxisValue(int)}
647 * @see #getAxisValue(int, int)
649 * @see MotionEvent.PointerCoords#getAxisValue(int)
665 * @see #getAxisValue(int, int)
667 * @see MotionEvent.PointerCoords#getAxisValue(int)
683 * @see #getAxisValue(int, int)
685 * @see MotionEvent.PointerCoords#getAxisValue(int)
699 * @see #getAxisValue(int, int
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
MotionEventTest.java 451 assertEquals(10f, coords.getAxisValue(MotionEvent.AXIS_GENERIC_1));
478 assertEquals(10f, coords.getAxisValue(MotionEvent.AXIS_GENERIC_1));
  /packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
HorizontalScrollView.java 684 hscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL);
686 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL);
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
PagedView.java     [all...]
  /frameworks/base/core/java/android/widget/
HorizontalScrollView.java 705 hscroll = -event.getAxisValue(MotionEvent.AXIS_VSCROLL);
707 hscroll = event.getAxisValue(MotionEvent.AXIS_HSCROLL);
    [all...]
  /packages/apps/Browser/src/com/android/browser/view/
ScrollerView.java 814 .getAxisValue(MotionEvent.AXIS_HSCROLL);
832 .getAxisValue(MotionEvent.AXIS_VSCROLL);
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
PagedView.java     [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
PagedView.java     [all...]
  /development/samples/ControllerSample/src/com/example/controllersample/
GameView.java 470 final float value = historyPos < 0 ? event.getAxisValue(axis)
    [all...]

Completed in 425 milliseconds

1 2