Home
last modified time | relevance | path

Searched refs:accountInfo (Results 1 – 25 of 42) sorted by relevance

12

/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/
Daccount_mgr_inner_sdk_func_test.cpp116 std::unique_ptr<OhosAccountInfo> accountInfo = std::make_unique<OhosAccountInfo>(); variable
117 ASSERT_TRUE(accountInfo != nullptr);
145 OhosAccountInfo accountInfo; variable
147 accountInfo.name_ = TEST_ACCOUNT_NAME;
148 accountInfo.status_ = ACCOUNT_STATE_UNBOUND;
149 accountInfo.uid_ = TEST_ACCOUNT_UID;
150 accountInfo.nickname_ = TEST_NICKNAME;
151 accountInfo.avatar_ = TEST_AVATAR;
152 accountInfo.scalableData_.SetParam(KEY_ACCOUNT_INFO_SCALABLEDATA, 123);
154 auto ret = OhosAccountKits::GetInstance().SetOhosAccountInfo(accountInfo, g_eventLogin);
[all …]
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
Dohos_account_data_deal_test.cpp69 AccountInfo accountInfo; variable
71 ErrCode errCode = dataDeal.AccountInfoFromJson(accountInfo, TEST_VALID_USER_ID);
83 AccountInfo accountInfo; variable
88 errCode = dataDeal.AccountInfoFromJson(accountInfo, TEST_VALID_USER_ID);
90 EXPECT_EQ(accountInfo.ohosAccountInfo_.status_, ACCOUNT_STATE_UNBOUND);
91 EXPECT_EQ(accountInfo.ohosAccountInfo_.name_, TEST_STR_ACCOUNT_NAME);
92 EXPECT_EQ(accountInfo.userId_, TEST_VALID_USER_ID);
93 EXPECT_EQ(accountInfo.ohosAccountInfo_.uid_, TEST_STR_OPEN_ID);
107 AccountInfo accountInfo; variable
115 errCode = dataDeal.AccountInfoFromJson(accountInfo, TEST_VALID_USER_ID);
[all …]
Dohos_account_manager_test.cpp141 OhosAccountInfo accountInfo; variable
142 accountInfo.name_ = TEST_NAME;
143 accountInfo.uid_ = TEST_UID;
144 auto ret = OhosAccountManager::GetInstance().LoginOhosAccount(-1, accountInfo, g_eventLogin);
147 …ret = OhosAccountManager::GetInstance().HandleOhosAccountTokenInvalidEvent(-1, accountInfo, g_even…
/base/account/os_account/services/accountmgr/src/
Dohos_account_data_deal.cpp87 ErrCode OhosAccountDataDeal::AccountInfoFromJson(AccountInfo &accountInfo, int32_t userId) in AccountInfoFromJson() argument
93 return GetAccountInfo(accountInfo, userId); in AccountInfoFromJson()
96 ErrCode OhosAccountDataDeal::AccountInfoToJson(const AccountInfo &accountInfo) const in AccountInfoToJson()
102 return SaveAccountInfo(accountInfo); in AccountInfoToJson()
105 ErrCode OhosAccountDataDeal::SaveAccountInfo(const AccountInfo &accountInfo) const in SaveAccountInfo()
107 std::string scalableDataStr = (accountInfo.ohosAccountInfo_.scalableData_).ToString(); in SaveAccountInfo()
109 {DATADEAL_JSON_KEY_BIND_TIME, accountInfo.bindTime_}, in SaveAccountInfo()
110 {DATADEAL_JSON_KEY_USERID, accountInfo.userId_}, in SaveAccountInfo()
111 {DATADEAL_JSON_KEY_OHOSACCOUNT_NAME, accountInfo.ohosAccountInfo_.name_}, in SaveAccountInfo()
112 {DATADEAL_JSON_KEY_OHOSACCOUNT_RAW_UID, accountInfo.ohosAccountInfo_.GetRawUid()}, in SaveAccountInfo()
[all …]
Daccount_mgr_service.cpp127 AccountInfo accountInfo; in GetOhosAccountInfoByUserId() local
128 ErrCode ret = OhosAccountManager::GetInstance().GetAccountInfoByUserId(userId, accountInfo); in GetOhosAccountInfoByUserId()
132 info = accountInfo.ohosAccountInfo_; in GetOhosAccountInfoByUserId()
138 AccountInfo accountInfo; in QueryOhosAccountInfoByUserId() local
139 ErrCode ret = OhosAccountManager::GetInstance().GetAccountInfoByUserId(userId, accountInfo); in QueryOhosAccountInfoByUserId()
145accountInfo.ohosAccountInfo_.name_, accountInfo.ohosAccountInfo_.uid_, accountInfo.ohosAccountInfo… in QueryOhosAccountInfoByUserId()
/base/account/os_account/services/accountmgr/include/
Dohos_account_data_deal.h34 ErrCode AccountInfoFromJson(AccountInfo &accountInfo, int32_t userId);
35 ErrCode AccountInfoToJson(const AccountInfo &accountInfo) const;
44 ErrCode SaveAccountInfo(const AccountInfo &accountInfo) const;
45 ErrCode GetAccountInfo(AccountInfo &accountInfo, const int32_t userId);
47 ErrCode GetAccountInfoFromJson(AccountInfo &accountInfo, const int32_t userId);
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
Daccount_adapt.cpp48 std::pair<bool, OHOS::AccountSA::OhosAccountInfo> accountInfo = in GetLocalAccountName() local
50 if (accountInfo.first) { in GetLocalAccountName()
51 *account = strdup(accountInfo.second.name_.c_str()); in GetLocalAccountName()
59 OHOS::AccountSA::OhosAccountInfo accountInfo; in GetLocalAccountUid() local
61 accountInfo); in GetLocalAccountUid()
65 accountUid = accountInfo.GetRawUid(); in GetLocalAccountUid()
87 OhosAccountInfo accountInfo; in IsAccountLogIn() local
88 res = OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(osAccountId, accountInfo); in IsAccountLogIn()
93 if (accountInfo.status_ == ACCOUNT_STATE_UNBOUND) { in IsAccountLogIn()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_plugin.cpp128 if (options.accountInfo.accountName_ == ACCOUNT_NAME) { in GetDomainAccountInfo()
130 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
131 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
136 if (options.accountInfo.accountName_ == STRING_NAME) { in GetDomainAccountInfo()
138 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
139 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
144 if (options.accountInfo.accountName_ == STRING_NAME_NEW) { in GetDomainAccountInfo()
146 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
147 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
152 if (options.accountInfo.accountName_ == VALID_ACCOUNT_NAME) { in GetDomainAccountInfo()
[all …]
Dmock_domain_auth_callback_for_listener.cpp41 void TestDomainAuthCallbackForListener::SetOsAccountInfo(const OsAccountInfo &accountInfo) in SetOsAccountInfo() argument
43 accountInfo_ = accountInfo; in SetOsAccountInfo()
Dmock_domain_auth_callback.cpp54 void TestDomainAuthCallback::SetOsAccountInfo(const OsAccountInfo &accountInfo) in SetOsAccountInfo() argument
56 accountInfo_ = accountInfo; in SetOsAccountInfo()
/base/account/os_account/frameworks/test/unittest/
Daccount_ohosaccount_proxy_mock_test.cpp70 OhosAccountInfo accountInfo; variable
72 … ErrCode ret = OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(testUserId, accountInfo);
110 OhosAccountInfo accountInfo; variable
111 accountInfo.name_ = "TestAccountName";
112 …ErrCode ret = OhosAccountKits::GetInstance().SetOhosAccountInfo(accountInfo, OHOS_ACCOUNT_EVENT_LO…
/base/telephony/cellular_data/services/src/utils/
Dnet_manager_tactics_call_back.cpp38 IccAccountInfo accountInfo; in NetStrategySwitch() local
39 if (coreInner.GetSimAccountInfo(i, accountInfo) != TELEPHONY_ERR_SUCCESS) { in NetStrategySwitch()
42 if (netSimId == accountInfo.simId) { in NetStrategySwitch()
/base/account/os_account/dfx/hidumper_adapter/
Daccount_dump_helper.cpp130 AccountInfo accountInfo; in ShowOhosAccountInfo() local
131 …sAccountManager::GetInstance().GetAccountInfoByUserId(osAccountInfos[i].GetLocalId(), accountInfo); in ShowOhosAccountInfo()
133 result.append(std::to_string(accountInfo.userId_) + "\n"); in ShowOhosAccountInfo()
135 result.append(AnonymizeNameStr(accountInfo.ohosAccountInfo_.name_) + "\n"); in ShowOhosAccountInfo()
137 result.append(AnonymizeUidStr(accountInfo.ohosAccountInfo_.uid_) + "\n"); in ShowOhosAccountInfo()
139 result.append(std::to_string(accountInfo.ohosAccountInfo_.status_) + "\n"); in ShowOhosAccountInfo()
141 result.append(std::to_string(accountInfo.bindTime_) + "\n"); in ShowOhosAccountInfo()
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/
Dohos_account_kits.h73 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0;
81 virtual ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) = 0;
Dohos_account_kits_impl.h37 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) final;
38 ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) final;
Diaccount.h42 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0;
/base/account/os_account/frameworks/ohosaccount/native/src/
Dohos_account_kits_impl.cpp140 ErrCode OhosAccountKitsImpl::GetOhosAccountInfo(OhosAccountInfo &accountInfo) in GetOhosAccountInfo() argument
148 return accountProxy->GetOhosAccountInfo(accountInfo); in GetOhosAccountInfo()
151 …rCode OhosAccountKitsImpl::GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) in GetOhosAccountInfoByUserId() argument
159 return accountProxy->GetOhosAccountInfoByUserId(userId, accountInfo); in GetOhosAccountInfoByUserId()
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_callback_test.cpp623 OsAccountInfo accountInfo; variable
625 …rCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, accountInfo);
627 int32_t userId = accountInfo.GetLocalId();
632 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
646 OsAccountInfo accountInfo; variable
647 …rCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, accountInfo);
649 int32_t userId = accountInfo.GetLocalId();
657 EXPECT_EQ(OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()), ERR_OK);
672 OsAccountInfo accountInfo; variable
673 …rCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, accountInfo);
[all …]
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/
Daccount_dump_helper_test.cpp127 OhosAccountInfo accountInfo; variable
128 accountInfo.name_ = TEST_ACCOUNT_NAME;
129 accountInfo.status_ = ACCOUNT_STATE_LOGIN;
130 accountInfo.uid_ = TEST_ACCOUNT_UID;
131 …EXPECT_EQ(ERR_OK, OhosAccountKits::GetInstance().SetOhosAccountInfo(accountInfo, "Ohos.account.eve…
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/
Ddlp_credential.h33 const std::string& policy, const std::string& accountInfo, DlpAccountType accountType,
Ddlp_credential.cpp278 const std::string& policy, const std::string& accountInfo, in GenerateDlpCertificate() argument
288 .accountId = reinterpret_cast<uint8_t*>(strdup(accountInfo.c_str())), in GenerateDlpCertificate()
289 .accountIdLen = accountInfo.size(), in GenerateDlpCertificate()
369 std::pair<bool, AccountSA::OhosAccountInfo> accountInfo = in GetLocalAccountName() local
371 if (accountInfo.first) { in GetLocalAccountName()
372 account = accountInfo.second.name_; in GetLocalAccountName()
/base/account/os_account/services/accountmgr/test/unittest/domain_account/
Ddomain_account_manager_inner_service_test.cpp199 options.accountInfo.accountName_ = TEST_DOMAIN_ACCOUNT_NAME;
200 options.accountInfo.domain_ = TEST_DOMAIN;
259 options.accountInfo.domain_ = TEST_DOMAIN;
260 options.accountInfo.accountName_ = TEST_DOMAIN_ACCOUNT_NAME;
377 options.accountInfo.accountName_ = "test";
378 options.accountInfo.domain_ = "test";
/base/account/os_account/services/accountmgr/src/domain_account/
Dinner_domain_account_manager.cpp162 OsAccountInfo accountInfo; in GetDomainAccountInfoByUserId() local
163 ErrCode errCode = IInnerOsAccountManager::GetInstance().QueryOsAccountById(userId, accountInfo); in GetDomainAccountInfoByUserId()
168 accountInfo.GetDomainInfo(domainInfo); in GetDomainAccountInfoByUserId()
555 callback, options.accountInfo.domain_, options.accountInfo.accountName_); in StartHasDomainAccount()
582 options.accountInfo = info; in HasDomainAccount()
663 options.accountInfo = info; in GetDomainAccountInfo()
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_plugin_service.cpp124 const DomainAccountInfo &accountInfo, const sptr<IDomainAccountCallback> &callback) in GetAuthStatusInfo() argument
135 innerPlugin_->GetAuthStatusInfo(accountInfo, callbackClient); in GetAuthStatusInfo()
Ddomain_account_common.cpp153 accountInfo = *infoPtr; in ReadFromParcel()
163 if (!parcel.WriteParcelable(&accountInfo)) { in Marshalling()

12