Lines Matching refs:devicePath
533 bool InputHub::IsDeviceRegistered(const std::string &devicePath)
537 if (device->path == devicePath) {
545 int32_t InputHub::OpenInputDeviceLocked(const std::string &devicePath)
547 if (IsDeviceRegistered(devicePath)) {
552 DHLOGD("Opening device start: %{public}s", devicePath.c_str());
553 int fd = OpenInputDeviceFdByPath(devicePath);
555 DHLOGE("The fd open failed, devicePath %{public}s.", devicePath.c_str());
560 std::unique_ptr<Device> device = std::make_unique<Device>(fd, devicePath);
568 RecordDeviceLog(devicePath, device->identifier);
573 DHLOGI("Opening device error: %{public}s", devicePath.c_str());
578 DHLOGI("Opening device finish: %{public}s", devicePath.c_str());
1123 void InputHub::CloseDeviceByPathLocked(const std::string &devicePath)
1125 Device* device = GetDeviceByPathLocked(devicePath);
1130 DHLOGI("Remove device: %{public}s not found, device may already have been removed.", devicePath.c_str());
1142 InputHub::Device* InputHub::GetDeviceByPathLocked(const std::string &devicePath)
1146 if (device->path == devicePath) {
1365 void InputHub::RecordDeviceLog(const std::string &devicePath, const InputDevice &identifier)
1368 DHLOGI("add device: %{public}s\n", devicePath.c_str());