/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/update/controller/ |
H A D | update_engine_controller.cpp | 48 INTELL_VOICE_LOG_INFO("TimerEvent %{public}d", timerId_); in OnTimerEvent() 62 timerId_ = INVALID_ID; in UpdateRetryProc() 142 if (timerId_ != INVALID_ID) { in StartUpdateTimer() 143 INTELL_VOICE_LOG_INFO("timer already start %{public}d", timerId_); in StartUpdateTimer() 147 timerId_ = SetTimer(0, delaySecond_ * MS_PER_S * US_PER_MS, 0, this); in StartUpdateTimer() 148 if (timerId_ == INVALID_ID) { in StartUpdateTimer() 149 INTELL_VOICE_LOG_ERROR("timerId %{public}d is invalid", timerId_); in StartUpdateTimer() 160 if (timerId_ == INVALID_ID) { in StopUpdateTimer() 165 KillTimer(timerId_); in StopUpdateTimer() 193 timerId_ in ClearRetryState() [all...] |
/foundation/multimodalinput/input/service/event_handler/src/ |
H A D | key_auto_repeat.cpp | 98 if (TimerMgr->IsExist(timerId_)) { in SelectAutoRepeat() 100 MMI_HILOGI("Keyboard down but timer exists, timerId:%{public}d", timerId_); in SelectAutoRepeat() 104 timerId_, keyEvent_->GetKeyCode()); in SelectAutoRepeat() 107 timerId_, keyEvent_->GetKeyCode()); in SelectAutoRepeat() 110 TimerMgr->RemoveTimer(timerId_); in SelectAutoRepeat() 112 timerId_ = -1; in SelectAutoRepeat() 120 if (JudgeKeyEvent(keyEvent_) && TimerMgr->IsExist(timerId_)) { in SelectAutoRepeat() 121 TimerMgr->RemoveTimer(timerId_); in SelectAutoRepeat() 123 timerId_ = -1; in SelectAutoRepeat() 162 timerId_ in AddHandleTimer() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/utils/ |
H A D | dh_timer.cpp | 30 DHTimer::DHTimer(std::string timerId, int32_t delayTimeMs) : timerId_(timerId), delayTimeMs_(delayTimeMs) in DHTimer() 57 eventHandler_->RemoveTask(timerId_); in ReleaseTimer() 100 eventHandler_->PostTask(executeFunc, timerId_, delayTimeMs_); in StartTimer() 121 eventHandler_->PostTask(executeInnerFunc, timerId_, delayTimeMs_); in Execute()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_generate_worker.cpp | 35 if (timerId_ != 0) {
in ~ThumbnailGenerateWorker() 36 timer_.Unregister(timerId_);
in ~ThumbnailGenerateWorker() 38 timerId_ = 0;
in ~ThumbnailGenerateWorker() 299 if (timerId_ == 0) {
in RegisterWorkerTimer() 303 timer_.Unregister(timerId_);
in RegisterWorkerTimer() 306 timerId_ = timer_.Register(timerCallback, CLOSE_THUMBNAIL_WORKER_TIME_INTERVAL, false);
in RegisterWorkerTimer() 308 taskType_, timerId_);
in RegisterWorkerTimer() 314 if (threads_.empty() && timerId_ != 0) {
in TryCloseTimer() 315 timer_.Unregister(timerId_);
in TryCloseTimer() 317 timerId_ in TryCloseTimer() [all...] |
/foundation/ability/ability_runtime/tools/aa/src/ |
H A D | main.cpp | 36 timerId_ = HiviewDFX::XCollie::GetInstance().SetTimer("ability::aa_command", timeout, in CommandTimer() 43 HiviewDFX::XCollie::GetInstance().CancelTimer(timerId_); in ~CommandTimer() 48 int32_t timerId_ = 0; member in CommandTimer
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | medialibrary_kvstore_manager.cpp | 29 uint32_t MediaLibraryKvStoreManager::timerId_ = 0;
member in OHOS::Media::MediaLibraryKvStoreManager 33 timer_.Unregister(timerId_);
in ~MediaLibraryKvStoreManager() 35 timerId_ = 0;
in ~MediaLibraryKvStoreManager() 119 if (timerId_ == 0) {
in RegisterTimer() 125 timer_.Unregister(timerId_);
in RegisterTimer() 127 timerId_ = timer_.Register(timerCallback, CLOSE_KVSTORE_TIME_INTERVAL, true);
in RegisterTimer()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_data_message_schedule.cpp | 246 timerId_ = timerId; in StartTimer() 247 LOGD("[DataMsgSchedule] StartTimer,TimerId=%" PRIu64, timerId_); in StartTimer() 255 LOGD("[DataMsgSchedule] StopTimer,remove TimerId=%" PRIu64, timerId_); in StopTimer() 256 if (timerId_ == 0) { in StopTimer() 259 timerId = timerId_; in StopTimer() 260 timerId_ = 0; in StopTimer() 286 LOGI("[DataMsgSchedule] timeout handling, stop timerId_[%" PRIu64 "]", timerId); in TimeOut() 287 if (timerId == timerId_) { in TimeOut() 289 timerId_ = 0; in TimeOut()
|
/foundation/multimodalinput/input/service/account_manager/src/ |
H A D | account_manager.cpp | 79 if (timerId_ >= 0) { in ~AccountSetting() 80 TimerMgr->RemoveTimer(timerId_); in ~AccountSetting() 184 timerId_ = TimerMgr->AddTimer(REPEAT_COOLING_TIME, REPEAT_ONCE, [this]() { in InitializeSetting() 187 if (timerId_ < 0) { in InitializeSetting() 191 timerId_ = -1; in InitializeSetting() 311 if (timerId_ >= 0) { in ~AccountManager() 312 TimerMgr->RemoveTimer(timerId_); in ~AccountManager() 363 timerId_ = -1; in SubscribeCommonEvent() 369 timerId_ = TimerMgr->AddTimer(REPEAT_COOLING_TIME, REPEAT_ONCE, [this]() { in SubscribeCommonEvent() 372 if (timerId_ < in SubscribeCommonEvent() [all...] |
/foundation/multimodalinput/input/service/event_handler/test/ |
H A D | key_auto_repeat_test.cpp | 69 int32_t timerId_ = 2; in HWTEST_F() local 73 EXPECT_EQ(timerId_, 2); in HWTEST_F() 74 timerId_ = TimerMgr->AddTimer(1, 1, nullptr); in HWTEST_F() 76 EXPECT_EQ(timerId_, -1); in HWTEST_F() 79 EXPECT_EQ(timerId_, -1); in HWTEST_F()
|
/foundation/multimedia/av_session/utils/src/ |
H A D | avsession_sysevent.cpp | 27 timer_(nullptr), timerId_(0), lifeCycleInfos_ {}, controllerCommandInfos_ {} 99 timerId_ = timer_->Register(timeCallback, NOTIFY_TIME_INTERVAL, false); in Regiter() 108 timer_->Unregister(timerId_); in Unregister()
|
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync/src/ |
H A D | cloud_sync_helper.cpp | 56 timer_.Unregister(timerId_); in ~CloudSyncHelper() 65 timer_.Unregister(timerId_); in StartSync() 69 timerId_ = timer_.Register(bind(&CloudSyncHelper::OnTimerCallback, this), in StartSync()
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/entity/ |
H A D | p2p_create_group_state.cpp | 37 operation_->timerId_ = timer_.Register( in Enter() 83 timer_.Unregister(operation_->timerId_); in OnP2pStateChangeEvent() 100 timer_.Unregister(operation_->timerId_); in OnP2pConnectionChangeEvent()
|
H A D | p2p_destroy_group_state.cpp | 37 operation_->timerId_ = timer_.Register( in Enter() 82 timer_.Unregister(operation_->timerId_); in OnP2pStateChangeEvent() 100 timer_.Unregister(operation_->timerId_); in OnP2pConnectionChangeEvent()
|
H A D | p2p_connect_state.cpp | 50 operation_->timerId_ = timer_.Register( in Enter() 97 timer_.Unregister(operation_->timerId_); in OnP2pStateChangeEvent() 180 timer_.Unregister(operation_->timerId_); in OnP2pConnectionChangeEvent()
|
/foundation/filemanagement/user_file_service/services/native/file_access_service/include/ |
H A D | file_access_service.h | 141 timerId_ = timer_.Register([this] { in start() 160 timer_.Unregister(timerId_); in stop() 168 uint32_t timerId_ = 0; member in OHOS::FileAccessFwk::OnDemandTimer 185 timer_.Unregister(timerId_); in ~UnloadTimer() 191 timerId_ = timer_.Register([this] { in start() 213 uint32_t timerId_ = 0; member in OHOS::FileAccessFwk::UnloadTimer
|
/foundation/multimodalinput/input/service/crown_transform_processor/src/ |
H A D | crown_transform_processor.cpp | 101 if (TimerMgr->IsExist(timerId_)) { in NormalizeRotateEvent() 103 TimerMgr->ResetTimer(timerId_); in NormalizeRotateEvent() 108 timerId_ = TimerMgr->AddTimer(timeout, 1, [weakPtr]() { in NormalizeRotateEvent() 112 sharedProcessor->timerId_ = -1; in NormalizeRotateEvent()
|
/foundation/multimedia/av_session/services/session/adapter/ |
H A D | command_send_limit.cpp | 77 timerId_ = timer_->Register(timerCallback, COMMAND_SEND_TIME, false); in StartTimer() 88 timer_->Unregister(timerId_); in StopTimer()
|
H A D | command_send_limit.h | 43 uint32_t timerId_ = 0; member in OHOS::AVSession::CommandSendLimit
|
/foundation/multimodalinput/input/service/subscriber/include/ |
H A D | switch_subscriber_handler.h | 58 : id_(id), sess_(sess), switchType_(switchType), timerId_(-1) {} in Subscriber() 62 int32_t timerId_ { -1 };
|
/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_subscriber_handler.cpp | 191 subscriber->timerId_ = keyGestureMgr_.AddKeyGesture(subscriber->sess_->GetPid(), keyOption, in AddKeyGestureSubscriber() 195 if (subscriber->timerId_ < 0) { in AddKeyGestureSubscriber() 196 MMI_HILOGE("AddKeyGesture fail, error:%{public}d", subscriber->timerId_); in AddKeyGestureSubscriber() 199 MMI_HILOGI("Handler(%{public}d) of key gesture was added", subscriber->timerId_); in AddKeyGestureSubscriber() 223 MMI_HILOGI("Removing handler(%{public}d) of key gesture", subscriber->timerId_); in RemoveKeyGestureSubscriber() 224 keyGestureMgr_.RemoveKeyGesture(subscriber->timerId_); in RemoveKeyGestureSubscriber() 630 subscriber->timerId_, sess->GetPid()); in OnSessionDelete() 631 keyGestureMgr_.RemoveKeyGesture(subscriber->timerId_); in OnSessionDelete() 833 if (subscriber->timerId_ >= 0) { in AddTimer() 852 subscriber->timerId_ in AddTimer() [all...] |
H A D | key_gesture_manager.cpp | 50 if (timerId_ >= 0) { in ResetTimer() 51 TimerMgr->RemoveTimer(timerId_); in ResetTimer() 52 timerId_ = INVALID_ENTITY_ID; in ResetTimer() 60 timerId_ = TimerMgr->AddTimer(GetLongPressTime(), REPEAT_ONCE, in Trigger() 65 timerId_ = INVALID_ENTITY_ID; in Trigger() 67 if (timerId_ < 0) { in Trigger()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_subscriber.cpp | 89 uint32_t MedialibrarySubscriber::timerId_ = 0; member in OHOS::Media::MedialibrarySubscriber 252 if (timerId_ != 0) { in StartTimer() 262 timerId_ = timer_.Register(timerCallback, SUBSCRIBER_STATUS_TIME, false); in StartTimer() 268 if (timerId_ == 0) { in ShutDownTimer() 271 MEDIA_INFO_LOG("MedialibrarySubscriber ShutDownTimer id %{public}d", timerId_); in ShutDownTimer() 272 timer_.Unregister(timerId_); in ShutDownTimer() 273 timerId_ = 0; in ShutDownTimer()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | sync_task_context.cpp | 308 if (timerId_ > 0) { in StartTimer() 325 timerId_ = timerId; in StartTimer() 334 timerId = timerId_; in StopTimer() 335 if (timerId_ == 0) { in StopTimer() 338 timerId_ = 0; in StopTimer() 346 if (timerId_ == 0) { in ModifyTimer() 349 return RuntimeContext::GetInstance()->ModifyTimer(timerId_, milliSeconds); in ModifyTimer() 374 return timerId_; in GetTimerId()
|
/foundation/multimodalinput/input/service/account_manager/include/ |
H A D | account_manager.h | 66 int32_t timerId_ { -1 }; 99 int32_t timerId_ { -1 };
|
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/include/ |
H A D | cloud_sync_observer.h | 46 uint32_t timerId_ = 0; member in OHOS::Media::CloudSyncObserver
|