/base/account/os_account/services/accountmgr/test/unittest/domain_account/ |
D | domain_account_manager_inner_service_test.cpp | 80 DomainAccountInfo domainInfo; variable 81 domainInfo.accountName_ = TEST_NO_DOUND_NAME; 82 domainInfo.domain_ = TEST_DOMAIN; 83 domainInfo.accountId_ = TEST_ACCOUNT_ID; 85 …EXPECT_EQ(InnerDomainAccountManager::GetInstance().Auth(domainInfo, TEST_PASSWORD, nullptr), ERR_O… 96 DomainAccountInfo domainInfo; variable 97 domainInfo.accountName_ = TEST_DOMAIN_ACCOUNT_NAME; 98 domainInfo.domain_ = TEST_DOMAIN; 99 domainInfo.accountId_ = TEST_ACCOUNT_ID; 101 …EXPECT_EQ(InnerDomainAccountManager::GetInstance().Auth(domainInfo, TEST_PASSWORD, nullptr), ERR_O… [all …]
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
D | domain_account_client_module_test.cpp | 331 DomainAccountInfo domainInfo; variable 332 domainInfo.accountName_ = STRING_NAME; 333 domainInfo.domain_ = STRING_DOMAIN; 334 domainInfo.accountId_ = INVALID_STRING_ACCOUNTID; 340 …ErrCode errCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, te… 352 errCode = OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, userId); 473 DomainAccountInfo domainInfo; variable 474 domainInfo.accountName_ = STRING_NAME; 475 domainInfo.domain_ = STRING_DOMAIN; 476 domainInfo.accountId_ = INVALID_STRING_ACCOUNTID; [all …]
|
D | domain_account_common_test.cpp | 126 DomainAccountInfo domainInfo(STRING_DOMAIN_NEW, STRING_NAME_NEW, STRING_ACCOUNTID_NEW); 127 DomainAccountClient::DomainAccountListenerRecord record(domainInfo, nullptr);
|
D | mock_domain_plugin.cpp | 218 void MockDomainPlugin::GetAccessToken(const DomainAccountInfo &domainInfo, const std::vector<uint8_… in GetAccessToken() argument 222 if ((domainInfo.accountName_ == STRING_NAME) || (domainInfo.accountId_ == "555")) { in GetAccessToken() 226 if (domainInfo.accountName_ == STRING_NAME_NEW) { in GetAccessToken()
|
/base/account/os_account/frameworks/osaccount/core/test/unittest/ |
D | os_account_test.cpp | 269 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 270 bool checkValid = (domainInfo.accountName_ == STRING_DOMAIN_ACCOUNT_NAME_VALID); 272 checkValid = (domainInfo.domain_ == STRING_DOMAIN_VALID); 275 domainInfo.Clear(); 276 checkValid = (domainInfo.accountName_ == ""); 278 checkValid = (domainInfo.domain_ == ""); 291 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 292 EXPECT_EQ(osAccountInfo.SetDomainInfo(domainInfo), true); 297 bool checkValid = (getDomainInfo.accountName_ == domainInfo.accountName_); 299 checkValid = (getDomainInfo.domain_ == domainInfo.domain_); [all …]
|
D | os_account_mock_test.cpp | 96 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 99 g_osAccount->CreateOsAccountForDomain(type, domainInfo, osAccountInfo)); 217 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 220 g_osAccount->GetOsAccountLocalIdFromDomain(domainInfo, id));
|
/base/account/os_account/services/accountmgr/test/unittest/domain_account/mock/ |
D | mock_inner_os_account_manager.cpp | 24 ErrCode IInnerOsAccountManager::GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, … in GetOsAccountLocalIdFromDomain() argument 27 if (domainInfo.accountName_ == TEST_DOMAIN_ACCOUNT_NAME) { in GetOsAccountLocalIdFromDomain() 37 DomainAccountInfo domainInfo; in QueryOsAccountById() local 38 domainInfo.accountName_ = TEST_DOMAIN_ACCOUNT_NAME; in QueryOsAccountById() 39 domainInfo.domain_ = TEST_DOMAIN; in QueryOsAccountById() 40 osAccountInfo.SetDomainInfo(domainInfo); in QueryOsAccountById()
|
D | mock_inner_os_account_manager.h | 27 ErrCode GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, int &id);
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_info.cpp | 147 bool OsAccountInfo::SetDomainInfo(const DomainAccountInfo &domainInfo) in SetDomainInfo() argument 149 if (domainInfo.accountName_.size() > Constants::DOMAIN_ACCOUNT_NAME_MAX_SIZE) { in SetDomainInfo() 150 ACCOUNT_LOGE("domain account name too long! %{public}zu.", domainInfo.accountName_.size()); in SetDomainInfo() 153 if (domainInfo.domain_.size() > Constants::DOMAIN_NAME_MAX_SIZE) { in SetDomainInfo() 154 ACCOUNT_LOGE("domain name too long! %{public}zu.", domainInfo.domain_.size()); in SetDomainInfo() 157 domainInfo_.accountName_ = domainInfo.accountName_; in SetDomainInfo() 158 domainInfo_.domain_ = domainInfo.domain_; in SetDomainInfo() 159 domainInfo_.accountId_ = domainInfo.accountId_; in SetDomainInfo() 163 void OsAccountInfo::GetDomainInfo(DomainAccountInfo &domainInfo) const in GetDomainInfo() 165 domainInfo.accountName_ = domainInfo_.accountName_; in GetDomainInfo() [all …]
|
D | os_account_manager.cpp | 30 …ntManager::CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, in CreateOsAccountForDomain() argument 33 return OsAccount::GetInstance().CreateOsAccountForDomain(type, domainInfo, callback); in CreateOsAccountForDomain() 108 ErrCode OsAccountManager::GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, int &i… in GetOsAccountLocalIdFromDomain() argument 110 return OsAccount::GetInstance().GetOsAccountLocalIdFromDomain(domainInfo, id); in GetOsAccountLocalIdFromDomain()
|
/base/account/os_account/test/fuzztest/osaccount/getosaccountlocalidfromdomain_fuzzer/ |
D | getosaccountlocalidfromdomain_fuzzer.cpp | 34 DomainAccountInfo domainInfo(accountName, domain); in GetOsAccountLocalIdFromDomainFuzzTest() local 36 result = OsAccountManager::GetOsAccountLocalIdFromDomain(domainInfo, resID); in GetOsAccountLocalIdFromDomainFuzzTest()
|
/base/account/os_account/test/fuzztest/osaccount/createosaccountfordomain_fuzzer/ |
D | createosaccountfordomain_fuzzer.cpp | 36 DomainAccountInfo domainInfo(accountName, domain); in CreateOsAccountForDomainFuzzTest() local 39 result = OsAccountManager::CreateOsAccountForDomain(testType, domainInfo, nullptr); in CreateOsAccountForDomainFuzzTest()
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_module_test.cpp | 1069 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 1071 …ASSERT_EQ(osAccountManagerService_->CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR… 1082 checkValid = (resDomainInfo.accountName_ == domainInfo.accountName_); 1084 checkValid = (resDomainInfo.domain_ == domainInfo.domain_); 1087 std::string osAccountName = domainInfo.domain_ + "/" + domainInfo.accountName_; 1103 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 1106 …ASSERT_EQ(osAccountManagerService_->CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR… 1117 checkValid = (resDomainInfo.accountName_ == domainInfo.accountName_); 1119 checkValid = (resDomainInfo.domain_ == domainInfo.domain_); 1122 std::string osAccountName = domainInfo.domain_ + "/" + domainInfo.accountName_; [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
D | account_adapt.cpp | 138 DomainAccountInfo domainInfo; in GetDomainAccountName() local 139 osAccountInfo.GetDomainInfo(domainInfo); in GetDomainAccountName() 140 if (domainInfo.accountName_.empty()) { in GetDomainAccountName() 144 *account = strdup(domainInfo.accountName_.c_str()); in GetDomainAccountName()
|
/base/account/os_account/frameworks/osaccount/core/src/ |
D | os_account.cpp | 73 …OsAccount::CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, in CreateOsAccountForDomain() argument 76 if (domainInfo.domain_.empty() || in CreateOsAccountForDomain() 77 domainInfo.domain_.size() > Constants::DOMAIN_NAME_MAX_SIZE) { in CreateOsAccountForDomain() 78 ACCOUNT_LOGE("domain is empty or too long, len %{public}zu.", domainInfo.domain_.size()); in CreateOsAccountForDomain() 82 if (domainInfo.accountName_.empty() || in CreateOsAccountForDomain() 83 domainInfo.accountName_.size() > Constants::DOMAIN_ACCOUNT_NAME_MAX_SIZE) { in CreateOsAccountForDomain() 84 …ACCOUNT_LOGE("account name is empty or too long, len %{public}zu.", domainInfo.accountName_.size()… in CreateOsAccountForDomain() 94 return osAccountProxy_->CreateOsAccountForDomain(type, domainInfo, callbackService); in CreateOsAccountForDomain() 229 ErrCode OsAccount::GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, int &id) in GetOsAccountLocalIdFromDomain() argument 231 if (domainInfo.domain_.empty() || in GetOsAccountLocalIdFromDomain() [all …]
|
/base/account/os_account/test/fuzztest/osaccount_stub/createosaccountfordomainstub_fuzzer/ |
D | createosaccountfordomainstub_fuzzer.cpp | 39 DomainAccountInfo domainInfo(accountName, domain); in CreateOsAccountForDomainStubFuzzTest() local 48 if (!datas.WriteParcelable(&domainInfo)) { in CreateOsAccountForDomainStubFuzzTest()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_manager_service.cpp | 127 const DomainAccountInfo &domainInfo, const sptr<IDomainAccountCallback> &callback) in CreateOsAccountForDomain() argument 147 if (domainInfo.accountName_.empty() || domainInfo.domain_.empty()) { in CreateOsAccountForDomain() 150 if (domainInfo.accountName_.size() > Constants::DOMAIN_ACCOUNT_NAME_MAX_SIZE || in CreateOsAccountForDomain() 151 domainInfo.domain_.size() > Constants::DOMAIN_NAME_MAX_SIZE) { in CreateOsAccountForDomain() 163 return innerManager_.CreateOsAccountForDomain(type, domainInfo, callback); in CreateOsAccountForDomain() 298 ErrCode OsAccountManagerService::GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo,… in GetOsAccountLocalIdFromDomain() argument 300 if (domainInfo.domain_.empty() || domainInfo.domain_.size() > Constants::DOMAIN_NAME_MAX_SIZE) { in GetOsAccountLocalIdFromDomain() 301 ACCOUNT_LOGE("domain name length invalid. length %{public}zu.", domainInfo.domain_.size()); in GetOsAccountLocalIdFromDomain() 305 …if (domainInfo.accountName_.empty() || domainInfo.accountName_.size() > Constants::DOMAIN_ACCOUNT_… in GetOsAccountLocalIdFromDomain() 306 … ACCOUNT_LOGE("accountName length invalid. length %{public}zu.", domainInfo.accountName_.size()); in GetOsAccountLocalIdFromDomain() [all …]
|
D | inner_os_account_manager.cpp | 178 const DomainAccountInfo &domainInfo, OsAccountInfo &osAccountInfo) in PrepareOsAccountInfo() argument 204 if (!osAccountInfo.SetDomainInfo(domainInfo)) { in PrepareOsAccountInfo() 255 DomainAccountInfo domainInfo; // default empty domain info in CreateOsAccount() local 256 ErrCode errCode = PrepareOsAccountInfo(name, type, domainInfo, osAccountInfo); in CreateOsAccount() 319 …const OsAccountType &type, const DomainAccountInfo &domainInfo, const sptr<IDomainAccountCallback>… in CreateOsAccountForDomain() argument 323 if (CheckDomainAccountBound(osAccountInfos, domainInfo)) { in CreateOsAccountForDomain() 332 new (std::nothrow) CheckAndCreateDomainAccountCallback(type, domainInfo, callback); in CreateOsAccountForDomain() 337 … return InnerDomainAccountManager::GetInstance().GetDomainAccountInfo(domainInfo, callbackWrapper); in CreateOsAccountForDomain() 832 ErrCode IInnerOsAccountManager::GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, … in GetOsAccountLocalIdFromDomain() argument 834 if (domainInfo.domain_.size() > Constants::DOMAIN_NAME_MAX_SIZE) { in GetOsAccountLocalIdFromDomain() [all …]
|
/base/account/os_account/interfaces/kits/napi/domain_account/include/ |
D | napi_domain_account_manager.h | 47 AccountSA::DomainAccountInfo domainInfo; member 53 AccountSA::DomainAccountInfo domainInfo; member 59 AccountSA::DomainAccountInfo domainInfo; member 66 AccountSA::DomainAccountInfo domainInfo; member 107 …void GetAccessToken(const AccountSA::DomainAccountInfo &domainInfo, const std::vector<uint8_t> &ac…
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
D | os_account_manager_module_test.cpp | 1071 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 1074 EXPECT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); 1081 checkValid = (resDomainInfo.accountName_ == domainInfo.accountName_); 1083 checkValid = (resDomainInfo.domain_ == domainInfo.domain_); 1086 std::string osAccountName = domainInfo.domain_ + "/" + domainInfo.accountName_; 1102 DomainAccountInfo domainInfo(STRING_DOMAIN_VALID, STRING_DOMAIN_ACCOUNT_NAME_VALID); 1105 EXPECT_EQ(OsAccountManager::CreateOsAccountForDomain(type, domainInfo, osAccountInfo), ERR_OK); 1114 checkValid = (resDomainInfo.accountName_ == domainInfo.accountName_); 1116 checkValid = (resDomainInfo.domain_ == domainInfo.domain_); 1119 std::string osAccountName = domainInfo.domain_ + "/" + domainInfo.accountName_; [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
D | account_iam_callback_test.cpp | 620 DomainAccountInfo domainInfo; variable 621 domainInfo.accountName_ = "zhangsan"; 622 domainInfo.domain_ = "china.example.com"; 625 …ErrCode errCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, ac… 643 DomainAccountInfo domainInfo; variable 644 domainInfo.accountName_ = "lisi111"; 645 domainInfo.domain_ = "china.example.com"; 647 …ErrCode errCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, ac… 669 DomainAccountInfo domainInfo; variable 670 domainInfo.accountName_ = "lisi11"; [all …]
|
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
D | os_account_info.h | 107 bool SetDomainInfo(const DomainAccountInfo &domainInfo); 109 void GetDomainInfo(DomainAccountInfo &domainInfo) const;
|
D | os_account_manager.h | 68 …ic ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 169 static ErrCode GetOsAccountLocalIdFromDomain(const DomainAccountInfo &domainInfo, int &id);
|
/base/account/os_account/services/accountmgr/src/domain_account/ |
D | inner_domain_account_manager.cpp | 80 DomainAccountInfo domainInfo; in OnResult() local 81 InnerDomainAccountManager::GetInstance().GetDomainAccountInfoByUserId(userId_, domainInfo); in OnResult() 83 userId_, DomainAccountEvent::LOG_IN, DomainAccountStatus::LOG_END, domainInfo); in OnResult() 160 …erDomainAccountManager::GetDomainAccountInfoByUserId(int32_t userId, DomainAccountInfo &domainInfo) in GetDomainAccountInfoByUserId() argument 168 accountInfo.GetDomainInfo(domainInfo); in GetDomainAccountInfoByUserId() 169 if (domainInfo.accountName_.empty()) { in GetDomainAccountInfoByUserId() 200 DomainAccountInfo domainInfo; in InnerAuth() local 201 ErrCode errCode = GetDomainAccountInfoByUserId(userId, domainInfo); in InnerAuth() 211 …std::bind(&InnerDomainAccountManager::StartAuth, this, plugin_, domainInfo, authData, innerCallbac… in InnerAuth()
|
/base/account/os_account/frameworks/domain_account/src/ |
D | domain_account_plugin_stub.cpp | 179 std::shared_ptr<DomainAccountInfo> domainInfo(data.ReadParcelable<DomainAccountInfo>()); in ProcGetAccessToken() local 180 if (domainInfo == nullptr) { in ProcGetAccessToken() 199 ErrCode result = GetAccessToken(*domainInfo, accountToken, *option, callback); in ProcGetAccessToken()
|