Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp257 auto sysfsPath = std::filesystem::path("/sys/dev/char/"); in getSysfsRootPath() local
258 sysfsPath /= std::to_string(major_num) + ":" + std::to_string(minor_num); in getSysfsRootPath()
259 sysfsPath = std::filesystem::canonical(sysfsPath, errorCode); in getSysfsRootPath()
269 while (sysfsPath != "/" && sysfsPath.filename() != "input") { in getSysfsRootPath()
270 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()
274 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()
277 if (sysfsPath == "/" || !std::filesystem::exists(sysfsPath, errorCode)) { in getSysfsRootPath()
287 return sysfsPath; in getSysfsRootPath()