/base/useriam/user_auth_framework/services/core/src/ |
D | resource_node_utils.cpp | 39 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates() local 40 if (resourceNode == nullptr) { in NotifyExecutorToDeleteTemplates() 48 int32_t ret = resourceNode->SetProperty(properties); in NotifyExecutorToDeleteTemplates() 59 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor() local 60 if (resourceNode == nullptr) { in SendMsgToExecutor() 71 int32_t ret = resourceNode->SetProperty(properties); in SendMsgToExecutor() 83 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SetCachedTemplates() local 84 if (resourceNode == nullptr) { in SetCachedTemplates() 98 int32_t result = resourceNode->SetProperty(attr); in SetCachedTemplates()
|
D | auth_widget_helper.cpp | 65 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in GetUserAuthProfile() local 66 if (resourceNode == nullptr) { in GetUserAuthProfile() 91 int32_t result = resourceNode->GetProperty(attr, values); in GetUserAuthProfile()
|
/base/useriam/user_auth_framework/services/ipc/src/ |
D | co_auth_service.cpp | 88 …auto resourceNode = ResourceNode::MakeNewResource(info, executorCallback, templateIdList, fwkPubli… in ExecutorRegister() local 89 if (resourceNode == nullptr) { in ExecutorRegister() 93 if (!ResourceNodePool::Instance().Insert(resourceNode)) { in ExecutorRegister() 100 uint64_t executorIndex = resourceNode->GetExecutorIndex(); in ExecutorRegister() 101 int32_t executorType = resourceNode->GetAuthType(); in ExecutorRegister() 114 TemplateCacheManager::GetInstance().UpdateTemplateCache(resourceNode->GetAuthType()); in ExecutorRegister()
|
D | user_auth_service.cpp | 187 auto resourceNode = authTypeNodes[0].lock(); in GetProperty() local 188 if (resourceNode == nullptr) { in GetProperty() 207 int32_t result = resourceNode->GetProperty(attr, values); in GetProperty() 237 auto resourceNode = authTypeNodes[0].lock(); in SetProperty() local 238 if (resourceNode == nullptr) { in SetProperty() 243 int32_t result = resourceNode->SetProperty(attributes); in SetProperty()
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | resource_node_utils_test.cpp | 142 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(testIndex); variable 143 EXPECT_CALL(*(static_cast<MockResourceNode *>(resourceNode.get())), SetProperty(_)) 145 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); 156 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(testIndex); variable 157 EXPECT_CALL(*(static_cast<MockResourceNode *>(resourceNode.get())), SetProperty(_)) 159 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
|
D | identification_impl_test.cpp | 152 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(executorIndex, FACE, ALL_IN_ONE); variable 153 EXPECT_NE(resourceNode, nullptr); 154 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
|
D | user_auth_service_test.cpp | 192 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(2); variable 193 EXPECT_NE(resourceNode, nullptr); 194 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); 195 MockResourceNode *node = static_cast<MockResourceNode *>(resourceNode.get()); 237 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(2); variable 238 EXPECT_NE(resourceNode, nullptr); 239 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); 240 MockResourceNode *node = static_cast<MockResourceNode *>(resourceNode.get()); 375 static void MockForAuthResourceNode(std::shared_ptr<MockResourceNode> &resourceNode) in MockForAuthResourceNode() argument 379 EXPECT_CALL(*resourceNode, GetExecutorIndex()).WillRepeatedly(Return(testExecutorIndex)); in MockForAuthResourceNode() [all …]
|
D | user_idm_service_test.cpp | 376 static void MockForIdmResourceNode(std::shared_ptr<MockResourceNode> &resourceNode) in MockForIdmResourceNode() argument 380 EXPECT_CALL(*resourceNode, GetExecutorIndex()).WillRepeatedly(Return(testExecutorIndex)); in MockForIdmResourceNode() 381 EXPECT_CALL(*resourceNode, GetAuthType()).WillRepeatedly(Return(FACE)); in MockForIdmResourceNode() 382 EXPECT_CALL(*resourceNode, GetExecutorRole()).WillRepeatedly(Return(ALL_IN_ONE)); in MockForIdmResourceNode() 383 EXPECT_CALL(*resourceNode, GetExecutorMatcher()).WillRepeatedly(Return(0)); in MockForIdmResourceNode() 384 … EXPECT_CALL(*resourceNode, GetExecutorPublicKey()).WillRepeatedly(Return(std::vector<uint8_t>())); in MockForIdmResourceNode() 385 EXPECT_CALL(*resourceNode, BeginExecute(_, _, _)) in MockForIdmResourceNode() 422 auto resourceNode = Common::MakeShared<MockResourceNode>(); variable 423 EXPECT_NE(resourceNode, nullptr); 424 MockForIdmResourceNode(resourceNode); [all …]
|
D | authentication_impl_test.cpp | 219 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(executorIndex, FACE, ALL_IN_ONE); variable 220 EXPECT_NE(resourceNode, nullptr); 221 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
|
D | enrollment_impl_test.cpp | 219 auto resourceNode = MockResourceNode::CreateWithExecuteIndex(executorIndex, FACE, ALL_IN_ONE); variable 220 EXPECT_NE(resourceNode, nullptr); 221 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
|
/base/useriam/user_auth_framework/services/context/src/ |
D | simple_auth_context.cpp | 38 auto resourceNode = scheduleNode->GetVerifyExecutor().lock(); in SetFreezingTimeAndRemainTimes() local 39 IF_FALSE_LOGE_AND_RETURN_VAL(resourceNode != nullptr, GENERAL_ERROR); in SetFreezingTimeAndRemainTimes() 53 int32_t ret = resourceNode->GetProperty(attr, values); in SetFreezingTimeAndRemainTimes()
|