Lines Matching defs:path

117 bool InputHub::IsInputNodeNoNeedScan(const std::string &path)
121 auto iter = devices_.find(path);
127 if (path.find(MOUSE_NODE_KEY) != std::string::npos) {
131 return IsSkipDevicePath(path);
143 DHLOGI("Reporting device opened: path=%{public}s, name=%{public}s\n",
144 device->path.c_str(), device->identifier.name.c_str());
145 std::string devPath = device->path;
146 auto [dev_it, inserted] = devices_.insert_or_assign(device->path, std::move(device));
148 DHLOGI("Device with this path %{public}s exists, replaced. \n", devPath.c_str());
303 event.path = device->path;
331 event->path = device->path;
374 device->path.c_str(), device->identifier.name.c_str());
397 device->path.c_str(), device->identifier.name.c_str());
402 std::string devPath = device->path;
403 auto [dev_it, inserted] = devices_.insert_or_assign(device->path, std::move(device));
405 DHLOGI("Device path %{public}s exists, replaced.", devPath.c_str());
537 if (device->path == devicePath) {
538 DHLOGI("Device node already registered, node path: %{public}s", device->path.c_str());
582 void InputHub::RecordSkipDevicePath(std::string path)
585 skipDevicePaths_.insert(path);
588 bool InputHub::IsSkipDevicePath(const std::string &path)
591 return skipDevicePaths_.find(path) != skipDevicePaths_.end();
622 RecordSkipDevicePath(device->path);
629 RecordSkipDevicePath(device->path);
636 RecordSkipDevicePath(device->path);
1006 DHLOGE("Could not add input device fd to epoll for device, path: %{public}s", device.path.c_str());
1032 DHLOGI("Removed device: path=%{public}s name=%{public}s fd=%{public}d classes=0x%{public}x",
1033 device.path.c_str(), device.identifier.name.c_str(), device.fd, device.classes);
1039 closingDevices_.push_back(std::move(devices_[device.path]));
1040 devices_.erase(device.path);
1046 DHLOGI("Removed device: path=%{public}s name=%{public}s fd=%{public}d classes=0x%{public}x",
1047 device.path.c_str(), device.identifier.name.c_str(), device.fd, device.classes);
1051 closingDevices_.push_back(std::move(devices_[device.path]));
1052 devices_.erase(device.path);
1060 DHLOGE("Could not remove input device fd from epoll for device, path: %{public}s", device.path.c_str());
1146 if (device->path == devicePath) {
1288 sharedMousePath = device->path;
1311 sharedKeyboardPaths.push_back(device->path);
1403 event.value, event.path.c_str(), GetAnonyString(event.descriptor).c_str(), event.when);
1428 event->value, event->path.c_str(), GetAnonyString(event->descriptor).c_str(), event->when);
1512 DHLOGI("Find target devs need check stat, path: %{public}s, name: %{public}s",
1528 .path = dev->path
1531 DHLOGI("Find Pressed key: %{public}d, device path: %{public}s, dhId: %{public}s", keyCode, dev->path.c_str(),
1637 DHLOGI("Clear Skip device path");
1642 InputHub::Device::Device(int fd, const std::string &path)
1643 : next(nullptr), fd(fd), path(path), identifier({}), classes(0), enabled(false),
1646 DHLOGI("Ctor Device for get event mask, fd: %{public}d, path: %{public}s", fd, path.c_str());
1670 if (path.length() == 0 || path.length() > PATH_MAX || realpath(path.c_str(), canonicalPath) == nullptr) {
1671 DHLOGE("path check fail, error path: %{public}s", path.c_str());
1676 DHLOGE("could not open %{public}s, %{public}s\n", path.c_str(), ConvertErrNo().c_str());