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

12

/frameworks/base/tools/aapt/
H A DResourceFilter.cpp30 int axis; local
32 if (AaptGroupEntry::parseNamePart(part, &axis, &value)) {
45 ssize_t index = mData.indexOfKey(axis);
47 mData.add(axis, SortedVector<uint32_t>());
49 SortedVector<uint32_t>& sv = mData.editValueFor(axis);
53 if (axis == AXIS_LANGUAGE) {
73 ResourceFilter::match(int axis, uint32_t value) const argument
79 ssize_t index = mData.indexOfKey(axis);
81 // we didn't request anything on this axis so take everything
89 ResourceFilter::match(int axis, cons argument
[all...]
H A DResourceFilter.h22 bool match(int axis, uint32_t value) const;
23 bool match(int axis, const ResTable_config& config) const;
25 const SortedVector<uint32_t>* configsForAxis(int axis) const;
H A DAaptAssets.cpp153 AaptGroupEntry::parseNamePart(const String8& part, int* axis, uint32_t* value) argument
159 *axis = AXIS_MCC;
166 *axis = AXIS_MNC;
173 *axis = AXIS_LANGUAGE;
181 *axis = AXIS_LANGUAGE;
188 *axis = AXIS_LAYOUTDIR;
195 *axis = AXIS_SMALLESTSCREENWIDTHDP;
202 *axis = AXIS_SCREENWIDTHDP;
209 *axis = AXIS_SCREENHEIGHTDP;
216 *axis
309 getConfigValueForAxis(const ResTable_config& config, int axis) argument
354 configSameExcept(const ResTable_config& config, const ResTable_config& otherConfig, int axis) argument
[all...]
/frameworks/native/libs/input/
H A DInput.cpp160 float PointerCoords::getAxisValue(int32_t axis) const {
161 if (axis < 0 || axis > 63) {
165 uint64_t axisBit = 1LL << axis;
173 status_t PointerCoords::setAxisValue(int32_t axis, float value) { argument
174 if (axis < 0 || axis > 63) {
178 uint64_t axisBit = 1LL << axis;
186 tooManyAxes(axis);
198 static inline void scaleAxisValue(PointerCoords& c, int axis, floa argument
242 tooManyAxes(int axis) argument
358 getRawAxisValue(int32_t axis, size_t pointerIndex) const argument
362 getAxisValue(int32_t axis, size_t pointerIndex) const argument
378 getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument
383 getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const 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.cpp144 ALOGD("mapAxis: scanCode=%d ~ Result mode=%d, axis=%d, highAxis=%d, "
147 outAxisInfo->mode, outAxisInfo->axis, outAxisInfo->highAxis,
178 } else if (keywordToken == "axis") {
271 ALOGE("%s: Expected axis scan code number, got '%s'.", mTokenizer->getLocation().string(),
276 ALOGE("%s: Duplicate entry for axis scan code '%s'.", mTokenizer->getLocation().string(),
290 axisInfo.axis = getAxisByLabel(axisToken.string());
291 if (axisInfo.axis < 0) {
292 ALOGE("%s: Expected inverted axis label, got '%s'.",
310 axisInfo.axis = getAxisByLabel(lowAxisToken.string());
311 if (axisInfo.axis <
[all...]
/frameworks/native/include/input/
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 DInputDevice.h61 int32_t axis; member in struct:android::InputDeviceInfo::MotionRange
84 const MotionRange* getMotionRange(int32_t axis, uint32_t source) const;
87 void addMotionRange(int32_t axis, uint32_t source,
H A DInput.h175 // Values of axes that are stored in this structure packed in order by axis id
176 // for each axis that is present in the structure according to 'bits'.
183 float getAxisValue(int32_t axis) const;
184 status_t setAxisValue(int32_t axis, float value);
209 void tooManyAxes(int axis);
381 float getRawAxisValue(int32_t axis, size_t pointerIndex) const;
391 float getAxisValue(int32_t axis, size_t pointerIndex) const;
438 float getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex,
451 float getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const;
/frameworks/base/core/java/android/view/
H A DInputDevice.java382 int axis = in.readInt();
383 if (axis < 0) {
386 addMotionRange(axis, in.readInt(), in.readFloat(), in.readFloat(), in.readFloat(),
592 * Gets information about the range of values for a particular {@link MotionEvent} axis.
593 * If the device supports multiple sources, the same axis may have different meanings
594 * for each source. Returns information about the first axis found for any source.
595 * To obtain information about the axis for a specific source, use
598 * @param axis The axis constant.
599 * @return The range of values, or null if the requested axis i
605 getMotionRange(int axis) argument
630 getMotionRange(int axis, int source) argument
652 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
705 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
424 * Axis constant: X axis of a motion event.
449 * Axis constant: Y axis of a motion event.
474 * Axis constant: Pressure axis of a motion event.
496 * Axis constant: Size axis of a motion event.
516 * Axis constant: TouchMajor axis of a motion event.
519 * <li>For a touch screen, reports the length of the major axis o
1357 nativeGetRawAxisValue(int nativePtr, int axis, int pointerIndex, int historyPos) argument
1359 nativeGetAxisValue(int nativePtr, int axis, int pointerIndex, int historyPos) argument
1913 getAxisValue(int axis) argument
2123 getAxisValue(int axis, int pointerIndex) argument
2441 getHistoricalAxisValue(int axis, int pos) argument
2622 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument
3053 axisToString(int axis) argument
3350 getAxisValue(int axis) argument
3394 setAxisValue(int axis, float value) argument
[all...]
/frameworks/base/services/input/
H A DInputReader.cpp877 const char* label = getAxisLabel(range.axis);
883 snprintf(name, sizeof(name), "%d", range.axis);
1785 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { argument
1786 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo);
1794 const RawAbsoluteAxisInfo& axis, const char* name) {
1795 if (axis.valid) {
1797 name, axis.minValue, axis.maxValue, axis.flat, axis
1793 dumpRawAbsoluteAxisInfo(String8& dump, const RawAbsoluteAxisInfo& axis, const char* name) argument
6158 const Axis& axis = mAxes.valueAt(i); local
6168 addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInfo* info) argument
6185 getCompatAxis(int32_t axis) argument
6201 const Axis& axis = mAxes.valueAt(i); local
6305 Axis& axis = mAxes.editValueAt(i); local
6330 const Axis& axis = mAxes.valueAt(i); local
6352 isCenteredAxis(int32_t axis) argument
6375 Axis& axis = mAxes.editValueAt(i); local
6387 Axis& axis = mAxes.editValueAt(index); local
6448 const Axis& axis = mAxes.valueAt(i); local
6468 setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, float value) argument
6485 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,
273 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
276 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const;
291 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_
[all...]
H A DEventHub.cpp126 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { argument
129 switch (axis) {
289 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis,
293 if (axis >= 0 && axis <= ABS_MAX) {
297 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
299 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
301 axis, device->identifier.name.string(), device->fd, errno);
319 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const {
320 if (axis >
[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/graphics/java/android/graphics/
H A DColorMatrix.java114 * Set the rotation on a color axis by the specified values.
115 * axis=0 correspond to a rotation around the RED color
116 * axis=1 correspond to a rotation around the GREEN color
117 * axis=2 correspond to a rotation around the BLUE color
119 public void setRotate(int axis, float degrees) { argument
124 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/base/core/jni/
H A Dandroid_view_MotionEvent.cpp223 uint32_t axis = __builtin_ctzll(bits); local
224 uint64_t axisBit = 1LL << axis;
226 outRawPointerCoords->setAxisValue(axis, values[index++]);
304 uint32_t axis = __builtin_ctzll(remainingBits); local
305 uint64_t axisBit = 1LL << axis;
308 outValues[index++] = rawPointerCoords->getAxisValue(axis);
599 jint nativePtr, jint axis, jint pointerIndex, jint historyPos) {
607 return event->getRawAxisValue(axis, pointerIndex);
613 return event->getHistoricalRawAxisValue(axis, pointerIndex, historyPos);
618 jint nativePtr, jint axis, jin
598 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jint nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
617 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jint nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
[all...]
H A Dandroid_view_InputDevice.cpp69 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
/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/base/core/java/android/widget/
H A DGridLayout.java110 * If alignment was defined along a given axis then the component
324 * To control which axis should be processed first during the layout operation:
325 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
662 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
665 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
682 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
683 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
730 final Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
731 final int count = (axis
2266 include(GridLayout gl, View c, Spec spec, Axis axis) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java111 * If alignment was defined along a given axis then the component
324 * To control which axis should be processed first during the layout operation:
325 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
658 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
661 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
682 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
683 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
730 final Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
731 final int count = (axis
2149 include(GridLayout gl, View c, Spec spec, Axis axis) argument
[all...]
/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...]

Completed in 459 milliseconds

12