Home
last modified time | relevance | path

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

/aosp12/system/hardware/interfaces/suspend/1.0/default/
H A DSuspendControlService.cpp155 const auto suspendService = mSuspend.promote(); in enableAutosuspend() local
156 return retOk(suspendService != nullptr && suspendService->enableAutosuspend(), _aidl_return); in enableAutosuspend()
161 return retOk(suspendService != nullptr && suspendService->forceSuspend(), _aidl_return); in forceSuspend()
166 if (!suspendService) { in getSuspendStats()
171 suspendService->getSuspendInfo(_aidl_return); in getSuspendStats()
178 if (!suspendService) { in getWakeLockStats()
183 suspendService->updateStatsNow(); in getWakeLockStats()
192 if (!suspendService) { in getWakeupStats()
218 if (!suspendService) { in dump()
254 suspendService->updateStatsNow(); in dump()
[all …]
H A DSystemSuspendBenchmark.cpp31 static sp<ISystemSuspend> suspendService = ISystemSuspend::getService(); in BM_acquireWakeLock() local
34 suspendService->acquireWakeLock(WakeLockType::PARTIAL, "BenchmarkWakeLock"); in BM_acquireWakeLock()
H A DSystemSuspendUnitTest.cpp143 sp<ISystemSuspend> suspendService = ISystemSuspend::getService(kServiceName); in SetUpTestSuite() local
144 ASSERT_NE(suspendService, nullptr) << "failed to get suspend service"; in SetUpTestSuite()
166 suspendService = ISystemSuspend::getService(kServiceName); in SetUp()
167 ASSERT_NE(suspendService, nullptr) << "failed to get suspend service"; in SetUp()
202 return suspendService->acquireWakeLock(WakeLockType::PARTIAL, name); in acquireWakeLock()
240 SystemSuspend* s = static_cast<SystemSuspend*>(suspendService.get()); in checkSleepTime()
249 sp<ISystemSuspend> suspendService; member in android::SystemSuspendTest
742 return suspendService->acquireWakeLock(WakeLockType::PARTIAL, name); in acquireWakeLock()
912 return reinterpret_cast<SystemSuspend*>(suspendService.get())->getSuspendStats(); in getSuspendStats()
934 suspendService = in SetUp()
[all …]
/aosp12/hardware/libhardware_legacy/
H A Dpower.cpp41 static sp<ISystemSuspend> suspendService = ISystemSuspend::getService(); in getSystemSuspendServiceOnce() local
42 return suspendService; in getSystemSuspendServiceOnce()
47 const auto& suspendService = getSystemSuspendServiceOnce(); in acquire_wake_lock() local
48 if (!suspendService) { in acquire_wake_lock()
55 auto ret = suspendService->acquireWakeLock(WakeLockType::PARTIAL, id); in acquire_wake_lock()
112 static sp<ISystemSuspend> suspendService = ISystemSuspend::getService(); in WakeLockImpl() local
113 auto ret = suspendService->acquireWakeLock(WakeLockType::PARTIAL, name); in WakeLockImpl()