Home
last modified time | relevance | path

Searched refs:authTypeList (Results 1 – 18 of 18) sorted by relevance

/base/useriam/user_auth_framework/test/unittest/services/src/
Dwidget_client_test.cpp179 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 …]
Dauth_widget_helper_test.cpp77 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));
Dwidget_context_test.cpp226 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 …]
Dwidget_schedule_node_impl_test.cpp79 …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);
Dwidget_json_test.cpp293 auto authTypeList = widgetNotice.AuthTypeList(); variable
294 EXPECT_EQ(authTypeList[0], AuthType::PIN);
/base/useriam/user_auth_framework/services/context/src/
Dwidget_client.cpp81 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 &notice, std::vector<AuthType> &authTypeList) in GetAuthTypeList() argument
239 authTypeList.emplace_back(AuthType::ALL); in GetAuthTypeList()
247 authTypeList.emplace_back(type); in GetAuthTypeList()
[all …]
Dwidget_context.cpp185 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()
Dwidget_json.cpp100 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/
Dwidget_schedule_node_callback.h35 virtual void ExecuteAuthList(const std::set<AuthType> &authTypeList) = 0;
38 virtual void StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
Dwidget_schedule_node.h55 virtual bool StartAuthList(const std::vector<AuthType> &authTypeList) = 0;
56 virtual bool StopAuthList(const std::vector<AuthType> &authTypeList) = 0;
Dauth_widget_helper.h30 const std::vector<AuthType> &authTypeList, const AuthTrustLevel &atl);
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_widget_schedule_node_callback.h31 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/
Dauth_widget_helper.cpp46 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()
Dwidget_schedule_node_impl.h42 bool StartAuthList(const std::vector<AuthType> &authTypeList) override;
43 bool StopAuthList(const std::vector<AuthType> &authTypeList) override;
Dwidget_schedule_node_impl.cpp101 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/
Dwidget_client.h41 void SetAuthTypeList(const std::vector<AuthType> &authTypeList);
60 bool GetAuthTypeList(const WidgetNotice &notice, std::vector<AuthType> &authTypeList);
Dwidget_context.h60 void ExecuteAuthList(const std::set<AuthType> &authTypeList) override;
63 void StopAuthList(const std::vector<AuthType> &authTypeList) override;
Dcontext_factory.h54 std::vector<AuthType> authTypeList {};