/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | widget_client_test.cpp | 179 std::vector<AuthType> authTypeList; variable 180 WidgetClient::Instance().SetAuthTypeList(authTypeList); 193 std::vector<AuthType> authTypeList; variable 194 authTypeList.emplace_back(AuthType::PIN); 195 WidgetClient::Instance().SetAuthTypeList(authTypeList); 209 std::vector<AuthType> authTypeList; variable 210 authTypeList.emplace_back(AuthType::PIN); 211 WidgetClient::Instance().SetAuthTypeList(authTypeList); 225 std::vector<AuthType> authTypeList; variable 226 authTypeList.emplace_back(AuthType::FACE); [all …]
|
D | auth_widget_helper_test.cpp | 77 std::vector<AuthType> authTypeList; variable 78 authTypeList.push_back(FACE); 79 authTypeList.push_back(ALL); 80 authTypeList.push_back(PIN); 81 authTypeList.push_back(FINGERPRINT); 83 EXPECT_FALSE(AuthWidgetHelper::CheckValidSolution(userId, authTypeList, atl));
|
D | widget_context_test.cpp | 226 std::vector<AuthType> authTypeList; variable 227 widgetContext->StopAuthList(authTypeList); 236 std::vector<AuthType> authTypeList = {ALL, PIN, FACE}; variable 237 widgetContext->StopAuthList(authTypeList); 249 std::set<AuthType> authTypeList; variable 250 authTypeList.insert(FACE); 251 authTypeList.insert(ALL); 252 widgetContext->ExecuteAuthList(authTypeList); 288 std::set<AuthType> authTypeList; variable 289 authTypeList.insert(FACE); [all …]
|
D | widget_schedule_node_impl_test.cpp | 79 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING… variable 82 EXPECT_TRUE(schedule->StartAuthList(authTypeList)); 90 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING… variable 93 schedule->StartAuthList(authTypeList); 94 EXPECT_TRUE(schedule->StopAuthList(authTypeList)); 102 …std::vector<AuthType> authTypeList = {AuthType::ALL, AuthType::PIN, AuthType::FACE, AuthType::FING… variable 105 schedule->StartAuthList(authTypeList);
|
D | widget_json_test.cpp | 293 auto authTypeList = widgetNotice.AuthTypeList(); variable 294 EXPECT_EQ(authTypeList[0], AuthType::PIN);
|
/base/useriam/user_auth_framework/services/context/src/ |
D | widget_client.cpp | 81 std::vector<AuthType> authTypeList = {}; in OnNotice() local 82 if (!GetAuthTypeList(notice, authTypeList)) { in OnNotice() 87 schedule_->StartAuthList(authTypeList); in OnNotice() 89 if (authTypeList.size() == 1 && authTypeList[0] == AuthType::ALL) { in OnNotice() 92 schedule_->StopAuthList(authTypeList); in OnNotice() 153 void WidgetClient::SetAuthTypeList(const std::vector<AuthType> &authTypeList) in SetAuthTypeList() argument 155 authTypeList_ = authTypeList; in SetAuthTypeList() 223 bool WidgetClient::GetAuthTypeList(const WidgetNotice ¬ice, std::vector<AuthType> &authTypeList) in GetAuthTypeList() argument 239 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList() 247 authTypeList.emplace_back(type); in GetAuthTypeList() [all …]
|
D | widget_context.cpp | 185 WidgetClient::Instance().SetAuthTypeList(para_.authTypeList); in OnStart() 249 void WidgetContext::ExecuteAuthList(const std::set<AuthType> &authTypeList) in ExecuteAuthList() argument 254 for (auto &authType : authTypeList) { in ExecuteAuthList() 285 void WidgetContext::StopAuthList(const std::vector<AuthType> &authTypeList) in StopAuthList() argument 289 for (auto &authType : authTypeList) { in StopAuthList()
|
D | widget_json.cpp | 100 std::vector<AuthType> authTypeList; in AuthTypeList() local 102 authTypeList.emplace_back(Str2AuthType(type)); in AuthTypeList() 104 return authTypeList; in AuthTypeList()
|
/base/useriam/user_auth_framework/services/core/inc/ |
D | widget_schedule_node_callback.h | 35 virtual void ExecuteAuthList(const std::set<AuthType> &authTypeList) = 0; 38 virtual void StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
|
D | widget_schedule_node.h | 55 virtual bool StartAuthList(const std::vector<AuthType> &authTypeList) = 0; 56 virtual bool StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
|
D | auth_widget_helper.h | 30 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl);
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
D | mock_widget_schedule_node_callback.h | 31 MOCK_METHOD1(ExecuteAuthList, void(const std::set<AuthType> &authTypeList)); 34 MOCK_METHOD1(StopAuthList, void(const std::vector<AuthType> &authTypeList));
|
/base/useriam/user_auth_framework/services/core/src/ |
D | auth_widget_helper.cpp | 46 para.authTypeList = authParam.authType; in InitWidgetContextParam() 124 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl) in CheckValidSolution() argument 135 IAM_LOGE("hdi interface authTypeList size is:%{public}zu", authTypeList.size()); in CheckValidSolution() 136 for (size_t index = 0; index < authTypeList.size(); index++) { in CheckValidSolution() 137 inputAuthType.emplace_back(static_cast<HdiAuthType>(authTypeList[index])); in CheckValidSolution()
|
D | widget_schedule_node_impl.h | 42 bool StartAuthList(const std::vector<AuthType> &authTypeList) override; 43 bool StopAuthList(const std::vector<AuthType> &authTypeList) override;
|
D | widget_schedule_node_impl.cpp | 101 bool WidgetScheduleNodeImpl::StartAuthList(const std::vector<AuthType> &authTypeList) in StartAuthList() argument 105 for (auto authType : authTypeList) { in StartAuthList() 112 bool WidgetScheduleNodeImpl::StopAuthList(const std::vector<AuthType> &authTypeList) in StopAuthList() argument 115 stopAuthTypeList_ = authTypeList; in StopAuthList()
|
/base/useriam/user_auth_framework/services/context/inc/ |
D | widget_client.h | 41 void SetAuthTypeList(const std::vector<AuthType> &authTypeList); 60 bool GetAuthTypeList(const WidgetNotice ¬ice, std::vector<AuthType> &authTypeList);
|
D | widget_context.h | 60 void ExecuteAuthList(const std::set<AuthType> &authTypeList) override; 63 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
|
D | context_factory.h | 54 std::vector<AuthType> authTypeList {};
|