Searched refs:axis (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/native/libs/input/
H A DInput.cpp91 float PointerCoords::getAxisValue(int32_t axis) const {
92 if (axis < 0 || axis > 63 || !BitSet64::hasBit(bits, axis)){
95 return values[BitSet64::getIndexOfBit(bits, axis)];
98 status_t PointerCoords::setAxisValue(int32_t axis, float value) { argument
99 if (axis < 0 || axis > 63) {
103 uint32_t index = BitSet64::getIndexOfBit(bits, axis);
104 if (!BitSet64::hasBit(bits, axis)) {
124 scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) argument
173 tooManyAxes(int axis) argument
289 getRawAxisValue(int32_t axis, size_t pointerIndex) const argument
293 getAxisValue(int32_t axis, size_t pointerIndex) const argument
309 getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument
314 getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument
525 getLabel(int32_t axis) argument
[all...]
H A DInputDevice.cpp160 int32_t axis, uint32_t source) const {
164 if (range.axis == axis && range.source == source) {
175 void InputDeviceInfo::addMotionRange(int32_t axis, uint32_t source, float min, float max, argument
177 MotionRange range = { axis, source, min, max, flat, fuzz, resolution };
159 getMotionRange( int32_t axis, uint32_t source) const argument
H A DKeyLayoutMap.cpp145 ALOGD("mapAxis: scanCode=%d ~ Result mode=%d, axis=%d, highAxis=%d, "
148 outAxisInfo->mode, outAxisInfo->axis, outAxisInfo->highAxis,
213 } else if (keywordToken == "axis") {
309 ALOGE("%s: Expected axis scan code number, got '%s'.", mTokenizer->getLocation().string(),
314 ALOGE("%s: Duplicate entry for axis scan code '%s'.", mTokenizer->getLocation().string(),
328 axisInfo.axis = getAxisByLabel(axisToken.string());
329 if (axisInfo.axis < 0) {
330 ALOGE("%s: Expected inverted axis label, got '%s'.",
348 axisInfo.axis = getAxisByLabel(lowAxisToken.string());
349 if (axisInfo.axis <
[all...]
/frameworks/native/include/input/
H A DInputDevice.h66 int32_t axis; member in struct:android::InputDeviceInfo::MotionRange
89 const MotionRange* getMotionRange(int32_t axis, uint32_t source) const;
92 void addMotionRange(int32_t axis, uint32_t source,
H A DKeyLayoutMap.h42 // When split, this is the axis used for values smaller than the split position.
43 int32_t axis; member in struct:android::AxisInfo
45 // When split, this is the axis used for values after higher than the split position.
54 AxisInfo() : mode(MODE_NORMAL), axis(-1), highAxis(-1), splitValue(0), flatOverride(-1) {
H A DInput.h194 // Values of axes that are stored in this structure packed in order by axis id
195 // for each axis that is present in the structure according to 'bits'.
206 float getAxisValue(int32_t axis) const;
207 status_t setAxisValue(int32_t axis, float value);
233 void tooManyAxes(int axis);
400 float getRawAxisValue(int32_t axis, size_t pointerIndex) const;
410 float getAxisValue(int32_t axis, size_t pointerIndex) const;
457 float getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex,
470 float getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const;
570 static const char* getLabel(int32_t axis);
[all...]
H A DInputEventLabels.h24 #define DEFINE_AXIS(axis) { #axis, AMOTION_EVENT_AXIS_##axis }
350 // NOTE: If you add a new axis here you must also add it to several other files.
/frameworks/base/core/java/android/view/
H A DInputDevice.java394 int axis = in.readInt();
395 if (axis < 0) {
398 addMotionRange(axis, in.readInt(), in.readFloat(), in.readFloat(), in.readFloat(),
628 * Gets information about the range of values for a particular {@link MotionEvent} axis.
629 * If the device supports multiple sources, the same axis may have different meanings
630 * for each source. Returns information about the first axis found for any source.
631 * To obtain information about the axis for a specific source, use
634 * @param axis The axis constant.
635 * @return The range of values, or null if the requested axis i
641 getMotionRange(int axis) argument
666 getMotionRange(int axis, int source) argument
688 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
741 MotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
[all...]
H A DMotionEvent.java32 * 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 o
1375 nativeGetRawAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument
1377 nativeGetAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument
1390 nativeAxisToString(int axis) argument
1948 getAxisValue(int axis) argument
2158 getAxisValue(int axis, int pointerIndex) argument
2476 getHistoricalAxisValue(int axis, int pos) argument
2657 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument
3088 axisToString(int axis) argument
3405 getAxisValue(int axis) argument
3449 setAxisValue(int axis, float value) argument
[all...]
/frameworks/native/services/inputflinger/
H A DInputReader.cpp888 const char* label = getAxisLabel(range.axis);
894 snprintf(name, sizeof(name), "%d", range.axis);
1796 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { argument
1797 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo);
1805 const RawAbsoluteAxisInfo& axis, const char* name) {
1806 if (axis.valid) {
1808 name, axis.minValue, axis.maxValue, axis.flat, axis
1804 dumpRawAbsoluteAxisInfo(String8& dump, const RawAbsoluteAxisInfo& axis, const char* name) argument
6218 const Axis& axis = mAxes.valueAt(i); local
6228 addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInfo* info) argument
6245 getCompatAxis(int32_t axis) argument
6261 const Axis& axis = mAxes.valueAt(i); local
6365 Axis& axis = mAxes.editValueAt(i); local
6390 const Axis& axis = mAxes.valueAt(i); local
6412 isCenteredAxis(int32_t axis) argument
6435 Axis& axis = mAxes.editValueAt(i); local
6447 Axis& axis = mAxes.editValueAt(index); local
6508 const Axis& axis = mAxes.valueAt(i); local
6528 setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, float value) argument
6545 Axis& axis = mAxes.editValueAt(i); local
[all...]
H A DEventHub.h80 /* Describes an absolute axis. */
142 * Gets the class that owns an axis, in cases where multiple classes might claim
143 * the same axis for different purposes.
145 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses);
187 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
190 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
224 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis,
275 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
278 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const;
293 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_
[all...]
H A DEventHub.cpp106 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { argument
109 switch (axis) {
274 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, argument
278 if (axis >= 0 && axis <= ABS_MAX) {
282 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
284 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
286 axis, device->identifier.name.string(), device->fd, errno);
304 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const {
305 if (axis >
384 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument
[all...]
H A DInputReader.h744 /* Raw axis information from the driver. */
985 status_t getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo);
989 const RawAbsoluteAxisInfo& axis, const char* name);
1334 // Raw pointer axis information from the driver.
1787 bool explicitlyMapped; // true if the axis was explicitly assigned an axis id
1834 // Axes indexed by raw ABS_* axis index.
1848 static bool isCenteredAxis(int32_t axis);
1849 static int32_t getCompatAxis(int32_t axis);
1851 static void addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInf
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DCompoundTransform.java91 public RotateComponent(String name, Float3 axis, float angle) { argument
93 setAxis(axis);
143 public RotateComponent addRotate(String name, Float3 axis, float angle) { argument
144 RotateComponent c = new RotateComponent(name, axis, angle);
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp225 uint32_t axis = bits.clearFirstMarkedBit(); local
226 outRawPointerCoords->setAxisValue(axis, values[index++]);
302 uint32_t axis = bits.clearFirstMarkedBit(); local
303 outBits |= BitSet64::valueForBit(axis);
304 outValues[index++] = rawPointerCoords->getAxisValue(axis);
595 jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) {
603 return event->getRawAxisValue(axis, pointerIndex);
609 return event->getHistoricalRawAxisValue(axis, pointerIndex, historyPos);
614 jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) {
622 return event->getAxisValue(axis, pointerInde
594 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
613 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
723 android_view_MotionEvent_nativeAxisToString(JNIEnv* env, jclass clazz, jint axis) argument
[all...]
H A Dandroid_view_InputDevice.cpp69 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java139 * Set the rotation on a color axis by the specified values.
141 * <code>axis=0</code> correspond to a rotation around the RED color
142 * <code>axis=1</code> correspond to a rotation around the GREEN color
143 * <code>axis=2</code> correspond to a rotation around the BLUE color
146 public void setRotate(int axis, float degrees) { argument
151 switch (axis) {
/frameworks/base/native/android/
H A Dinput.cpp186 int32_t axis, size_t pointer_index) {
187 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index);
267 int32_t axis, size_t pointer_index, size_t history_index) {
269 axis, pointer_index, history_index);
185 AMotionEvent_getAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index) argument
266 AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index, size_t history_index) argument
/frameworks/wilhelm/src/itf/
H A DI3DLocation.c220 SLVec3D axis = *pAxis; local
221 // NTH Check that axis is not (close to) zero vector, length does not matter
231 thiz->mAxis = axis;
H A DI3DMacroscopic.c129 SLVec3D axis = *pAxis; local
130 // NTH Check that axis is not (close to) zero vector, length does not matter
136 thiz->mAxis = axis;
/frameworks/native/libs/input/tests/
H A DInputEvent_test.cpp50 << "getAxisValue should return zero because axis is not present";
52 << "getAxisValue should return zero because axis is not present";
54 // Set first axis.
60 << "getAxisValue should return zero because axis is not present";
62 << "getAxisValue should return value of axis";
64 // Set an axis with a higher id than all others. (appending value at the end)
71 << "getAxisValue should return zero because axis is not present";
73 << "getAxisValue should return value of axis";
75 << "getAxisValue should return zero because axis is not present";
77 << "getAxisValue should return value of axis";
[all...]
/frameworks/native/include/android/
H A Dinput.h347 * Constants that identify each individual axis of a motion event.
348 * Refer to the documentation on the MotionEvent class for descriptions of each axis.
394 // NOTE: If you add a new axis here you must also add it to several other files.
653 /* Get the current length of the major axis of an ellipse that describes the touch area
657 /* Get the current length of the minor axis of an ellipse that describes the touch area
661 /* Get the current length of the major axis of an ellipse that describes the size
667 /* Get the current length of the minor axis of an ellipse that describes the size
675 * An angle of 0 degrees indicates that the major axis of contact is oriented
677 * indicates that the major axis of contact is oriented to the right. A negative angle
678 * indicates that the major axis o
[all...]
/frameworks/base/core/java/android/widget/
H A DGridLayout.java115 * If either a weight or alignment were defined along a given axis then the component
134 * given axis. During layout, GridLayout solves the constraints so as to return the unique
327 * To control which axis should be processed first during the layout operation:
328 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
666 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
669 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
686 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
687 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
734 final Axis axis
2414 include(GridLayout gl, View c, Spec spec, Axis axis, int size) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java111 * If either a weight or alignment were defined along a given axis then the component
130 * given axis. During layout, GridLayout solves the constraints so as to return the unique
316 * To control which axis should be processed first during the layout operation:
317 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
650 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
653 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
674 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
675 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
722 final Axis axis
2289 include(GridLayout gl, View c, Spec spec, Axis axis, int size) argument
[all...]
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp377 void addAbsoluteAxis(int32_t deviceId, int axis, argument
388 device->absoluteAxes.add(axis, info);
391 void addRelativeAxis(int32_t deviceId, int32_t axis) { argument
393 device->relativeAxes.add(axis, true);
411 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) { argument
413 device->absoluteAxisValue.replaceValueFor(axis, value);
496 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, argument
500 ssize_t index = device->absoluteAxes.indexOfKey(axis);
510 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const {
513 return device->relativeAxes.indexOfKey(axis) >
608 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument
1444 assertMotionRange(const InputDeviceInfo& info, int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument
[all...]

Completed in 6246 milliseconds

12