/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
H A D | user_auth_widget_mgr_v10.cpp | 56 std::string msgStr = "Parameter error. The number of parameters should be 1"; in Init() local 57 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in Init() 65 std::string msgStr = "Parameter error. The type of \"version\" must be number."; in Init() local 66 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in Init() 110 std::string msgStr = "Parameter error. The number of parameters should be 2"; in On() local 111 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in On() 119 std::string msgStr = "Parameter error. The type of \"type\" must be string."; in On() local 120 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in On() 125 std::string msgStr = "Parameter error. The type of \"callback\" must be IAuthWidgetCallback."; in On() local 126 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in On() 138 std::string msgStr = "Parameter error. The value of \\"type\\" must be \\"command\\"."; On() local 158 std::string msgStr = "Parameter error. The number of parameters should be 1 or 2"; Off() local 167 std::string msgStr = "Parameter error. The type of \\"type\\" must be string."; Off() local 175 std::string msgStr = "Parameter error. The type of \\"callback\\" must be IAuthCallback."; Off() local 190 std::string msgStr = "Parameter error. The value of \\"type\\" must be \\"command\\"."; Off() local [all...] |
H A D | user_auth_instance_v10.cpp | 57 std::string msgStr = "Parameter error. The number of parameters should be 1."; in GetEnrolledState() local 58 napi_throw(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in GetEnrolledState() 131 std::string msgStr = "Parameter error. The type of \"challenge\" must be Uint8Array."; in InitChallenge() local 132 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in InitChallenge() 137 std::string msgStr = "Parameter error. The length of \"challenge\" connot exceed 32."; in InitChallenge() local 138 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in InitChallenge() 150 std::string msgStr = "Parameter error. The type of \"authType\" must be array."; in InitAuthType() local 151 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in InitAuthType() 169 std::string msgStr = "Parameter error. The type of \"authType\" must be number."; in InitAuthType() local 170 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in InitAuthType() 180 std::string msgStr = "Parameter error. The type of \\"authType\\" must be AuthType."; InitAuthType() local 195 std::string msgStr = "Parameter error. The type of \\"authTrustLevel\\" must be number."; InitAuthTrustLevel() local 202 std::string msgStr = "Parameter error. The type of \\"authTrustLevel\\" must be number."; InitAuthTrustLevel() local 220 std::string msgStr = "Parameter error. \\"reuseMode\\" is a mandatory parameter and is left unspecified."; InitReuseUnlockResult() local 227 std::string msgStr = "Parameter error. The type of \\"reuseMode\\" must be number."; InitReuseUnlockResult() local 233 std::string msgStr = "Parameter error. \\"reuseDuration\\" is a mandatory parameter and is left unspecified."; InitReuseUnlockResult() local 240 std::string msgStr = "Parameter error. The type of \\"reuseDuration\\" must be number."; InitReuseUnlockResult() local 246 std::string msgStr = "Parameter error. The type of \\"reuseUnlockResult\\" must be ReuseUnlockResult."; InitReuseUnlockResult() local 260 std::string msgStr = "Parameter error. \\"authParam\\" is a mandatory parameter and is left unspecified."; InitAuthParam() local 266 std::string msgStr = "Parameter error. \\"challenge\\" is a mandatory parameter and is left unspecified."; InitAuthParam() local 278 std::string msgStr = "Parameter error. \\"authType\\" is a mandatory parameter and is left unspecified."; InitAuthParam() local 290 std::string msgStr = "Parameter error. \\"authTrustLevel\\" is a mandatory parameter and is left unspecified."; InitAuthParam() local 327 std::string msgStr = "Parameter error. \\"widgetParam\\" is a mandatory parameter and is left unspecified."; InitWidgetParam() local 333 std::string msgStr = "Parameter error. \\"title\\" is a mandatory parameter and is left unspecified."; InitWidgetParam() local 339 std::string msgStr = "Parameter error. The length of \\"title\\" connot exceed 500."; InitWidgetParam() local 348 std::string msgStr = "Parameter error. The length of \\"navigationButtonText\\" connot exceed 60."; InitWidgetParam() local 369 std::string msgStr = "Parameter error. The type of \\"windowMode\\" must be number."; ProcessWindowMode() local 379 std::string msgStr = "Parameter error. The type of \\"windowMode\\" must be WindowModeType."; ProcessWindowMode() local 405 std::string msgStr = "Invalid authentication parameters. The number of parameters should be 2"; Init() local 456 std::string msgStr = "Parameter error. The number of parameters should be 2"; On() local 465 std::string msgStr = "Parameter error. The type of \\"type\\" must be string."; On() local 471 std::string msgStr = "Parameter error. The type of \\"callback\\" must be IAuthCallback."; On() local 484 std::string msgStr = "Parameter error. The value of \\"type\\" must be \\"result\\"."; On() local 504 std::string msgStr = "Parameter error. The number of parameters should be 1 or 2"; Off() local 513 std::string msgStr = "Parameter error. The type of \\"type\\" must be string."; Off() local 521 std::string msgStr = "Parameter error. The type of \\"callback\\" must be IAuthCallback."; Off() local 536 std::string msgStr = "Parameter error. The value of \\"type\\" must be \\"result\\"."; Off() local 556 std::string msgStr = "Parameter error. The number of parameters should be 0"; Start() local 585 std::string msgStr = "Parameter error. The number of parameters should be 0"; Cancel() local [all...] |
H A D | user_auth_napi_helper.cpp | 216 std::string msgStr; in GenerateBusinessErrorV9() local 220 msgStr = g_resultV92Str.at(UserAuthResultCode::GENERAL_ERROR); in GenerateBusinessErrorV9() 223 msgStr = res->second; in GenerateBusinessErrorV9() 226 IAM_LOGI("get msg %{public}s", msgStr.c_str()); in GenerateBusinessErrorV9() 229 NAPI_CALL(env, napi_create_string_utf8(env, msgStr.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateBusinessErrorV9() 241 std::string msgStr; in GenerateErrorMsg() local 245 msgStr = g_resultV92Str.at(UserAuthResultCode::GENERAL_ERROR); in GenerateErrorMsg() 248 msgStr = errorMsg; in GenerateErrorMsg() 251 IAM_LOGI("error msg %{public}s", msgStr.c_str()); in GenerateErrorMsg() 254 NAPI_CALL(env, napi_create_string_utf8(env, msgStr in GenerateErrorMsg() [all...] |
H A D | auth_instance_v9.cpp | 46 std::string msgStr = "Parameter error. The number of parameters should be 2."; in GetAvailableStatus() local 47 return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in GetAvailableStatus()
|
H A D | user_auth_entry.cpp | 475 std::string msgStr = "Parameter error. The number of parameters should be 2"; in SendNotice() local 476 napi_throw(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice() 485 std::string msgStr = "Parameter error. The type of \"noticeType\" must be NoticeType."; in SendNotice() local 486 napi_throw(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice() 492 std::string msgStr = "Parameter error. The value of \"noticeType\" must be NoticeType.WIDGET_NOTICE."; in SendNotice() local 493 napi_throw(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice() 501 std::string msgStr = "Parameter error. The value of \"eventData\" for WIDGET_NOTICE must be json string."; in SendNotice() local 502 napi_throw(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice()
|
/base/useriam/face_auth/frameworks/js/napi/src/ |
H A D | face_auth_napi.cpp | 62 std::string msgStr; in GenerateBusinessError() local 66 msgStr = g_result2Str.at(RESULT_CODE_FAIL); in GenerateBusinessError() 69 msgStr = res->second; in GenerateBusinessError() 72 IAM_LOGI("get msg %{public}s", msgStr.c_str()); in GenerateBusinessError() 75 NAPI_CALL(env, napi_create_string_utf8(env, msgStr.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateBusinessError()
|
/base/web/webview/interfaces/kits/napi/common/ |
H A D | napi_parse_utils.cpp | 34 std::string msgStr = src->GetString(); in ConvertToNapiHandlerOfString() local 35 napi_create_string_utf8(env, msgStr.c_str(), msgStr.length(), &dst); in ConvertToNapiHandlerOfString() 445 std::string msgStr = "This type not support"; in ConvertNWebToNapiValue() local 446 napi_create_string_utf8(env, msgStr.c_str(), msgStr.length(), &dst); in ConvertNWebToNapiValue()
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_message_ffi.cpp | 191 std::string msgStr = data->GetString(); in FfiOHOSWebMessageExtImplGetString() local 193 return MallocCString(msgStr); in FfiOHOSWebMessageExtImplGetString() 609 std::string msgStr = data->GetString(); in FfiOHOSJsMessageExtImplGetString() local 611 return MallocCString(msgStr); in FfiOHOSJsMessageExtImplGetString()
|
H A D | webview_controller_impl.cpp | 102 std::string msgStr = result->GetString(); in OnReceiveValue() local 103 char* message = MallocCString(msgStr); in OnReceiveValue()
|
/base/security/device_auth/services/session_manager/src/session/v2/ |
H A D | dev_session_v2.c | 881 char *msgStr = PackJsonToString(msgJson); in SetAuthProtectedMsg() local 882 if (msgStr == NULL) { in SetAuthProtectedMsg() 883 LOGE("convert msgJson to msgStr fail."); in SetAuthProtectedMsg() 886 Uint8Buff msg = { (uint8_t *)msgStr, HcStrlen(msgStr) + 1 }; in SetAuthProtectedMsg() 901 FreeJsonString(msgStr); in SetAuthProtectedMsg()
|