Lines Matching refs:Device
49 struct Device { struct
50 Device* next; argument
60 Device(int fd, const std::string &path); argument
61 ~Device();
101 void CheckTargetDevicesState(std::vector<Device*> targetDevices);
103 …void CheckTargetKeyState(const InputHub::Device *dev, const unsigned long *keyState, const unsigne…
104 void SavePressedKeyState(const Device *dev, int32_t keyCode);
117 size_t ReadInputEvent(int32_t readSize, Device &device);
122 int32_t QueryInputDeviceInfo(int fd, std::unique_ptr<Device> &device);
123 void QueryEventInfo(int fd, std::unique_ptr<Device> &device);
131 void GetMSCBits(int fd, std::unique_ptr<Device> &device);
132 void GetLEDBits(int fd, std::unique_ptr<Device> &device);
133 void GetSwitchBits(int fd, std::unique_ptr<Device> &device);
134 void GetRepeatBits(int fd, std::unique_ptr<Device> &device);
139 int32_t MakeDevice(int fd, std::unique_ptr<Device> device);
144 int32_t RegisterDeviceForEpollLocked(const Device &device);
145 void AddDeviceLocked(std::unique_ptr<Device> device);
146 void CloseDeviceLocked(Device &device);
147 void CloseDeviceForAllLocked(Device &device);
148 int32_t UnregisterDeviceFromEpollLocked(const Device &device) const;
154 Device* GetDeviceByPathLocked(const std::string &devicePath);
155 Device* GetDeviceByFdLocked(int fd);
156 Device* GetSupportDeviceByFd(int fd);
161 bool IsCuror(Device *device);
163 bool IsTouchPad(Device *device);
179 int32_t QueryLocalTouchScreenInfo(int fd, std::unique_ptr<Device> &device);
181 …size_t CollectEvent(RawEvent *buffer, size_t &capacity, Device *device, struct input_event readBuf…
190 …void RecordDeviceChangeStates(Device *device, struct input_event readBuffer[], const size_t count);
191 void MatchAndDealEvent(Device *device, const RawEvent &event);
193 void DealNormalKeyEvent(Device *device, const RawEvent &event);
205 std::vector<Device*> CollectTargetDevices();
222 std::vector<std::unique_ptr<Device>> openingDevices_;
223 std::vector<std::unique_ptr<Device>> closingDevices_;
224 std::unordered_map<std::string, std::unique_ptr<Device>> devices_;