/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 | ResourceFilter.h | 22 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 D | AaptAssets.cpp | 115 AaptGroupEntry::parseNamePart(const String8& part, int* axis, uint32_t* value) argument 121 *axis = AXIS_MCC; 128 *axis = AXIS_MNC; 135 *axis = AXIS_LANGUAGE; 143 *axis = AXIS_LANGUAGE; 150 *axis = AXIS_SMALLESTSCREENWIDTHDP; 157 *axis = AXIS_SCREENWIDTHDP; 164 *axis = AXIS_SCREENHEIGHTDP; 171 *axis = AXIS_SCREENLAYOUTSIZE; 178 *axis 264 getConfigValueForAxis(const ResTable_config& config, int axis) argument 307 configSameExcept(const ResTable_config& config, const ResTable_config& otherConfig, int axis) argument [all...] |
H A D | AaptAssets.h | 80 static status_t parseNamePart(const String8& part, int* axis, uint32_t* value); 82 static uint32_t getConfigValueForAxis(const ResTable_config& config, int axis); 85 const ResTable_config& otherConfig, int axis);
|
/frameworks/base/core/java/android/view/ |
H A D | InputDevice.java | 368 * Gets information about the range of values for a particular {@link MotionEvent} axis. 369 * If the device supports multiple sources, the same axis may have different meanings 370 * for each source. Returns information about the first axis found for any source. 371 * To obtain information about the axis for a specific source, use 374 * @param axis The axis constant. 375 * @return The range of values, or null if the requested axis is not 382 public MotionRange getMotionRange(int axis) { argument 386 if (range.mAxis == axis) { 394 * Gets information about the range of values for a particular {@link MotionEvent} axis 408 getMotionRange(int axis, int source) argument 429 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz) argument 447 MotionRange(int axis, int source, float min, float max, float flat, float fuzz) 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 425 * Axis constant: X axis of a motion event. 450 * Axis constant: Y axis of a motion event. 475 * Axis constant: Pressure axis of a motion event. 497 * Axis constant: Size axis of a motion event. 517 * Axis constant: TouchMajor axis of a motion event. 520 * <li>For a touch screen, reports the length of the major axis o 1360 nativeGetRawAxisValue(int nativePtr, int axis, int pointerIndex, int historyPos) argument 1362 nativeGetAxisValue(int nativePtr, int axis, int pointerIndex, int historyPos) argument 1906 getAxisValue(int axis) argument 2118 getAxisValue(int axis, int pointerIndex) argument 2404 getHistoricalAxisValue(int axis, int pos) argument 2585 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument 2953 axisToString(int axis) argument 3250 getAxisValue(int axis) argument 3294 setAxisValue(int axis, float value) argument [all...] |
H A D | ViewRootImpl.java | 2990 // We pick the axis that has moved the most as the direction of 2991 // the DPAD. When we generate DPAD events for one axis, then the 2992 // other axis is reset -- we don't want to perform DPAD jumps due 2994 // along the other axis. 4235 * Maintains state information for a single trackball axis, generating 4285 float collect(float off, long time, String axis) { argument 4290 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to positive!"); 4300 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " reversed to negative!"); 4322 if (DEBUG_TRACKBALL) Log.v(TAG, axis + " accelerate: off=" 4330 if (DEBUG_TRACKBALL) Log.v(TAG, axis [all...] |
/frameworks/base/include/ui/ |
H A D | KeyLayoutMap.h | 41 // When split, this is the axis used for values smaller than the split position. 42 int32_t axis; member in struct:android::AxisInfo 44 // When split, this is the axis used for values after higher than the split position. 53 AxisInfo() : mode(MODE_NORMAL), axis(-1), highAxis(-1), splitValue(0), flatOverride(-1) {
|
H A D | Input.h | 199 // Values of axes that are stored in this structure packed in order by axis id 200 // for each axis that is present in the structure according to 'bits'. 207 float getAxisValue(int32_t axis) const; 208 status_t setAxisValue(int32_t axis, float value); 233 void tooManyAxes(int axis); 403 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 413 float getAxisValue(int32_t axis, size_t pointerIndex) const; 460 float getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, 473 float getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const; 805 int32_t axis; member in struct:android::InputDeviceInfo::MotionRange [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | AccessibilityInjector.java | 37 * navigation axis, or reordering the navigation axis, or changing 39 * a given key this class is navigation axis agnostic. It is only 40 * aware of one navigation axis which is in fact the default behavior 75 // the default WebView behavior abstracted as a navigation axis 88 // the current traversal axis 145 int axis = binding.getFirstArgument(i); 147 setCurrentAxis(axis, sendEvent, contentDescription); 170 axis = binding.getSecondArgument(i); 172 traverseGivenAxis(direction, axis, sendEven 214 setCurrentAxis(int axis, boolean sendEvent, String contentDescription) argument 262 traverseGivenAxis(int direction, int axis, boolean sendEvent, String contentDescription) argument [all...] |
/frameworks/base/libs/ui/ |
H A D | KeyLayoutMap.cpp | 128 LOGD("mapAxis: scanCode=%d ~ Result mode=%d, axis=%d, highAxis=%d, " 131 outAxisInfo->mode, outAxisInfo->axis, outAxisInfo->highAxis, 162 } else if (keywordToken == "axis") { 245 LOGE("%s: Expected axis scan code number, got '%s'.", mTokenizer->getLocation().string(), 250 LOGE("%s: Duplicate entry for axis scan code '%s'.", mTokenizer->getLocation().string(), 264 axisInfo.axis = getAxisByLabel(axisToken.string()); 265 if (axisInfo.axis < 0) { 266 LOGE("%s: Expected inverted axis label, got '%s'.", 284 axisInfo.axis = getAxisByLabel(lowAxisToken.string()); 285 if (axisInfo.axis < [all...] |
H A D | Input.cpp | 265 float PointerCoords::getAxisValue(int32_t axis) const { 266 if (axis < 0 || axis > 63) { 270 uint64_t axisBit = 1LL << axis; 278 status_t PointerCoords::setAxisValue(int32_t axis, float value) { argument 279 if (axis < 0 || axis > 63) { 283 uint64_t axisBit = 1LL << axis; 291 tooManyAxes(axis); 303 static inline void scaleAxisValue(PointerCoords& c, int axis, floa argument 347 tooManyAxes(int axis) argument 463 getRawAxisValue(int32_t axis, size_t pointerIndex) const argument 467 getAxisValue(int32_t axis, size_t pointerIndex) const argument 483 getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument 488 getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const argument 1197 getMotionRange( int32_t axis, uint32_t source) const argument 1213 addMotionRange(int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument [all...] |
/frameworks/base/services/input/ |
H A D | EventHub.h | 59 /* Describes an absolute axis. */ 115 * Gets the class that owns an axis, in cases where multiple classes might claim 116 * the same axis for different purposes. 118 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses); 158 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, 161 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0; 195 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, 237 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, 240 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const; 255 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_ [all...] |
H A D | InputReader.cpp | 874 const char* label = getAxisLabel(range.axis); 880 snprintf(name, sizeof(name), "%d", range.axis); 1713 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { argument 1714 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo); 1718 const RawAbsoluteAxisInfo& axis, const char* name) { 1719 if (axis.valid) { 1721 name, axis.minValue, axis.maxValue, axis.flat, axis 1717 dumpRawAbsoluteAxisInfo(String8& dump, const RawAbsoluteAxisInfo& axis, const char* name) argument 5710 const Axis& axis = mAxes.valueAt(i); local 5726 const Axis& axis = mAxes.valueAt(i); local 5827 Axis& axis = mAxes.editValueAt(i); local 5852 const Axis& axis = mAxes.valueAt(i); local 5874 isCenteredAxis(int32_t axis) argument 5897 Axis& axis = mAxes.editValueAt(i); local 5909 Axis& axis = mAxes.editValueAt(index); local 5970 const Axis& axis = mAxes.valueAt(i); local 5993 Axis& axis = mAxes.editValueAt(i); local [all...] |
H A D | EventHub.cpp | 83 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { argument 86 switch (axis) { 238 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, 242 if (axis >= 0 && axis <= ABS_MAX) { 246 if (device && test_bit(axis, device->absBitmask)) { 248 if(ioctl(device->fd, EVIOCGABS(axis), &info)) { 250 axis, device->identifier.name.string(), device->fd, errno); 268 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const { 269 if (axis > [all...] |
H A D | InputReader.h | 616 /* Raw axis information from the driver. */ 848 status_t getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo); 851 const RawAbsoluteAxisInfo& axis, const char* name); 1139 // Raw pointer axis information from the driver. 1580 bool explicitlyMapped; // true if the axis was explicitly assigned an axis id 1625 // Axes indexed by raw ABS_* axis index. 1639 static bool isCenteredAxis(int32_t axis);
|
/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/base/native/android/ |
H A D | input.cpp | 184 int32_t axis, size_t pointer_index) { 185 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); 265 int32_t axis, size_t pointer_index, size_t history_index) { 267 axis, pointer_index, history_index); 183 AMotionEvent_getAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index) argument 264 AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index, size_t history_index) argument
|
/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/libs/ui/tests/ |
H A D | InputEvent_test.cpp | 51 << "getAxisValue should return zero because axis is not present"; 53 << "getAxisValue should return zero because axis is not present"; 55 // Set first axis. 61 << "getAxisValue should return zero because axis is not present"; 63 << "getAxisValue should return value of axis"; 65 // Set an axis with a higher id than all others. (appending value at the end) 72 << "getAxisValue should return zero because axis is not present"; 74 << "getAxisValue should return value of axis"; 76 << "getAxisValue should return zero because axis is not present"; 78 << "getAxisValue should return value of axis"; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 104 * If alignment was defined along a given axis then the component 588 Axis axis = horizontal ? horizontalAxis : verticalAxis; 590 boolean isAtEdge = leading ? (span.min == 0) : (span.max == axis.getCount()); 607 Axis axis = horizontal ? horizontalAxis : verticalAxis; 608 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins(); 655 final Axis axis = horizontal ? horizontalAxis : verticalAxis; 656 final int count = (axis.definedCount != UNDEFINED) ? axis.definedCount : 0; 874 Axis axis 2076 include(View c, Spec spec, GridLayout gridLayout, Axis axis) argument [all...] |
/frameworks/base/native/include/android/ |
H A D | input.h | 347 * 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. 651 /* Get the current length of the major axis of an ellipse that describes the touch area 655 /* Get the current length of the minor axis of an ellipse that describes the touch area 659 /* Get the current length of the major axis of an ellipse that describes the size 665 /* Get the current length of the minor axis of an ellipse that describes the size 673 * An angle of 0 degrees indicates that the major axis of contact is oriented 675 * indicates that the major axis of contact is oriented to the right. A negative angle 676 * indicates that the major axis o [all...] |
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 337 void addAbsoluteAxis(int32_t deviceId, int axis, argument 348 device->absoluteAxes.add(axis, info); 351 void addRelativeAxis(int32_t deviceId, int32_t axis) { argument 353 device->relativeAxes.add(axis, true); 371 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) { argument 373 device->absoluteAxisValue.replaceValueFor(axis, value); 448 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, argument 452 ssize_t index = device->absoluteAxes.indexOfKey(axis); 461 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const { 464 return device->relativeAxes.indexOfKey(axis) > 543 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument 1457 assertMotionRange(const InputDeviceInfo& info, int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_InputManager.cpp | 1250 range.axis, range.source, range.min, range.max, range.flat, range.fuzz);
|