Home
last modified time | relevance | path

Searched refs:pkgBgDurationMap_ (Results 1 - 3 of 3) sorted by relevance

/foundation/resourceschedule/background_task_mgr/services/transient_task/src/
H A Ddecision_maker.cpp128 auto itBg = decisionMaker_.pkgBgDurationMap_.find(key); in OnForegroundApplicationChanged()
129 if (itBg != decisionMaker_.pkgBgDurationMap_.end()) { in OnForegroundApplicationChanged()
130 decisionMaker_.pkgBgDurationMap_.erase(itBg); in OnForegroundApplicationChanged()
133 decisionMaker_.pkgBgDurationMap_[key] = TimeProvider::GetCurrentTime(); in OnForegroundApplicationChanged()
191 auto findBgDurationIt = pkgBgDurationMap_.find(key); in Decide()
192 if (findBgDurationIt != pkgBgDurationMap_.end()) { in Decide()
235 auto itBg = pkgBgDurationMap_.find(key); in PauseTransientTaskTimeForInner()
236 if (itBg == pkgBgDurationMap_.end()) { in PauseTransientTaskTimeForInner()
254 auto itBg = pkgBgDurationMap_.find(key); in StartTransientTaskTimeForInner()
255 if (itBg == pkgBgDurationMap_ in StartTransientTaskTimeForInner()
[all...]
/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbgtask_misc_unit_test.cpp315 decisionMaker->pkgBgDurationMap_[keyInfo] = TimeProvider::GetCurrentTime() - ALLOW_REQUEST_TIME_BG - 1; in HWTEST_F()
317 decisionMaker->pkgBgDurationMap_[keyInfo] = TimeProvider::GetCurrentTime(); in HWTEST_F()
716 decisionMaker->pkgBgDurationMap_[keyInfo] = TimeProvider::GetCurrentTime() - ALLOW_REQUEST_TIME_BG - 1; in HWTEST_F()
744 decisionMaker->pkgBgDurationMap_.clear(); in HWTEST_F()
750 decisionMaker->pkgBgDurationMap_[keyInfo] = TimeProvider::GetCurrentTime() - ALLOW_REQUEST_TIME_BG - 1; in HWTEST_F()
776 decisionMaker->pkgBgDurationMap_.clear(); in HWTEST_F()
782 decisionMaker->pkgBgDurationMap_[keyInfo] = TimeProvider::GetCurrentTime() - ALLOW_REQUEST_TIME_BG - 1; in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/transient_task/include/
H A Ddecision_maker.h112 std::map<std::shared_ptr<KeyInfo>, int32_t, KeyInfoComp> pkgBgDurationMap_; member in OHOS::BackgroundTaskMgr::DecisionMaker

Completed in 3 milliseconds