Lines Matching defs:axis

32  * Motion events describe movements in terms of an action code and a set of axis values.
34 * down or up. The axis values describe the position and other movement properties.
38 * and a set of axis values that include the X and Y coordinates of the touch and
142 * The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds
442 * Axis constant: X axis of a motion event.
467 * Axis constant: Y axis of a motion event.
492 * Axis constant: Pressure axis of a motion event.
514 * Axis constant: Size axis of a motion event.
534 * Axis constant: TouchMajor axis of a motion event.
537 * <li>For a touch screen, reports the length of the major axis of an ellipse that
540 * <li>For a touch pad, reports the length of the major axis of an ellipse that
555 * Axis constant: TouchMinor axis of a motion event.
558 * <li>For a touch screen, reports the length of the minor axis of an ellipse that
561 * <li>For a touch pad, reports the length of the minor axis of an ellipse that
567 * When the touch is circular, the major and minor axis lengths will be equal to one another.
578 * Axis constant: ToolMajor axis of a motion event.
581 * <li>For a touch screen, reports the length of the major axis of an ellipse that
583 * <li>For a touch pad, reports the length of the major axis of an ellipse that
589 * When the touch is circular, the major and minor axis lengths will be equal to one another.
603 * Axis constant: ToolMinor axis of a motion event.
606 * <li>For a touch screen, reports the length of the minor axis of an ellipse that
608 * <li>For a touch pad, reports the length of the minor axis of an ellipse that
614 * When the touch is circular, the major and minor axis lengths will be equal to one another.
628 * Axis constant: Orientation axis of a motion event.
633 * An angle of 0 radians indicates that the major axis of contact is oriented
635 * indicates that the major axis of contact is oriented to the right. A negative angle
636 * indicates that the major axis of contact is oriented to the left.
640 * is pointing in relation to the vertical axis of the current orientation of the screen.
655 * Axis constant: Vertical Scroll axis of a motion event.
662 * This axis should be used to scroll views vertically.
673 * Axis constant: Horizontal Scroll axis of a motion event.
680 * This axis should be used to scroll views horizontally.
691 * Axis constant: Z axis of a motion event.
696 * <em>On game pads with two analog joysticks, this axis is often reinterpreted
709 * Axis constant: X Rotation axis of a motion event.
712 * <li>For a joystick, reports the absolute rotation angle about the X axis.
725 * Axis constant: Y Rotation axis of a motion event.
728 * <li>For a joystick, reports the absolute rotation angle about the Y axis.
741 * Axis constant: Z Rotation axis of a motion event.
744 * <li>For a joystick, reports the absolute rotation angle about the Z axis.
746 * <em>On game pads with two analog joysticks, this axis is often reinterpreted
759 * Axis constant: Hat X axis of a motion event.
775 * Axis constant: Hat Y axis of a motion event.
791 * Axis constant: Left Trigger axis of a motion event.
807 * Axis constant: Right Trigger axis of a motion event.
823 * Axis constant: Throttle axis of a motion event.
839 * Axis constant: Rudder axis of a motion event.
855 * Axis constant: Wheel axis of a motion event.
871 * Axis constant: Gas axis of a motion event.
888 * Axis constant: Brake axis of a motion event.
904 * Axis constant: Distance axis of a motion event.
921 * Axis constant: Tilt axis of a motion event.
939 * Axis constant: Generic 1 axis of a motion event.
940 * The interpretation of a generic axis is device-specific.
950 * Axis constant: Generic 2 axis of a motion event.
951 * The interpretation of a generic axis is device-specific.
961 * Axis constant: Generic 3 axis of a motion event.
962 * The interpretation of a generic axis is device-specific.
972 * Axis constant: Generic 4 axis of a motion event.
973 * The interpretation of a generic axis is device-specific.
983 * Axis constant: Generic 5 axis of a motion event.
984 * The interpretation of a generic axis is device-specific.
994 * Axis constant: Generic 6 axis of a motion event.
995 * The interpretation of a generic axis is device-specific.
1005 * Axis constant: Generic 7 axis of a motion event.
1006 * The interpretation of a generic axis is device-specific.
1016 * Axis constant: Generic 8 axis of a motion event.
1017 * The interpretation of a generic axis is device-specific.
1027 * Axis constant: Generic 9 axis of a motion event.
1028 * The interpretation of a generic axis is device-specific.
1038 * Axis constant: Generic 10 axis of a motion event.
1039 * The interpretation of a generic axis is device-specific.
1049 * Axis constant: Generic 11 axis of a motion event.
1050 * The interpretation of a generic axis is device-specific.
1060 * Axis constant: Generic 12 axis of a motion event.
1061 * The interpretation of a generic axis is device-specific.
1071 * Axis constant: Generic 13 axis of a motion event.
1072 * The interpretation of a generic axis is device-specific.
1082 * Axis constant: Generic 14 axis of a motion event.
1083 * The interpretation of a generic axis is device-specific.
1093 * Axis constant: Generic 15 axis of a motion event.
1094 * The interpretation of a generic axis is device-specific.
1104 * Axis constant: Generic 16 axis of a motion event.
1105 * The interpretation of a generic axis is device-specific.
1114 // NOTE: If you add a new axis here you must also add it to:
1212 // NOTE: If you add a new axis here you must also add it to:
1376 int axis, int pointerIndex, int historyPos);
1378 int axis, int pointerIndex, int historyPos);
1390 private static native String nativeAxisToString(int axis);
1943 * @param axis The axis identifier for the axis value to retrieve.
1948 public final float getAxisValue(int axis) {
1949 return nativeGetAxisValue(mNativePtr, axis, 0, HISTORY_CURRENT);
2068 * Returns the length of the major axis of an ellipse that describes the touch
2082 * Returns the length of the minor axis of an ellipse that describes the touch
2096 * Returns the length of the major axis of an ellipse that describes the size of
2112 * Returns the length of the minor axis of an ellipse that describes the size of
2131 * An angle of 0 radians indicates that the major axis of contact is oriented
2133 * indicates that the major axis of contact is oriented to the right. A negative angle
2134 * indicates that the major axis of contact is oriented to the left.
2147 * Returns the value of the requested axis for the given pointer <em>index</em>
2150 * @param axis The axis identifier for the axis value to retrieve.
2153 * @return The value of the axis, or 0 if the axis is not available.
2158 public final float getAxisValue(int axis, int pointerIndex) {
2159 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, HISTORY_CURRENT);
2467 * @param axis The axis identifier for the axis value to retrieve.
2476 public final float getHistoricalAxisValue(int axis, int pos) {
2477 return nativeGetAxisValue(mNativePtr, axis, 0, pos);
2553 * Returns a historical touch major axis coordinate, as per {@link #getTouchMajor(int)}, that
2571 * Returns a historical touch minor axis coordinate, as per {@link #getTouchMinor(int)}, that
2589 * Returns a historical tool major axis coordinate, as per {@link #getToolMajor(int)}, that
2607 * Returns a historical tool minor axis coordinate, as per {@link #getToolMinor(int)}, that
2643 * Returns the historical value of the requested axis, as per {@link #getAxisValue(int, int)},
2647 * @param axis The axis identifier for the axis value to retrieve.
2652 * @return The value of the axis, or 0 if the axis is not available.
2657 public final float getHistoricalAxisValue(int axis, int pointerIndex, int pos) {
2658 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, pos);
3082 * Returns a string that represents the symbolic name of the specified axis
3085 * @param axis The axis.
3086 * @return The symbolic name of the specified axis.
3088 public static String axisToString(int axis) {
3089 String symbolicName = nativeAxisToString(axis);
3090 return symbolicName != null ? LABEL_PREFIX + symbolicName : Integer.toString(axis);
3094 * Gets an axis by its symbolic name such as "AXIS_X" or an
3097 * @param symbolicName The symbolic name of the axis.
3098 * @return The axis or -1 if not found.
3104 int axis = nativeAxisFromString(symbolicName);
3105 if (axis >= 0) {
3106 return axis;
3292 * The length of the major axis of an ellipse that describes the touch area at
3302 * The length of the minor axis of an ellipse that describes the touch area at
3312 * The length of the major axis of an ellipse that describes the size of
3324 * The length of the minor axis of an ellipse that describes the size of
3337 * An angle of 0 radians indicates that the major axis of contact is oriented
3339 * indicates that the major axis of contact is oriented to the right. A negative angle
3340 * indicates that the major axis of contact is oriented to the left.
3397 * Gets the value associated with the specified axis.
3399 * @param axis The axis identifier for the axis value to retrieve.
3400 * @return The value associated with the axis, or 0 if none.
3405 public float getAxisValue(int axis) {
3406 switch (axis) {
3426 if (axis < 0 || axis > 63) {
3430 final long axisBit = 0x8000000000000000L >>> axis;
3434 final int index = Long.bitCount(bits & ~(0xFFFFFFFFFFFFFFFFL >>> axis));
3441 * Sets the value associated with the specified axis.
3443 * @param axis The axis identifier for the axis value to assign.
3449 public void setAxisValue(int axis, float value) {
3450 switch (axis) {
3479 if (axis < 0 || axis > 63) {
3483 final long axisBit = 0x8000000000000000L >>> axis;
3484 final int index = Long.bitCount(bits & ~(0xFFFFFFFFFFFFFFFFL >>> axis));