Home
last modified time | relevance | path

Searched refs:activatedOsAccountIds (Results 1 - 9 of 9) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_account_helper.cpp35 void BundleActiveAccountHelper::GetActiveUserId(std::vector<int32_t> &activatedOsAccountIds) in GetActiveUserId() argument
38 if (AccountSA::OsAccountManager::QueryActiveOsAccountIds(activatedOsAccountIds) != ERR_OK) { in GetActiveUserId()
41 if (activatedOsAccountIds.size() == 0) { in GetActiveUserId()
45 activatedOsAccountIds.push_back(DEFAULT_OS_ACCOUNT_ID); in GetActiveUserId()
H A Dbundle_active_core.cpp275 std::vector<int32_t> activatedOsAccountIds; in InitBundleGroupController() local
277 GetAllActiveUser(activatedOsAccountIds); in InitBundleGroupController()
278 if (activatedOsAccountIds.size() == 0) { in InitBundleGroupController()
282 for (uint32_t i = 0; i < activatedOsAccountIds.size(); i++) { in InitBundleGroupController()
283 bundleGroupController_->PeriodCheckBundleState(activatedOsAccountIds[i]); in InitBundleGroupController()
469 std::vector<int32_t> activatedOsAccountIds; in ShutDown() local
470 GetAllActiveUser(activatedOsAccountIds); in ShutDown()
471 if (activatedOsAccountIds.size() == 0) { in ShutDown()
475 for (uint32_t i = 0; i < activatedOsAccountIds.size(); i++) { in ShutDown()
476 bundleGroupController_->ShutDown(timeStamp, activatedOsAccountIds[ in ShutDown()
564 std::vector<int32_t> activatedOsAccountIds; OnUserSwitched() local
778 GetAllActiveUser(std::vector<int32_t>& activatedOsAccountIds) GetAllActiveUser() argument
[all...]
H A Dbundle_active_usage_database.cpp497 vector<int32_t> activatedOsAccountIds; in SupportAppTwin() local
498 BundleActiveAccountHelper::GetActiveUserId(activatedOsAccountIds); in SupportAppTwin()
511 for (auto userId: activatedOsAccountIds) { in SupportAppTwin()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_group_handler.cpp201 std::vector<int32_t> activatedOsAccountIds; in ProcessEvent() local
202 BundleActiveAccountHelper::GetActiveUserId(activatedOsAccountIds); in ProcessEvent()
203 for (uint32_t i = 0; i < activatedOsAccountIds.size(); i++) { in ProcessEvent()
204 bundleActiveGroupController_->CheckEachBundleState(activatedOsAccountIds[i]); in ProcessEvent()
205 bundleActiveGroupController_->RestoreToDatabase(activatedOsAccountIds[i]); in ProcessEvent()
/foundation/resourceschedule/device_usage_statistics/test/unittest/mock/
H A Dbundle_active_account_helper_mock.cpp26 void BundleActiveAccountHelper::GetActiveUserId(std::vector<int32_t> &activatedOsAccountIds) in GetActiveUserId() argument
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_account_helper.h31 static void GetActiveUserId(std::vector<int32_t> &activatedOsAccountIds);
H A Dbundle_active_core.h219 void GetAllActiveUser(std::vector<int32_t>& activatedOsAccountIds);
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dbundle_active_total_test.cpp73 std::vector<int32_t> activatedOsAccountIds; in HWTEST_F() local
75 BundleActiveAccountHelper::GetActiveUserId(activatedOsAccountIds); in HWTEST_F()
77 EXPECT_NE(activatedOsAccountIds.size(), 0); in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/
H A Dbg_continuous_task_mgr.cpp1465 std::vector<int32_t> activatedOsAccountIds; in OnAccountsStateChanged() local
1467 if (AccountSA::OsAccountManager::QueryActiveOsAccountIds(activatedOsAccountIds) != ERR_OK) { in OnAccountsStateChanged()
1472 activatedOsAccountIds.push_back(DEFAULT_OS_ACCOUNT_ID); in OnAccountsStateChanged()
1477 auto idIter = find(activatedOsAccountIds.begin(), activatedOsAccountIds.end(), iter->second->GetUserId()); in OnAccountsStateChanged()
1478 if (idIter == activatedOsAccountIds.end()) { in OnAccountsStateChanged()

Completed in 10 milliseconds