Home
last modified time | relevance | path

Searched refs:axis (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/data/keyboards/
DVendor_054c_Product_0268.kl41 axis 0x00 X
42 axis 0x01 Y
45 axis 0x02 Z
46 axis 0x05 RZ
49 # axis 0x2c -HAT_Y
50 # axis 0x2d +HAT_X
51 # axis 0x2e +HAT_Y
52 # axis 0x2f -HAT_X
55 axis 0x30 LTRIGGER
58 axis 0x31 RTRIGGER
[all …]
DVendor_045e_Product_028e.kl35 axis 0x00 X flat 4096
36 axis 0x01 Y flat 4096
37 axis 0x03 Z flat 4096
38 axis 0x04 RZ flat 4096
41 axis 0x02 LTRIGGER
42 axis 0x05 RTRIGGER
45 axis 0x10 HAT_X
46 axis 0x11 HAT_Y
DVendor_046d_Product_c216.kl32 axis 0x00 X
33 axis 0x01 Y
34 axis 0x02 Z
35 axis 0x05 RZ
36 axis 0x10 HAT_X
37 axis 0x11 HAT_Y
DVendor_046d_Product_c299.kl49 axis 0x10 HAT_X
50 axis 0x11 HAT_Y
53 axis 0x00 WHEEL
56 axis 0x01 invert GENERIC_1
59 axis 0x02 invert GAS
62 axis 0x05 invert BRAKE
DGeneric.kl409 # Axes that are not mapped will be assigned generic axis numbers by the input subsystem.
410 axis 0x00 X
411 axis 0x01 Y
412 axis 0x02 Z
413 axis 0x03 RX
414 axis 0x04 RY
415 axis 0x05 RZ
416 axis 0x06 THROTTLE
417 axis 0x07 RUDDER
418 axis 0x08 WHEEL
[all …]
DVendor_046d_Product_c294.kl44 axis 0x10 HAT_X
45 axis 0x11 HAT_Y
48 axis 0x00 WHEEL
53 axis 0x01 split 0x7f GAS BRAKE
/frameworks/base/tools/aapt/
DResourceFilter.cpp30 int axis; in parse() local
32 if (AaptGroupEntry::parseNamePart(part, &axis, &value)) { in parse()
45 ssize_t index = mData.indexOfKey(axis); in parse()
47 mData.add(axis, SortedVector<uint32_t>()); in parse()
49 SortedVector<uint32_t>& sv = mData.editValueFor(axis); in parse()
53 if (axis == AXIS_LANGUAGE) { in parse()
73 ResourceFilter::match(int axis, uint32_t value) const in match() argument
79 ssize_t index = mData.indexOfKey(axis); in match()
89 ResourceFilter::match(int axis, const ResTable_config& config) const in match() argument
91 return match(axis, AaptGroupEntry::getConfigValueForAxis(config, axis)); in match()
[all …]
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;
DAaptAssets.cpp153 AaptGroupEntry::parseNamePart(const String8& part, int* axis, uint32_t* value) in parseNamePart() argument
159 *axis = AXIS_MCC; in parseNamePart()
166 *axis = AXIS_MNC; in parseNamePart()
173 *axis = AXIS_LANGUAGE; in parseNamePart()
181 *axis = AXIS_LANGUAGE; in parseNamePart()
188 *axis = AXIS_SMALLESTSCREENWIDTHDP; in parseNamePart()
195 *axis = AXIS_SCREENWIDTHDP; in parseNamePart()
202 *axis = AXIS_SCREENHEIGHTDP; in parseNamePart()
209 *axis = AXIS_SCREENLAYOUTSIZE; in parseNamePart()
216 *axis = AXIS_SCREENLAYOUTLONG; in parseNamePart()
[all …]
/frameworks/base/libs/androidfw/
DInput.cpp158 float PointerCoords::getAxisValue(int32_t axis) const { in getAxisValue()
159 if (axis < 0 || axis > 63) { in getAxisValue()
163 uint64_t axisBit = 1LL << axis; in getAxisValue()
171 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue() argument
172 if (axis < 0 || axis > 63) { in setAxisValue()
176 uint64_t axisBit = 1LL << axis; in setAxisValue()
184 tooManyAxes(axis); in setAxisValue()
196 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue() argument
197 float value = c.getAxisValue(axis); in scaleAxisValue()
199 c.setAxisValue(axis, value * scaleFactor); in scaleAxisValue()
[all …]
DInputDevice.cpp159 int32_t axis, uint32_t source) const { in getMotionRange() argument
163 if (range.axis == axis && range.source == source) { in getMotionRange()
174 void InputDeviceInfo::addMotionRange(int32_t axis, uint32_t source, float min, float max, in addMotionRange() argument
176 MotionRange range = { axis, source, min, max, flat, fuzz }; in addMotionRange()
DKeyLayoutMap.cpp146 outAxisInfo->mode, outAxisInfo->axis, outAxisInfo->highAxis, in mapAxis()
289 axisInfo.axis = getAxisByLabel(axisToken.string()); in parseAxis()
290 if (axisInfo.axis < 0) { in parseAxis()
309 axisInfo.axis = getAxisByLabel(lowAxisToken.string()); in parseAxis()
310 if (axisInfo.axis < 0) { in parseAxis()
325 axisInfo.axis = getAxisByLabel(token.string()); in parseAxis()
326 if (axisInfo.axis < 0) { in parseAxis()
359 axisInfo.mode, axisInfo.axis, axisInfo.highAxis, in parseAxis()
/frameworks/base/core/java/android/webkit/
DAccessibilityInjectorFallback.java163 int axis = binding.getFirstArgument(i); in onKeyEvent() local
165 setCurrentAxis(axis, sendEvent, contentDescription); in onKeyEvent()
188 axis = binding.getSecondArgument(i); in onKeyEvent()
190 traverseGivenAxis(direction, axis, sendEvent, contentDescription); in onKeyEvent()
232 private void setCurrentAxis(int axis, boolean sendEvent, String contentDescription) { in setCurrentAxis() argument
233 mCurrentAxis = axis; in setCurrentAxis()
237 event.getText().add(String.valueOf(axis)); in setCurrentAxis()
277 final int axis = getAxisForGranularity(arguments.getInt( in performAccessibilityAction() local
279 return traverseGivenAxis(direction, axis, true, null); in performAccessibilityAction()
285 final int axis = NAVIGATION_AXIS_SENTENCE; in performAccessibilityAction() local
[all …]
/frameworks/base/core/java/android/view/
DInputDevice.java352 int axis = in.readInt(); in InputDevice() local
353 if (axis < 0) { in InputDevice()
356 addMotionRange(axis, in.readInt(), in InputDevice()
520 public MotionRange getMotionRange(int axis) { in getMotionRange() argument
524 if (range.mAxis == axis) { in getMotionRange()
546 public MotionRange getMotionRange(int axis, int source) { in getMotionRange() argument
550 if (range.mAxis == axis && range.mSource == source) { in getMotionRange()
568 private void addMotionRange(int axis, int source, in addMotionRange() argument
570 mMotionRanges.add(new MotionRange(axis, source, min, max, flat, fuzz)); in addMotionRange()
611 private MotionRange(int axis, int source, float min, float max, float flat, float fuzz) { in MotionRange() argument
[all …]
DMotionEvent.java1358 int axis, int pointerIndex, int historyPos); in nativeGetRawAxisValue() argument
1360 int axis, int pointerIndex, int historyPos); in nativeGetAxisValue() argument
1913 public final float getAxisValue(int axis) { in getAxisValue() argument
1914 return nativeGetAxisValue(mNativePtr, axis, 0, HISTORY_CURRENT); in getAxisValue()
2125 public final float getAxisValue(int axis, int pointerIndex) { in getAxisValue() argument
2126 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, HISTORY_CURRENT); in getAxisValue()
2443 public final float getHistoricalAxisValue(int axis, int pos) { in getHistoricalAxisValue() argument
2444 return nativeGetAxisValue(mNativePtr, axis, 0, pos); in getHistoricalAxisValue()
2624 public final float getHistoricalAxisValue(int axis, int pointerIndex, int pos) { in getHistoricalAxisValue() argument
2625 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, pos); in getHistoricalAxisValue()
[all …]
/frameworks/base/services/input/
DInputReader.cpp892 const char* label = getAxisLabel(range.axis); in dump()
898 snprintf(name, sizeof(name), "%d", range.axis); in dump()
1797 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { in getAbsoluteAxisInfo() argument
1798 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo); in getAbsoluteAxisInfo()
1806 const RawAbsoluteAxisInfo& axis, const char* name) { in dumpRawAbsoluteAxisInfo() argument
1807 if (axis.valid) { in dumpRawAbsoluteAxisInfo()
1809 name, axis.minValue, axis.maxValue, axis.flat, axis.fuzz, axis.resolution); in dumpRawAbsoluteAxisInfo()
2948 mOrientedRanges.x.axis = AMOTION_EVENT_AXIS_X; in configureSurface()
2950 mOrientedRanges.y.axis = AMOTION_EVENT_AXIS_Y; in configureSurface()
2979 mOrientedRanges.touchMajor.axis = AMOTION_EVENT_AXIS_TOUCH_MAJOR; in configureSurface()
[all …]
DEventHub.h130 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses);
170 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
173 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
207 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis,
254 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
257 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const;
272 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const;
DEventHub.cpp126 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { in getAbsAxisUsage() argument
129 switch (axis) { in getAbsAxisUsage()
281 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
285 if (axis >= 0 && axis <= ABS_MAX) { in getAbsoluteAxisInfo()
289 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
291 if(ioctl(device->fd, EVIOCGABS(axis), &info)) { in getAbsoluteAxisInfo()
293 axis, device->identifier.name.string(), device->fd, errno); in getAbsoluteAxisInfo()
311 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const { in hasRelativeAxis()
312 if (axis >= 0 && axis <= REL_MAX) { in hasRelativeAxis()
317 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
[all …]
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd89 <td>Geomagnetic field strength along the x axis.</td>
94 <td>Geomagnetic field strength along the y axis.</td>
98 <td>Geomagnetic field strength along the z axis.</td>
103 <td>Azimuth (angle around the z-axis).</td>
108 <td>Pitch (angle around the x-axis).</td>
112 <td>Roll (angle around the y-axis).</td>
148 <li>Azimuth (degrees of rotation around the z axis). This is the angle between magnetic north
149 and the device's y axis. For example, if the device's y axis is aligned with magnetic north
150 this value is 0, and if the device's y axis is pointing south this value is 180. Likewise, when
151 the y axis is pointing east this value is 90 and when it is pointing west this value is 270.</li>
[all …]
Dsensors_motion.jd85 <td>Acceleration force along the x axis (including gravity).</td>
90 <td>Acceleration force along the y axis (including gravity).</td>
94 <td>Acceleration force along the z axis (including gravity).</td>
99 <td>Force of gravity along the x axis.</td>
104 <td>Force of gravity along the y axis.</td>
108 <td>Force of gravity along the z axis.</td>
113 <td>Rate of rotation around the x axis.</td>
118 <td>Rate of rotation around the y axis.</td>
122 <td>Rate of rotation around the z axis.</td>
127 <td>Acceleration force along the x axis (excluding gravity).</td>
[all …]
/frameworks/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/
Dball_physics.rs64 float2 axis = normalize(vec);
65 float e1 = dot(axis, ballIn->delta);
66 float e2 = dot(axis, bPtr[xin].delta);
69 fv -= axis * e;
71 fv += axis * e;
/frameworks/base/include/androidfw/
DInputDevice.h61 int32_t axis; member
82 const MotionRange* getMotionRange(int32_t axis, uint32_t source) const;
85 void addMotionRange(int32_t axis, uint32_t source,
DInput.h175 float getAxisValue(int32_t axis) const;
176 status_t setAxisValue(int32_t axis, float value);
201 void tooManyAxes(int axis);
373 float getRawAxisValue(int32_t axis, size_t pointerIndex) const;
383 float getAxisValue(int32_t axis, size_t pointerIndex) const;
430 float getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex,
443 float getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const;
DKeyLayoutMap.h43 int32_t axis; member
54 AxisInfo() : mode(MODE_NORMAL), axis(-1), highAxis(-1), splitValue(0), flatOverride(-1) { in AxisInfo()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DCompoundTransform.java91 public RotateComponent(String name, Float3 axis, float angle) { in RotateComponent() argument
93 setAxis(axis); in RotateComponent()
143 public RotateComponent addRotate(String name, Float3 axis, float angle) { in addRotate() argument
144 RotateComponent c = new RotateComponent(name, axis, angle); in addRotate()

123