/ohos5.0/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() 145 MoveUserToForeground(oldUserId, userId, callback); in StartUser() 249 int32_t oldUserId = GetCurrentUserId(); in IsCurrentUser() local 250 if (oldUserId == userId) { in IsCurrentUser() 295 BroadcastUserBackground(oldUserId); in MoveUserToForeground() 408 eventData->oldUserId = oldUserId; in SendSystemUserCurrent() 422 eventData->oldUserId = oldUserId; in SendReportUserSwitch() 437 eventData->oldUserId = oldUserId; in SendUserSwitchTimeout() [all …]
|
H A D | ability_manager_service.cpp | 8100 void AbilityManagerService::SwitchToUser(int32_t oldUserId, int32_t userId, sptr<IUserCallback> cal… in SwitchToUser() argument 8103 "%{public}s, oldUserId:%{public}d, newUserId:%{public}d", __func__, oldUserId, userId); in SwitchToUser() 8106 PauseOldUser(oldUserId); in SwitchToUser() 8111 bool isBoot = oldUserId == U0_USER_ID ? true : false; in SwitchToUser() 8124 PauseOldConnectManager(oldUserId); in SwitchToUser()
|
/ohos5.0/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 newUserI… in OnUserIdChanged() argument 64 callback.OnUserIdSwitched(oldUserId, newUserId); in OnUserIdChanged()
|
H A D | bundle_resource_callback.cpp | 27 bool BundleResourceCallback::OnUserIdSwitched(const int32_t oldUserId, const int32_t userId, const … in OnUserIdSwitched() argument 29 APP_LOGI("start, oldUserId:%{public}d to newUserId:%{public}d", oldUserId, userId); in OnUserIdSwitched() 42 if (!manager->AddAllResourceInfo(userId, type, oldUserId)) { in OnUserIdSwitched() 46 APP_LOGI("end, oldUserId:%{public}d to newUserId:%{public}d", oldUserId, userId); in OnUserIdSwitched()
|
H A D | bundle_resource_manager.cpp | 118 …urceManager::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() argument 214 InnerProcessResourceInfoByUserIdChanged(resourceInfosMap, userId, oldUserId); in InnerProcessResourceInfoByResourceUpdateType() 254 const int32_t userId, const int32_t oldUserId) in InnerProcessResourceInfoByUserIdChanged() argument 256 APP_LOGI("start process switch oldUserId:%{public}d to userId:%{public}d", oldUserId, userId); in InnerProcessResourceInfoByUserIdChanged() 259 bool isOldUserExistTheme = InnerProcessWhetherThemeExist(iter->first, oldUserId); in InnerProcessResourceInfoByUserIdChanged() 267 iter->first.c_str(), oldUserId, userId); in InnerProcessResourceInfoByUserIdChanged() 322 const int32_t oldUserId) in AddResourceInfosByMap() argument 328 InnerProcessResourceInfoByResourceUpdateType(resourceInfosMap, type, userId, oldUserId); in AddResourceInfosByMap()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | user_controller.h | 58 int32_t oldUserId; variable 113 void MoveUserToForeground(int32_t oldUserId, int32_t newUserId, sptr<IUserCallback> callback); 121 void SendSystemUserCurrent(int32_t oldUserId, int32_t newUserId); 122 void SendReportUserSwitch(int32_t oldUserId, int32_t newUserId, 124 void SendUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, 126 void SendContinueUserSwitch(int32_t oldUserId, int32_t newUserId, 131 void HandleSystemUserCurrent(int32_t oldUserId, int32_t newUserId); 132 void HandleReportUserSwitch(int32_t oldUserId, int32_t newUserId, 134 void HandleUserSwitchTimeout(int32_t oldUserId, int32_t newUserId, 136 void HandleContinueUserSwitch(int32_t oldUserId, int32_t newUserId,
|
H A D | ability_manager_service.h | 1995 void SwitchToUser(int32_t oldUserId, int32_t userId, sptr<IUserCallback> callback);
|
/ohos5.0/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,
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
H A D | bundle_update_callback.cpp | 27 void BundleUpdateCallback::OnBundlesReseted(const int32_t oldUserId) in OnBundlesReseted() argument 29 ExtDeviceManager::GetInstance().ClearMatchedDrivers(oldUserId); in OnBundlesReseted()
|
/ohos5.0/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
H A D | domain_account_client_mock_plugin_so_module_test.cpp | 406 int32_t oldUserId = -1; variable 407 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(oldDomainInfo, oldUserId), ERR_OK); 414 EXPECT_EQ(newUserId, oldUserId); 448 int32_t oldUserId = -1; variable 449 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(oldDomainInfo, oldUserId), ERR_OK); 454 EXPECT_EQ(OsAccountManager::RemoveOsAccount(oldUserId), ERR_OK); 487 int32_t oldUserId = -1; variable 488 EXPECT_EQ(OsAccountManager::GetOsAccountLocalIdFromDomain(oldDomainInfo, oldUserId), ERR_OK); 501 EXPECT_EQ(OsAccountManager::RemoveOsAccount(oldUserId), ERR_OK);
|
H A D | domain_account_client_module_test.cpp | 2069 int32_t oldUserId = -1; variable 2070 errCode = OsAccountManager::GetOsAccountLocalIdFromDomain(oldInfo, oldUserId); 2077 EXPECT_EQ(oldUserId, newUserId); 2078 EXPECT_EQ(OsAccountManager::RemoveOsAccount(oldUserId), ERR_OK);
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/drivers_pkg_manager/ |
H A D | ibundle_update_callback.h | 27 virtual void OnBundlesReseted(const int32_t oldUserId) = 0;
|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/device_manager/ |
H A D | bundle_update_callback.h | 26 void OnBundlesReseted(const int32_t oldUserId) override;
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/dependency/hichain/ |
H A D | hichain_connector.cpp | 1141 int32_t oldUserId = MultipleUserConnector::GetSwitchOldUserId(); in DeleteP2PGroup() local 1143 if (!GetGroupInfo(oldUserId, queryParams, groupList)) { in DeleteP2PGroup() 1148 int32_t ret = DeleteGroup(oldUserId, iter->groupId); in DeleteP2PGroup()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | dm_auth_manager.cpp | 2276 int32_t oldUserId = MultipleUserConnector::GetSwitchOldUserId(); in UserSwitchEventCallback() local 2277 DeviceProfileConnector::GetInstance().DeleteP2PAccessControlList(oldUserId, oldAccountId); in UserSwitchEventCallback()
|