Home
last modified time | relevance | path

Searched refs:remainTimes (Results 1 – 23 of 23) sorted by relevance

/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_callback_v8.cpp33 std::optional<int32_t> remainTimes {std::nullopt}; member
88 resultHolder->remainTimes, resultHolder->freezingTime); in OnResultV8Work()
145 std::optional<int32_t> &remainTimes, std::optional<int32_t> &freezingTime) in DoResultCallback() argument
163 if (remainTimes.has_value()) { in DoResultCallback()
164 …ret = UserAuthNapiHelper::SetInt32Property(env_, params[PARAM1], "remainTimes", remainTimes.value(… in DoResultCallback()
266 int32_t remainTimes = 0; in OnResult() local
267 if (extraInfo.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTimes)) { in OnResult()
268 resultHolder->remainTimes = remainTimes; in OnResult()
Duser_auth_callback_v9.cpp33 std::optional<int32_t> remainTimes {std::nullopt}; member
88 resultHolder->remainTimes, resultHolder->freezingTime); in OnResultV9Work()
179 std::optional<int32_t> &remainTimes, std::optional<int32_t> &freezingTime) in DoResultCallback() argument
203 if (remainTimes.has_value()) { in DoResultCallback()
204 …ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "remainAttempts", remainTimes.value()); in DoResultCallback()
307 int32_t remainTimes = 0; in OnResult() local
308 if (extraInfo.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTimes)) { in OnResult()
309 resultHolder->remainTimes = remainTimes; in OnResult()
/base/account/os_account/interfaces/innerkits/domain_account/native/include/
Ddomain_plugin.h54 int32_t remainTimes; member
64 int32_t remainTimes; member
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/inc/
Duser_auth_callback_v8.h39 std::optional<int32_t> &remainTimes, std::optional<int32_t> &freezingTime);
Duser_auth_callback_v9.h40 std::optional<int32_t> &remainTimes, std::optional<int32_t> &freezingTime);
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_callback.cpp106 int32_t remainTimes = 0; in GenerateAttributesInfo() local
107 if (extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes)) { in GenerateAttributesInfo()
108 extraAuthInfo.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in GenerateAttributesInfo()
145 int32_t remainTimes = 0; in OnResult() local
147 extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in OnResult()
150 errInfo.SetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, remainTimes); in OnResult()
/base/useriam/user_auth_framework/services/context/src/
Dsimple_auth_context.cpp74 …ol getRemainTimesRet = values.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, resultInfo.remainTimes); in GetPropertyForAuthResult()
78 resultInfo.nextFailLockoutDuration, resultInfo.freezingTime, resultInfo.remainTimes); in GetPropertyForAuthResult()
225 …tRemainTimesRet = finalResult.SetInt32Value(Attributes::ATTR_REMAIN_TIMES, resultInfo.remainTimes); in InvokeResultCallback()
Dwidget_context.cpp214 int32_t remainTimes = -1; in AuthResult() local
216 if (!finalResult.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTimes)) { in AuthResult()
223 WidgetClient::Instance().ReportWidgetResult(resultCode, authTypeTmp, freezingTime, remainTimes); in AuthResult()
465 cmd.remainAttempts = profile.remainTimes; in BuildStartCommand()
/base/useriam/user_auth_framework/services/context/inc/
Dsimple_auth_context.h54 ResultCode SetFreezingTimeAndRemainTimes(int32_t &freezingTime, int32_t &remainTimes);
Dcontext_factory.h42 int32_t remainTimes {0};
/base/useriam/user_auth_framework/services/core/inc/
Dauthentication.h46 int32_t remainTimes; member
/base/account/os_account/interfaces/kits/napi/account_iam/include/
Dnapi_account_iam_common.h79 int32_t remainTimes = -1; member
157 int32_t remainTimes = 0; member
284 napi_value CreateAuthResult(napi_env env, const std::vector<uint8_t> &token, int32_t remainTimes, i…
/base/useriam/user_auth_framework/test/unittest/services/src/
Dwidget_json_test.cpp61 int32_t remainTimes {0}; member
171 cmd.remainAttempts = profile.remainTimes;
240 cmd.remainAttempts = profile.remainTimes;
Dsimple_auth_context_test.cpp479 int32_t remainTimes; in MockForContextCallback() local
485 ret = finalResult.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTimes); in MockForContextCallback()
492 EXPECT_EQ(remainTimes, TEST_REMAIN_TIMES); in MockForContextCallback()
514 resultInfo.remainTimes = testRemainTimes; in __anon61caf0481302()
550 resultInfo.remainTimes = testRemainTimes; in __anon61caf0481402()
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_constant.cpp104 napi_value remainTimes = nullptr; in GetPropertyTypeConstructor() local
111 …LL(env, napi_create_int32(env, static_cast<int32_t>(GetPropertyType::REMAIN_TIMES), &remainTimes)); in GetPropertyTypeConstructor()
119 NAPI_CALL(env, napi_set_named_property(env, getPropertyType, "REMAIN_TIMES", remainTimes)); in GetPropertyTypeConstructor()
Dnapi_account_iam_common.cpp385 SetInt32ToJsProperty(env, prop.remainTimes, "remainTimes", dataJs); in GeneratePropertyJs()
433 …napi_value object = CreateAuthResult(param->env, param->token, param->remainTimes, param->freezing… in GenerateAuthResult()
511 extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, param->remainTimes); in OnResult()
722 … if (!extraInfo.GetInt32Value(Attributes::AttributeKey::ATTR_REMAIN_TIMES, context.remainTimes)) { in GetContextParams()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_so_plugin.cpp74 (*authResultInfo)->remainTimes = 1; in Auth()
/base/useriam/user_auth_framework/services/core/src/
Dauthentication_impl.cpp157 resultInfo.remainTimes = info.remainAttempts; in Update()
Dauth_widget_helper.cpp116 if (!values.GetInt32Value(Attributes::ATTR_REMAIN_TIMES, profile.remainTimes)) { in ParseAttributes()
/base/account/os_account/interfaces/kits/napi/common/include/
Dnapi_account_common.h89 napi_env env, const std::vector<uint8_t> &authData, int32_t remainTimes, int32_t freezingTime);
/base/account/os_account/interfaces/kits/napi/common/src/
Dnapi_account_common.cpp470 napi_env env, const std::vector<uint8_t> &token, int32_t remainTimes, int32_t freezingTime) in CreateAuthResult() argument
474 if (remainTimes >= 0) { in CreateAuthResult()
476 NAPI_CALL(env, napi_create_uint32(env, remainTimes, &napiRemainTimes)); in CreateAuthResult()
/base/account/os_account/services/accountmgr/src/domain_account/
Dinner_domain_account_manager.cpp456 std::vector<uint8_t> &token, int32_t &remainTimes, int32_t &freezingTime) in GetAndCleanPluginAuthResultInfo() argument
463 remainTimes = (*authResultInfo)->remainTimes; in GetAndCleanPluginAuthResultInfo()
470 int32_t &remainTimes, int32_t &freezingTime) in GetAndCleanPluginAuthStatusInfo() argument
476 remainTimes = (*statusInfo)->remainTimes; in GetAndCleanPluginAuthStatusInfo()
/base/useriam/user_auth_framework/test/unittest/executors/
Dexecutor_unit_test.cpp909 int32_t remainTimes; variable
910 ASSERT_EQ(values->GetInt32Value(Attributes::ATTR_REMAIN_TIMES, remainTimes), true);
911 ASSERT_EQ(remainTimes, testRemainTimes);