Lines Matching refs:axis

107     virtual bool hasRelativeAxis(int32_t axis) const override;
108 virtual bool hasAbsoluteAxis(int32_t axis) const override;
115 virtual const AbsoluteAxisInfo* getAbsoluteAxisInfo(int32_t axis) const override;
116 virtual status_t getAbsoluteAxisValue(int32_t axis, int32_t* outValue) const override;
253 for (int32_t axis = 0; axis < ABS_MAX; ++axis) { in queryAxisInfo() local
254 if (testBit(axis, mAbsBitmask)) { in queryAxisInfo()
256 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGABS(axis), &info))) { in queryAxisInfo()
258 axis, mPath.c_str(), mFd, errno); in queryAxisInfo()
262 mAbsInfo[axis] = std::unique_ptr<AbsoluteAxisInfo>(new AbsoluteAxisInfo{ in queryAxisInfo()
284 bool EvdevDeviceNode::hasRelativeAxis(int axis) const { in hasRelativeAxis()
285 if (axis >= 0 && axis <= REL_MAX) { in hasRelativeAxis()
286 return testBit(axis, mRelBitmask); in hasRelativeAxis()
291 bool EvdevDeviceNode::hasAbsoluteAxis(int axis) const { in hasAbsoluteAxis()
292 if (axis >= 0 && axis <= ABS_MAX) { in hasAbsoluteAxis()
293 return getAbsoluteAxisInfo(axis) != nullptr; in hasAbsoluteAxis()
298 const AbsoluteAxisInfo* EvdevDeviceNode::getAbsoluteAxisInfo(int32_t axis) const { in getAbsoluteAxisInfo()
299 if (axis < 0 || axis > ABS_MAX) { in getAbsoluteAxisInfo()
303 const auto absInfo = mAbsInfo.find(axis); in getAbsoluteAxisInfo()
357 status_t EvdevDeviceNode::getAbsoluteAxisValue(int32_t axis, int32_t* outValue) const { in getAbsoluteAxisValue() argument
360 if (axis >= 0 && axis <= ABS_MAX) { in getAbsoluteAxisValue()
361 if (testBit(axis, mAbsBitmask)) { in getAbsoluteAxisValue()
363 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGABS(axis), &info))) { in getAbsoluteAxisValue()
365 axis, mPath.c_str(), mFd, errno); in getAbsoluteAxisValue()