Home
last modified time | relevance | path

Searched refs:wakeupCountFd (Results 1 – 4 of 4) sorted by relevance

/system/hardware/interfaces/suspend/1.0/default/
Dmain.cpp51 unique_fd wakeupCountFd{TEMP_FAILURE_RETRY(open(kSysPowerWakeupCount, O_CLOEXEC | O_RDWR))}; in main() local
52 if (wakeupCountFd < 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()
DSystemSuspendUnitTest.cpp142 wakeupCountFd = wakeupCountFds[0]; in SetUp()
146 ASSERT_TRUE(isReadBlocked(wakeupCountFd)); in SetUp()
151 if (!isReadBlocked(wakeupCountFd)) readFd(wakeupCountFd); in TearDown()
153 ASSERT_TRUE(isReadBlocked(wakeupCountFd)); in TearDown()
159 ASSERT_TRUE(WriteStringToFd(wakeupCount, wakeupCountFd)); in unblockSystemSuspendFromWakeupCount()
178 ASSERT_TRUE(WriteStringToFd(wakeupCount, wakeupCountFd)); in checkLoop()
179 ASSERT_EQ(readFd(wakeupCountFd), wakeupCount) in checkLoop()
189 static int wakeupCountFd; member in android::SystemSuspendTest
196 int SystemSuspendTest::wakeupCountFd; member in android::SystemSuspendTest
DSystemSuspend.cpp83 SystemSuspend::SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd, in SystemSuspend() argument
89 mWakeupCountFd(std::move(wakeupCountFd)), in SystemSuspend()
DSystemSuspend.h83 SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, unique_fd suspendStatsFd,