Home
last modified time | relevance | path

Searched refs:ServiceSchedAction (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/
H A Dsched_scheduler_test.cpp106 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::FINISH);
108 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::WAIT);
163 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::START);
165 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::RUNNING);
H A Dsvc_session_manager_test.cpp868 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::START);
876 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::WAIT);
899 EXPECT_EQ(action, BConstants::ServiceSchedAction::WAIT);
903 EXPECT_EQ(action, BConstants::ServiceSchedAction::START);
928 EXPECT_NE(action, BConstants::ServiceSchedAction::WAIT);
934 EXPECT_EQ(action, BConstants::ServiceSchedAction::START);
960 EXPECT_EQ(action, BConstants::ServiceSchedAction::WAIT);
962 … sessionManagerPtr_->SetServiceSchedAction(bundleName, BConstants::ServiceSchedAction::START);
964 EXPECT_NE(action, BConstants::ServiceSchedAction::START);
1847 info.schedAction = BConstants::ServiceSchedAction::RUNNING;
[all …]
H A Dsvc_session_manager_ex_test.cpp139 … sessionManagerPtr_->SetServiceSchedAction(BUNDLE_NAME, BConstants::ServiceSchedAction::RUNNING);
H A Dservice_test.cpp587 extInfo.schedAction = BConstants::ServiceSchedAction::RUNNING;
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_sched/
H A Dsched_scheduler.cpp95 BConstants::ServiceSchedAction action = sessionPtr_->GetServiceSchedAction(bundleName); in ExecutingQueueTasks()
96 if (action == BConstants::ServiceSchedAction::START) { in ExecutingQueueTasks()
116 } else if (action == BConstants::ServiceSchedAction::RUNNING) { in ExecutingQueueTasks()
136 } else if (action == BConstants::ServiceSchedAction::CLEAN) { in ExecutingQueueTasks()
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/include/module_ipc/
H A Dsvc_session_manager.h51 BConstants::ServiceSchedAction schedAction {BConstants::ServiceSchedAction::WAIT};
234 BConstants::ServiceSchedAction GetServiceSchedAction(const std::string &bundleName);
242 … void SetServiceSchedAction(const std::string &bundleName, BConstants::ServiceSchedAction action);
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/module_ipc/
H A Dsvc_session_manager_throw_mock.h47 virtual BConstants::ServiceSchedAction GetServiceSchedAction(const std::string &) = 0;
48 virtual void SetServiceSchedAction(const std::string &, BConstants::ServiceSchedAction) = 0;
116 MOCK_METHOD(BConstants::ServiceSchedAction, GetServiceSchedAction, (const std::string &));
117 MOCK_METHOD(void, SetServiceSchedAction, (const std::string &, BConstants::ServiceSchedAction));
H A Dsvc_session_manager_mock.cpp174 BConstants::ServiceSchedAction SvcSessionManager::GetServiceSchedAction(const std::string &bundleNa… in GetServiceSchedAction()
178 return BConstants::ServiceSchedAction::WAIT; in GetServiceSchedAction()
184 …sionManager::SetServiceSchedAction(const string &bundleName, BConstants::ServiceSchedAction action) in SetServiceSchedAction()
H A Dsvc_session_manager_throw_mock.cpp107 BConstants::ServiceSchedAction SvcSessionManager::GetServiceSchedAction(const std::string &bundleNa… in GetServiceSchedAction()
112 …sionManager::SetServiceSchedAction(const string &bundleName, BConstants::ServiceSchedAction action) in SetServiceSchedAction()
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/
H A Dsvc_session_manager.cpp439 if (it.second.schedAction == BConstants::ServiceSchedAction::WAIT) { in GetSchedBundleName()
445 it.second.schedAction = BConstants::ServiceSchedAction::START; in GetSchedBundleName()
453 BConstants::ServiceSchedAction SvcSessionManager::GetServiceSchedAction(const std::string &bundleNa… in GetServiceSchedAction()
463 …sionManager::SetServiceSchedAction(const string &bundleName, BConstants::ServiceSchedAction action) in SetServiceSchedAction()
472 if (it->second.schedAction == BConstants::ServiceSchedAction::START) { in SetServiceSchedAction()
856 if (it.second.schedAction == BConstants::ServiceSchedAction::RUNNING) { in ClearSessionData()
876 it.second.schedAction = BConstants::ServiceSchedAction::FINISH; in ClearSessionData()
963 if (it->second.schedAction == BConstants::ServiceSchedAction::WAIT) { in CleanAndCheckIfNeedWait()
965 } else if (it->second.schedAction == BConstants::ServiceSchedAction::START || in CleanAndCheckIfNeedWait()
966 …(it->second.schedAction == BConstants::ServiceSchedAction::RUNNING && !it->second.isInPublishFile)… in CleanAndCheckIfNeedWait()
H A Dservice.cpp995 if (action == BConstants::ServiceSchedAction::RUNNING) { in GetFileHandle()
1065 session_->SetServiceSchedAction(callName, BConstants::ServiceSchedAction::CLEAN); in ExtConnectDied()
1247 BConstants::ServiceSchedAction curSchedAction = session_->GetServiceSchedAction(bundleName); in ExtConnectDone()
1248 if (curSchedAction == BConstants::ServiceSchedAction::CLEAN) { in ExtConnectDone()
1252 if (curSchedAction == BConstants::ServiceSchedAction::START && in ExtConnectDone()
1254 session_->SetServiceSchedAction(bundleName, BConstants::ServiceSchedAction::CLEAN); in ExtConnectDone()
1256 session_->SetServiceSchedAction(bundleName, BConstants::ServiceSchedAction::RUNNING); in ExtConnectDone()
H A Dservice_incremental.cpp567 if (action == BConstants::ServiceSchedAction::RUNNING) { in GetIncrementalFileHandle()
/ohos5.0/foundation/filemanagement/app_file_service/utils/include/b_resources/
H A Db_constants.h41 enum ServiceSchedAction { enum