• Home
  • Raw
  • Download

Lines Matching refs:axis

91 float PointerCoords::getAxisValue(int32_t axis) const {  in getAxisValue()
92 if (axis < 0 || axis > 63 || !BitSet64::hasBit(bits, axis)){ in getAxisValue()
95 return values[BitSet64::getIndexOfBit(bits, axis)]; in getAxisValue()
98 status_t PointerCoords::setAxisValue(int32_t axis, float value) { in setAxisValue() argument
99 if (axis < 0 || axis > 63) { in setAxisValue()
103 uint32_t index = BitSet64::getIndexOfBit(bits, axis); in setAxisValue()
104 if (!BitSet64::hasBit(bits, axis)) { in setAxisValue()
111 tooManyAxes(axis); in setAxisValue()
114 BitSet64::markBit(bits, axis); in setAxisValue()
124 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue() argument
125 float value = c.getAxisValue(axis); in scaleAxisValue()
127 c.setAxisValue(axis, value * scaleFactor); in scaleAxisValue()
173 void PointerCoords::tooManyAxes(int axis) { in tooManyAxes() argument
175 "cannot contain more than %d axis values.", axis, int(MAX_AXES)); in tooManyAxes()
289 float MotionEvent::getRawAxisValue(int32_t axis, size_t pointerIndex) const { in getRawAxisValue() argument
290 return getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getRawAxisValue()
293 float MotionEvent::getAxisValue(int32_t axis, size_t pointerIndex) const { in getAxisValue() argument
294 float value = getRawPointerCoords(pointerIndex)->getAxisValue(axis); in getAxisValue()
295 switch (axis) { in getAxisValue()
309 float MotionEvent::getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, in getHistoricalRawAxisValue() argument
311 return getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalRawAxisValue()
314 float MotionEvent::getHistoricalAxisValue(int32_t axis, size_t pointerIndex, in getHistoricalAxisValue() argument
316 float value = getHistoricalRawPointerCoords(pointerIndex, historicalIndex)->getAxisValue(axis); in getHistoricalAxisValue()
317 switch (axis) { in getHistoricalAxisValue()
525 const char* MotionEvent::getLabel(int32_t axis) { in getLabel() argument
526 return getAxisLabel(axis); in getLabel()