/base/global/i18n/frameworks/intl/src/ |
H A D | multi_users.cpp | 44 std::string localId; in InitMultiUser() local 45 I18nErrorCode errCode = GetForegroundLocalId(localId); in InitMultiUser() 51 AddUser(localId); in InitMultiUser() 70 void MultiUsers::AddUser(const std::string& localId) in AddUser() argument 72 if (!IsValidLocalId(localId)) { in AddUser() 73 HILOG_ERROR_I18N("AddUser: localId is invalid"); in AddUser() 76 I18nErrorCode errCode = SaveGlobalParam(localId); in AddUser() 82 void MultiUsers::RemoveUser(const std::string& localId) in RemoveUser() argument 84 if (!IsValidLocalId(localId)) { in RemoveUser() 85 HILOG_ERROR_I18N("RemoveUser: localId i in RemoveUser() 94 GetForegroundLocalId(std::string& localId) GetForegroundLocalId() argument 106 SaveLanguage(const std::string& localId, const std::string& language) SaveLanguage() argument 127 SaveLocale(const std::string& localId, const std::string& locale) SaveLocale() argument 148 SaveIs24Hour(const std::string& localId, const std::string& is24Hour) SaveIs24Hour() argument 168 SaveGlobalParam(const std::string& localId) SaveGlobalParam() argument 191 LoadGlobalParam(const std::string& localId) LoadGlobalParam() argument 213 RemoveGlobalParam(const std::string& localId) RemoveGlobalParam() argument 235 ReadMultiUsersParameter(const std::string& paramKey, const std::string& localId) ReadMultiUsersParameter() argument 257 WriteMultiUsersParameter(const std::string& paramKey, const std::string& paramValue, const std::string& localId, bool isDel) WriteMultiUsersParameter() argument 295 IsValidLocalId(const std::string& localId) IsValidLocalId() argument [all...] |
/base/global/i18n/frameworks/intl/include/ |
H A D | multi_users.h | 30 static void AddUser(const std::string& localId); 31 static void RemoveUser(const std::string& localId); 32 static I18nErrorCode SaveLanguage(const std::string& localId, const std::string& language); 33 static I18nErrorCode SaveLocale(const std::string& localId, const std::string& locale); 34 static I18nErrorCode SaveIs24Hour(const std::string& localId, const std::string& is24Hour); 37 static I18nErrorCode SaveGlobalParam(const std::string& localId); 38 static I18nErrorCode LoadGlobalParam(const std::string& localId); 39 static I18nErrorCode GetForegroundLocalId(std::string& localId); 40 static I18nErrorCode RemoveGlobalParam(const std::string& localId); 41 static std::string ReadMultiUsersParameter(const std::string& paramKey, const std::string& localId); [all...] |
/base/global/i18n/services/src/ |
H A D | i18n_service_event.cpp | 75 std::string localId = std::to_string(startReason.GetExtraData().GetCode()); in CheckStartReason() local 77 HandleMultiUser(action, localId); in CheckStartReason() 83 std::string localId = std::to_string(data.GetCode()); in OnReceiveEvent() local 85 HandleMultiUser(action, localId); in OnReceiveEvent() 88 void I18nServiceEvent::HandleMultiUser(const std::string& action, const std::string& localId) in HandleMultiUser() argument 92 MultiUsers::SwitchUser(localId); in HandleMultiUser() 94 MultiUsers::AddUser(localId); in HandleMultiUser() 96 MultiUsers::RemoveUser(localId); in HandleMultiUser()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_interface.cpp | 71 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStart() local 72 ACCOUNT_LOGI("Start OS account %{public}d", localId); in SendToAMSAccountStart() 76 ReportOsAccountOperationFail(localId, Constants::OPERATION_START, in SendToAMSAccountStart() 82 ErrCode code = AbilityManagerAdapter::GetInstance()->StartUser(localId, in SendToAMSAccountStart() 86 ReportOsAccountOperationFail(localId, Constants::OPERATION_ACTIVATE, code, in SendToAMSAccountStart() 97 ReportOsAccountOperationFail(localId, Constants::OPERATION_START, osAccountStartUserCallback->resultCode_, in SendToAMSAccountStart() 101 ACCOUNT_LOGI("end, succeed %{public}d", localId); in SendToAMSAccountStart() 107 int32_t localId = osAccountInfo.GetLocalId(); in SendToAMSAccountStop() local 108 ACCOUNT_LOGI("Stop OS account %{public}d", localId); in SendToAMSAccountStop() 112 ReportOsAccountOperationFail(localId, Constant in SendToAMSAccountStop() 143 int32_t localId = osAccountInfo.GetLocalId(); SendToAMSAccountDeactivate() local 157 InitThemeResource(int32_t localId) InitThemeResource() argument 363 int32_t localId = osAccountInfo.GetLocalId(); InnerSendToStorageAccountCreate() local 464 UnlockUser(const int localId) UnlockUser() argument 506 int localId = osAccountInfo.GetLocalId(); SendToStorageAccountStart() local 564 int localId = osAccountInfo.GetLocalId(); SendToStorageAccountStop() local 581 SendToStorageAccountCreateComplete(int32_t localId) SendToStorageAccountCreateComplete() argument 597 InnerSendToStorageAccountCreateComplete(int32_t localId) InnerSendToStorageAccountCreateComplete() argument [all...] |
H A D | os_account_stub.cpp | 719 int32_t localId; in ProcRemoveOsAccount() local 720 if (!data.ReadInt32(localId)) { in ProcRemoveOsAccount() 721 ACCOUNT_LOGE("failed to read localId"); in ProcRemoveOsAccount() 725 ErrCode result = RemoveOsAccount(localId); in ProcRemoveOsAccount() 735 int32_t localId; in ProcSetOsAccountName() local 736 if (!data.ReadInt32(localId)) { in ProcSetOsAccountName() 737 ACCOUNT_LOGE("failed to read localId"); in ProcSetOsAccountName() 741 ErrCode result = SetOsAccountName(localId, localName); in ProcSetOsAccountName() 751 int32_t localId; in ProcSetOsAccountConstraints() local 752 if (!data.ReadInt32(localId)) { in ProcSetOsAccountConstraints() 773 int32_t localId; ProcSetOsAccountProfilePhoto() local 806 int32_t localId; ProcQueryOsAccountById() local 886 int32_t localId; ProcGetOsAccountAllConstraints() local 906 int localId = -1; ProcGetOsAccountLocalIdFromProcess() local 949 int32_t localId; ProcGetOsAccountProfilePhoto() local 987 int localId = -1; ProcGetOsAccountLocalIdFromDomain() local 1019 int32_t localId; ProcGetOsAccountType() local 1083 int32_t localId; ProcIsOsAccountActived() local 1103 int32_t localId; ProcCheckOsAccountConstraintEnabled() local 1165 int32_t localId; ProcIsOsAccountVerified() local 1185 int32_t localId; ProcIsOsAccountExists() local 1259 int32_t localId; ProcActivateOsAccount() local 1277 int32_t localId; ProcDeactivateOsAccount() local 1302 int32_t localId; ProcStartOsAccount() local 1339 int32_t localId; ProcIsOsAccountCompleted() local 1367 int32_t localId; ProcSetOsAccountIsVerified() local 1511 int32_t localId; ProcQueryOsAccountConstraintSourceTypes() local 1564 int32_t localId; ProcSetDefaultActivatedOsAccount() local 1579 int32_t localId = 0; ProcGetDefaultActivatedOsAccount() local 1677 int32_t localId; ProcIsOsAccountForeground() local 1710 int32_t localId; ProcGetForegroundOsAccountLocalId() local 1770 int32_t localId; ProcSetOsAccountToBeRemoved() local [all...] |
H A D | inner_os_account_manager.cpp | 206 ACCOUNT_LOGE("account not found, localId: %{public}d, error: %{public}d", defaultActivatedId_, errCode); in RetryToGetAccount() 397 int32_t localId = osAccountInfo.GetLocalId(); in RetryToGetAccount() local 399 auto task = [localId] { OsAccountInterface::InitThemeResource(localId); }; in RetryToGetAccount() 426 ReportOsAccountOperationFail(localId, Constants::OPERATION_CREATE, errCode, "Failed to update OS account"); in RetryToGetAccount() 433 (void)OsAccountInterface::SendToStorageAccountCreateComplete(localId); in RetryToGetAccount() 434 ReportOsAccountLifeCycle(localId, Constants::OPERATION_CREATE); in RetryToGetAccount() 436 subscribeManager_.Publish(localId, OS_ACCOUNT_SUBSCRIBE_TYPE::CREATED); in RetryToGetAccount() 588 int32_t localId = newInfo.GetLocalId(); in RetryToGetAccount() local 589 if (!CheckAndAddLocalIdOperating(localId)) { in RetryToGetAccount() 903 IsToBeRemoved(int32_t localId) RetryToGetAccount() argument 925 int32_t localId = 0; RetryToGetAccount() local 983 int32_t localId = osAccountInfo.GetLocalId(); RetryToGetAccount() local 1318 DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId) RetryToGetAccount() argument 1622 int localId = osAccountInfo.GetLocalId(); RetryToGetAccount() local 1770 int32_t localId = static_cast<int32_t>(osAccountInfo.GetLocalId()); RetryToGetAccount() local 2045 IsOsAccountForeground(const int32_t localId, const uint64_t displayId, bool &isForeground) RetryToGetAccount() argument 2057 GetForegroundOsAccountLocalId(const uint64_t displayId, int32_t &localId) RetryToGetAccount() argument 2147 RemoveLocalIdToOperating(int32_t localId) RetryToGetAccount() argument 2156 CheckAndAddLocalIdOperating(int32_t localId) RetryToGetAccount() argument 2263 int32_t localId = osAccountInfo.GetLocalId(); RetryToGetAccount() local 2350 SetOsAccountToBeRemoved(int32_t localId, bool toBeRemoved) RetryToGetAccount() argument [all...] |
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
H A D | os_account_database_operator_test.cpp | 77 int localId = 1; // 1 is invalid test local id in HWTEST_F() local 78 info.SetLocalId(localId); in HWTEST_F() 80 EXPECT_EQ(info.GetLocalId(), localId); in HWTEST_F() 94 int localId = 300; // 300 is invalid test local id in HWTEST_F() local 95 info.SetLocalId(localId); in HWTEST_F() 97 EXPECT_EQ(info.GetLocalId(), localId); in HWTEST_F()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
H A D | mock_domain_auth_callback.cpp | 41 int32_t localId = accountInfo_.GetLocalId();
in OnResult() local 42 if (localId > START_USER_ID) {
in OnResult() 43 ErrCode errCode = OsAccountManager::RemoveOsAccount(localId);
in OnResult() 52 ACCOUNT_LOGI("removeOsAccount successfully, localId: %{public}d", localId);
in OnResult()
|
/base/account/os_account/test/fuzztest/osaccount/isosaccountforeground_fuzzer/ |
H A D | isosaccountforeground_fuzzer.cpp | 36 int32_t localId = fuzzData.GetData<int32_t>(); in IsOsAccountForegroundWith2ArgsFuzzTest() local 37 OsAccountManager::IsOsAccountForeground(localId, isForeground); in IsOsAccountForegroundWith2ArgsFuzzTest() 47 int32_t localId = fuzzData.GetData<int32_t>(); in IsOsAccountForegroundWith3ArgsFuzzTest() local 48 OsAccountManager::IsOsAccountForeground(localId, Constants::DEFAULT_DISPALY_ID, isForeground); in IsOsAccountForegroundWith3ArgsFuzzTest()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_interface.h | 39 static void InitThemeResource(int32_t localId); 48 static ErrCode SendToStorageAccountCreateComplete(int32_t localId); 58 static ErrCode InnerSendToStorageAccountCreateComplete(int32_t localId); 60 static int32_t UnlockUser(const int localId);
|
H A D | iinner_os_account_manager.h | 106 ErrCode IsOsAccountForeground(const int32_t localId, const uint64_t displayId, bool &isForeground) override; 107 ErrCode GetForegroundOsAccountLocalId(const uint64_t displayId, int32_t &localId) override; 110 ErrCode SetOsAccountToBeRemoved(int32_t localId, bool toBeRemoved) override; 150 void RemoveLocalIdToOperating(int32_t localId); 151 bool CheckAndAddLocalIdOperating(int32_t localId); 152 ErrCode DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId); 154 bool IsToBeRemoved(int32_t localId);
|
/base/account/os_account/frameworks/osaccount/core/src/ |
H A D | os_account_event_proxy.cpp | 28 void OsAccountEventProxy::OnAccountsChanged(const int &localId) in OnAccountsChanged() argument 38 if (!data.WriteInt32(localId)) { in OnAccountsChanged() 39 ACCOUNT_LOGE("failed to write WriteInt32 localId %{public}d.", localId); in OnAccountsChanged() 45 ACCOUNT_LOGE("SendRequest for account changed failed! result %{public}d, localId %{public}d.", in OnAccountsChanged() 46 result, localId); in OnAccountsChanged()
|
H A D | os_account.cpp | 28 static ErrCode CheckLocalId(int localId) in CheckLocalId() argument 30 if (localId < 0) { in CheckLocalId() 31 ACCOUNT_LOGE("id %{public}d is invalid", localId); in CheckLocalId() 913 ErrCode OsAccount::IsOsAccountForeground(const int32_t localId, bool &isForeground) in IsOsAccountForeground() argument 915 if (localId < Constants::ADMIN_LOCAL_ID) { in IsOsAccountForeground() 916 ACCOUNT_LOGE("LocalId %{public}d is invlaid", localId); in IsOsAccountForeground() 919 return IsOsAccountForegroundCommon(localId, Constants::DEFAULT_DISPALY_ID, isForeground); in IsOsAccountForeground() 922 ErrCode OsAccount::IsOsAccountForeground(const int32_t localId, const uint64_t displayId, bool &isForeground) in IsOsAccountForeground() argument 924 if (localId < Constants::ADMIN_LOCAL_ID) { in IsOsAccountForeground() 925 ACCOUNT_LOGE("LocalId %{public}d is invlaid", localId); in IsOsAccountForeground() 935 IsOsAccountForegroundCommon(const int32_t localId, const uint64_t displayId, bool &isForeground) IsOsAccountForegroundCommon() argument 944 GetForegroundOsAccountLocalId(int32_t &localId) GetForegroundOsAccountLocalId() argument 949 GetForegroundOsAccountLocalId(const uint64_t displayId, int32_t &localId) GetForegroundOsAccountLocalId() argument 958 GetForegroundLocalIdCommon(const uint64_t displayId, int32_t &localId) GetForegroundLocalIdCommon() argument 985 SetOsAccountToBeRemoved(int32_t localId, bool toBeRemoved) SetOsAccountToBeRemoved() argument [all...] |
/base/account/os_account/test/fuzztest/osaccount/getforegroundosaccountlocalid_fuzzer/ |
H A D | getforegroundosaccountlocalid_fuzzer.cpp | 31 int32_t localId = 0; in GetForegroundOsAccountLocalIdFuzzTest() local 35 OsAccountManager::GetForegroundOsAccountLocalId(FuzzData(data, size).GetData<uint64_t>(), localId); in GetForegroundOsAccountLocalIdFuzzTest()
|
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_info.h | 40 int32_t localId; member 45 int32_t localId; member 62 OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber); 64 OsAccountInfo(int localId, const std::string localName, const std::string shortName, OsAccountType type, 69 void SetLocalId(int localId);
|
H A D | os_account_manager.h | 231 * @param localId - Indicates the local ID of the OS account. 256 * @param localId - Indicates the local ID of the OS account. 297 * @param localId - Indicates the local ID of the OS account. 306 * @param localId - Indicates the local ID of the OS account. 326 * @param localId - Indicates the local ID of the OS account. 392 * @brief Gets localId according to serial number. 400 * @brief Gets serial number according to localId. 401 * @param localId - Indicates the local ID of the OS account. 508 * @param localId - Indicates the local ID of the OS account. 578 * @param isForeground - Indicates whether the specified localId i [all...] |
/base/account/os_account/frameworks/osaccount/core/include/ |
H A D | os_account.h | 97 ErrCode IsOsAccountForeground(const int32_t localId, bool &isForeground); 98 ErrCode IsOsAccountForeground(const int32_t localId, const uint64_t displayId, bool &isForeground); 99 ErrCode GetForegroundOsAccountLocalId(int32_t &localId); 100 ErrCode GetForegroundOsAccountLocalId(const uint64_t displayId, int32_t &localId); 103 ErrCode SetOsAccountToBeRemoved(int32_t localId, bool toBeRemoved); 112 ErrCode IsOsAccountForegroundCommon(int32_t localId, uint64_t displayId, bool &isForeground); 113 ErrCode GetForegroundLocalIdCommon(uint64_t displayId, int32_t &localId);
|
H A D | os_account_event_proxy.h | 29 void OnAccountsChanged(const int &localId) override;
|
/base/account/os_account/services/accountmgr/test/mock/os_account/ |
H A D | os_account_interface.h | 28 static void InitThemeResource(int32_t localId); 39 static ErrCode SendToStorageAccountCreateComplete(int32_t localId);
|
H A D | os_account_interface.cpp | 34 void OsAccountInterface::InitThemeResource(int32_t localId) in InitThemeResource() argument 93 ErrCode OsAccountInterface::SendToStorageAccountCreateComplete(int32_t localId) in SendToStorageAccountCreateComplete() argument
|
/base/account/os_account/frameworks/osaccount/native/src/ |
H A D | os_account_manager.cpp | 356 ErrCode OsAccountManager::IsOsAccountForeground(const int32_t localId, bool &isForeground) in IsOsAccountForeground() argument 358 return OsAccount::GetInstance().IsOsAccountForeground(localId, isForeground); in IsOsAccountForeground() 361 ErrCode OsAccountManager::IsOsAccountForeground(const int32_t localId, const uint64_t displayId, bool &isForeground) in IsOsAccountForeground() argument 363 return OsAccount::GetInstance().IsOsAccountForeground(localId, displayId, isForeground); in IsOsAccountForeground() 366 ErrCode OsAccountManager::GetForegroundOsAccountLocalId(int32_t &localId) in GetForegroundOsAccountLocalId() argument 368 return OsAccount::GetInstance().GetForegroundOsAccountLocalId(localId); in GetForegroundOsAccountLocalId() 371 ErrCode OsAccountManager::GetForegroundOsAccountLocalId(const uint64_t displayId, int32_t &localId) in GetForegroundOsAccountLocalId() argument 373 return OsAccount::GetInstance().GetForegroundOsAccountLocalId(displayId, localId); in GetForegroundOsAccountLocalId() 386 ErrCode OsAccountManager::SetOsAccountToBeRemoved(int32_t localId, bool toBeRemoved) in SetOsAccountToBeRemoved() argument 388 return OsAccount::GetInstance().SetOsAccountToBeRemoved(localId, toBeRemove in SetOsAccountToBeRemoved() [all...] |
/base/account/os_account/services/accountmgr/test/unittest/domain_account/mock/ |
H A D | mock_musl.cpp | 62 PluginBussnessError* AddServerConfig(const PluginString *parameters, const int32_t localId, in AddServerConfig() argument 74 PluginBussnessError* RemoveServerConfig(const PluginString *serverConfigId, const int32_t localId) in RemoveServerConfig() argument 98 const PluginUint8Vector *credential, const int32_t localId, PluginAuthResultInfo **authResultInfo) in Auth() 157 PluginBussnessError* BindAccount(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId, in BindAccount() argument 97 Auth(const PluginDomainAccountInfo *domainAccountInfo, const PluginUint8Vector *credential, const int32_t localId, PluginAuthResultInfo **authResultInfo) Auth() argument
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | app_account_control_manager.cpp | 53 static ErrCode SaveDataToAsset(int32_t localId, const std::string &hapLabel, const std::string &accountLabel, in SaveDataToAsset() argument 68 if (localId == 0) { in SaveDataToAsset() 81 if (localId != 0) { in SaveDataToAsset() 82 AssetValue localIdValue = { .u32 = localId }; in SaveDataToAsset() 97 static ErrCode GetDataFromAsset(int32_t localId, const std::string &alias, std::string &value) in GetDataFromAsset() argument 106 if (localId != 0) { in GetDataFromAsset() 107 AssetValue localIdValue = { .u32 = localId }; in GetDataFromAsset() 129 static ErrCode RemoveDataFromAsset(int32_t localId, const std::string &alias) in RemoveDataFromAsset() argument 136 if (localId != 0) { in RemoveDataFromAsset() 137 AssetValue localIdValue = { .u32 = localId }; in RemoveDataFromAsset() 148 RemoveDataFromAssetByLabel(int32_t localId, int32_t tag, const std::string &label) RemoveDataFromAssetByLabel() argument 211 AddMigratedAccount(int32_t localId) AddMigratedAccount() argument 620 int32_t localId = appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR; SetAccountCredential() local 715 int32_t localId = request.callerUid / UID_TRANSFORM_DIVISOR; SetOAuthToken() local 1044 SetOsAccountRemoved(int32_t localId, bool isRemoved) SetOsAccountRemoved() argument 1053 IsOsAccountRemoved(int32_t localId) IsOsAccountRemoved() argument 1063 int32_t localId = uid / UID_TRANSFORM_DIVISOR; OnPackageRemoved() local [all...] |
/base/account/os_account/frameworks/domain_account/test/moduletest/include/ |
H A D | mock_domain_so_plugin.h | 27 PluginBussnessError *BindAccount(const PluginDomainAccountInfo *domainAccountInfo, const int32_t localId);
|
/base/account/os_account/services/accountmgr/src/domain_account/ |
H A D | inner_domain_account_manager.cpp | 540 int32_t localId = GetCallingUserID();
in AddServerConfig() local 541 if (localId == INVALID_USERID) {
in AddServerConfig() 547 PluginBussnessError* error = (*reinterpret_cast<AddServerConfigFunc>(iter->second))(¶m, localId, &configInfo);
in AddServerConfig() 564 int32_t localId = GetCallingUserID();
in RemoveServerConfig() local 565 if (localId == -1) {
in RemoveServerConfig() 570 PluginBussnessError* error = (*reinterpret_cast<RemoveServerConfigFunc>(iter->second))(&serverConfigId, localId);
in RemoveServerConfig() 591 int32_t localId = 0;
in GetAccountServerConfig() local 592 ErrCode result = IInnerOsAccountManager::GetInstance().GetOsAccountLocalIdFromDomain(info, localId);
in GetAccountServerConfig() 594 ACCOUNT_LOGE("get os account localId from domain failed, result: %{public}d", result);
in GetAccountServerConfig() 622 int32_t localId in PluginAuth() local 683 PluginBindAccount(const DomainAccountInfo &info, const int32_t localId, DomainAuthResult &resultParcel) PluginBindAccount() argument 1433 StartOnAccountBound(const sptr<IDomainAccountPlugin> &plugin, const DomainAccountInfo &info, const int32_t localId, const sptr<IDomainAccountCallback> &callback) StartOnAccountBound() argument 1443 OnAccountBound(const DomainAccountInfo &info, const int32_t localId, const std::shared_ptr<DomainAccountCallback> &callback) OnAccountBound() argument 1542 int32_t localId = GetCallingUserID(); PluginGetDomainAccountInfo() local [all...] |