/frameworks/base/tools/aapt/ |
H A D | ResourceFilter.cpp | 30 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 D | AaptAssets.cpp | 153 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/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 114 * 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/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 | 61 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,
|
/frameworks/base/services/input/ |
H A D | EventHub.cpp | 126 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...] |
H A D | InputReader.cpp | 877 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...] |
/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 | 160 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...] |
/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 | 382 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 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 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...] |
H A D | ViewRootImpl.java | 4091 // We pick the axis that has moved the most as the direction of 4092 // the DPAD. When we generate DPAD events for one axis, then the 4093 // other axis is reset -- we don't want to perform DPAD jumps due 4095 // along the other axis. 4164 * Maintains state information for a single trackball axis, generating 4217 float collect(float off, long time, String axis) { argument 4222 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to positive!"); 4232 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to negative!"); 4254 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " accelerate: off=" 4262 if (DEBUG_TRACKBALL) Log.v(TAG, axis [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 223 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...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 110 * 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 D | GridLayout.java | 111 * 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/base/services/input/tests/ |
H A D | InputReader_test.cpp | 367 void addAbsoluteAxis(int32_t deviceId, int axis, argument 378 device->absoluteAxes.add(axis, info); 381 void addRelativeAxis(int32_t deviceId, int32_t axis) { argument 383 device->relativeAxes.add(axis, true); 401 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) { argument 403 device->absoluteAxisValue.replaceValueFor(axis, value); 486 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, argument 490 ssize_t index = device->absoluteAxes.indexOfKey(axis); 500 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const { 503 return device->relativeAxes.indexOfKey(axis) > 598 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument 1434 assertMotionRange(const InputDeviceInfo& info, int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument [all...] |