Home
last modified time | relevance | path

Searched refs:FormTimerMgr (Results 1 - 16 of 16) sorted by relevance

/foundation/ability/form_fwk/test/unittest/fms_form_timer_mgr_test/
H A Dfms_form_timer_mgr_test.cpp66 bool isOk = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_1, 1 * Constants::MIN_PERIOD); in HWTEST_F()
79 bool isOk = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_2, 2, 50, 0); in HWTEST_F()
92 bool isAddOk1 = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_3, 336 * Constants::MIN_PERIOD); in HWTEST_F()
94 bool isAddOk2 = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_4, 3, 30, 0); in HWTEST_F()
96 bool isDelOk1 = FormTimerMgr::GetInstance().RemoveFormTimer(PARAM_FORM_ID_VALUE_3); in HWTEST_F()
98 bool isDelOk2 = FormTimerMgr::GetInstance().RemoveFormTimer(PARAM_FORM_ID_VALUE_4); in HWTEST_F()
110 bool isAddOk1 = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_1, 3 * Constants::MIN_PERIOD); in HWTEST_F()
117 bool isUpdateOk1 = FormTimerMgr::GetInstance().UpdateFormTimer(PARAM_FORM_ID_VALUE_1, in HWTEST_F()
130 bool isAddOk2 = FormTimerMgr::GetInstance().AddFormTimer(PARAM_FORM_ID_VALUE_2, 3, 30, 0); in HWTEST_F()
138 bool isUpdateOk2 = FormTimerMgr in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_provider_data_new_leg_test/
H A Dmock_form_timer_mgr.cpp30 FormTimerMgr::FormTimerMgr() in FormTimerMgr() function in OHOS::AppExecFwk::FormTimerMgr
33 FormTimerMgr::~FormTimerMgr() in ~FormTimerMgr()
36 bool FormTimerMgr::IsLimiterEnableRefresh(int64_t formId) in IsLimiterEnableRefresh()
/foundation/ability/form_fwk/test/unittest/fms_form_timer_mgr_new_test/
H A Dfms_form_timer_mgr_new_test.cpp59 std::shared_ptr<FormTimerMgr> formTimerMgr = std::make_shared<FormTimerMgr>(); in HWTEST_F()
79 std::shared_ptr<FormTimerMgr::TimerReceiver> timeReceiver = std::make_shared<FormTimerMgr::TimerReceiver>(); in HWTEST_F()
98 std::shared_ptr<FormTimerMgr::TimerReceiver> timeReceiver = std::make_shared<FormTimerMgr::TimerReceiver>(); in HWTEST_F()
117 std::shared_ptr<FormTimerMgr::TimerReceiver> timeReceiver = std::make_shared<FormTimerMgr::TimerReceiver>(); in HWTEST_F()
136 std::shared_ptr<FormTimerMgr::TimerReceiver> timeReceiver = std::make_shared<FormTimerMgr in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_adapter_test/
H A Dmock_form_timer_mgr.cpp61 bool FormTimerMgr::RemoveFormTimer(int64_t formId) in RemoveFormTimer()
66 bool FormTimerMgr::GetIntervalTimer(int64_t formId, FormTimer &formTimer) in GetIntervalTimer()
71 bool FormTimerMgr::GetUpdateAtTimer(int64_t formId, UpdateAtItem &updateAtItem) in GetUpdateAtTimer()
76 bool FormTimerMgr::GetDynamicItem(int64_t formId, DynamicRefreshItem &dynamicItem) in GetDynamicItem()
81 int FormTimerMgr::GetRefreshCount(int64_t formId) const in GetRefreshCount()
89 bool FormTimerMgr::SetNextRefreshTime(int64_t formId, long nextGapTime, int32_t userId) in SetNextRefreshTime()
/foundation/ability/form_fwk/services/src/
H A Dform_timer_mgr.cpp49 FormTimerMgr::FormTimerMgr() in FormTimerMgr() function in OHOS::AppExecFwk::FormTimerMgr
53 FormTimerMgr::~FormTimerMgr() in ~FormTimerMgr()
65 bool FormTimerMgr::AddFormTimer(const FormTimer &task) in AddFormTimer()
94 bool FormTimerMgr::AddFormTimer(int64_t formId, long updateDuration, int32_t userId) in AddFormTimer()
110 bool FormTimerMgr::AddFormTimer(int64_t formId, long updateAtHour, long updateAtMin, int32_t userId) in AddFormTimer()
122 bool FormTimerMgr::RemoveFormTimer(int64_t formId) in RemoveFormTimer()
148 bool FormTimerMgr::UpdateFormTimer(int64_t formId, const UpdateType &type, const FormTimerCfg &timerCfg) in UpdateFormTimer()
180 bool FormTimerMgr
[all...]
H A Dform_sys_event_receiver.cpp179 FormTimerMgr::GetInstance().RemoveFormTimer(*itRemoved); in HandleUserIdRemoved()
245 FormTimerMgr::GetInstance().UpdateLimiterAlarm(); in HandleUserSwitched()
246 FormTimerMgr::GetInstance().UpdateAtTimerAlarm(); in HandleUserSwitched()
247 FormTimerMgr::GetInstance().UpdateDynamicAlarm(); in HandleUserSwitched()
H A Dform_event_util.cpp130 FormTimerMgr::GetInstance().RemoveFormTimer(id); in HandleProviderUpdated()
179 FormTimerMgr::GetInstance().RemoveFormTimer(formId); in HandleProviderRemoved()
224 FormTimerMgr::GetInstance().RemoveFormTimer(removedForm.first); in HandleFormHostDataCleared()
399 FormTimerMgr::GetInstance().RemoveFormTimer(formId); in HandleTimerUpdate()
413 FormTimerMgr::GetInstance().AddFormTimer(formId, updateDuration, record.providerUserId); in HandleTimerUpdate()
416 FormTimerMgr::GetInstance().AddFormTimer(formId, timerCfg.updateAtHour, in HandleTimerUpdate()
438 FormTimerMgr::GetInstance().UpdateFormTimer(formId, type, newTimerCfg); in HandleTimerUpdate()
565 FormTimerMgr::GetInstance().UpdateFormTimer(formRecord.formId, UpdateType::TYPE_INTERVAL_CHANGE, timerCfg); in HandleAdditionalInfoChanged()
H A Dform_provider_mgr.cpp221 if (!FormTimerMgr::GetInstance().IsLimiterEnableRefresh(formId)) { in ConnectAmsForRefresh()
492 FormTimerMgr::GetInstance().IncreaseRefreshCount(formId); in IncreaseTimerRefreshCount()
H A Dform_ability_connection.cpp90 FormTimerMgr::GetInstance().RemoveFormTimer(formId_); in OnAbilityConnectDone()
H A Dform_mgr_adapter.cpp572 if (!FormTimerMgr::GetInstance().RemoveFormTimer(matchedFormId)) { in ReleaseForm()
598 if (!FormTimerMgr::GetInstance().RemoveFormTimer(formId)) { in HandleReleaseForm()
725 if (!FormTimerMgr::GetInstance().RemoveFormTimer(formId)) { in HandleDeleteFormCache()
1234 * The real updateDuration value needs to be obtained from FormTimerMgr. in DumpFormInfoByBundleName()
1239 FormTimerMgr::GetInstance().GetIntervalTimer(formRecord.formId, formTimer)) { in DumpFormInfoByBundleName()
1283 * The real updateDuration value needs to be obtained from FormTimerMgr. in DumpFormInfoByFormId()
1287 FormTimerMgr::GetInstance().GetIntervalTimer(formRecord.formId, formTimer)) { in DumpFormInfoByFormId()
1317 bool resultInter = FormTimerMgr::GetInstance().GetIntervalTimer(formId, formTimer); in DumpFormTimerByFormId()
1318 bool resultUpdate = FormTimerMgr::GetInstance().GetUpdateAtTimer(formId, updateAtItem); in DumpFormTimerByFormId()
1319 bool resultDynamic = FormTimerMgr in DumpFormTimerByFormId()
[all...]
H A Dform_mgr_service.cpp814 FormTimerMgr::GetInstance(); // Init FormTimerMgr in Init()
/foundation/ability/form_fwk/test/unittest/fms_form_set_next_refresh_test/
H A Dfms_form_set_next_refresh_test.cpp124 EXPECT_EQ(true, FormTimerMgr::GetInstance().dynamicRefreshTasks_.empty()); in HWTEST_F()
137 EXPECT_EQ(false, FormTimerMgr::GetInstance().dynamicRefreshTasks_.empty()); in HWTEST_F()
191 FormTimerMgr::GetInstance().dynamicRefreshTasks_.clear(); in HWTEST_F()
192 FormTimerMgr::GetInstance().dynamicRefreshTasks_.emplace_back(theItem); in HWTEST_F()
194 EXPECT_EQ(1, FormTimerMgr::GetInstance().dynamicRefreshTasks_.at(0).settedTime); in HWTEST_F()
200 FormTimerMgr::GetInstance().AddFormTimer(task); in HWTEST_F()
204 EXPECT_EQ(true, FormTimerMgr::GetInstance().dynamicRefreshTasks_.at(0).settedTime != 1); in HWTEST_F()
232 FormTimerMgr::GetInstance().refreshLimiter_.AddItem(formId); in HWTEST_F()
233 auto iter = FormTimerMgr::GetInstance().refreshLimiter_.limiterMap_.find(formId); in HWTEST_F()
234 if (iter == FormTimerMgr in HWTEST_F()
[all...]
/foundation/ability/form_fwk/services/include/
H A Dform_timer_mgr.h37 * @class FormTimerMgr
40 class FormTimerMgr final : public DelayedRefSingleton<FormTimerMgr> {
41 DECLARE_DELAYED_REF_SINGLETON(FormTimerMgr)
43 DISALLOW_COPY_AND_MOVE(FormTimerMgr);
/foundation/ability/form_fwk/test/fuzztest/formtimermgrannex_fuzzer/
H A Dformtimermgrannex_fuzzer.cpp41 FormTimerMgr formTimerMgr; in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/fuzztest/formtimermgr_fuzzer/
H A Dformtimermgr_fuzzer.cpp41 FormTimerMgr formTimerMgr; in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/unittest/fms_form_event_util_test/
H A Dfms_form_event_util_test.cpp1106 FormTimerMgr::GetInstance().AddFormTimer(formId, updateDuration, 0); in HWTEST_F()
1123 FormTimerMgr::GetInstance().GetIntervalTimer(formId, formTimer); in HWTEST_F()

Completed in 25 milliseconds