/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
D | account_mgr_inner_sdk_func_test.cpp | 113 std::unique_ptr<OhosAccountInfo> accountInfo = std::make_unique<OhosAccountInfo>(); variable 114 ASSERT_TRUE(accountInfo != nullptr); 139 OhosAccountInfo accountInfo; variable 141 accountInfo.name_ = TEST_ACCOUNT_NAME; 142 accountInfo.status_ = ACCOUNT_STATE_UNBOUND; 143 accountInfo.uid_ = TEST_ACCOUNT_UID; 144 accountInfo.nickname_ = TEST_NICKNAME; 145 accountInfo.avatar_ = TEST_AVATAR; 146 accountInfo.scalableData_.SetParam(KEY_ACCOUNT_INFO_SCALABLEDATA, 123); 148 auto ret = OhosAccountKits::GetInstance().SetOhosAccountInfo(accountInfo, g_eventLogin); [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/ohos_account_data_deal_test/ |
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 …]
|
/base/account/os_account/services/accountmgr/src/ |
D | ohos_account_data_deal.cpp | 86 ErrCode OhosAccountDataDeal::AccountInfoFromJson(AccountInfo &accountInfo, int32_t userId) in AccountInfoFromJson() argument 92 return GetAccountInfo(accountInfo, userId); in AccountInfoFromJson() 95 ErrCode OhosAccountDataDeal::AccountInfoToJson(const AccountInfo &accountInfo) const in AccountInfoToJson() 101 return SaveAccountInfo(accountInfo); in AccountInfoToJson() 104 ErrCode OhosAccountDataDeal::SaveAccountInfo(const AccountInfo &accountInfo) const in SaveAccountInfo() 106 std::string scalableDataStr = (accountInfo.ohosAccountInfo_.scalableData_).ToString(); in SaveAccountInfo() 108 {DATADEAL_JSON_KEY_BIND_TIME, accountInfo.bindTime_}, in SaveAccountInfo() 109 {DATADEAL_JSON_KEY_USERID, accountInfo.userId_}, in SaveAccountInfo() 110 {DATADEAL_JSON_KEY_OHOSACCOUNT_NAME, accountInfo.ohosAccountInfo_.name_}, in SaveAccountInfo() 111 {DATADEAL_JSON_KEY_OHOSACCOUNT_RAW_UID, accountInfo.ohosAccountInfo_.GetRawUid()}, in SaveAccountInfo() [all …]
|
D | account_mgr_service.cpp | 102 AccountInfo accountInfo; in GetOhosAccountInfoByUserId() local 103 ErrCode ret = ohosAccountMgr_->GetAccountInfoByUserId(userId, accountInfo); in GetOhosAccountInfoByUserId() 107 info = accountInfo.ohosAccountInfo_; in GetOhosAccountInfoByUserId() 113 AccountInfo accountInfo; in QueryOhosAccountInfoByUserId() local 114 ErrCode ret = ohosAccountMgr_->GetAccountInfoByUserId(userId, accountInfo); in QueryOhosAccountInfoByUserId() 120 …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, int32_t userId);
|
D | account_mgr_service.h | 56 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) override; 57 ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) override;
|
/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/frameworks/domain_account/test/moduletest/src/ |
D | domain_account_client_module_test.cpp | 284 OsAccountInfo accountInfo; variable 285 …rCode errCode = OsAccountManager::CreateOsAccount(STRING_NAME, OsAccountType::NORMAL, accountInfo); 290 … accountInfo.GetLocalId(), VALID_PASSWORD, testCallback), ERR_ACCOUNT_COMMON_INVALID_PARAMTER); 291 errCode = OsAccountManager::RemoveOsAccount(accountInfo.GetLocalId()); 306 OsAccountInfo accountInfo; variable 307 …rCode = OsAccountManager::CreateOsAccountForDomain(OsAccountType::NORMAL, domainInfo, accountInfo); 310 accountInfo.GetDomainInfo(newDomainInfo); 317 testCallback->SetOsAccountInfo(accountInfo); 319 …DomainAccountClient::GetInstance().AuthUser(accountInfo.GetLocalId(), VALID_PASSWORD, testCallback…
|
D | mock_domain_auth_callback.cpp | 53 void TestDomainAuthCallback::SetOsAccountInfo(const OsAccountInfo &accountInfo) in SetOsAccountInfo() argument 55 accountInfo_ = accountInfo; in SetOsAccountInfo()
|
/base/account/os_account/dfx/hidumper_adapter/ |
D | account_dump_helper.cpp | 140 AccountInfo accountInfo; in ShowOhosAccountInfo() local 141 lockPtr->GetAccountInfoByUserId(osAccountInfos[i].GetLocalId(), accountInfo); in ShowOhosAccountInfo() 143 result.append(std::to_string(accountInfo.userId_) + "\n"); in ShowOhosAccountInfo() 145 result.append(AnonymizeNameStr(accountInfo.ohosAccountInfo_.name_) + "\n"); in ShowOhosAccountInfo() 147 result.append(AnonymizeUidStr(accountInfo.ohosAccountInfo_.uid_) + "\n"); in ShowOhosAccountInfo() 149 result.append(std::to_string(accountInfo.ohosAccountInfo_.status_) + "\n"); in ShowOhosAccountInfo() 151 result.append(std::to_string(accountInfo.bindTime_) + "\n"); in ShowOhosAccountInfo()
|
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/ |
D | ohos_account_kits.h | 54 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0; 62 virtual ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) = 0;
|
D | ohos_account_kits_impl.h | 36 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) final; 37 ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) final;
|
D | iaccount.h | 53 virtual ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) = 0;
|
/base/account/os_account/frameworks/ohosaccount/native/src/ |
D | ohos_account_kits_impl.cpp | 122 ErrCode OhosAccountKitsImpl::GetOhosAccountInfo(OhosAccountInfo &accountInfo) in GetOhosAccountInfo() argument 130 return accountProxy->GetOhosAccountInfo(accountInfo); in GetOhosAccountInfo() 133 …rCode OhosAccountKitsImpl::GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) in GetOhosAccountInfoByUserId() argument 141 return accountProxy->GetOhosAccountInfoByUserId(userId, accountInfo); in GetOhosAccountInfoByUserId()
|
/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/ |
D | ohos_account_manager_test.cpp | 118 OhosAccountInfo accountInfo; variable 119 accountInfo.name_ = TEST_NAME; 120 accountInfo.uid_ = TEST_UID; 122 auto ret = accountManager.LoginOhosAccount(accountInfo, g_eventLogin); 125 ret = accountManager.HandleOhosAccountTokenInvalidEvent(accountInfo, g_eventTokenInvalid);
|
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/account/os_account/services/accountmgr/src/domain_account/ |
D | inner_domain_account_manager.cpp | 97 OsAccountInfo accountInfo; in AuthUser() local 98 … ErrCode errCode = IInnerOsAccountManager::GetInstance()->QueryOsAccountById(userId, accountInfo); in AuthUser() 104 accountInfo.GetDomainInfo(domainInfo); in AuthUser()
|
/base/account/os_account/frameworks/ohosaccount/native/include/ |
D | account_proxy.h | 36 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) override;
|
/base/account/os_account/services/accountmgr/test/mock/include/ |
D | mock_account_mgr_service.h | 47 ErrCode GetOhosAccountInfo(OhosAccountInfo &accountInfo) override in GetOhosAccountInfo() argument
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/ |
D | napi_distributed_account.cpp | 299 …std::pair<bool, OhosAccountInfo> accountInfo = OhosAccountKits::GetInstance().QueryOhosAccountInfo… in QueryOhosAccountInfo() local 300 if (accountInfo.first) { in QueryOhosAccountInfo() 301 asyncContext->ohosAccountInfo.name_ = accountInfo.second.name_; in QueryOhosAccountInfo() 302 asyncContext->ohosAccountInfo.uid_ = accountInfo.second.uid_; in QueryOhosAccountInfo()
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/ |
D | getparam.cpp | 404 AppAccountInfo accountInfo(GetStringParam(), GetStringParam()); in GetParamAppAccountInfo() local 405 return accountInfo; in GetParamAppAccountInfo()
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_mock.cpp | 304 OsAccountInfo accountInfo; variable 306 int ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo1, accountInfo); 314 ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo1, accountInfo); 320 ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo2, accountInfo); 326 ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo1, accountInfo); 335 ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo1, accountInfo); 341 ret = innerMgrService_->PrepareOsAccountInfo(name, type, domainInfo1, accountInfo);
|
/base/telephony/core_service/services/sim/src/ |
D | sim_manager.cpp | 475 IccAccountInfo accountInfo; in GetSimId() local 476 if (GetSimAccountInfo(slotId, accountInfo) == TELEPHONY_ERR_SUCCESS) { in GetSimId() 477 return accountInfo.simId; in GetSimId()
|
/base/telephony/core_service/frameworks/js/sim/src/ |
D | napi_sim.cpp | 1640 AsyncIccAccountInfo *accountInfo = static_cast<AsyncIccAccountInfo *>(data); in NativeGetActiveSimAccountInfoList() local 1641 accountInfo->vecInfo.clear(); in NativeGetActiveSimAccountInfoList() 1646 accountInfo->vecInfo.swap(activeInfo); in NativeGetActiveSimAccountInfoList() 1647 accountInfo->asyncContext.context.resolved = true; in NativeGetActiveSimAccountInfoList() 1649 accountInfo->asyncContext.context.resolved = false; in NativeGetActiveSimAccountInfoList() 1651 accountInfo->asyncContext.context.errorCode = errorCode; in NativeGetActiveSimAccountInfoList() 1671 auto accountInfo = new AsyncIccAccountInfo(); in GetActiveSimAccountInfoList() local 1672 BaseContext &context = accountInfo->asyncContext.context; in GetActiveSimAccountInfoList() 1682 napi_value result = NapiCreateAsyncWork2<AsyncIccAccountInfo>(para, accountInfo, initPara); in GetActiveSimAccountInfoList()
|