Home
last modified time | relevance | path

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

/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.cpp254 std::string statName(de->d_name); in getSuspendStats() local
255 if ((statName == ".") || (statName == "..")) { in getSuspendStats()
260 openat(mSuspendStatsFd.get(), statName.c_str(), O_CLOEXEC | O_RDONLY))}; in getSuspendStats()
262 return Error() << "Failed to open " << statName; in getSuspendStats()
267 return Error() << "Failed to read " << statName; in getSuspendStats()
273 if (statName == "last_failed_dev") { in getSuspendStats()
275 } else if (statName == "last_failed_step") { in getSuspendStats()
279 if (statName == "success") { in getSuspendStats()
281 } else if (statName == "fail") { in getSuspendStats()
283 } else if (statName == "failed_freeze") { in getSuspendStats()
[all …]
DWakeLockEntryList.cpp189 const char* statName = de->d_name; in isStatFile() local
190 if (!strcmp(statName, ".") || !strcmp(statName, "..") || !strcmp(statName, "device") || in isStatFile()
191 !strcmp(statName, "power") || !strcmp(statName, "subsystem") || in isStatFile()
192 !strcmp(statName, "uevent")) { in isStatFile()
234 std::string statName(de->d_name); in createKernelEntry() local
236 TEMP_FAILURE_RETRY(openat(wakelockFd, statName.c_str(), O_CLOEXEC | O_RDONLY))}; in createKernelEntry()
238 PLOG(ERROR) << "Error opening " << statName << " for " << kwlId; in createKernelEntry()
243 PLOG(ERROR) << "Error reading " << statName << " for " << kwlId; in createKernelEntry()
250 if (statName == "name") { in createKernelEntry()
257 if (statName == "active_count") { in createKernelEntry()
[all …]