/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
D | account_mgr_inner_sdk_func_test.cpp | 116 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/ |
D | ohos_account_data_deal_test.cpp | 69 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 …]
|
D | ohos_account_manager_test.cpp | 141 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/ |
D | ohos_account_data_deal.cpp | 87 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 …]
|
D | account_mgr_service.cpp | 127 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() 145 …accountInfo.ohosAccountInfo_.name_, accountInfo.ohosAccountInfo_.uid_, accountInfo.ohosAccountInfo… in QueryOhosAccountInfoByUserId()
|
/base/account/os_account/services/accountmgr/include/ |
D | ohos_account_data_deal.h | 34 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/ |
D | account_adapt.cpp | 48 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/ |
D | mock_domain_plugin.cpp | 128 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 …]
|
D | mock_domain_auth_callback_for_listener.cpp | 41 void TestDomainAuthCallbackForListener::SetOsAccountInfo(const OsAccountInfo &accountInfo) in SetOsAccountInfo() argument 43 accountInfo_ = accountInfo; in SetOsAccountInfo()
|
D | mock_domain_auth_callback.cpp | 54 void TestDomainAuthCallback::SetOsAccountInfo(const OsAccountInfo &accountInfo) in SetOsAccountInfo() argument 56 accountInfo_ = accountInfo; in SetOsAccountInfo()
|
/base/account/os_account/frameworks/test/unittest/ |
D | account_ohosaccount_proxy_mock_test.cpp | 70 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/ |
D | net_manager_tactics_call_back.cpp | 38 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/ |
D | account_dump_helper.cpp | 130 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/ |
D | ohos_account_kits.h | 73 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0; 81 virtual ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) = 0;
|
D | ohos_account_kits_impl.h | 37 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) final; 38 ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) final;
|
D | iaccount.h | 42 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0;
|
/base/account/os_account/frameworks/ohosaccount/native/src/ |
D | ohos_account_kits_impl.cpp | 140 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/ |
D | account_iam_callback_test.cpp | 623 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/ |
D | account_dump_helper_test.cpp | 127 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/ |
D | dlp_credential.h | 33 const std::string& policy, const std::string& accountInfo, DlpAccountType accountType,
|
D | dlp_credential.cpp | 278 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/ |
D | domain_account_manager_inner_service_test.cpp | 199 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/ |
D | inner_domain_account_manager.cpp | 162 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/ |
D | domain_account_plugin_service.cpp | 124 const DomainAccountInfo &accountInfo, const sptr<IDomainAccountCallback> &callback) in GetAuthStatusInfo() argument 135 innerPlugin_->GetAuthStatusInfo(accountInfo, callbackClient); in GetAuthStatusInfo()
|
D | domain_account_common.cpp | 153 accountInfo = *infoPtr; in ReadFromParcel() 163 if (!parcel.WriteParcelable(&accountInfo)) { in Marshalling()
|