Lines Matching refs:axis

93     virtual bool hasRelativeAxis(int32_t axis) const override;
94 virtual bool hasAbsoluteAxis(int32_t axis) const override;
101 virtual const AbsoluteAxisInfo* getAbsoluteAxisInfo(int32_t axis) const override;
102 virtual status_t getAbsoluteAxisValue(int32_t axis, int32_t* outValue) const override;
239 for (int32_t axis = 0; axis < ABS_MAX; ++axis) { in queryAxisInfo() local
240 if (testBit(axis, mAbsBitmask)) { in queryAxisInfo()
242 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGABS(axis), &info))) { in queryAxisInfo()
244 axis, mPath.c_str(), mFd, errno); in queryAxisInfo()
248 mAbsInfo[axis] = std::unique_ptr<AbsoluteAxisInfo>(new AbsoluteAxisInfo{ in queryAxisInfo()
270 bool EvdevDeviceNode::hasRelativeAxis(int axis) const { in hasRelativeAxis()
271 if (axis >= 0 && axis <= REL_MAX) { in hasRelativeAxis()
272 return testBit(axis, mRelBitmask); in hasRelativeAxis()
277 bool EvdevDeviceNode::hasAbsoluteAxis(int axis) const { in hasAbsoluteAxis()
278 if (axis >= 0 && axis <= ABS_MAX) { in hasAbsoluteAxis()
279 return getAbsoluteAxisInfo(axis) != nullptr; in hasAbsoluteAxis()
284 const AbsoluteAxisInfo* EvdevDeviceNode::getAbsoluteAxisInfo(int32_t axis) const { in getAbsoluteAxisInfo()
285 if (axis < 0 || axis > ABS_MAX) { in getAbsoluteAxisInfo()
289 const auto absInfo = mAbsInfo.find(axis); in getAbsoluteAxisInfo()
343 status_t EvdevDeviceNode::getAbsoluteAxisValue(int32_t axis, int32_t* outValue) const { in getAbsoluteAxisValue() argument
346 if (axis >= 0 && axis <= ABS_MAX) { in getAbsoluteAxisValue()
347 if (testBit(axis, mAbsBitmask)) { in getAbsoluteAxisValue()
349 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGABS(axis), &info))) { in getAbsoluteAxisValue()
351 axis, mPath.c_str(), mFd, errno); in getAbsoluteAxisValue()