/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_event_subscriber.cpp | 42 int32_t oldUserId = Constants::UNSPECIFIED_USERID; in OnReceiveEvent() local 44 if (oldId.empty() || !OHOS::StrToInt(oldId, oldUserId)) { in OnReceiveEvent() 46 oldUserId = Constants::UNSPECIFIED_USERID; in OnReceiveEvent() 50 if ((oldUserId == Constants::DEFAULT_USERID) || (oldUserId == Constants::INVALID_USERID)) { in OnReceiveEvent() 51 APP_LOGI("switch userId %{public}d to %{public}d, no need to process", oldUserId, userId); in OnReceiveEvent() 54 APP_LOGI("switch userId %{public}d to %{public}d", oldUserId, userId); in OnReceiveEvent() 55 std::thread userIdChangedThread(OnUserIdChanged, oldUserId, userId); in OnReceiveEvent() 61 void BundleResourceEventSubscriber::OnUserIdChanged(const int32_t oldUserId, const int32_t newUserId) in OnUserIdChanged() argument 64 callback.OnUserIdSwitched(oldUserId, newUserI in OnUserIdChanged() [all...] |
H A D | bundle_resource_callback.cpp | 26 bool BundleResourceCallback::OnUserIdSwitched(const int32_t oldUserId, const int32_t userId, const uint32_t type) in OnUserIdSwitched() argument 28 APP_LOGI("start, oldUserId:%{public}d to newUserId:%{public}d", oldUserId, userId); in OnUserIdSwitched() 41 if (!manager->AddAllResourceInfo(userId, type, oldUserId)) { in OnUserIdSwitched() 45 APP_LOGI("end, oldUserId:%{public}d to newUserId:%{public}d", oldUserId, userId); in OnUserIdSwitched()
|
H A D | bundle_resource_manager.cpp | 118 bool BundleResourceManager::AddAllResourceInfo(const int32_t userId, const uint32_t type, const int32_t oldUserId) in AddAllResourceInfo() argument 134 if (!AddResourceInfosByMap(resourceInfosMap, tempTaskNum, type, userId, oldUserId)) { in AddAllResourceInfo() 201 const uint32_t type, const int32_t userId, const int32_t oldUserId) in InnerProcessResourceInfoByResourceUpdateType() 214 InnerProcessResourceInfoByUserIdChanged(resourceInfosMap, userId, oldUserId); in InnerProcessResourceInfoByResourceUpdateType() 254 const int32_t userId, const int32_t oldUserId) in InnerProcessResourceInfoByUserIdChanged() 256 APP_LOGI("start process switch oldUserId:%{public}d to userId:%{public}d", oldUserId, userId); in InnerProcessResourceInfoByUserIdChanged() 258 // first, check oldUserId whether exist theme, if exist then need parse again in InnerProcessResourceInfoByUserIdChanged() 259 bool isOldUserExistTheme = InnerProcessWhetherThemeExist(iter->first, oldUserId); in InnerProcessResourceInfoByUserIdChanged() 267 iter->first.c_str(), oldUserId, userI in InnerProcessResourceInfoByUserIdChanged() 199 InnerProcessResourceInfoByResourceUpdateType( std::map<std::string, std::vector<ResourceInfo>> &resourceInfosMap, const uint32_t type, const int32_t userId, const int32_t oldUserId) InnerProcessResourceInfoByResourceUpdateType() argument 252 InnerProcessResourceInfoByUserIdChanged( std::map<std::string, std::vector<ResourceInfo>> &resourceInfosMap, const int32_t userId, const int32_t oldUserId) InnerProcessResourceInfoByUserIdChanged() argument 317 AddResourceInfosByMap( std::map<std::string, std::vector<ResourceInfo>> &resourceInfosMap, const uint32_t tempTaskNumber, const uint32_t type, const int32_t userId, const int32_t oldUserId) AddResourceInfosByMap() argument [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | user_controller.cpp | 117 auto oldUserId = GetCurrentUserId(); in StartUser() local 136 SendSystemUserCurrent(oldUserId, userId); in StartUser() 137 SendReportUserSwitch(oldUserId, userId, userItem); in StartUser() 138 SendUserSwitchTimeout(oldUserId, userId, userItem); in StartUser() 145 MoveUserToForeground(oldUserId, userId, callback, isAppRecovery); in StartUser() 249 int32_t oldUserId = GetCurrentUserId(); in IsCurrentUser() local 250 if (oldUserId == userId) { in IsCurrentUser() 288 void UserController::MoveUserToForeground(int32_t oldUserId, int32_t newUserId, sptr<IUserCallback> callback, in MoveUserToForeground() argument 295 manager->SwitchToUser(oldUserId, newUserId, callback, isAppRecovery); in MoveUserToForeground() 296 BroadcastUserBackground(oldUserId); in MoveUserToForeground() 401 SendSystemUserCurrent(int32_t oldUserId, int32_t newUserId) SendSystemUserCurrent() argument 414 SendReportUserSwitch(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) SendReportUserSwitch() argument 429 SendUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) SendUserSwitchTimeout() argument 445 SendContinueUserSwitch(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) SendContinueUserSwitch() argument 478 HandleSystemUserCurrent(int32_t oldUserId, int32_t newUserId) HandleSystemUserCurrent() argument 483 HandleReportUserSwitch(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) HandleReportUserSwitch() argument 489 HandleUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) HandleUserSwitchTimeout() argument 496 HandleContinueUserSwitch(int32_t oldUserId, int32_t newUserId, std::shared_ptr<UserItem> &usrItem) HandleContinueUserSwitch() argument [all...] |
H A D | ability_manager_service.cpp | 8072 void AbilityManagerService::SwitchToUser(int32_t oldUserId, int32_t userId, sptr<IUserCallback> callback, in SwitchToUser() argument 8076 "%{public}s, oldUserId:%{public}d, newUserId:%{public}d, isAppRecovery:%{public}d", __func__, in SwitchToUser() 8077 oldUserId, userId, isAppRecovery); in SwitchToUser() 8080 PauseOldUser(oldUserId); in SwitchToUser() 8085 bool isBoot = oldUserId == U0_USER_ID ? true : false; in SwitchToUser() 8098 PauseOldConnectManager(oldUserId); in SwitchToUser()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | user_controller.h | 58 int32_t oldUserId; member in OHOS::AAFwk::UserEvent 113 void MoveUserToForeground(int32_t oldUserId, int32_t newUserId, sptr<IUserCallback> callback, 122 void SendSystemUserCurrent(int32_t oldUserId, int32_t newUserId); 123 void SendReportUserSwitch(int32_t oldUserId, int32_t newUserId, 125 void SendUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, 127 void SendContinueUserSwitch(int32_t oldUserId, int32_t newUserId, 132 void HandleSystemUserCurrent(int32_t oldUserId, int32_t newUserId); 133 void HandleReportUserSwitch(int32_t oldUserId, int32_t newUserId, 135 void HandleUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, 137 void HandleContinueUserSwitch(int32_t oldUserId, int32_ [all...] |
H A D | ability_manager_service.h | 1984 void SwitchToUser(int32_t oldUserId, int32_t userId, sptr<IUserCallback> callback,
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bundle_resource/ |
H A D | bundle_resource_manager.h | 48 const int32_t oldUserId = Constants::INVALID_USERID); 96 const uint32_t tempTaskNumber, const uint32_t type, const int32_t userId, const int32_t oldUserId); 100 const int32_t userId, const int32_t oldUserId); 121 const int32_t userId, const int32_t oldUserId);
|
H A D | bundle_resource_event_subscriber.h | 31 static void OnUserIdChanged(const int32_t oldUserId, const int32_t newUserId);
|
H A D | bundle_resource_callback.h | 32 bool OnUserIdSwitched(const int32_t oldUserId, const int32_t newUserId,
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresdrawable_fuzzer/ |
H A D | bundleresdrawable_fuzzer.cpp | 44 int32_t oldUserId = 1; in DoSomethingInterestingWithMyAPI() local 46 subscriberPtr->OnUserIdChanged(oldUserId, newUserId); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_resource_test/ |
H A D | bms_bundle_resource_test.cpp | 3867 int32_t oldUserId = 1; in HWTEST_F() local 3869 subscriberPtr->OnUserIdChanged(oldUserId, newUserId); in HWTEST_F()
|