Searched refs:stateFd (Results 1 – 4 of 4) sorted by relevance
/system/hardware/interfaces/suspend/1.0/default/ |
D | main.cpp | 55 unique_fd stateFd{TEMP_FAILURE_RETRY(open(kSysPowerState, O_CLOEXEC | O_RDWR))}; in main() local 56 if (stateFd < 0) { in main() 75 if (wakeupCountFd < 0 || stateFd < 0) { in main() 77 Socketpair(SOCK_STREAM, &wakeupCountFd, &stateFd); in main() 94 new SystemSuspend(std::move(wakeupCountFd), std::move(stateFd), std::move(suspendStatsFd), in main()
|
D | SystemSuspendUnitTest.cpp | 143 stateFd = stateFds[0]; in SetUp() 147 ASSERT_TRUE(isReadBlocked(stateFd)); in SetUp() 152 if (!isReadBlocked(stateFd)) readFd(stateFd).empty(); in TearDown() 154 ASSERT_TRUE(isReadBlocked(stateFd)); in TearDown() 162 bool isSystemSuspendBlocked(int timeout_ms = 20) { return isReadBlocked(stateFd, timeout_ms); } in isSystemSuspendBlocked() 181 ASSERT_EQ(readFd(stateFd), "mem") in checkLoop() 190 static int stateFd; member in android::SystemSuspendTest 197 int SystemSuspendTest::stateFd; member in android::SystemSuspendTest
|
D | SystemSuspend.cpp | 83 SystemSuspend::SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd, in SystemSuspend() argument 90 mStateFd(std::move(stateFd)), in SystemSuspend()
|
D | SystemSuspend.h | 83 SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd,
|