Lines Matching refs:InputHub

48 InputHub::InputHub(bool isPluginMonitor) : epollFd_(-1), iNotifyFd_(-1), inputWd_(-1),
56 InputHub::~InputHub()
61 int32_t InputHub::Initialize()
70 DHLOGI("Init InputHub for device plugin monitor");
87 DHLOGI("Init InputHub for read device events");
93 int32_t InputHub::Release()
117 bool InputHub::IsInputNodeNoNeedScan(const std::string &path)
134 void InputHub::ScanAndRecordInputDevices()
154 size_t InputHub::StartCollectInputEvents(RawEvent *buffer, size_t bufferSize)
174 void InputHub::StopCollectInputEvents()
180 size_t InputHub::GetEvents(RawEvent *buffer, size_t bufferSize)
224 bool InputHub::IsCuror(Device *device)
229 bool InputHub::IsTouchPad(Device *device)
235 bool InputHub::IsTouchPad(const InputDevice &inputDevice)
245 void InputHub::MatchAndDealEvent(Device *device, const RawEvent &event)
257 void InputHub::DealTouchPadEvent(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)
364 size_t InputHub::DeviceIsExists(InputDeviceEvent *buffer, size_t bufferSize)
416 size_t InputHub::StartCollectInputHandler(InputDeviceEvent *buffer, size_t bufferSize)
447 void InputHub::StopCollectInputHandler()
453 void InputHub::GetDeviceHandler()
481 int32_t InputHub::RefreshEpollItem(bool isSleep)
511 std::vector<InputDevice> InputHub::GetAllInputDevices()
521 void InputHub::ScanInputDevices(const std::string &dirName)
533 bool InputHub::IsDeviceRegistered(const std::string &devicePath)
545 int32_t InputHub::OpenInputDeviceLocked(const std::string &devicePath)
582 void InputHub::RecordSkipDevicePath(std::string path)
588 bool InputHub::IsSkipDevicePath(const std::string &path)
594 void InputHub::IncreaseLogTimes(const std::string& dhId)
603 bool InputHub::IsNeedPrintLog(const std::string& dhId) const
608 int32_t InputHub::QueryInputDeviceInfo(int fd, std::unique_ptr<Device> &device)
662 void InputHub::QueryEventInfo(int fd, std::unique_ptr<Device> &device)
693 void InputHub::GetEventMask(int fd, const std::string &eventName, uint32_t type,
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)
753 struct libevdev* InputHub::GetLibEvDev(int fd)
765 void InputHub::GetEventTypes(struct libevdev *dev, InputDevice &identifier)
776 int32_t InputHub::GetEventKeys(struct libevdev *dev, InputDevice &identifier)
794 int32_t InputHub::GetABSInfo(struct libevdev *dev, InputDevice &identifier)
825 int32_t InputHub::GetRELTypes(struct libevdev *dev, InputDevice &identifier)
843 void InputHub::GetProperties(struct libevdev *dev, InputDevice &identifier)
853 int32_t InputHub::MakeDevice(int fd, std::unique_ptr<Device> device)
907 int32_t InputHub::QueryLocalTouchScreenInfo(int fd, std::unique_ptr<Device> &device)
958 std::string InputHub::StringPrintf(const char *format, ...) const
975 void InputHub::GenerateDescriptor(InputDevice &identifier) const
1002 int32_t InputHub::RegisterDeviceForEpollLocked(const Device &device)
1012 int32_t InputHub::RegisterFdForEpoll(int fd)
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
1067 int32_t InputHub::UnregisterFdFromEpoll(int fd) const
1076 int32_t InputHub::ReadNotifyLocked()
1106 void InputHub::JudgeDeviceOpenOrClose(const inotify_event &event)
1123 void InputHub::CloseDeviceByPathLocked(const std::string &devicePath)
1133 void InputHub::CloseAllDevicesLocked()
1142 InputHub::Device* InputHub::GetDeviceByPathLocked(const std::string &devicePath)
1153 InputHub::Device* InputHub::GetDeviceByFdLocked(int fd)
1164 InputHub::Device* InputHub::GetSupportDeviceByFd(int fd)
1175 bool InputHub::ContainsNonZeroByte(const uint8_t *array, uint32_t startIndex, uint32_t endIndex)
1187 int64_t InputHub::ProcessEventTimestamp(const input_event &event)
1193 bool InputHub::TestBit(uint32_t bit, const uint8_t *array)
1199 uint32_t InputHub::SizeofBitArray(uint32_t bit)
1206 void InputHub::SaveAffectDhId(bool isEnable, const std::string &dhId, AffectDhIds &affDhIds)
1215 AffectDhIds InputHub::SetSupportInputType(bool enabled, const uint32_t &inputTypes)
1233 AffectDhIds InputHub::SetSharingDevices(bool enabled, std::vector<std::string> dhIds)
1258 std::vector<std::string> InputHub::GetSharingDevices()
1271 void InputHub::GetSharedMousePathByDhId(const std::vector<std::string> &dhIds, std::string &sharedMousePath,
1295 void InputHub::GetSharedKeyboardPathsByDhIds(const std::vector<std::string> &dhIds,
1317 void InputHub::GetDevicesInfoByType(const uint32_t inputTypes, std::map<int32_t, std::string> &datas)
1341 void InputHub::GetDevicesInfoByDhId(std::vector<std::string> dhidsVec, std::map<int32_t, std::string> &datas)
1353 bool InputHub::IsAllDevicesStoped()
1365 void InputHub::RecordDeviceLog(const std::string &devicePath, const InputDevice &identifier)
1381 void InputHub::RecordChangeEventLog(const RawEvent &event)
1406 void InputHub::RecordEventLog(const RawEvent *event)
1431 void InputHub::HandleTouchScreenEvent(struct input_event readBuffer[], const size_t count,
1486 bool InputHub::CheckTouchPointRegion(struct input_event readBuffer[], const AbsInfo &absInfo)
1503 std::vector<InputHub::Device*> InputHub::CollectTargetDevices()
1506 std::vector<InputHub::Device*> tarVec;
1521 void InputHub::SavePressedKeyState(const InputHub::Device *dev, int32_t keyCode)
1535 bool InputHub::IsLengthExceeds(const unsigned long *keyState, const unsigned long len, int keyIndex)
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)
1619 void InputHub::RecordDeviceStates()
1623 std::vector<InputHub::Device*> tarDevices = CollectTargetDevices();
1629 void InputHub::ClearDeviceStates()
1635 void InputHub::ClearSkipDevicePaths()
1642 InputHub::Device::Device(int fd, const std::string &path)
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