Home
last modified time | relevance | path

Searched refs:absInfo (Results 1 – 6 of 6) sorted by relevance

/base/msdp/device_status/tools/vdev/src/
Dvirtual_touchscreen.cpp60 struct input_absinfo absInfo {}; in QueryScreenSize() struct
62 if (QueryAbsInfo(ABS_X, absInfo)) { in QueryScreenSize()
63 screenWidth_ = (absInfo.maximum - absInfo.minimum + 1); in QueryScreenSize()
65 if (QueryAbsInfo(ABS_MT_POSITION_X, absInfo) && in QueryScreenSize()
67 ((absInfo.maximum - absInfo.minimum + 1) > screenWidth_))) { in QueryScreenSize()
68 screenWidth_ = (absInfo.maximum - absInfo.minimum + 1); in QueryScreenSize()
71 if (QueryAbsInfo(ABS_Y, absInfo)) { in QueryScreenSize()
72 screenHeight_ = (absInfo.maximum - absInfo.minimum + 1); in QueryScreenSize()
74 if (QueryAbsInfo(ABS_MT_POSITION_Y, absInfo) && in QueryScreenSize()
76 ((absInfo.maximum - absInfo.minimum + 1) > screenHeight_))) { in QueryScreenSize()
[all …]
Dvirtual_device_builder.cpp297 void VirtualDeviceBuilder::SetAbsValue(const AbsInfo &absInfo) in SetAbsValue() argument
299 uinputDev_.absmin[absInfo.code] = absInfo.minValue; in SetAbsValue()
300 uinputDev_.absmax[absInfo.code] = absInfo.maxValue; in SetAbsValue()
301 uinputDev_.absfuzz[absInfo.code] = absInfo.fuzz; in SetAbsValue()
302 uinputDev_.absflat[absInfo.code] = absInfo.flat; in SetAbsValue()
Dv_input_device.cpp103 bool VInputDevice::QueryAbsInfo(size_t abs, struct input_absinfo &absInfo) in QueryAbsInfo() argument
106 errno_t ret = memset_s(&absInfo, sizeof(absInfo), 0, sizeof(absInfo)); in QueryAbsInfo()
111 return (ioctl(fd_, EVIOCGABS(abs), &absInfo) >= 0); in QueryAbsInfo()
/base/msdp/device_status/tools/vdev/include/
Dvirtual_device.h51 bool QueryAbsInfo(size_t abs, struct input_absinfo &absInfo);
132 inline bool VirtualDevice::QueryAbsInfo(size_t abs, struct input_absinfo &absInfo) in QueryAbsInfo() argument
134 return ((inputDev_ != nullptr) && inputDev_->QueryAbsInfo(abs, absInfo)); in QueryAbsInfo()
Dvirtual_device_builder.h53 void SetAbsValue(const AbsInfo &absInfo);
Dv_input_device.h82 bool QueryAbsInfo(size_t abs, struct input_absinfo &absInfo);