Home
last modified time | relevance | path

Searched refs:owner (Results 1 – 25 of 168) sorted by relevance

1234567

/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_manager.cpp29 ErrCode AppAccountManager::AddAccountImplicitly(const std::string &owner, const std::string &authTy… in AddAccountImplicitly() argument
33 owner, authType, options, callback); in AddAccountImplicitly()
41 ErrCode AppAccountManager::CreateAccountImplicitly(const std::string &owner, in CreateAccountImplicitly() argument
44 …return DelayedSingleton<AppAccount>::GetInstance()->CreateAccountImplicitly(owner, options, callba… in CreateAccountImplicitly()
109 ErrCode AppAccountManager::Authenticate(const std::string &name, const std::string &owner, in Authenticate() argument
112 …return DelayedSingleton<AppAccount>::GetInstance()->Authenticate(name, owner, authType, options, c… in Authenticate()
116 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument
118 return DelayedSingleton<AppAccount>::GetInstance()->GetOAuthToken(name, owner, authType, token); in GetOAuthToken()
122 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetAuthToken() argument
124 return DelayedSingleton<AppAccount>::GetInstance()->GetAuthToken(name, owner, authType, token); in GetAuthToken()
[all …]
Dapp_account.cpp66 ErrCode AppAccount::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument
73 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in AddAccountImplicitly()
78 return appAccountProxy_->AddAccountImplicitly(owner, authType, options, callbackObj); in AddAccountImplicitly()
95 ErrCode AppAccount::CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitly… in CreateAccountImplicitly() argument
102 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in CreateAccountImplicitly()
109 return appAccountProxy_->CreateAccountImplicitly(owner, options, callbackObj); in CreateAccountImplicitly()
218 ErrCode AppAccount::Authenticate(const std::string &name, const std::string &owner, const std::stri… in Authenticate() argument
226 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in Authenticate()
231 return appAccountProxy_->Authenticate(name, owner, authType, options, callbackObj); in Authenticate()
235 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument
[all …]
Dapp_account_proxy.cpp59 ErrCode AppAccountProxy::AddAccountImplicitly(const std::string &owner, const std::string &authType, in AddAccountImplicitly() argument
70 if (!data.WriteString(owner)) { in AddAccountImplicitly()
120 …const std::string &owner, const CreateAccountImplicitlyOptions &options, const sptr<IRemoteObject>… in CreateAccountImplicitly() argument
127 if (!data.WriteString(owner)) { in CreateAccountImplicitly()
512 ErrCode AppAccountProxy::Authenticate(const std::string &name, const std::string &owner, const std:… in Authenticate() argument
527 if (!data.WriteString(owner)) { in Authenticate()
553 …const std::string &name, const std::string &owner, const std::string &authType, MessageParcel &dat… in WriteGetAuthTokenParam() argument
563 if (!data.WriteString(owner)) { in WriteGetAuthTokenParam()
575 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument
580 ErrCode result = WriteGetAuthTokenParam(name, owner, authType, data); in GetOAuthToken()
[all …]
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_subscribe_manager.cpp108 …ccountSubscribeRecordPtr> AppAccountSubscribeManager::GetSubscribeRecords(const std::string &owner) in GetSubscribeRecords() argument
117 auto subscribeRecordsPtr = ownerSubscribeRecords_.find(owner); in GetSubscribeRecords()
131 if (std::find(owners.begin(), owners.end(), owner) == owners.end()) { in GetSubscribeRecords()
175 for (auto owner : owners) { in CheckAppAccess() local
176 if (owner == bundleName) { in CheckAppAccess()
182 [owner](const std::string &account) { in CheckAppAccess()
183 auto position = account.find(owner); in CheckAppAccess()
214 for (auto owner : owners) { in InsertSubscribeRecord() local
215 auto item = ownerSubscribeRecords_.find(owner); in InsertSubscribeRecord()
221 ownerSubscribeRecords_[owner] = subscribeRecords; in InsertSubscribeRecord()
[all …]
Dapp_account_authenticator_manager.cpp33 static ErrCode QueryAbilityInfos(const std::string &owner, int32_t userId, in QueryAbilityInfos() argument
38 want.SetBundle(owner); in QueryAbilityInfos()
63 const std::string &owner, int32_t userId, AuthenticatorInfo &info) in GetAuthenticatorInfo() argument
67 ErrCode ret = QueryAbilityInfos(owner, userId, abilityInfos, extensionInfos); in GetAuthenticatorInfo()
77 info.owner = owner; in GetAuthenticatorInfo()
89 info.owner = owner; in GetAuthenticatorInfo()
Dapp_account_manager_service.cpp56 ErrCode AppAccountManagerService::AddAccountImplicitly(const std::string &owner, const std::string … in AddAccountImplicitly() argument
65 request.owner = owner; in AddAccountImplicitly()
88 ErrCode AppAccountManagerService::CreateAccountImplicitly(const std::string &owner, in CreateAccountImplicitly() argument
97 request.owner = owner; in CreateAccountImplicitly()
308 ErrCode AppAccountManagerService::Authenticate(const std::string &name, const std::string &owner, in Authenticate() argument
318 request.owner = owner; in Authenticate()
330 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument
338 request.owner = owner; in GetOAuthToken()
344 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetAuthToken() argument
352 request.owner = owner; in GetAuthToken()
[all …]
Dapp_account_stub.cpp321 std::string owner = data.ReadString(); in ProcAddAccountImplicitly() local
322 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in ProcAddAccountImplicitly()
334 result = AddAccountImplicitly(owner, authType, *options, callback); in ProcAddAccountImplicitly()
370 std::string owner = data.ReadString(); in ProcCreateAccountImplicitly() local
371 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in ProcCreateAccountImplicitly()
384 result = CreateAccountImplicitly(owner, *options, callback); in ProcCreateAccountImplicitly()
575 std::string owner = data.ReadString(); in ProcAuthenticate() local
576 …RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(owner, Constants::OWNER_MAX_SIZE, "owner is empty or oversiz… in ProcAuthenticate()
588 result = Authenticate(name, owner, authType, *options, callback); in ProcAuthenticate()
601 std::string owner = data.ReadString(); in ProcGetAuthToken() local
[all …]
/base/security/device_security_level/services/sa/standard/
Ddslm_ipc_process.cpp41 static void ProcessCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf… in ProcessCallback() argument
46 auto object = Singleton<DslmIpcProcess::RemoteHolder>::GetInstance().Pop(owner, cookie); in ProcessCallback()
127 auto owner = IPCSkeleton::GetCallingPid(); in DslmProcessGetDeviceSecurityLevel() local
128 Singleton<RemoteHolder>::GetInstance().Push(owner, cookie, callback); in DslmProcessGetDeviceSecurityLevel()
130 ret = OnRequestDeviceSecLevelInfo(&identity, &option, owner, cookie, ProcessCallback); in DslmProcessGetDeviceSecurityLevel()
132 Singleton<RemoteHolder>::GetInstance().Pop(owner, cookie); in DslmProcessGetDeviceSecurityLevel()
139 Singleton<RemoteHolder>::GetInstance().Pop(owner, cookie); in DslmProcessGetDeviceSecurityLevel()
146 bool DslmIpcProcess::RemoteHolder::Push(uint32_t owner, uint32_t cookie, const sptr<IRemoteObject> … in Push() argument
149 uint64_t key = (static_cast<uint64_t>(owner) << COOKIE_SHIFT) | cookie; in Push()
157 sptr<IRemoteObject> DslmIpcProcess::RemoteHolder::Pop(uint32_t owner, uint32_t cookie) in Pop() argument
[all …]
Ddslm_ipc_process.h39 bool Push(uint32_t owner, uint32_t cookie, const sptr<IRemoteObject> &object);
40 sptr<IRemoteObject> Pop(uint32_t owner, uint32_t cookie);
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
Dapp_account_manager.h30 static ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
33 …static ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOpti…
55 …static ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &…
57 …static ErrCode GetOAuthToken(const std::string &name, const std::string &owner, const std::string …
59 …static ErrCode GetAuthToken(const std::string &name, const std::string &owner, const std::string &…
64 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
66 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
75 static ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &info);
76 static ErrCode GetAllOAuthTokens(const std::string &name, const std::string &owner,
84 … static ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts);
[all …]
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account_proxy.h30 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
33 …ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOptions &op…
58 …ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authTyp…
61 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
63 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
66 …ErrCode DeleteOAuthToken(const std::string &name, const std::string &owner, const std::string &aut…
68 …ErrCode DeleteAuthToken(const std::string &name, const std::string &owner, const std::string &auth…
78 ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &info) override;
80 …const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) overri…
87 …ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts) overrid…
[all …]
Dapp_account.h36 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
39 …ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOptions &op…
60 …ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authTyp…
63 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
65 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
68 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
70 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
79 ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &info);
81 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos);
88 ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts);
[all …]
Diapp_account.h33 virtual ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
36 …virtual ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOpt…
60 …virtual ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string …
63 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
65 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
69 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
71 …const std::string &name, const std::string &owner, const std::string &authType, const std::string …
80 virtual ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &info) = 0;
81 virtual ErrCode GetAllOAuthTokens(const std::string &name, const std::string &owner,
89 …virtual ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts)…
[all …]
/base/account/os_account/services/accountmgr/test/mock/app_account/
Dmock_app_account_stub.h28 ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType,
31 …ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOptions &op…
54 …ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authTyp…
57 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
59 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
62 ErrCode DeleteOAuthToken(const std::string &name, const std::string &owner,
64 ErrCode DeleteAuthToken(const std::string &name, const std::string &owner,
74 … ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &authenticator) override;
75 ErrCode GetAllOAuthTokens(const std::string &name, const std::string &owner,
83 …ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts) overrid…
[all …]
Dmock_app_account_stub.cpp59 ErrCode MockAppAccountStub::AddAccountImplicitly(const std::string &owner, const std::string &authT… in AddAccountImplicitly() argument
73 …const std::string &owner, const CreateAccountImplicitlyOptions &options, const sptr<IRemoteObject>… in CreateAccountImplicitly() argument
177 ErrCode MockAppAccountStub::Authenticate(const std::string &name, const std::string &owner, in Authenticate() argument
186 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetOAuthToken() argument
194 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token) in GetAuthToken() argument
209 ErrCode MockAppAccountStub::DeleteOAuthToken(const std::string &name, const std::string &owner, in DeleteOAuthToken() argument
217 ErrCode MockAppAccountStub::DeleteAuthToken(const std::string &name, const std::string &owner, in DeleteAuthToken() argument
257 ErrCode MockAppAccountStub::GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &authe… in GetAuthenticatorInfo() argument
264 ErrCode MockAppAccountStub::GetAllOAuthTokens(const std::string &name, const std::string &owner, in GetAllOAuthTokens() argument
295 ErrCode MockAppAccountStub::GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &a… in GetAllAccounts() argument
[all …]
Dmock_app_account_subscribe_manager.cpp53 auto owner = owners.front(); in SubscribeAppAccount() local
54 if (owner != STRING_OWNER) { in SubscribeAppAccount()
56 owner.c_str(), STRING_OWNER.c_str()); in SubscribeAppAccount()
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_queue.cpp172 void EventQueue::Remove(const std::shared_ptr<EventHandler> &owner) in Remove() argument
174 if (!owner) { in Remove()
179 auto filter = [&owner](const InnerEvent::Pointer &p) { return (p->GetOwner() == owner); }; in Remove()
184 void EventQueue::Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId) in Remove() argument
186 if (!owner) { in Remove()
191 auto filter = [&owner, innerEventId](const InnerEvent::Pointer &p) { in Remove()
192 … return (!p->HasTask()) && (p->GetOwner() == owner) && (p->GetInnerEventId() == innerEventId); in Remove()
198 void EventQueue::Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId, int64_t … in Remove() argument
200 if (!owner) { in Remove()
205 auto filter = [&owner, innerEventId, param](const InnerEvent::Pointer &p) { in Remove()
[all …]
/base/notification/eventhandler/interfaces/inner_api/
Devent_queue.h79 void Remove(const std::shared_ptr<EventHandler> &owner);
87 void Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId);
96 void Remove(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId, int64_t param);
104 void Remove(const std::shared_ptr<EventHandler> &owner, const std::string &name);
122 void RemoveFileDescriptorListener(const std::shared_ptr<EventHandler> &owner);
200 bool HasInnerEvent(const std::shared_ptr<EventHandler> &owner, uint32_t innerEventId);
209 bool HasInnerEvent(const std::shared_ptr<EventHandler> &owner, int64_t param);
Dfile_descriptor_listener.h83 inline void SetOwner(const std::shared_ptr<EventHandler> &owner) in SetOwner() argument
85 owner_ = owner; in SetOwner()
/base/security/device_security_level/services/dfx/
Ddslm_hitrace.cpp42 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmStartProcessTraceAsync() argument
44 …std::string traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(c… in DslmStartProcessTraceAsync()
48 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmFinishProcessTraceAsync() argument
50 …std::string traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(c… in DslmFinishProcessTraceAsync()
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_manager_service.h33 const std::string &owner, const std::string &authType, const AAFwk::Want &options,
36 …ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOptions &op…
61 …ErrCode Authenticate(const std::string &name, const std::string &owner, const std::string &authTyp…
64 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
66 …const std::string &name, const std::string &owner, const std::string &authType, std::string &token…
69 ErrCode DeleteOAuthToken(const std::string &name, const std::string &owner,
71 ErrCode DeleteAuthToken(const std::string &name, const std::string &owner,
81 ErrCode GetAuthenticatorInfo(const std::string &owner, AuthenticatorInfo &info) override;
82 ErrCode GetAllOAuthTokens(const std::string &name, const std::string &owner,
90 …ErrCode GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts) overrid…
[all …]
/base/security/device_security_level/services/include/
Ddslm_hitrace.h33 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie);
34 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie);
/base/security/device_security_level/services/dslm/
Ddslm_dfx_default.c67 __attribute__((weak)) void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t c… in DslmStartProcessTraceAsync() argument
71 __attribute__((weak)) void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t … in DslmFinishProcessTraceAsync() argument
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_module_test.cpp1115 std::string owner; variable
1116 appAccounts[0].GetOwner(owner);
1119 result = g_accountManagerService->GetOAuthToken(STRING_NAME, owner, STRING_AUTH_TYPE, token);
1145 std::string owner; variable
1146 appAccounts[0].GetOwner(owner);
1149 result = g_accountManagerService->GetAuthToken(STRING_NAME, owner, STRING_AUTH_TYPE, token);
1174 std::string owner; variable
1175 appAccounts[0].GetOwner(owner);
1181 result = g_accountManagerService->GetOAuthToken(STRING_NAME, owner, STRING_AUTH_TYPE, token);
1207 std::string owner; variable
[all …]
/base/account/os_account/dfx/hisysevent_adapter/
Dhisysevent_adapter.cpp108 void ReportAppAccountOperationFail(const std::string &name, const std::string &owner, const std::st… in ReportAppAccountOperationFail() argument
115 "OWNER", owner, in ReportAppAccountOperationFail()
123 ret, name.c_str(), owner.c_str(), operationStr.c_str(), errCode, errMsg.c_str()); in ReportAppAccountOperationFail()
127 (void)owner; in ReportAppAccountOperationFail()

1234567