Home
last modified time | relevance | path

Searched refs:timerId (Results 1 - 25 of 120) sorted by relevance

12345

/foundation/distributeddatamgr/pasteboard/framework/framework/ffrt/
H A Dffrt_utils.cpp95 void FFRTTimer::CancelTimer(const std::string &timerId) in CancelTimer() argument
98 CancelTimerInner(timerId); in CancelTimer()
102 void FFRTTimer::SetTimer(const std::string &timerId, FFRTTask &task) in SetTimer() argument
105 CancelTimerInner(timerId); in SetTimer()
106 ++taskId_[timerId]; in SetTimer()
108 PASTEBOARD_MODULE_SERVICE, "Timer[%{public}s] Add Task[%{public}u]", timerId.c_str(), taskId_[timerId]); in SetTimer()
113 void FFRTTimer::SetTimer(const std::string &timerId, FFRTTask &task, uint32_t delayMs) in SetTimer() argument
116 return SetTimer(timerId, task); in SetTimer()
120 CancelTimerInner(timerId); in SetTimer()
128 GetTaskId(const std::string &timerId) GetTaskId() argument
148 CancelTimerInner(const std::string &timerId) CancelTimerInner() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/
H A Dbundle_overlay_manager_host_impl.cpp52 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_ALL_OVERLAY_MODULE_INFO); in GetAllOverlayModuleInfo() local
53 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetAllOverlayModuleInfo()
75 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_OVERLAY_MODULE_INFO); in GetOverlayModuleInfo() local
76 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfo()
98 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_OVERLAY_MODULE_INFO_NO_BUNDLENAME); in GetOverlayModuleInfo() local
99 ScopeGuard cancelTimerIdGuard([timerId] { XCollieHelper::CancelTimer(timerId); }); in GetOverlayModuleInfo()
123 int32_t timerId in GetTargetOverlayModuleInfo() local
149 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_OVERLAY_MODULE_INFO_BY_BUNDLENAME); GetOverlayModuleInfoByBundleName() local
189 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_OVERLAY_BUNDLE_INFOFOR_TARGET); GetOverlayBundleInfoForTarget() local
213 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_GET_OVERLAY_MODULE_INFOFOR_TARGET); GetOverlayModuleInfoForTarget() local
241 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_SET_OVERLAY_ENABLED_FOR_SELF); SetOverlayEnabledForSelf() local
264 int32_t timerId = XCollieHelper::SetRecoveryTimer(FUNCATION_SET_OVERLAY_ENABLED); SetOverlayEnabled() local
[all...]
/foundation/multimodalinput/input/service/timer_manager/test/
H A Dtimer_manager_test.cpp151 int32_t timerId = 1; in HWTEST_F() local
152 auto ret = timermanager.RemoveTimer(timerId); in HWTEST_F()
154 timerId = -1; in HWTEST_F()
155 ret = timermanager.RemoveTimer(timerId); in HWTEST_F()
169 int32_t timerId = 1; in HWTEST_F() local
170 auto ret = timermanager.ResetTimer(timerId); in HWTEST_F()
172 timerId = -1; in HWTEST_F()
173 ret = timermanager.ResetTimer(timerId); in HWTEST_F()
188 int32_t timerId = 1; in HWTEST_F() local
189 auto ret = timermanager.IsExist(timerId); in HWTEST_F()
259 int32_t timerId = 1; HWTEST_F() local
277 int32_t timerId = 1; HWTEST_F() local
293 int32_t timerId = 1; HWTEST_F() local
371 int32_t timerId = 1; HWTEST_F() local
[all...]
/foundation/ai/intelligent_voice_framework/utils/
H A Dtimer_mgr.cpp60 : timerId(id), type(type), cookie(cookie), observer(observer) in TimerItem()
163 int TimerMgr::ResetTimer(int timerId, int type, int64_t delayUs, int cookie, ITimerObserver *currObserver) in ResetTimer() argument
169 if ((*it)->timerId != timerId) { in ResetTimer()
170 INTELL_VOICE_LOG_ERROR("id %{public}d can not correspond with timerId %{public}d", in ResetTimer()
171 (*it)->timerId, timerId); in ResetTimer()
176 return timerId; in ResetTimer()
179 KillTimer(timerId); in ResetTimer()
183 void TimerMgr::KillTimer(int &timerId) in KillTimer() argument
[all...]
/foundation/multimodalinput/input/intention/scheduler/timer_manager/src/
H A Dtimer_manager.cpp64 int32_t timerId = AddTimerInternal(intervalMs, repeatCount, callback); in OnAddTimer() local
66 return timerId; in OnAddTimer()
78 int32_t TimerManager::OnRemoveTimer(int32_t timerId) in OnRemoveTimer() argument
80 int32_t ret = RemoveTimerInternal(timerId); in OnRemoveTimer()
87 int32_t TimerManager::RemoveTimer(int32_t timerId) in RemoveTimer() argument
91 return context_->GetDelegateTasks().PostSyncTask([this, timerId] { in RemoveTimer()
92 return this->OnRemoveTimer(timerId); in RemoveTimer()
96 int32_t TimerManager::OnResetTimer(int32_t timerId) in OnResetTimer() argument
98 int32_t ret = ResetTimerInternal(timerId); in OnResetTimer()
103 int32_t TimerManager::ResetTimer(int32_t timerId) in ResetTimer() argument
[all...]
/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dcamera_timer.cpp72 uint32_t timerId = timer_->Register(callback, interval, once); in Register() local
73 MEDIA_DEBUG_LOG("timerId: %{public}u", timerId); in Register()
74 return timerId; in Register()
77 void CameraTimer::Unregister(uint32_t timerId) in Unregister() argument
79 MEDIA_DEBUG_LOG("timerId: %{public}d", timerId); in Unregister()
81 MEDIA_DEBUG_LOG("timerId: %{public}d", timerId); in Unregister()
82 timer_->Unregister(timerId); in Unregister()
[all...]
/foundation/multimodalinput/input/intention/scheduler/timer_manager/include/
H A Dtimer_manager.h39 int32_t ResetTimer(int32_t timerId);
40 int32_t RemoveTimer(int32_t timerId) override;
41 bool IsExist(int32_t timerId) const;
58 int32_t OnResetTimer(int32_t timerId);
59 int32_t OnRemoveTimer(int32_t timerId);
60 bool OnIsExist(int32_t timerId) const;
61 int32_t RunIsExist(std::packaged_task<bool(int32_t)> &task, int32_t timerId) const;
64 int32_t ResetTimerInternal(int32_t timerId);
65 int32_t RemoveTimerInternal(int32_t timerId);
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_timer.c42 void *SoftBusCreateTimer(void **timerId, unsigned int type) in SoftBusCreateTimer() argument
44 (void)timerId; in SoftBusCreateTimer()
55 int SoftBusStartTimer(void *timerId, unsigned int ms) in SoftBusStartTimer() argument
57 if (timerId == NULL) { in SoftBusStartTimer()
58 COMM_LOGE(COMM_ADAPTER, "timerId is NULL"); in SoftBusStartTimer()
61 if (osTimerStart(timerId, ms * osKernelGetTickFreq() / MS_PER_SECOND) != osOK) { in SoftBusStartTimer()
63 (void)osTimerDelete(timerId); in SoftBusStartTimer()
70 int SoftBusDeleteTimer(void *timerId) in SoftBusDeleteTimer() argument
72 if (timerId == NULL) { in SoftBusDeleteTimer()
73 COMM_LOGE(COMM_ADAPTER, "timerId i in SoftBusDeleteTimer()
[all...]
/foundation/multimodalinput/input/service/timer_manager/src/
H A Dtimer_manager.cpp57 int32_t TimerManager::RemoveTimer(int32_t timerId) in RemoveTimer() argument
59 return RemoveTimerInternal(timerId); in RemoveTimer()
62 int32_t TimerManager::ResetTimer(int32_t timerId) in ResetTimer() argument
64 return ResetTimerInternal(timerId); in ResetTimer()
67 bool TimerManager::IsExist(int32_t timerId) in IsExist() argument
69 return IsExistInternal(timerId); in IsExist()
104 int32_t timerId = TakeNextTimerId(); in AddTimerInternal() local
105 if (timerId < 0) { in AddTimerInternal()
109 timer->id = timerId; in AddTimerInternal()
120 return timerId; in AddTimerInternal()
123 RemoveTimerInternal(int32_t timerId) RemoveTimerInternal() argument
135 ResetTimerInternal(int32_t timerId) ResetTimerInternal() argument
155 IsExistInternal(int32_t timerId) IsExistInternal() argument
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Dscheduler_manager.cpp68 bool SchedulerManager::SetTimerTask(uint64_t &timerId, const std::function<void()> &callback, in SetTimerTask() argument
77 timerId = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); in SetTimerTask()
78 if (timerId == 0) { in SetTimerTask()
81 TimeServiceClient::GetInstance()->StartTimer(timerId, static_cast<uint64_t>(reminderTime)); in SetTimerTask()
85 void SchedulerManager::DestoryTimerTask(int64_t timerId) in DestoryTimerTask() argument
87 if (timerId > 0) { in DestoryTimerTask()
88 TimeServiceClient::GetInstance()->DestroyTimer(timerId); in DestoryTimerTask()
92 void SchedulerManager::ResetTimerTask(int64_t timerId, int64_t reminderTime) in ResetTimerTask() argument
94 TimeServiceClient::GetInstance()->StopTimer(timerId); in ResetTimerTask()
95 TimeServiceClient::GetInstance()->StartTimer(timerId, static_cas in ResetTimerTask()
120 auto timerId = it->second; SetTimer() local
141 uint64_t timerId = 0; SetTimer() local
240 auto timerId = item.second; ReExecuteAll() local
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/utils/
H A Ddp_timer.cpp44 DP_DEBUG_LOG("timerId is %{public}u, interval is %{public}u", ret, interval); in StartTimer()
48 void DpsTimer::StopTimer(uint32_t& timerId) in StopTimer() argument
50 DP_DEBUG_LOG("timer shutting down, timerId = %{public}u", timerId); in StopTimer()
51 DP_CHECK_ERROR_RETURN_LOG(timerId == INVALID_TIMEID, "UnRegister timer failed, timerId is invalid"); in StopTimer()
54 timer_->Unregister(timerId); in StopTimer()
55 timerId = INVALID_TIMEID; in StopTimer()
/foundation/multimodalinput/input/service/timer_manager/include/
H A Dtimer_manager.h38 int32_t RemoveTimer(int32_t timerId);
39 int32_t ResetTimer(int32_t timerId);
40 bool IsExist(int32_t timerId);
56 int32_t RemoveTimerInternal(int32_t timerId);
57 int32_t ResetTimerInternal(int32_t timerId);
58 bool IsExistInternal(int32_t timerId);
/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_thread_test.cpp90 uint32_t timerId; in HWTEST_F() local
93 }, timerId); in HWTEST_F()
102 uint32_t timerId; in HWTEST_F() local
105 }, timerId); in HWTEST_F()
107 dhcpTimer->UnRegister(timerId); in HWTEST_F()
119 uint32_t timerId; in HWTEST_F() local
121 }, timerId, 5000); in HWTEST_F()
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dtimer_module.cpp97 timerHandle_t timerId = nullptr; in StartTask() local
104 retVal = timerList->AddTimer(timerId, arguments); in StartTask()
114 retVal = timerList->AddTimer(timerId, arguments); in StartTask()
120 int result = StartTimerTask(repeated, (uint32_t)num, reinterpret_cast<void *>(Task), arguments, &timerId); in StartTask()
124 retVal = timerList->AddTimer(timerId, arguments); in StartTask()
156 int result = StopTimerTask(timer->timerId); in ClearTimer()
196 StopTimerTask(timer->timerId); in Task()
214 uint8_t* timerId = static_cast<uint8_t*>(data); in Task() local
215 if (timerId == nullptr) { in Task()
221 TimerList::TimerNode* timer = timerList->GetTimer(*timerId); in Task()
[all...]
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_timer.c52 void *SoftBusCreateTimer(void **timerId, unsigned int type) in SoftBusCreateTimer() argument
54 if (timerId == NULL) { in SoftBusCreateTimer()
55 COMM_LOGE(COMM_ADAPTER, "timerId is null"); in SoftBusCreateTimer()
65 if (timer_create(CLOCK_REALTIME, &envent, timerId) != 0) { in SoftBusCreateTimer()
70 return *timerId; in SoftBusCreateTimer()
73 int SoftBusStartTimer(void *timerId, unsigned int tickets) in SoftBusStartTimer() argument
75 if (timerId == NULL) { in SoftBusStartTimer()
76 COMM_LOGE(COMM_ADAPTER, "timerId is null"); in SoftBusStartTimer()
91 if (timer_settime(timerId, 0, &value, NULL) != 0) { in SoftBusStartTimer()
99 int SoftBusDeleteTimer(void *timerId) in SoftBusDeleteTimer() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_installer_manager.cpp57 int32_t timerId = XCollieHelper::SetTimer(INSTALL_TASK, TIME_OUT_SECONDS, nullptr, nullptr); in CreateInstallTask()
59 XCollieHelper::CancelTimer(timerId); in CreateInstallTask()
74 int32_t timerId = XCollieHelper::SetTimer(RECOVER_TASK, TIME_OUT_SECONDS, nullptr, nullptr); in CreateRecoverTask()
76 XCollieHelper::CancelTimer(timerId); in CreateRecoverTask()
91 int32_t timerId = XCollieHelper::SetTimer(INSTALL_TASK, TIME_OUT_SECONDS, nullptr, nullptr); in CreateInstallTask()
93 XCollieHelper::CancelTimer(timerId); in CreateInstallTask()
113 int32_t timerId = XCollieHelper::SetTimer(INSTALL_TASK, TIME_OUT_SECONDS, nullptr, nullptr); in CreateInstallByBundleNameTask()
115 XCollieHelper::CancelTimer(timerId); in CreateInstallByBundleNameTask()
130 int32_t timerId = XCollieHelper::SetTimer(UNINSTALL_TASK, TIME_OUT_SECONDS, nullptr, nullptr); in CreateUninstallTask()
132 XCollieHelper::CancelTimer(timerId); in CreateUninstallTask()
[all...]
/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_timer.cpp57 void WifiTimer::UnRegister(uint32_t timerId) in UnRegister() argument
59 if (timerId == 0) { in UnRegister()
60 WIFI_LOGE("timerId is 0, no register timer"); in UnRegister()
69 timer_->RemoveAsyncTask(std::to_string(timerId)); in UnRegister()
102 void WifiTimer::UnRegister(uint32_t timerId) in UnRegister() argument
104 if (timerId == 0) { in UnRegister()
105 WIFI_LOGE("timerId is 0, no register timer"); in UnRegister()
114 timer_->Unregister(timerId); in UnRegister()
/foundation/communication/nfc/services/src/utils/
H A Dnfc_timer.cpp56 void NfcTimer::UnRegister(uint32_t timerId) in UnRegister() argument
58 InfoLog("timer shutting down, timerId = %{public}u", timerId); in UnRegister()
59 if (timerId == 0) { in UnRegister()
60 ErrorLog("timerId is 0, no register timer"); in UnRegister()
69 timer_->Unregister(timerId); in UnRegister()
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_timer.cpp57 HILOGI("timerId: %{public}u", outTimerId); in Register()
61 void NapiTimer::Unregister(uint32_t timerId) in Unregister() argument
63 if (timerId == 0) { in Unregister()
64 HILOGE("timerId is 0, no registered timer"); in Unregister()
68 HILOGI("timerId: %{public}d", timerId); in Unregister()
74 timer_->Unregister(timerId); in Unregister()
/foundation/communication/netmanager_base/utils/common_utils/include/
H A Draii_xcollie_timer.h28 timerId = OHOS::HiviewDFX::XCollie::GetInstance().SetTimer(name, timeout, nullptr, nullptr, in RaiiXCollieTimer()
33 HiviewDFX::XCollie::GetInstance().CancelTimer(timerId); in ~RaiiXCollieTimer()
37 int timerId = -1; member in OHOS::NetManagerStandard::RaiiXCollieTimer
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_timer.h34 void *SoftBusCreateTimer(void **timerId, unsigned int type);
35 int SoftBusStartTimer(void *timerId, unsigned int tickets);
36 int SoftBusDeleteTimer(void *timerId);
/foundation/distributeddatamgr/pasteboard/framework/framework/include/ffrt/
H A Dffrt_utils.h127 void CancelTimer(const std::string &timerId);
128 void SetTimer(const std::string &timerId, FFRTTask &task);
129 void SetTimer(const std::string &timerId, FFRTTask &task, uint32_t delayMs);
130 uint32_t GetTaskId(const std::string &timerId);
135 void CancelTimerInner(const std::string &timerId);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Druntime_context_impl.cpp162 const TimerFinalizer &finalizer, TimerId &timerId) in SetTimer()
164 timerId = 0; in SetTimer()
168 int errCode = SetTimerByThreadPool(milliSeconds, action, finalizer, true, timerId); in SetTimer()
186 errCode = AllocTimerId(evTimer, timerId); in SetTimer()
195 evTimer->SetAction([this, timerId, action](EventsMask revents) -> int { in SetTimer()
196 int errCodeInner = action(timerId); in SetTimer()
198 RemoveTimer(timerId, false); in SetTimer()
207 RemoveTimer(timerId, false); in SetTimer()
208 timerId = 0; in SetTimer()
217 int RuntimeContextImpl::ModifyTimer(TimerId timerId, in argument
161 SetTimer(int milliSeconds, const TimerAction &action, const TimerFinalizer &finalizer, TimerId &timerId) SetTimer() argument
240 RemoveTimer(TimerId timerId, bool wait) RemoveTimer() argument
[all...]
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Dsoftbus_time_test.cpp60 void *timerId = NULL; in HWTEST_F() local
67 SoftBusCreateTimer(&timerId, TIMER_TYPE_ONCE); in HWTEST_F()
68 ret = SoftBusStartTimer(timerId, TIMER_TIMEOUT); in HWTEST_F()
72 ret = SoftBusDeleteTimer(timerId); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/
H A Dsingle_ver_data_message_schedule.cpp229 TimerId timerId = 0; in StartTimer() local
231 TimerAction timeOutCallback = [this](TimerId timerId) { return TimeOut(timerId); }; in StartTimer()
240 }, timerId); in StartTimer()
246 timerId_ = timerId; in StartTimer()
252 TimerId timerId; in StopTimer() local
259 timerId = timerId_; in StopTimer()
262 RuntimeContext::GetInstance()->RemoveTimer(timerId); in StopTimer()
271 int SingleVerDataMessageSchedule::TimeOut(TimerId timerId) in TimeOut() argument
286 LOGI("[DataMsgSchedule] timeout handling, stop timerId_[%" PRIu64 "]", timerId); in TimeOut()
[all...]

Completed in 9 milliseconds

12345