Searched refs:stateFd (Results 1 – 4 of 4) sorted by relevance
/system/hardware/interfaces/suspend/1.0/default/ |
D | main.cpp | 71 unique_fd stateFd{TEMP_FAILURE_RETRY(open(kSysPowerState, O_CLOEXEC | O_RDWR))}; in main() local 72 if (stateFd < 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 | 180 stateFd = stateFds[0]; in SetUp() 184 ASSERT_TRUE(isReadBlocked(stateFd)); in SetUp() 189 if (!isReadBlocked(stateFd)) readFd(stateFd).empty(); in TearDown() 191 ASSERT_TRUE(isReadBlocked(stateFd)); in TearDown() 199 bool isSystemSuspendBlocked(int timeout_ms = 20) { return isReadBlocked(stateFd, timeout_ms); } in isSystemSuspendBlocked() 218 ASSERT_EQ(readFd(stateFd), "mem") in checkLoop() 257 static int stateFd; member in android::SystemSuspendTest 278 int SystemSuspendTest::stateFd; 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 151 mStateFd(std::move(stateFd)), in SystemSuspend()
|