Searched refs:suspendService (Results 1 – 3 of 3) sorted by relevance
155 const auto suspendService = mSuspend.promote(); in enableAutosuspend() local156 return retOk(suspendService != nullptr && suspendService->enableAutosuspend(), _aidl_return); in enableAutosuspend()160 const auto suspendService = mSuspend.promote(); in forceSuspend() local161 return retOk(suspendService != nullptr && suspendService->forceSuspend(), _aidl_return); in forceSuspend()165 const auto suspendService = mSuspend.promote(); in getSuspendStats() local166 if (!suspendService) { in getSuspendStats()171 suspendService->getSuspendInfo(_aidl_return); in getSuspendStats()177 const auto suspendService = mSuspend.promote(); in getWakeLockStats() local178 if (!suspendService) { in getWakeLockStats()183 suspendService->updateStatsNow(); in getWakeLockStats()[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 …]