Home
last modified time | relevance | path

Searched refs:msgStr (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
H A Duser_auth_instance_v10.cpp57 std::string msgStr = "Parameter error. The number of parameters should be 1."; in GetEnrolledState() local
150 std::string msgStr = "Parameter error. The type of \"authType\" must be array."; in InitAuthType() local
227 std::string msgStr = "Parameter error. The type of \"reuseMode\" must be number."; in InitReuseUnlockResult() local
456 std::string msgStr = "Parameter error. The number of parameters should be 2"; in On() local
465 std::string msgStr = "Parameter error. The type of \"type\" must be string."; in On() local
484 std::string msgStr = "Parameter error. The value of \"type\" must be \"result\"."; in On() local
504 std::string msgStr = "Parameter error. The number of parameters should be 1 or 2"; in Off() local
513 std::string msgStr = "Parameter error. The type of \"type\" must be string."; in Off() local
536 std::string msgStr = "Parameter error. The value of \"type\" must be \"result\"."; in Off() local
556 std::string msgStr = "Parameter error. The number of parameters should be 0"; in Start() local
[all …]
H A Duser_auth_widget_mgr_v10.cpp59 std::string msgStr = "Parameter error. The number of parameters should be 1"; in Init() local
60 … return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in Init()
68 std::string msgStr = "Parameter error. The type of \"version\" must be number."; in Init() local
69 … return UserAuthNapiHelper::ThrowErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr); in Init()
113 std::string msgStr = "Parameter error. The number of parameters should be 2"; in On() local
122 std::string msgStr = "Parameter error. The type of \"type\" must be string."; in On() local
141 std::string msgStr = "Parameter error. The value of \"type\" must be \"command\"."; in On() local
161 std::string msgStr = "Parameter error. The number of parameters should be 1 or 2"; in Off() local
170 std::string msgStr = "Parameter error. The type of \"type\" must be string."; in Off() local
178 std::string msgStr = "Parameter error. The type of \"callback\" must be IAuthCallback."; in Off() local
[all …]
H A Duser_auth_napi_helper.cpp216 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.c_str(), NAPI_AUTO_LENGTH, &msg)); in GenerateErrorMsg()
H A Duser_auth_entry.cpp476 std::string msgStr = "Parameter error. The number of parameters should be 2"; in SendNotice() local
477 …ow(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice()
486 std::string msgStr = "Parameter error. The type of \"noticeType\" must be NoticeType."; in SendNotice() local
487 …ow(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice()
493 …std::string msgStr = "Parameter error. The value of \"noticeType\" must be NoticeType.WIDGET_NOTIC… in SendNotice() local
494 …ow(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice()
502 …std::string msgStr = "Parameter error. The value of \"eventData\" for WIDGET_NOTICE must be json s… in SendNotice() local
503 …ow(env, UserAuthNapiHelper::GenerateErrorMsg(env, UserAuthResultCode::OHOS_INVALID_PARAM, msgStr)); in SendNotice()
H A Dauth_instance_v9.cpp46 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()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/test/unittest/common/
H A Ddfx_tdd_test.cpp738 char *msgStr = MallocStringOf(msg, &len); in DfxTest006() local
741 EXPECT_STREQ(msgStr, result); in DfxTest006()
742 ACE_FREE(msgStr); in DfxTest006()
749 EXPECT_STREQ(msgStr, result); in DfxTest006()
750 ACE_FREE(msgStr); in DfxTest006()
764 char *msgStr = MallocStringOf(msg, &len); in DfxTest007() local
767 EXPECT_STREQ(msgStr, result); in DfxTest007()
768 ACE_FREE(msgStr); in DfxTest007()
775 EXPECT_STREQ(msgStr, result); in DfxTest007()
776 ACE_FREE(msgStr); in DfxTest007()
/ohos5.0/base/useriam/face_auth/frameworks/js/napi/src/
H A Dface_auth_napi.cpp62 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()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_nego_test.cpp88 char *msgStr = cJSON_PrintUnformatted(requestMsg); in TestGetMsgInfo() local
90 return msgStr; in TestGetMsgInfo()
184 string msgStr = "ProcessMessage"; variable
188 cJSON *msg = cJSON_Parse((char *)msgStr.c_str());
203 string msgStr = "ProcessMessage"; variable
319 string msgStr = "normal msgStr"; variable
320 cJSON *msg = cJSON_Parse(msgStr.c_str());
368 string msgStr = "normal msgStr"; variable
369 cJSON *msg = cJSON_Parse(msgStr.c_str());
891 string msgStr = "normal msgStr"; variable
[all …]
/ohos5.0/base/web/webview/interfaces/kits/napi/common/
H A Dnapi_parse_utils.cpp34 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()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/
H A Ddh_transport_obj.cpp111 std::string msgStr = std::string(msg); in GetCommMsgString() local
115 return msgStr; in GetCommMsgString()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation.c418 char *msgStr = cJSON_PrintUnformatted(replyMsg); in SendUdpInfo() local
419 if (msgStr == NULL) { in SendUdpInfo()
426 .len = strlen(msgStr) + 1, in SendUdpInfo()
427 .data = (const uint8_t *)msgStr, in SendUdpInfo()
431 cJSON_free(msgStr); in SendUdpInfo()
746 char *msgStr = cJSON_PrintUnformatted(requestMsg); in StartExchangeUdpInfo() local
748 if (msgStr == NULL) { in StartExchangeUdpInfo()
756 .len = strlen(msgStr) + 1, in StartExchangeUdpInfo()
757 .data = (const uint8_t *)msgStr, in StartExchangeUdpInfo()
763 cJSON_free(msgStr); in StartExchangeUdpInfo()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_hichain.c299 char *msgStr = cJSON_PrintUnformatted(msg); in OnRequest() local
300 if (msgStr == NULL) { in OnRequest()
306 return msgStr; in OnRequest()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_hichain_test.cpp146 char *msgStr = OnRequest(authSeq, operationCode, reqParams); variable
147 EXPECT_TRUE(msgStr == nullptr);
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/include/
H A Dsocperf_config.h27 const std::vector<int64_t>& endTime, const std::string& msgStr);
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c881 char *msgStr = PackJsonToString(msgJson); in SetAuthProtectedMsg() local
882 if (msgStr == NULL) { in SetAuthProtectedMsg()
886 Uint8Buff msg = { (uint8_t *)msgStr, HcStrlen(msgStr) + 1 }; in SetAuthProtectedMsg()
901 FreeJsonString(msgStr); in SetAuthProtectedMsg()
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_napi.cpp4482 constexpr char msgStr[] = "test message"; variable
4483 res = napi_create_string_utf8(env, msgStr, NAPI_AUTO_LENGTH, &msg);