/base/useriam/user_auth_framework/services/core/src/ |
H A D | resource_node_utils.cpp | 41 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 D | resource_node_pool_impl.cpp | 35 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 D | resource_node_utils.h | 32 static void SendMsgToExecutor(uint64_t executorIndex, int32_t commandId, const std::vector<uint8_t> &msg); 33 static void SetCachedTemplates(uint64_t executorIndex,
|
H A D | authentication_impl.cpp | 48 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 D | resource_node_impl.cpp | 63 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 D | schedule_node_helper.cpp | 113 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 D | credential_info_impl.cpp | 37 return info_.executorIndex; in GetExecutorIndex()
|
H A D | identification_impl.cpp | 49 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 D | executor_mgr_wrapper.cpp | 29 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 D | credential_info_test.cpp | 44 .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 D | co_auth_service_test.cpp | 90 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 D | executor.cpp | 115 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 D | co_auth_service.cpp | 120 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 D | co_auth_stub.cpp | 53 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 D | co_auth_proxy.cpp | 110 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 D | resource_node_pool_fuzzer.cpp | 43 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 D | resource_node_pool.h | 40 virtual bool Delete(uint64_t executorIndex) = 0; 42 virtual std::weak_ptr<ResourceNode> Select(uint64_t executorIndex) const = 0;
|
H A D | authentication.h | 60 uint64_t executorIndex; member 66 virtual void SetExecutor(uint32_t executorIndex) = 0;
|
/base/useriam/user_auth_framework/services/ipc/inc/ |
H A D | co_auth_service.h | 38 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 D | co_auth_client.h | 62 virtual void Unregister(uint64_t executorIndex) = 0;
|
/base/useriam/user_auth_framework/frameworks/native/executors/include/framework/ |
H A D | executor_mgr_wrapper.h | 30 virtual void Unregister(uint64_t executorIndex);
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
H A D | mock_co_auth_service.h | 30 MOCK_METHOD1(ExecutorUnregister, void(uint64_t executorIndex));
|
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/ |
H A D | co_auth_proxy.h | 32 void ExecutorUnregister(uint64_t executorIndex) override;
|
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/ |
H A D | co_auth_interface.h | 47 virtual void ExecutorUnregister(uint64_t executorIndex) = 0;
|
/base/useriam/user_auth_framework/frameworks/native/client/src/ |
H A D | co_auth_client_impl.cpp | 61 void CoAuthClientImpl::Unregister(uint64_t executorIndex) in Unregister() argument 70 proxy->ExecutorUnregister(executorIndex); in Unregister()
|