/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfostub_fuzzer/ |
H A D | cmdsetohosaccountinfostub_fuzzer.cpp | 33 bool WriteOhosAccountInfo(MessageParcel &data, const OhosAccountInfo &ohosAccountInfo) in WriteOhosAccountInfo() argument 35 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.name_))) { in WriteOhosAccountInfo() 39 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.uid_))) { in WriteOhosAccountInfo() 43 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.GetRawUid()))) { in WriteOhosAccountInfo() 47 if (!data.WriteInt32(ohosAccountInfo.status_)) { in WriteOhosAccountInfo() 51 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.nickname_))) { in WriteOhosAccountInfo() 55 if (!data.WriteInt32(ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo() 59 if (!data.WriteRawData(ohosAccountInfo.avatar_.c_str(), ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo() 63 if (!data.WriteParcelable(&(ohosAccountInfo in WriteOhosAccountInfo() 80 OhosAccountInfo ohosAccountInfo; CmdSetOhosAccountInfoStubFuzzTest() local [all...] |
/base/account/os_account/frameworks/ohosaccount/native/src/ |
H A D | account_info_parcel.cpp | 26 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 in WriteOhosAccountInfo() 84 ReadOhosAccountInfo(MessageParcel &data, OhosAccountInfo &ohosAccountInfo) ReadOhosAccountInfo() argument [all...] |
H A D | account_proxy.cpp | 96 std::int32_t AccountProxy::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo() argument 103 if (!WriteOhosAccountInfo(data, ohosAccountInfo)) { in SetOhosAccountInfo() 104 ACCOUNT_LOGE("Write ohosAccountInfo failed!"); in SetOhosAccountInfo() 131 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId() 142 if (!WriteOhosAccountInfo(data, ohosAccountInfo)) { in SetOhosAccountInfoByUserId() 143 ACCOUNT_LOGE("Write ohosAccountInfo failed!"); in SetOhosAccountInfoByUserId() 190 ErrCode AccountProxy::GetOhosAccountInfo(OhosAccountInfo &ohosAccountInfo) in GetOhosAccountInfo() argument 202 ret = ReadOhosAccountInfo(reply, ohosAccountInfo); in GetOhosAccountInfo() 206 ACCOUNT_LOGI("Get ohos account %{public}s.", AnonymizeNameStr(ohosAccountInfo.nickname_).c_str()); in GetOhosAccountInfo() 210 ErrCode AccountProxy::GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &ohosAccountInfo) in GetOhosAccountInfoByUserId() argument 130 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfoByUserId() argument [all...] |
H A D | ohos_account_kits_impl.cpp | 112 const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr)
in SetOhosAccountInfo() 119 if (!ohosAccountInfo.IsValid()) {
in SetOhosAccountInfo() 123 return accountProxy->SetOhosAccountInfo(ohosAccountInfo, eventStr);
in SetOhosAccountInfo() 127 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr)
in SetOhosAccountInfoByUserId() 134 if (!ohosAccountInfo.IsValid()) {
in SetOhosAccountInfoByUserId() 138 return accountProxy->SetOhosAccountInfoByUserId(userId, ohosAccountInfo, eventStr);
in SetOhosAccountInfoByUserId() 111 SetOhosAccountInfo( const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfo() argument 126 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) SetOhosAccountInfoByUserId() argument
|
/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfobyuseridstub_fuzzer/ |
H A D | cmdsetohosaccountinfobyuseridstub_fuzzer.cpp | 33 bool WriteOhosAccountInfo(MessageParcel &data, const OhosAccountInfo &ohosAccountInfo) in WriteOhosAccountInfo() argument 35 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.name_))) { in WriteOhosAccountInfo() 39 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.uid_))) { in WriteOhosAccountInfo() 43 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.GetRawUid()))) { in WriteOhosAccountInfo() 47 if (!data.WriteInt32(ohosAccountInfo.status_)) { in WriteOhosAccountInfo() 51 if (!data.WriteString16(Str8ToStr16(ohosAccountInfo.nickname_))) { in WriteOhosAccountInfo() 55 if (!data.WriteInt32(ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo() 59 if (!data.WriteRawData(ohosAccountInfo.avatar_.c_str(), ohosAccountInfo.avatar_.size() + 1)) { in WriteOhosAccountInfo() 63 if (!data.WriteParcelable(&(ohosAccountInfo in WriteOhosAccountInfo() 83 OhosAccountInfo ohosAccountInfo; CmdSetOhosAccountInfoByUserIdStubFuzzTest() local [all...] |
/base/account/os_account/frameworks/cj/distributed_account/src/ |
H A D | cj_distributed_account.cpp | 54 AccountSA::OhosAccountInfo ohosAccountInfo; in FfiOHOSDistributedAccountDistributedInfoGetOsAccountDistributedInfo() local 56 return convertToRet(ohosAccountInfo); in FfiOHOSDistributedAccountDistributedInfoGetOsAccountDistributedInfo() 58 *errCode = OhosAccountKits::GetInstance().GetOhosAccountInfo(ohosAccountInfo); in FfiOHOSDistributedAccountDistributedInfoGetOsAccountDistributedInfo() 59 return convertToRet(ohosAccountInfo); in FfiOHOSDistributedAccountDistributedInfoGetOsAccountDistributedInfo() 64 AccountSA::OhosAccountInfo ohosAccountInfo = getOhosInfoFromRet(retInfo); in FfiOHOSDistributedAccountUnitSetOsAccountDistributedInfo() local 68 *errCode = OhosAccountKits::GetInstance().SetOhosAccountInfo(ohosAccountInfo, retInfo.event); in FfiOHOSDistributedAccountUnitSetOsAccountDistributedInfo()
|
/base/account/os_account/services/accountmgr/include/ |
H A D | ohos_account_manager.h | 109 * @param ohosAccountInfo ohos account information
113 ErrCode LoginOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
119 * @param ohosAccountInfo ohos account information
123 ErrCode LogoutOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo,
130 * @param ohosAccountInfo ohos account information
134 ErrCode LogoffOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo,
141 * @param ohosAccountInfo ohos account information
146 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
169 * @param ohosAccountInfo ohos account information
174 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, cons [all...] |
H A D | account_mgr_service.h | 46 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, 49 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override;
|
/base/account/os_account/frameworks/ohosaccount/native/include/ |
H A D | account_info_parcel.h | 23 bool WriteOhosAccountInfo(MessageParcel &data, const OhosAccountInfo &ohosAccountInfo); 24 ErrCode ReadOhosAccountInfo(MessageParcel &data, OhosAccountInfo &ohosAccountInfo);
|
H A D | account_proxy.h | 34 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override; 35 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override; 37 ErrCode GetOhosAccountInfo(OhosAccountInfo &ohosAccountInfo) override; 38 ErrCode GetOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &ohosAccountInfo) override;
|
/base/account/os_account/services/accountmgr/src/ |
H A D | ohos_account_manager.cpp | 181 OhosAccountInfo ohosAccountInfo; in OhosAccountStateChange() local 182 ohosAccountInfo.name_ = name; in OhosAccountStateChange() 183 ohosAccountInfo.uid_ = uid; in OhosAccountStateChange() 185 return (itFunc->second)(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange() 189 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in OhosAccountStateChange() 196 return (itFunc->second)(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange() 216 * @param ohosAccountInfo distribute account information. 219 bool OhosAccountManager::SaveOhosAccountInfo(AccountInfo &ohosAccountInfo) const in SaveOhosAccountInfo() 221 ErrCode errCode = dataDealer_->AccountInfoToJson(ohosAccountInfo); in SaveOhosAccountInfo() 318 * @param ohosAccountInfo oho 188 OhosAccountStateChange( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) OhosAccountStateChange() argument 322 LoginOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LoginOhosAccount() argument 392 LogoutOhosAccount( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LogoutOhosAccount() argument 437 LogoffOhosAccount( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LogoffOhosAccount() argument 481 HandleOhosAccountTokenInvalidEvent( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) HandleOhosAccountTokenInvalidEvent() argument [all...] |
H A D | account_stub.cpp | 264 OhosAccountInfo ohosAccountInfo; in InnerGetOhosAccountInfo() local 265 int ret = GetOhosAccountInfo(ohosAccountInfo); in InnerGetOhosAccountInfo() 266 ohosAccountInfo.SetRawUid(""); in InnerGetOhosAccountInfo() 271 if (!WriteOhosAccountInfo(reply, ohosAccountInfo)) { in InnerGetOhosAccountInfo() 272 ACCOUNT_LOGE("Write ohosAccountInfo failed!"); in InnerGetOhosAccountInfo() 327 OhosAccountInfo ohosAccountInfo; in CmdGetOhosAccountInfoByUserId() local 328 errCode = GetOhosAccountInfoByUserId(userId, ohosAccountInfo); in CmdGetOhosAccountInfoByUserId() 335 ohosAccountInfo.SetRawUid(""); in CmdGetOhosAccountInfoByUserId() 337 if (!WriteOhosAccountInfo(reply, ohosAccountInfo)) { in CmdGetOhosAccountInfoByUserId() 338 ACCOUNT_LOGE("Write ohosAccountInfo faile in CmdGetOhosAccountInfoByUserId() [all...] |
H A D | account_mgr_service.cpp | 100 std::int32_t AccountMgrService::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo() argument 106 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId() 108 ErrCode res = OhosAccountManager::GetInstance().OhosAccountStateChange(userId, ohosAccountInfo, eventStr); in SetOhosAccountInfoByUserId() 105 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfoByUserId() argument
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/ |
H A D | napi_distributed_account.cpp | 98 if (!GetStringPropertyByKey(env, object, PROPERTY_KEY_NAME, asyncContext->ohosAccountInfo.name_)) {
in GetAccountInfo() 104 if (!GetStringPropertyByKey(env, object, PROPERTY_KEY_ID, asyncContext->ohosAccountInfo.uid_)) {
in GetAccountInfo() 110 if (!GetOptionalStringPropertyByKey(env, object, PROPERTY_KEY_NICKNAME, asyncContext->ohosAccountInfo.nickname_)) {
in GetAccountInfo() 116 if (!GetOptionalStringPropertyByKey(env, object, PROPERTY_KEY_AVATAR, asyncContext->ohosAccountInfo.avatar_)) {
in GetAccountInfo() 141 asyncContext->ohosAccountInfo.scalableData_.SetParams(params);
in GetAccountInfo() 219 napi_create_string_utf8(env, asyncContext->ohosAccountInfo.name_.c_str(),
in ProcessSetNamedProperty() 220 asyncContext->ohosAccountInfo.name_.size(), &value);
in ProcessSetNamedProperty() 222 napi_create_string_utf8(env, asyncContext->ohosAccountInfo.uid_.c_str(),
in ProcessSetNamedProperty() 223 asyncContext->ohosAccountInfo.uid_.size(), &value);
in ProcessSetNamedProperty() 227 napi_create_string_utf8(env, asyncContext->ohosAccountInfo in ProcessSetNamedProperty() [all...] |
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/ |
H A D | ohos_account_kits.h | 107 * @param ohosAccountInfo Indicates the information of the distributed account.
113 virtual std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
120 * @param ohosAccountInfo Indicates the information of the distributed account.
127 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) = 0;
|
H A D | iaccount.h | 37 virtual std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, 40 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) = 0;
|
H A D | account_info.h | 159 explicit AccountInfo(const OhosAccountInfo &ohosAccountInfo) in AccountInfo() argument 161 ohosAccountInfo_ = ohosAccountInfo; in AccountInfo()
|
H A D | ohos_account_kits_impl.h | 34 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo,
37 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) final;
|
/base/account/os_account/services/accountmgr/test/mock/include/ |
H A D | mock_account_mgr_service.h | 46 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override 52 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/include/ |
H A D | napi_distributed_account.h | 37 AccountSA::OhosAccountInfo ohosAccountInfo;
member
|
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/ |
H A D | ohos_account_manager_test.cpp | 372 OhosAccountInfo ohosAccountInfo; in HWTEST_F() local 373 ohosAccountInfo.uid_ = ACCOUNT_UID; in HWTEST_F() 374 accountInfoSrc.ohosAccountInfo_ = ohosAccountInfo; in HWTEST_F() 377 accountInfoTar.ohosAccountInfo_ = ohosAccountInfo; in HWTEST_F()
|