Home
last modified time | relevance | path

Searched refs:timeoutMs (Results 1 – 25 of 31) sorted by relevance

12

/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_mock_test.cpp83 int32_t timeoutMs = 100; variable
91 EXPECT_EQ(param.timeoutMs, RUNNINGLOCKPARAM_TIMEOUTMS_DEF); in __anon5abd24c10302()
107 g_powerService->Lock(runninglockToken, timeoutMs);
109 g_powerService->Lock(runninglockToken2, timeoutMs);
137 int32_t timeoutMs = 100; variable
145 EXPECT_EQ(param.timeoutMs, RUNNINGLOCKPARAM_TIMEOUTMS_DEF); in __anon5abd24c10502()
159 g_powerService->Lock(runninglockToken, timeoutMs);
180 int32_t timeoutMs = 100; variable
195 EXPECT_EQ(param.timeoutMs, timeoutMs); in __anon5abd24c10802()
212 g_powerService->Lock(phoneToken, timeoutMs);
[all …]
Drunning_lock_test.cpp224 int32_t timeoutMs = 50; variable
226 runningLock->Lock(timeoutMs);
232 usleep(timeoutMs * US_PER_MS);
236 usleep(timeoutMs / 2 * US_PER_MS);
238 usleep(timeoutMs * US_PER_MS);
/base/powermgr/power_manager/services/native/include/
Drunning_lock_inner.h58 void SetTimeOutMs(int32_t timeoutMs) in SetTimeOutMs() argument
60 runningLockParam_.timeoutMs = timeoutMs; in SetTimeOutMs()
64 return runningLockParam_.timeoutMs; in GetTimeOutMs()
/base/powermgr/power_manager/utils/ffrt/src/
Dffrt_utils.cpp49 bool FFRTUtils::SubmitTimeoutTask(const FFRTTask& task, uint32_t timeoutMs) in SubmitTimeoutTask() argument
52 auto status = future.wait_for(std::chrono::milliseconds(timeoutMs)); in SubmitTimeoutTask()
/base/powermgr/powermgr_lite/frameworks/include/
Drunning_lock_framework.h28 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs);
Dpower_manage_intf_define.h31 …AcquireRunningLockEntryFunc)(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs); \
/base/powermgr/powermgr_lite/services/src/power/small/
Dpower_manage_feature_impl.c71 int32_t timeoutMs = 0; in AcquireInvoke() local
72 ReadInt32(req, &timeoutMs); in AcquireInvoke()
73 … int32_t ret = OnAcquireRunningLockEntry((IUnknown *)iProxy, (RunningLockEntry *)data, timeoutMs); in AcquireInvoke()
/base/powermgr/power_manager/services/native/include/actions/
Drunning_lock_action_info.h51 int32_t timeoutMs = -1; member
/base/powermgr/powermgr_lite/services/src/
Dpower_manage_feature.c62 int32_t OnAcquireRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs) in OnAcquireRunningLockEntry() argument
65 return RunningLockMgrAcquireEntry(entry, timeoutMs); in OnAcquireRunningLockEntry()
Drunning_lock_mgr.c109 int32_t RunningLockMgrAcquireEntry(RunningLockEntry *entry, int32_t timeoutMs) in RunningLockMgrAcquireEntry() argument
/base/powermgr/powermgr_lite/services/include/
Drunning_lock_mgr.h26 int32_t RunningLockMgrAcquireEntry(RunningLockEntry *entry, int32_t timeoutMs);
Dpower_manage_feature.h34 int32_t OnAcquireRunningLockEntry(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs);
/base/powermgr/powermgr_lite/frameworks/src/small/
Dpower_manage.c40 …t32_t AcquireRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs);
123 …nt32_t AcquireRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry, int32_t timeoutMs) in AcquireRunningLockEntryProxy() argument
138 WriteInt32(&request, timeoutMs); in AcquireRunningLockEntryProxy()
210 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs) in AcquireRunningLockEntry() argument
215 ret = intf->AcquireRunningLockEntryFunc((IUnknown *)intf, entry, timeoutMs); in AcquireRunningLockEntry()
/base/powermgr/powermgr_lite/frameworks/src/mini/
Dpower_manage.c66 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs) in AcquireRunningLockEntry() argument
71 ret = intf->AcquireRunningLockEntryFunc((IUnknown *)intf, entry, timeoutMs); in AcquireRunningLockEntry()
/base/powermgr/power_manager/utils/ffrt/include/
Dffrt_utils.h85 static bool SubmitTimeoutTask(const FFRTTask& task, uint32_t timeoutMs);
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/pages/
DpowerDialog.ets104 timeoutMs: number = 20;
123 this.timeoutId = setTimeout(this.onCancel, this.timeoutMs);
132 this.timeoutId = setTimeout(this.onCancel, this.timeoutMs);
/base/powermgr/display_manager/interfaces/inner_api/native/include/
Didisplay_power_mgr.h47 virtual bool BoostBrightness(int32_t timeoutMs, uint32_t displayId) = 0;
Ddisplay_power_mgr_client.h53 bool BoostBrightness(int32_t timeoutMs, uint32_t displayId = 0);
/base/powermgr/power_manager/services/native/src/actions/default/
Dsystem_suspend_controller.cpp128 filledInfo.timeoutMs = param.timeoutMs; in FillRunningLockInfo()
/base/powermgr/display_manager/service/native/src/
Dscreen_controller.cpp222 bool ScreenController::BoostBrightness(uint32_t timeoutMs, uint32_t gradualDuration) in BoostBrightness() argument
239 g_cancelBoostTaskHandle = FFRTUtils::SubmitDelayTask(task, timeoutMs, g_queue); in BoostBrightness()
240 …LOGD(FEAT_BRIGHTNESS, "BoostBrightness update timeout=%{public}u, ret=%{public}d", timeoutMs, ret); in BoostBrightness()
Ddisplay_power_mgr_service.cpp435 bool DisplayPowerMgrService::BoostBrightness(int32_t timeoutMs, uint32_t displayId) in BoostBrightness() argument
440 …LOGD(FEAT_BRIGHTNESS, "Timing boost brightness: %{public}d, id: %{public}d", timeoutMs, displayId); in BoostBrightness()
441 RETURN_IF_WITH_RET(timeoutMs <= 0, false); in BoostBrightness()
444 return iter->second->BoostBrightness(timeoutMs); in BoostBrightness()
/base/powermgr/display_manager/frameworks/native/
Ddisplay_power_mgr_client.cpp215 bool DisplayPowerMgrClient::BoostBrightness(int32_t timeoutMs, uint32_t displayId) in BoostBrightness() argument
219 return proxy->BoostBrightness(timeoutMs, displayId); in BoostBrightness()
/base/powermgr/display_manager/service/zidl/include/
Ddisplay_power_mgr_proxy.h56 virtual bool BoostBrightness(int32_t timeoutMs, uint32_t displayId) override;
/base/powermgr/display_manager/service/native/include/
Dscreen_controller.h67 bool BoostBrightness(uint32_t timeoutMs, uint32_t gradualDuration = 0);
/base/powermgr/display_manager/service/zidl/src/
Ddisplay_power_mgr_stub.cpp354 int32_t timeoutMs = -1; in BoostBrightnessStub() local
356 READ_PARCEL_WITH_RET(data, Int32, timeoutMs, E_READ_PARCEL_ERROR); in BoostBrightnessStub()
359 bool isScuu = BoostBrightness(timeoutMs, id); in BoostBrightnessStub()

12