Searched defs:axis (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DFontUtils.h50 AxisHelper(JNIEnv* env, jobject axis) : mEnv(env), mAxis(axis) {} argument
/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.h66 int32_t axis; member in struct:android::InputDeviceInfo::MotionRange
91 const MotionRange* getMotionRange(int32_t axis, uint32_t source) const;
94 void addMotionRange(int32_t axis, uint32_t source,
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java137 * Set the rotation on a color axis by the specified values.
139 * <code>axis=0</code> correspond to a rotation around the RED color
140 * <code>axis=1</code> correspond to a rotation around the GREEN color
141 * <code>axis=2</code> correspond to a rotation around the BLUE color
144 public void setRotate(int axis, float degrees) { argument
149 switch (axis) {
H A DTypeface.java450 * @param axes An array of font variation axis tag-value pairs.
518 for (FontVariationAxis axis : axes) {
519 builder.append(axis.getTag());
521 builder.append(Float.toString(axis.getStyleValue()));
1048 public boolean isSupportedAxes(int axis) { argument
1059 return Arrays.binarySearch(mSupportedAxes, axis) >= 0;
/frameworks/native/libs/input/
H A DInputDevice.cpp170 int32_t axis, uint32_t source) const {
174 if (range.axis == axis && range.source == source) {
185 void InputDeviceInfo::addMotionRange(int32_t axis, uint32_t source, float min, float max, argument
187 MotionRange range = { axis, source, min, max, flat, fuzz, resolution };
169 getMotionRange( int32_t axis, uint32_t source) const argument
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
292 getRawAxisValue(int32_t axis, size_t pointerIndex) const argument
296 getAxisValue(int32_t axis, size_t pointerIndex) const argument
312 getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument
317 getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument
532 getLabel(int32_t axis) argument
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DQuaternion.java56 double[] axis = normal(cross(vec1, vec2));
58 set(angle, axis);
73 public void set(double angle, double[] axis) { argument
76 x[1] = axis[0] * sin;
77 x[2] = axis[1] * sin;
78 x[3] = axis[2] * sin;
/frameworks/wilhelm/src/itf/
H A DI3DLocation.cpp220 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.cpp129 SLVec3D axis = *pAxis; local
130 // NTH Check that axis is not (close to) zero vector, length does not matter
136 thiz->mAxis = axis;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewOnGenericMotionEventTest.java119 private static MotionEvent obtainScrollMotionEvent(int axis, int axisValue, int inputDevice) { argument
122 coords.setAxisValue(axis, axisValue);
/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/support/compat/java/android/support/v4/view/
H A DMotionEventCompat.java558 * Get axis value for the first pointer index (may be an
561 * @param axis The axis identifier for the axis value to retrieve.
570 public static float getAxisValue(MotionEvent event, int axis) { argument
571 return event.getAxisValue(axis);
575 * Returns the value of the requested axis for the given pointer <em>index</em>
578 * @param axis The axis identifier for the axis valu
590 getAxisValue(MotionEvent event, int axis, int pointerIndex) argument
[all...]
/frameworks/base/core/java/android/view/
H A DInputDevice.java680 * Gets information about the range of values for a particular {@link MotionEvent} axis.
681 * If the device supports multiple sources, the same axis may have different meanings
682 * for each source. Returns information about the first axis found for any source.
683 * To obtain information about the axis for a specific source, use
686 * @param axis The axis constant.
687 * @return The range of values, or null if the requested axis is not
693 public MotionRange getMotionRange(int axis) { argument
697 if (range.mAxis == axis) {
705 * Gets information about the range of values for a particular {@link MotionEvent} axis
718 getMotionRange(int axis, int source) argument
740 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
819 MotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument
[all...]
H A DMotionEvent.java36 * Motion events describe movements in terms of an action code and a set of axis values.
38 * down or up. The axis values describe the position and other movement properties.
42 * and a set of axis values that include the X and Y coordinates of the touch and
146 * The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds
511 * Axis constant: X axis of a motion event.
536 * Axis constant: Y axis of a motion event.
561 * Axis constant: Pressure axis of a motion event.
583 * Axis constant: Size axis of a motion event.
603 * Axis constant: TouchMajor axis of a motion event.
606 * <li>For a touch screen, reports the length of the major axis o
1485 nativeAxisToString(int axis) argument
1497 nativeGetRawAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument
1500 nativeGetAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument
2135 getAxisValue(int axis) argument
2345 getAxisValue(int axis, int pointerIndex) argument
2699 getHistoricalAxisValue(int axis, int pos) argument
2880 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument
3316 axisToString(int axis) argument
3635 getAxisValue(int axis) argument
3679 setAxisValue(int axis, float value) argument
[all...]
H A DViewRootImpl.java5003 // We pick the axis that has moved the most as the direction of
5004 // the DPAD. When we generate DPAD events for one axis, then the
5005 // other axis is reset -- we don't want to perform DPAD jumps due
5007 // along the other axis.
5076 * Maintains state information for a single trackball axis, generating
5129 float collect(float off, long time, String axis) { argument
5134 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to positive!");
5144 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to negative!");
5166 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " accelerate: off="
5174 if (DEBUG_TRACKBALL) Log.v(TAG, axis
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp227 uint32_t axis = bits.clearFirstMarkedBit(); local
228 outRawPointerCoords->setAxisValue(axis, values[index++]);
303 uint32_t axis = bits.clearFirstMarkedBit(); local
304 outBits |= BitSet64::valueForBit(axis);
305 outValues[index++] = rawPointerCoords->getAxisValue(axis);
486 jint axis) {
487 return env->NewStringUTF(MotionEvent::getLabel(static_cast<int32_t>(axis)));
533 jlong nativePtr, jint axis,
542 return event->getRawAxisValue(axis, pointerIndex);
548 return event->getHistoricalRawAxisValue(axis, pointerInde
485 android_view_MotionEvent_nativeAxisToString(JNIEnv* env, jclass clazz, jint axis) argument
532 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
552 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
[all...]
/frameworks/native/services/inputflinger/
H A DEventHub.cpp106 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { argument
109 switch (axis) {
134 // External stylus gets the pressure axis
136 if (axis == ABS_PRESSURE) {
281 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, argument
285 if (axis >= 0 && axis <= ABS_MAX) {
289 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) {
291 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
293 axis, devic
391 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument
[all...]
H A DInputReader.cpp1031 const char* label = getAxisLabel(range.axis);
1037 snprintf(name, sizeof(name), "%d", range.axis);
1974 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { argument
1975 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo);
1983 const RawAbsoluteAxisInfo& axis, const char* name) {
1984 if (axis.valid) {
1986 name, axis.minValue, axis.maxValue, axis.flat, axis
1982 dumpRawAbsoluteAxisInfo(String8& dump, const RawAbsoluteAxisInfo& axis, const char* name) argument
6961 const Axis& axis = mAxes.valueAt(i); local
6971 addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInfo* info) argument
6988 getCompatAxis(int32_t axis) argument
7004 const Axis& axis = mAxes.valueAt(i); local
7108 Axis& axis = mAxes.editValueAt(i); local
7133 const Axis& axis = mAxes.valueAt(i); local
7155 isCenteredAxis(int32_t axis) argument
7178 Axis& axis = mAxes.editValueAt(i); local
7190 Axis& axis = mAxes.editValueAt(index); local
7251 const Axis& axis = mAxes.valueAt(i); local
7271 setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, float value) argument
7288 Axis& axis = mAxes.editValueAt(i); local
[all...]
/frameworks/base/core/java/android/widget/
H A DGridLayout.java122 * If either a weight or alignment were defined along a given axis then the component
141 * given axis. During layout, GridLayout solves the constraints so as to return the unique
336 * To control which axis should be processed first during the layout operation:
337 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
675 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
678 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
695 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
696 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
743 final Axis axis
2402 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.java117 * If either a weight or alignment were defined along a given axis then the component
136 * given axis. During layout, GridLayout solves the constraints so as to return the unique
325 * To control which axis should be processed first during the layout operation:
326 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
659 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
662 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount());
683 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
684 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
731 final Axis axis
2292 include(GridLayout gl, View c, Spec spec, Axis axis, int size) argument
[all...]
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp399 void addAbsoluteAxis(int32_t deviceId, int axis, argument
410 device->absoluteAxes.add(axis, info);
413 void addRelativeAxis(int32_t deviceId, int32_t axis) { argument
415 device->relativeAxes.add(axis, true);
433 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) { argument
435 device->absoluteAxisValue.replaceValueFor(axis, value);
518 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, argument
522 ssize_t index = device->absoluteAxes.indexOfKey(axis);
532 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const {
535 return device->relativeAxes.indexOfKey(axis) >
633 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument
1488 assertMotionRange(const InputDeviceInfo& info, int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 556 milliseconds