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.java79 String devicePath = extconInfo.getDevicePath(); in startObserving() local
80 if (devicePath == null) { in startObserving()
84 mExtconInfos.put(devicePath, extconInfo); in startObserving()
85 if (LOG) Slog.v(TAG, "Observing " + devicePath); in startObserving()
86 startObserving("DEVPATH=" + devicePath); in startObserving()
/frameworks/native/services/inputflinger/reader/
DTouchVideoDevice.cpp39 TouchVideoDevice::TouchVideoDevice(int fd, std::string&& name, std::string&& devicePath, in TouchVideoDevice() argument
44 mPath(std::move(devicePath)), in TouchVideoDevice()
51 std::unique_ptr<TouchVideoDevice> TouchVideoDevice::create(std::string devicePath) { in create() argument
52 unique_fd fd(open(devicePath.c_str(), O_RDWR | O_NONBLOCK | O_CLOEXEC)); in create()
54 ALOGE("Could not open video device %s: %s", devicePath.c_str(), strerror(errno)); in create()
157 std::move(devicePath), height, in create()
DEventHub.cpp199 static std::optional<std::filesystem::path> getSysfsRootPath(const char* devicePath) { in getSysfsRootPath() argument
204 if (stat(devicePath, &statbuf) == -1) { in getSysfsRootPath()
205 ALOGE("Could not stat device %s due to error: %s.", devicePath, std::strerror(errno)); in getSysfsRootPath()
1446 EventHub::Device* EventHub::getDeviceByPathLocked(const std::string& devicePath) const { in getDeviceByPathLocked()
1448 if (device->path == devicePath) { in getDeviceByPathLocked()
1932 void EventHub::openDeviceLocked(const std::string& devicePath) { in openDeviceLocked() argument
1938 if (device->path == devicePath) { in openDeviceLocked()
1945 ALOGV("Opening device: %s", devicePath.c_str()); in openDeviceLocked()
1947 int fd = open(devicePath.c_str(), O_RDWR | O_CLOEXEC | O_NONBLOCK); in openDeviceLocked()
1949 ALOGE("could not open %s, %s\n", devicePath.c_str(), strerror(errno)); in openDeviceLocked()
[all …]
/frameworks/native/services/inputflinger/reader/include/
DTouchVideoDevice.h39 static std::unique_ptr<TouchVideoDevice> create(std::string devicePath);
112 explicit TouchVideoDevice(int fd, std::string&& name, std::string&& devicePath, uint32_t height,
DEventHub.h621 void openDeviceLocked(const std::string& devicePath) REQUIRES(mLock);
622 void openVideoDeviceLocked(const std::string& devicePath) REQUIRES(mLock);
636 void closeDeviceByPathLocked(const std::string& devicePath) REQUIRES(mLock);
637 void closeVideoDeviceByPathLocked(const std::string& devicePath) REQUIRES(mLock);
655 Device* getDeviceByPathLocked(const std::string& devicePath) const REQUIRES(mLock);