Home
last modified time | relevance | path

Searched refs:executorIndex (Results 1 - 25 of 44) sorted by relevance

12

/base/useriam/user_auth_framework/services/core/src/
H A Dresource_node_utils.cpp41 uint64_t executorIndex = info->GetExecutorIndex(); in NotifyExecutorToDeleteTemplates() local
43 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates()
45 IAM_LOGE("failed to find ****%{public}hx", static_cast<uint16_t>(executorIndex)); in NotifyExecutorToDeleteTemplates()
55 IAM_LOGE("failed to set property to ****%{public}hx", static_cast<uint16_t>(executorIndex)); in NotifyExecutorToDeleteTemplates()
62 void ResourceNodeUtils::SendMsgToExecutor(uint64_t executorIndex, int32_t commandId, const std::vector<uint8_t> &msg) in SendMsgToExecutor() argument
64 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor()
66 IAM_LOGE("failed to find ****%{public}hx", static_cast<uint16_t>(executorIndex)); in SendMsgToExecutor()
78 IAM_LOGE("failed to set property to ****%{public}hx", static_cast<uint16_t>(executorIndex)); in SendMsgToExecutor()
81 IAM_LOGI("send msg to ****%{public}hx success", static_cast<uint16_t>(executorIndex)); in SendMsgToExecutor()
84 void ResourceNodeUtils::SetCachedTemplates(uint64_t executorIndex, in SetCachedTemplates() argument
125 uint64_t executorIndex = cred->GetExecutorIndex(); ClassifyCredInfoByExecutor() local
[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()
[all...]
H A Dresource_node_utils.h32 static void SendMsgToExecutor(uint64_t executorIndex, int32_t commandId, const std::vector<uint8_t> &msg);
33 static void SetCachedTemplates(uint64_t executorIndex,
H A Dauthentication_impl.cpp48 void AuthenticationImpl::SetExecutor(uint32_t executorIndex) in SetExecutor() argument
50 executorIndex_ = executorIndex; in SetExecutor()
158 for (auto &[executorIndex, commandId, msg] : info.msgs) { in Update()
159 Authentication::AuthExecutorMsg authExecutorMsg = {executorIndex, commandId, msg}; in Update()
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 IAM_LOGE("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 Dschedule_node_helper.cpp113 uint64_t executorIndex = info.executorIndexes[i]; in ScheduleInfoToExecutors() local
114 auto resource = ResourceNodePool::Instance().Select(executorIndex).lock(); in ScheduleInfoToExecutors()
116 IAM_LOGE("invalid executorId ****%{public}hx", static_cast<uint16_t>(executorIndex)); in ScheduleInfoToExecutors()
H A Dcredential_info_impl.cpp37 return info_.executorIndex; in GetExecutorIndex()
H A Didentification_impl.cpp49 void IdentificationImpl::SetExecutor(uint32_t executorIndex) in SetExecutor() argument
51 executorIndex_ = executorIndex; in SetExecutor()
/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()
/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dcredential_info_test.cpp44 .executorIndex = 2, in HWTEST_F()
61 .executorIndex = 2, in HWTEST_F()
77 .executorIndex = 2, in HWTEST_F()
85 EXPECT_EQ(ret, info.executorIndex); in HWTEST_F()
93 .executorIndex = 2, in HWTEST_F()
109 .executorIndex = 2, in HWTEST_F()
125 .executorIndex = 2, in HWTEST_F()
141 .executorIndex = 2, in HWTEST_F()
H A Dco_auth_service_test.cpp90 uint64_t executorIndex = service->ExecutorRegister(info, callbackInterface); in HWTEST_F() local
91 EXPECT_EQ(executorIndex, 0); in HWTEST_F()
92 executorIndex = service->ExecutorRegister(info, callbackInterface); in HWTEST_F()
93 EXPECT_NE(executorIndex, 0); in HWTEST_F()
95 EXPECT_EQ(ResourceNodePool::Instance().Delete(executorIndex), true); in HWTEST_F()
106 uint64_t executorIndex = service->ExecutorRegister(info, testCallback); in HWTEST_F() local
107 EXPECT_EQ(executorIndex, 0); in HWTEST_F()
/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()
/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()
133 IAM_LOGI("delete executor %{public}s, executorIndex is ****%{public}hx authType is %{public}d " 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()
187 "executorIndex is ****%{public}hx", in ExecutorRegister()
188 resourceNode->GetAuthType(), resourceNode->GetExecutorRole(), static_cast<uint16_t>(executorIndex)); in ExecutorRegister()
196 ExecutorUnregister(uint64_t executorIndex) ExecutorUnregister() argument
[all...]
/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()
55 IAM_LOGE("failed to read 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()
H A Dco_auth_proxy.cpp110 void CoAuthProxy::ExecutorUnregister(uint64_t executorIndex) in ExecutorUnregister() argument
121 if (!data.WriteUint64(executorIndex)) { in ExecutorUnregister()
122 IAM_LOGE("failed to write executorIndex"); in ExecutorUnregister()
/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()
/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;
H A Dauthentication.h60 uint64_t executorIndex; member
66 virtual void SetExecutor(uint32_t executorIndex) = 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,
/base/useriam/user_auth_framework/interfaces/inner_api/
H A Dco_auth_client.h62 virtual void Unregister(uint64_t executorIndex) = 0;
/base/useriam/user_auth_framework/frameworks/native/executors/include/framework/
H A Dexecutor_mgr_wrapper.h30 virtual void Unregister(uint64_t executorIndex);
/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_co_auth_service.h30 MOCK_METHOD1(ExecutorUnregister, void(uint64_t executorIndex));
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
H A Dco_auth_proxy.h32 void ExecutorUnregister(uint64_t executorIndex) override;
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
H A Dco_auth_interface.h47 virtual void ExecutorUnregister(uint64_t executorIndex) = 0;
/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Dco_auth_client_impl.cpp61 void CoAuthClientImpl::Unregister(uint64_t executorIndex) in Unregister() argument
70 proxy->ExecutorUnregister(executorIndex); in Unregister()

Completed in 8 milliseconds

12