Searched refs:wakeupCountFd (Results 1 – 4 of 4) sorted by relevance
/system/hardware/interfaces/suspend/1.0/default/ |
D | main.cpp | 67 unique_fd wakeupCountFd{TEMP_FAILURE_RETRY(open(kSysPowerWakeupCount, O_CLOEXEC | O_RDWR))}; in main() local 68 if (wakeupCountFd < 0) { in main() 100 if (wakeupCountFd < 0 || stateFd < 0) { in main() 102 Socketpair(SOCK_STREAM, &wakeupCountFd, &stateFd); in main() 144 std::move(wakeupCountFd), std::move(stateFd), std::move(suspendStatsFd), kStatsCapacity, in main()
|
D | SystemSuspendUnitTest.cpp | 179 wakeupCountFd = wakeupCountFds[0]; in SetUp() 183 ASSERT_TRUE(isReadBlocked(wakeupCountFd)); in SetUp() 188 if (!isReadBlocked(wakeupCountFd)) readFd(wakeupCountFd); in TearDown() 190 ASSERT_TRUE(isReadBlocked(wakeupCountFd)); in TearDown() 196 ASSERT_TRUE(WriteStringToFd(wakeupCount, wakeupCountFd)); in unblockSystemSuspendFromWakeupCount() 215 ASSERT_TRUE(WriteStringToFd(wakeupCount, wakeupCountFd)); in checkLoop() 216 ASSERT_EQ(readFd(wakeupCountFd), wakeupCount) in checkLoop() 243 while (!isReadBlocked(wakeupCountFd)) { in checkSleepTime() 256 static int wakeupCountFd; member in android::SystemSuspendTest 277 int SystemSuspendTest::wakeupCountFd; member in android::SystemSuspendTest
|
D | SystemSuspend.h | 97 SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd,
|
D | SystemSuspend.cpp | 142 SystemSuspend::SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd, in SystemSuspend() argument 150 mWakeupCountFd(std::move(wakeupCountFd)), in SystemSuspend()
|