Lines Matching refs:devicePath
781 EventHub::Device* EventHub::getDeviceByPathLocked(const char* devicePath) const { in getDeviceByPathLocked()
784 if (device->path == devicePath) { in getDeviceByPathLocked()
1189 status_t EventHub::openDeviceLocked(const char* devicePath) { in openDeviceLocked() argument
1192 ALOGV("Opening device: %s", devicePath); in openDeviceLocked()
1194 int fd = open(devicePath, O_RDWR | O_CLOEXEC | O_NONBLOCK); in openDeviceLocked()
1196 ALOGE("could not open %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1204 ALOGE("Could not get device name for %s: %s", devicePath, strerror(errno)); in openDeviceLocked()
1214 ALOGI("ignoring event id %s driver %s\n", devicePath, item.c_str()); in openDeviceLocked()
1223 ALOGE("could not get driver version for %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1231 ALOGE("could not get device input id for %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1261 Device* device = new Device(fd, deviceId, devicePath, identifier); in openDeviceLocked()
1263 ALOGV("add device %d: %s\n", deviceId, devicePath); in openDeviceLocked()
1425 deviceId, devicePath, device->identifier.name.c_str()); in openDeviceLocked()
1468 deviceId, fd, devicePath, device->identifier.name.c_str(), in openDeviceLocked()
1514 void EventHub::openVideoDeviceLocked(const std::string& devicePath) { in openVideoDeviceLocked() argument
1515 std::unique_ptr<TouchVideoDevice> videoDevice = TouchVideoDevice::create(devicePath); in openVideoDeviceLocked()
1517 ALOGE("Could not create touch video device for %s. Ignoring", devicePath.c_str()); in openVideoDeviceLocked()
1720 void EventHub::closeDeviceByPathLocked(const char *devicePath) { in closeDeviceByPathLocked() argument
1721 Device* device = getDeviceByPathLocked(devicePath); in closeDeviceByPathLocked()
1726 ALOGV("Remove device: %s not found, device may already have been removed.", devicePath); in closeDeviceByPathLocked()
1734 void EventHub::closeVideoDeviceByPathLocked(const std::string& devicePath) { in closeVideoDeviceByPathLocked() argument
1739 if (device->videoDevice && device->videoDevice->getPath() == devicePath) { in closeVideoDeviceByPathLocked()
1746 mUnattachedVideoDevices.end(), [&devicePath]( in closeVideoDeviceByPathLocked()
1748 return videoDevice->getPath() == devicePath; }), mUnattachedVideoDevices.end()); in closeVideoDeviceByPathLocked()