Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp263 auto sysfsPath = std::filesystem::path("/sys/dev/char/"); in getSysfsRootForEvdevDevicePath() local
264 sysfsPath /= std::to_string(major_num) + ":" + std::to_string(minor_num); in getSysfsRootForEvdevDevicePath()
265 sysfsPath = std::filesystem::canonical(sysfsPath, errorCode); in getSysfsRootForEvdevDevicePath()
275 while (sysfsPath != "/" && sysfsPath.filename() != "input") { in getSysfsRootForEvdevDevicePath()
276 sysfsPath = sysfsPath.parent_path(); in getSysfsRootForEvdevDevicePath()
280 sysfsPath = sysfsPath.parent_path(); in getSysfsRootForEvdevDevicePath()
283 if (sysfsPath == "/" || !std::filesystem::exists(sysfsPath, errorCode)) { in getSysfsRootForEvdevDevicePath()
293 return sysfsPath; in getSysfsRootForEvdevDevicePath()