Lines Matching full:path
100 .open_restricted = [](const char *path, int32_t flags, void *user_data)->int32_t {
101 if (path == nullptr) {
102 MMI_HILOGWK("Input device path is nullptr");
106 if (realpath(path, realPath) == nullptr) {
108 MMI_HILOGWK("The error path is %{public}s", path);
121 std::string str_path(path);
159 return hotplugDetector_.Init([this](std::string path) { OnDeviceAdded(std::move(path)); },
160 [this](std::string path) { OnDeviceRemoved(std::move(path)); });
223 void LibinputAdapter::OnDeviceAdded(std::string path)
226 std::string str_path(path);
235 auto pos = devices_.find(path);
237 MMI_HILOGD("Path is found");
240 libinput_device* device = libinput_path_add_device(input_, path.c_str());
242 devices_[std::move(path)] = libinput_device_ref(device);
243 // Libinput doesn't signal device adding event in path mode. Process manually.
248 void LibinputAdapter::OnDeviceRemoved(std::string path)
251 std::string str_path(path);
260 auto pos = devices_.find(path);
265 // Libinput doesn't signal device removing event in path mode. Process manually.