Home
last modified time | relevance | path

Searched refs:ohosAccountInfo (Results 1 – 18 of 18) sorted by relevance

/base/account/os_account/frameworks/ohosaccount/native/src/
Daccount_info_parcel.cpp26 bool WriteOhosAccountInfo(MessageParcel &data, const OhosAccountInfo &ohosAccountInfo) in WriteOhosAccountInfo() argument
28 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.name_))) { in WriteOhosAccountInfo()
32 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.uid_))) { in WriteOhosAccountInfo()
36 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.GetRawUid()))) { in WriteOhosAccountInfo()
40 if (!data.WriteInt32(ohosAccountInfo.status_)) { in WriteOhosAccountInfo()
44 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.nickname_))) { in WriteOhosAccountInfo()
48 if (!data.WriteInt32(ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo()
52 if (!data.WriteRawData(ohosAccountInfo.avatar_.c_str(), ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo()
56 if (!data.WriteParcelable(&(ohosAccountInfo.scalableData_))) { in WriteOhosAccountInfo()
83 ErrCode ReadOhosAccountInfo(MessageParcel &data, OhosAccountInfo &ohosAccountInfo) in ReadOhosAccountInfo() argument
[all …]
Dohos_account_kits_impl.cpp100 const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo() argument
107 if (!ohosAccountInfo.IsValid()) { in SetOhosAccountInfo()
111 return accountProxy->SetOhosAccountInfo(ohosAccountInfo, eventStr); in SetOhosAccountInfo()
115 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) in SetOhosAccountInfoByUserId() argument
122 if (!ohosAccountInfo.IsValid()) { in SetOhosAccountInfoByUserId()
126 return accountProxy->SetOhosAccountInfoByUserId(userId, ohosAccountInfo, eventStr); in SetOhosAccountInfoByUserId()
Daccount_proxy.cpp82 std::int32_t AccountProxy::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::st… in SetOhosAccountInfo() argument
89 if (!WriteOhosAccountInfo(data, ohosAccountInfo)) { in SetOhosAccountInfo()
117 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId() argument
128 if (!WriteOhosAccountInfo(data, ohosAccountInfo)) { in SetOhosAccountInfoByUserId()
170 ErrCode AccountProxy::GetOhosAccountInfo(OhosAccountInfo &ohosAccountInfo) in GetOhosAccountInfo() argument
182 ret = ReadOhosAccountInfo(reply, ohosAccountInfo); in GetOhosAccountInfo()
191 ErrCode AccountProxy::GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &ohosAccountInfo) in GetOhosAccountInfoByUserId() argument
207 ret = ReadOhosAccountInfo(reply, ohosAccountInfo); in GetOhosAccountInfoByUserId()
/base/account/os_account/services/accountmgr/include/
Dohos_account_manager.h36 const std::int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
88 …bool LoginOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::str…
98 …bool LogoutOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::st…
108 …bool LogoffOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::st…
119 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
147 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
186 bool SaveOhosAccountInfo(AccountInfo &ohosAccountInfo) const;
Daccount_mgr_service.h46 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
49 …const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) overrid…
/base/account/os_account/services/accountmgr/src/
Dohos_account_manager.cpp181 OhosAccountInfo ohosAccountInfo; in OhosAccountStateChange() local
182 ohosAccountInfo.name_ = name; in OhosAccountStateChange()
183 ohosAccountInfo.uid_ = uid; in OhosAccountStateChange()
185 return (this->*(itFunc->second))(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange()
189 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in OhosAccountStateChange() argument
196 return (this->*(itFunc->second))(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange()
219 bool OhosAccountManager::SaveOhosAccountInfo(AccountInfo &ohosAccountInfo) const in SaveOhosAccountInfo()
221 ErrCode errCode = dataDealer_->AccountInfoToJson(ohosAccountInfo); in SaveOhosAccountInfo()
311 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in LoginOhosAccount() argument
320 …std::string ohosAccountUid = GenerateOhosUdidWithSha256(ohosAccountInfo.name_, ohosAccountInfo.uid… in LoginOhosAccount()
[all …]
Daccount_stub.cpp218 OhosAccountInfo ohosAccountInfo; in InnerGetOhosAccountInfo() local
219 int ret = GetOhosAccountInfo(ohosAccountInfo); in InnerGetOhosAccountInfo()
220 ohosAccountInfo.SetRawUid(""); in InnerGetOhosAccountInfo()
225 if (!WriteOhosAccountInfo(reply, ohosAccountInfo)) { in InnerGetOhosAccountInfo()
280 OhosAccountInfo ohosAccountInfo; in CmdGetOhosAccountInfoByUserId() local
281 errCode = GetOhosAccountInfoByUserId(userId, ohosAccountInfo); in CmdGetOhosAccountInfoByUserId()
288 ohosAccountInfo.SetRawUid(""); in CmdGetOhosAccountInfoByUserId()
290 if (!WriteOhosAccountInfo(reply, ohosAccountInfo)) { in CmdGetOhosAccountInfoByUserId()
Daccount_mgr_service.cpp99 std::int32_t AccountMgrService::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const st… in SetOhosAccountInfo() argument
105 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId() argument
107 …if (!OhosAccountManager::GetInstance().OhosAccountStateChange(userId, ohosAccountInfo, eventStr)) { in SetOhosAccountInfoByUserId()
/base/account/os_account/frameworks/ohosaccount/native/include/
Daccount_proxy.h35 …const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) overrid…
36 …std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventSt…
38 ErrCode GetOhosAccountInfo(OhosAccountInfo &ohosAccountInfo) override;
39 …ErrCode GetOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &ohosAccountInfo) override;
Daccount_info_parcel.h23 bool WriteOhosAccountInfo(MessageParcel &data, const OhosAccountInfo &ohosAccountInfo);
24 ErrCode ReadOhosAccountInfo(MessageParcel &data, OhosAccountInfo &ohosAccountInfo);
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp115 …if (!GetStringPropertyByKey(env, object, PROPERTY_KEY_NAME, asyncContext->ohosAccountInfo.name_)) { in GetAccountInfo()
121 if (!GetStringPropertyByKey(env, object, PROPERTY_KEY_ID, asyncContext->ohosAccountInfo.uid_)) { in GetAccountInfo()
127 …StringPropertyByKey(env, object, PROPERTY_KEY_NICKNAME, asyncContext->ohosAccountInfo.nickname_)) { in GetAccountInfo()
133 …onalStringPropertyByKey(env, object, PROPERTY_KEY_AVATAR, asyncContext->ohosAccountInfo.avatar_)) { in GetAccountInfo()
158 asyncContext->ohosAccountInfo.scalableData_.SetParams(params); in GetAccountInfo()
259 napi_create_string_utf8(env, asyncContext->ohosAccountInfo.name_.c_str(), in ProcessSetNamedProperty()
260 asyncContext->ohosAccountInfo.name_.size(), &value); in ProcessSetNamedProperty()
262 napi_create_string_utf8(env, asyncContext->ohosAccountInfo.uid_.c_str(), in ProcessSetNamedProperty()
263 asyncContext->ohosAccountInfo.uid_.size(), &value); in ProcessSetNamedProperty()
267 napi_create_string_utf8(env, asyncContext->ohosAccountInfo.nickname_.c_str(), in ProcessSetNamedProperty()
[all …]
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/
Dohos_account_kits.h112 virtual std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
126 … const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) = 0;
Diaccount.h36 virtual std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
39 … const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) = 0;
Dohos_account_kits_impl.h32 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
35 … const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) final;
Daccount_info.h159 explicit AccountInfo(const OhosAccountInfo &ohosAccountInfo) in AccountInfo() argument
161 ohosAccountInfo_ = ohosAccountInfo; in AccountInfo()
/base/account/os_account/services/accountmgr/test/mock/include/
Dmock_account_mgr_service.h42 …std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventSt… in SetOhosAccountInfo() argument
48 …const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override in SetOhosAccountInfoByUserId() argument
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
Dohos_account_manager_test.cpp371 OhosAccountInfo ohosAccountInfo; variable
372 ohosAccountInfo.uid_ = ACCOUNT_UID;
373 accountInfoSrc.ohosAccountInfo_ = ohosAccountInfo;
376 accountInfoTar.ohosAccountInfo_ = ohosAccountInfo;
/base/account/os_account/interfaces/kits/napi/distributedaccount/include/
Dnapi_distributed_account.h37 AccountSA::OhosAccountInfo ohosAccountInfo; member