/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 139 * 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/native/include/input/ |
H A D | KeyLayoutMap.h | 42 // 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 D | InputDevice.h | 66 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,
|
/frameworks/native/libs/input/ |
H A D | InputDevice.cpp | 160 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 D | Input.cpp | 91 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...] |
/frameworks/wilhelm/src/itf/ |
H A D | I3DLocation.c | 220 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 D | I3DMacroscopic.c | 129 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/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | CompoundTransform.java | 91 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/native/android/ |
H A D | input.cpp | 186 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/java/android/view/ |
H A D | InputDevice.java | 394 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 D | MotionEvent.java | 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 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...] |
H A D | ViewRootImpl.java | 4263 // We pick the axis that has moved the most as the direction of 4264 // the DPAD. When we generate DPAD events for one axis, then the 4265 // other axis is reset -- we don't want to perform DPAD jumps due 4267 // along the other axis. 4336 * Maintains state information for a single trackball axis, generating 4389 float collect(float off, long time, String axis) { argument 4394 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to positive!"); 4404 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to negative!"); 4426 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " accelerate: off=" 4434 if (DEBUG_TRACKBALL) Log.v(TAG, axis [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 225 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...] |
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 106 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 D | InputReader.cpp | 888 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...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 115 * 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 D | GridLayout.java | 111 * 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 D | InputReader_test.cpp | 377 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...] |