Home
last modified time | relevance | path

Searched refs:executorIndex (Results 1 – 25 of 75) sorted by relevance

123

/ohos5.0/base/useriam/user_auth_framework/services/core/src/
H A Dresource_node_utils.cpp42 uint64_t executorIndex = info->GetExecutorIndex(); in NotifyExecutorToDeleteTemplates() local
44 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates()
65 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor()
67 IAM_LOGE("failed to find ****%{public}hx", static_cast<uint16_t>(executorIndex)); in SendMsgToExecutor()
82 IAM_LOGI("send msg to ****%{public}hx success", static_cast<uint16_t>(executorIndex)); in SendMsgToExecutor()
85 void ResourceNodeUtils::SetCachedTemplates(uint64_t executorIndex, in SetCachedTemplates() argument
89 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SetCachedTemplates()
126 uint64_t executorIndex = cred->GetExecutorIndex(); in ClassifyCredInfoByExecutor() local
127 if (out.find(executorIndex) == out.end()) { in ClassifyCredInfoByExecutor()
128 out[executorIndex] = std::vector<std::shared_ptr<CredentialInfoInterface>>(); in ClassifyCredInfoByExecutor()
[all …]
H A Dresource_node_pool_impl.cpp35 bool Delete(uint64_t executorIndex) override;
37 std::weak_ptr<ResourceNode> Select(uint64_t executorIndex) const override;
60 uint64_t executorIndex = resource->GetExecutorIndex(); in Insert() local
63 auto iter = resourceNodeMap_.find(executorIndex); in Insert()
73 auto result = resourceNodeMap_.insert_or_assign(executorIndex, nodeParam); in Insert()
82 …IAM_LOGI("update resource node success, count: %{public}u", resourceNodeMap_[executorIndex].count); in Insert()
92 bool ResourceNodePoolImpl::Delete(uint64_t executorIndex) in Delete() argument
95 auto iter = resourceNodeMap_.find(executorIndex); in Delete()
143 std::weak_ptr<ResourceNode> ResourceNodePoolImpl::Select(uint64_t executorIndex) const in Select()
147 auto iter = resourceNodeMap_.find(executorIndex); in Select()
H A Dresource_node_impl.cpp63 static void DeleteExecutorFromDriver(uint64_t executorIndex);
235 void ResourceNodeImpl::DeleteExecutorFromDriver(uint64_t executorIndex) in DeleteExecutorFromDriver() argument
243 auto result = hdi->DeleteExecutor(executorIndex); in DeleteExecutorFromDriver()
245 …hdi DeleteExecutor ****%{public}hx with %{public}d", static_cast<uint16_t>(executorIndex), result); in DeleteExecutorFromDriver()
248 IAM_LOGI("hdi DeleteExecutor ****%{public}hx success", static_cast<uint16_t>(executorIndex)); in DeleteExecutorFromDriver()
H A Dauthentication_impl.cpp48 void AuthenticationImpl::SetExecutor(uint32_t executorIndex) in SetExecutor() argument
50 executorIndex_ = executorIndex; in SetExecutor()
163 for (auto &[executorIndex, commandId, msg] : info.msgs) { in Update()
164 Authentication::AuthExecutorMsg authExecutorMsg = {executorIndex, commandId, msg}; in Update()
H A Dresource_node_utils.h32 …static void SendMsgToExecutor(uint64_t executorIndex, int32_t commandId, const std::vector<uint8_t…
33 static void SetCachedTemplates(uint64_t executorIndex,
/ohos5.0/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dpool.c49 uint64_t executorIndex = *(const uint64_t *)condition; in IsExecutorIdMatchById() local
51 return (executorInfo->executorIndex == executorIndex); in IsExecutorIdMatchById()
63 executorInfo->authType == executorIndex->authType && in IsExecutorNodeMatch()
99 IAM_STATIC bool IsExecutorIdDuplicate(uint64_t executorIndex) in IsExecutorIdDuplicate() argument
105 if (executorInfo != NULL && executorInfo->executorIndex == executorIndex) { in IsExecutorIdDuplicate()
128 *executorIndex = tempRandom; in GenerateValidExecutorId()
169 executorInfo->executorIndex = ((ExecutorInfoHal *)(executors->head->data))->executorIndex; in RegisterExecutorToPool()
198 ResultCode UnregisterExecutorToPool(uint64_t executorIndex) in UnregisterExecutorToPool() argument
229 condition->executorIndex != credentialInfo->executorIndex) { in IsExecutorMatch()
354 return executorInfo->executorIndex; in QueryCredentialExecutorIndex()
[all …]
H A Dcoauth_funcs.c28 ResultCode RegisterExecutor(const ExecutorInfoHal *registerInfo, uint64_t *executorIndex) in RegisterExecutor() argument
30 if (registerInfo == NULL || executorIndex == NULL) { in RegisterExecutor()
41 *executorIndex = executorInfo.executorIndex; in RegisterExecutor()
45 ResultCode UnRegisterExecutor(uint64_t executorIndex) in UnRegisterExecutor() argument
47 ResultCode ret = UnregisterExecutorToPool(executorIndex); in UnRegisterExecutor()
/ohos5.0/drivers/peripheral/user_auth/test/unittest/co_auth/
H A Dpool_test.cpp142 constexpr uint64_t executorIndex = 2634; variable
144 executorInfo.executorIndex = executorIndex;
149 executorInfo.executorIndex = index;
156 constexpr uint64_t executorIndex = 2634; variable
158 executorInfo.executorIndex = executorIndex;
222 constexpr uint32_t executorIndex = 1267; variable
231 info1.executorIndex = executorIndex;
251 constexpr uint32_t executorIndex = 10; variable
252 SetExecutorConditionExecutorIndex(nullptr, executorIndex);
254 SetExecutorConditionExecutorIndex(&condition, executorIndex);
[all …]
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dcredential_info_test.cpp44 .executorIndex = 2,
61 .executorIndex = 2,
77 .executorIndex = 2,
85 EXPECT_EQ(ret, info.executorIndex);
93 .executorIndex = 2,
109 .executorIndex = 2,
125 .executorIndex = 2,
141 .executorIndex = 2,
157 .executorIndex = 2,
H A Dco_auth_service_test.cpp90 uint64_t executorIndex = service->ExecutorRegister(info, callbackInterface); variable
91 EXPECT_EQ(executorIndex, 0);
92 executorIndex = service->ExecutorRegister(info, callbackInterface);
93 EXPECT_NE(executorIndex, 0);
95 EXPECT_EQ(ResourceNodePool::Instance().Delete(executorIndex), true);
106 uint64_t executorIndex = service->ExecutorRegister(info, testCallback); variable
107 EXPECT_EQ(executorIndex, 0);
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Dco_auth_service.cpp120 void CoAuthService::AddExecutorDeathRecipient(uint64_t executorIndex, AuthType authType, in AddExecutorDeathRecipient() argument
127 …obj->AddDeathRecipient(new (std::nothrow) IpcCommon::PeerDeathRecipient([executorIndex, authType](… in AddExecutorDeathRecipient()
129 auto weakNode = ResourceNodePool::Instance().Select(executorIndex); in AddExecutorDeathRecipient()
132 auto result = ResourceNodePool::Instance().Delete(executorIndex); in AddExecutorDeathRecipient()
134 … "executorRole is %{public}d", (result ? "succ" : "failed"), static_cast<uint16_t>(executorIndex), in AddExecutorDeathRecipient()
177 uint64_t executorIndex = resourceNode->GetExecutorIndex(); in ExecutorRegister() local
181 handler->PostTask([executorCallback, fwkPublicKey, templateIdList, weakNode, executorIndex]() { in ExecutorRegister()
189 AddExecutorDeathRecipient(executorIndex, resourceNode->GetAuthType(), executorCallback); in ExecutorRegister()
193 return executorIndex; in ExecutorRegister()
196 void CoAuthService::ExecutorUnregister(uint64_t executorIndex) in ExecutorUnregister() argument
[all …]
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/executors/src/
H A Dexecutor.cpp115 uint64_t executorIndex = executorMgrWrapper_->Register(executorInfo, executorCallback); in RegisterExecutorCallback() local
116 IF_FALSE_LOGE_AND_RETURN(executorIndex != INVALID_EXECUTOR_INDEX); in RegisterExecutorCallback()
119 executorIndex_ = executorIndex; in RegisterExecutorCallback()
122 GET_MASKED_STRING(executorIndex).c_str()); in RegisterExecutorCallback()
129 uint64_t executorIndex = 0; in UnregisterExecutorCallback() local
136 executorIndex = executorIndex_.value(); in UnregisterExecutorCallback()
141 executorMgrWrapper_->Unregister(executorIndex); in UnregisterExecutorCallback()
143 GET_MASKED_STRING(executorIndex).c_str()); in UnregisterExecutorCallback()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/src/
H A Dco_auth_stub.cpp53 uint64_t executorIndex; in ExecutorUnregisterStub() local
54 if (!data.ReadUint64(executorIndex)) { in ExecutorUnregisterStub()
59 ExecutorUnregister(executorIndex); in ExecutorUnregisterStub()
81 uint64_t executorIndex = ExecutorRegister(executorInfo, callback); in ExecutorRegisterStub() local
82 if (executorIndex == INVALID_EXECUTOR_INDEX) { in ExecutorRegisterStub()
86 if (!reply.WriteUint64(executorIndex)) { in ExecutorRegisterStub()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/executors/src/framework/
H A Dexecutor_mgr_wrapper.cpp29 uint64_t executorIndex = UserAuth::CoAuthClient::GetInstance().Register(info, callback); in Register() local
31 return executorIndex; in Register()
34 void ExecutorMgrWrapper::Unregister(uint64_t executorIndex) in Unregister() argument
38 UserAuth::CoAuthClient::GetInstance().Unregister(executorIndex); in Unregister()
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/
H A Dresource_node_pool_fuzzer.cpp43 uint64_t executorIndex = parcel.ReadUint64(); in FuzzResourcePoolDelete() local
44 ResourceNodePool::Instance().Delete(executorIndex); in FuzzResourcePoolDelete()
59 uint64_t executorIndex = parcel.ReadUint64(); in FuzzResourcePoolSelect() local
60 ResourceNodePool::Instance().Select(executorIndex); in FuzzResourcePoolSelect()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dpool.h38 uint64_t executorIndex; member
60 uint64_t executorIndex; member
71 ResultCode UnregisterExecutorToPool(uint64_t executorIndex);
78 void SetExecutorConditionExecutorIndex(ExecutorCondition *condition, uint64_t executorIndex);
H A Dcoauth_funcs.h28 ResultCode RegisterExecutor(const ExecutorInfoHal *registerInfo, uint64_t *executorIndex);
29 ResultCode UnRegisterExecutor(uint64_t executorIndex);
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/userauth/
H A D_executor_info_v10.md20 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
27 ### executorIndex subsection
30 unsigned long ExecutorInfo::executorIndex
H A D_executor_info_v12.md20 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
27 ### executorIndex subsection
30 unsigned long ExecutorInfo::executorIndex
H A D_executor_send_msg_v10.md20 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
38 ### executorIndex subsection
41 unsigned long ExecutorSendMsg::executorIndex
H A D_executor_send_msg_v12.md20 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
38 ### executorIndex subsection
41 unsigned long ExecutorSendMsg::executorIndex
H A D_credential_info_v10.md21 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
55 ### executorIndex subsection
58 unsigned long CredentialInfo::executorIndex
H A D_credential_info_v12.md21 | unsigned long [executorIndex](#executorindex) | 用户认证框架的执行器索引。 |
51 ### executorIndex subsection
54 unsigned long CredentialInfo::executorIndex
/ohos5.0/base/useriam/user_auth_framework/services/core/inc/
H A Dresource_node_pool.h40 virtual bool Delete(uint64_t executorIndex) = 0;
42 virtual std::weak_ptr<ResourceNode> Select(uint64_t executorIndex) const = 0;
/ohos5.0/base/useriam/user_auth_framework/services/ipc/inc/
H A Dco_auth_service.h38 void ExecutorUnregister(uint64_t executorIndex) override;
48 static void AddExecutorDeathRecipient(uint64_t executorIndex, AuthType authType,

123