Lines Matching refs:devicePath
518 EventHub::Device* EventHub::getDeviceByPathLocked(const char* devicePath) const {
521 if (device->path == devicePath) {
834 status_t EventHub::openDeviceLocked(const char *devicePath) {
837 LOGV("Opening device: %s", devicePath);
839 int fd = open(devicePath, O_RDWR);
841 LOGE("could not open %s, %s\n", devicePath, strerror(errno));
849 //fprintf(stderr, "could not get device name for %s, %s\n", devicePath, strerror(errno));
859 LOGI("ignoring event id %s driver %s\n", devicePath, item.string());
868 LOGE("could not get driver version for %s, %s\n", devicePath, strerror(errno));
876 LOGE("could not get device input id for %s, %s\n", devicePath, strerror(errno));
887 //fprintf(stderr, "could not get location for %s, %s\n", devicePath, strerror(errno));
895 //fprintf(stderr, "could not get idstring for %s, %s\n", devicePath, strerror(errno));
910 Device* device = new Device(fd, deviceId, String8(devicePath), identifier);
913 LOGI("add device %d: %s\n", deviceId, devicePath);
1054 deviceId, devicePath, device->identifier.name.string());
1077 deviceId, fd, devicePath, device->identifier.name.string(),
1162 status_t EventHub::closeDeviceByPathLocked(const char *devicePath) {
1163 Device* device = getDeviceByPathLocked(devicePath);
1168 LOGV("Remove device: %s not found, device may already have been removed.", devicePath);