Lines Matching refs:devicePath
791 EventHub::Device* EventHub::getDeviceByPathLocked(const char* devicePath) const { in getDeviceByPathLocked()
794 if (device->path == devicePath) { in getDeviceByPathLocked()
1198 status_t EventHub::openDeviceLocked(const char* devicePath) { in openDeviceLocked() argument
1201 ALOGV("Opening device: %s", devicePath); in openDeviceLocked()
1203 int fd = open(devicePath, O_RDWR | O_CLOEXEC | O_NONBLOCK); in openDeviceLocked()
1205 ALOGE("could not open %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1213 ALOGE("Could not get device name for %s: %s", devicePath, strerror(errno)); in openDeviceLocked()
1223 ALOGI("ignoring event id %s driver %s\n", devicePath, item.c_str()); in openDeviceLocked()
1232 ALOGE("could not get driver version for %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1240 ALOGE("could not get device input id for %s, %s\n", devicePath, strerror(errno)); in openDeviceLocked()
1270 Device* device = new Device(fd, deviceId, devicePath, identifier); in openDeviceLocked()
1272 ALOGV("add device %d: %s\n", deviceId, devicePath); in openDeviceLocked()
1429 ALOGV("Dropping device: id=%d, path='%s', name='%s'", deviceId, devicePath, in openDeviceLocked()
1475 deviceId, fd, devicePath, device->identifier.name.c_str(), device->classes, in openDeviceLocked()
1517 void EventHub::openVideoDeviceLocked(const std::string& devicePath) { in openVideoDeviceLocked() argument
1518 std::unique_ptr<TouchVideoDevice> videoDevice = TouchVideoDevice::create(devicePath); in openVideoDeviceLocked()
1520 ALOGE("Could not create touch video device for %s. Ignoring", devicePath.c_str()); in openVideoDeviceLocked()
1721 void EventHub::closeDeviceByPathLocked(const char* devicePath) { in closeDeviceByPathLocked() argument
1722 Device* device = getDeviceByPathLocked(devicePath); in closeDeviceByPathLocked()
1727 ALOGV("Remove device: %s not found, device may already have been removed.", devicePath); in closeDeviceByPathLocked()
1735 void EventHub::closeVideoDeviceByPathLocked(const std::string& devicePath) { in closeVideoDeviceByPathLocked() argument
1740 if (device->videoDevice && device->videoDevice->getPath() == devicePath) { in closeVideoDeviceByPathLocked()
1748 [&devicePath]( in closeVideoDeviceByPathLocked()
1750 return videoDevice->getPath() == devicePath; in closeVideoDeviceByPathLocked()