Home
last modified time | relevance | path

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

/system/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.cpp201 WakeLockInfo WakeLockEntryList::createKernelEntry(const std::string& kwlId) const { in createKernelEntry()
220 openat(mKernelWakelockStatsFd, kwlId.c_str(), O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in createKernelEntry()
222 PLOG(ERROR) << "Error opening kernel wakelock stats for: " << kwlId; in createKernelEntry()
238 PLOG(ERROR) << "Error opening " << statName << " for " << kwlId; in createKernelEntry()
243 PLOG(ERROR) << "Error reading " << statName << " for " << kwlId; in createKernelEntry()
294 std::string kwlId(de->d_name); in getKernelWakelockStats() local
295 if ((kwlId == ".") || (kwlId == "..")) { in getKernelWakelockStats()
298 WakeLockInfo entry = createKernelEntry(kwlId); in getKernelWakelockStats()
DSystemSuspendUnitTest.cpp437 std::string kwlId = "wakeup" + std::to_string(id++); in addKernelWakelock() local
439 if ((mkdirat(kernelWakelockStatsFd, kwlId.c_str(), S_IRWXU)) < 0) { in addKernelWakelock()
440 PLOG(ERROR) << "SystemSuspend: Error creating directory for " << kwlId; in addKernelWakelock()
445 openat(kernelWakelockStatsFd, kwlId.c_str(), O_DIRECTORY | O_CLOEXEC | O_RDONLY))}; in addKernelWakelock()
447 PLOG(ERROR) << "SystemSuspend: Error opening " << kwlId; in addKernelWakelock()