Searched refs:suspendService (Results 1 – 4 of 4) sorted by relevance
155 const auto suspendService = mSuspend.promote(); in enableAutosuspend() local156 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 …]
31 static sp<ISystemSuspend> suspendService = ISystemSuspend::getService(); in BM_acquireWakeLock() local34 suspendService->acquireWakeLock(WakeLockType::PARTIAL, "BenchmarkWakeLock"); in BM_acquireWakeLock()
143 sp<ISystemSuspend> suspendService = ISystemSuspend::getService(kServiceName); in SetUpTestSuite() local144 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::SystemSuspendTest742 return suspendService->acquireWakeLock(WakeLockType::PARTIAL, name); in acquireWakeLock()912 return reinterpret_cast<SystemSuspend*>(suspendService.get())->getSuspendStats(); in getSuspendStats()934 suspendService = in SetUp()[all …]
41 static sp<ISystemSuspend> suspendService = ISystemSuspend::getService(); in getSystemSuspendServiceOnce() local42 return suspendService; in getSystemSuspendServiceOnce()47 const auto& suspendService = getSystemSuspendServiceOnce(); in acquire_wake_lock() local48 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() local113 auto ret = suspendService->acquireWakeLock(WakeLockType::PARTIAL, name); in WakeLockImpl()