Home
last modified time | relevance | path

Searched refs:devicePath (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DExtconUEventObserver.java77 String devicePath = extconInfo.getDevicePath(); in startObserving() local
78 if (devicePath == null) { in startObserving()
82 mExtconInfos.put(devicePath, extconInfo); in startObserving()
83 if (LOG) Slog.v(TAG, "Observing " + devicePath); in startObserving()
84 startObserving("DEVPATH=" + devicePath); in startObserving()
/frameworks/native/services/inputflinger/
DTouchVideoDevice.cpp39 TouchVideoDevice::TouchVideoDevice(int fd, std::string&& name, std::string&& devicePath, in TouchVideoDevice() argument
42 mFd(fd), mName(std::move(name)), mPath(std::move(devicePath)), in TouchVideoDevice()
48 std::unique_ptr<TouchVideoDevice> TouchVideoDevice::create(std::string devicePath) { in create() argument
49 unique_fd fd(open(devicePath.c_str(), O_RDWR | O_NONBLOCK)); in create()
51 ALOGE("Could not open video device %s: %s", devicePath.c_str(), strerror(errno)); in create()
154 fd.release(), std::move(name), std::move(devicePath), height, width, readLocations)); in create()
DTouchVideoDevice.h39 static std::unique_ptr<TouchVideoDevice> create(std::string devicePath);
112 explicit TouchVideoDevice(int fd, std::string&& name, std::string&& devicePath,
DEventHub.cpp781 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()
[all …]
DEventHub.h379 status_t openDeviceLocked(const char* devicePath);
380 void openVideoDeviceLocked(const std::string& devicePath);
385 void closeDeviceByPathLocked(const char *devicePath);
386 void closeVideoDeviceByPathLocked(const std::string& devicePath);
409 Device* getDeviceByPathLocked(const char* devicePath) const;