Lines Matching refs:axis
158 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()
240 void PointerCoords::tooManyAxes(int axis) { in tooManyAxes() argument
242 "cannot contain more than %d axis values.", axis, int(MAX_AXES)); in tooManyAxes()
356 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { in getRawAxisValue() argument
357 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue()
360 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() argument
361 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue()
362 switch (axis) { in getAxisValue()
376 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, in getHistoricalRawAxisValue() argument
378 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue()
381 float MotionEvent::getHistoricalAxisValue(int32_t axis, size_t pointerIndex, in getHistoricalAxisValue() argument
383 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalAxisValue()
384 switch (axis) { in getHistoricalAxisValue()