Lines Matching defs:Device

2  * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
141 std::unique_ptr<Device> device = std::move(*openingDevices_.rbegin());
148 DHLOGI("Device with this path %{public}s exists, replaced. \n", devPath.c_str());
192 Device* deviceByFd = GetDeviceByFdLocked(eventItem.data.fd);
198 Device* device = GetSupportDeviceByFd(eventItem.data.fd);
224 bool InputHub::IsCuror(Device *device)
229 bool InputHub::IsTouchPad(Device *device)
245 void InputHub::MatchAndDealEvent(Device *device, const RawEvent &event)
265 void InputHub::DealNormalKeyEvent(Device *device, const RawEvent &event)
287 void InputHub::RecordDeviceChangeStates(Device *device, struct input_event readBuffer[], const size_t count)
309 size_t InputHub::CollectEvent(RawEvent *buffer, size_t &capacity, Device *device, struct input_event readBuffer[],
343 size_t InputHub::ReadInputEvent(int32_t readSize, Device &device)
347 // Device was removed before INotify noticed.
372 std::unique_ptr<Device> device = std::move(*it);
394 std::unique_ptr<Device> device = std::move(*openingDevices_.rbegin());
405 DHLOGI("Device path %{public}s exists, replaced.", devPath.c_str());
468 Device* device = GetDeviceByFdLocked(eventItem.data.fd);
538 DHLOGI("Device node already registered, node path: %{public}s", device->path.c_str());
560 std::unique_ptr<Device> device = std::make_unique<Device>(fd, devicePath);
608 int32_t InputHub::QueryInputDeviceInfo(int fd, std::unique_ptr<Device> &device)
662 void InputHub::QueryEventInfo(int fd, std::unique_ptr<Device> &device)
702 void InputHub::GetMSCBits(int fd, std::unique_ptr<Device> &device)
715 void InputHub::GetLEDBits(int fd, std::unique_ptr<Device> &device)
727 void InputHub::GetSwitchBits(int fd, std::unique_ptr<Device> &device)
740 void InputHub::GetRepeatBits(int fd, std::unique_ptr<Device> &device)
853 int32_t InputHub::MakeDevice(int fd, std::unique_ptr<Device> device)
907 int32_t InputHub::QueryLocalTouchScreenInfo(int fd, std::unique_ptr<Device> &device)
1002 int32_t InputHub::RegisterDeviceForEpollLocked(const Device &device)
1024 void InputHub::AddDeviceLocked(std::unique_ptr<Device> device)
1030 void InputHub::CloseDeviceLocked(Device &device)
1044 void InputHub::CloseDeviceForAllLocked(Device &device)
1055 int32_t InputHub::UnregisterDeviceFromEpollLocked(const Device &device) const
1125 Device* device = GetDeviceByPathLocked(devicePath);
1142 InputHub::Device* InputHub::GetDeviceByPathLocked(const std::string &devicePath)
1153 InputHub::Device* InputHub::GetDeviceByFdLocked(int fd)
1164 InputHub::Device* InputHub::GetSupportDeviceByFd(int fd)
1503 std::vector<InputHub::Device*> InputHub::CollectTargetDevices()
1506 std::vector<InputHub::Device*> tarVec;
1521 void InputHub::SavePressedKeyState(const InputHub::Device *dev, int32_t keyCode)
1544 void InputHub::CheckTargetKeyState(const InputHub::Device *dev, const unsigned long *keyState, const unsigned long len)
1596 void InputHub::CheckTargetDevicesState(std::vector<InputHub::Device*> targetDevices)
1623 std::vector<InputHub::Device*> tarDevices = CollectTargetDevices();
1631 DHLOGI("Clear Device state");
1642 InputHub::Device::Device(int fd, const std::string &path)
1646 DHLOGI("Ctor Device for get event mask, fd: %{public}d, path: %{public}s", fd, path.c_str());
1653 InputHub::Device::~Device()
1658 void InputHub::Device::Close()
1666 int32_t InputHub::Device::Enable()
1683 int32_t InputHub::Device::Disable()
1690 bool InputHub::Device::HasValidFd() const