Home
last modified time | relevance | path

Searched refs:errDesc (Results 1 - 20 of 20) sorted by relevance

/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_json.c30 char *VerifyP2pPackError(int32_t code, int32_t errCode, const char *errDesc) in VerifyP2pPackError() argument
32 if (errDesc == NULL) { in VerifyP2pPackError()
43 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in VerifyP2pPackError()
H A Dtrans_tcp_direct_message.c691 static int32_t OpenDataBusRequestError(int32_t channelId, uint64_t seq, char *errDesc, int32_t errCode, uint32_t flags) in OpenDataBusRequestError() argument
693 char *reply = PackError(errCode, errDesc); in OpenDataBusRequestError()
853 static int32_t TransTdcFillAppInfoAndNotifyChannel(AppInfo *appInfo, int32_t channelId, char *errDesc) in TransTdcFillAppInfoAndNotifyChannel() argument
902 if (strcpy_s(errDesc, MAX_ERRDESC_LEN, ret) != EOK) { in TransTdcFillAppInfoAndNotifyChannel()
953 char errDesc[MAX_ERRDESC_LEN] = { 0 }; in OpenDataBusRequest() local
954 int32_t errCode = TransTdcFillAppInfoAndNotifyChannel(&conn->appInfo, channelId, errDesc); in OpenDataBusRequest()
956 if (OpenDataBusRequestError(channelId, seq, errDesc, errCode, flags) != SOFTBUS_OK) { in OpenDataBusRequest()
H A Dtrans_tcp_direct_p2p.c641 int32_t code, int32_t errCode, const char *errDesc, bool isAuthLink) in SendVerifyP2pFailRsp()
643 char *reply = VerifyP2pPackError(code, errCode, errDesc); in SendVerifyP2pFailRsp()
640 SendVerifyP2pFailRsp(AuthHandle authHandle, int64_t seq, int32_t code, int32_t errCode, const char *errDesc, bool isAuthLink) SendVerifyP2pFailRsp() argument
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_json_test.cpp70 const char *errDesc = "P2p Pack Err Test"; in HWTEST_F() local
71 ret = VerifyP2pPackError(code, errCode, errDesc); in HWTEST_F()
H A Dtrans_tcp_direct_message_append_test.cpp1071 char *errDesc = const_cast<char *>(reinterpret_cast<const char *>("Notify SDK Channel Opened Failed")); in HWTEST_F() local
1078 int32_t ret = OpenDataBusRequestError(channelId, seq, errDesc, errCode, flags); in HWTEST_F()
1757 char *errDesc = static_cast<char *>(SoftBusCalloc(MAX_ERRDESC_LEN)); in HWTEST_F() local
1758 ASSERT_TRUE(errDesc != nullptr); in HWTEST_F()
1761 int32_t ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
1765 ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
1769 ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
1775 ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
1782 ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
1789 ret = TransTdcFillAppInfoAndNotifyChannel(appInfo, channelId, errDesc); in HWTEST_F()
[all...]
H A Dtrans_tcp_direct_p2p_test.cpp328 const char *errDesc = "OnVerifyP2pRequest unpack fail"; in HWTEST_F() local
334 SendVerifyP2pFailRsp(authHandle, seq, code, errCode, errDesc, true); in HWTEST_F()
H A Dtrans_server_tcp_direct_test.cpp674 std::string errDesc = TEST_JSON; in HWTEST_F() local
675 str = PackError(errCode, errDesc.c_str()); in HWTEST_F()
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/include/
H A Dtrans_tcp_direct_json.h29 char *VerifyP2pPackError(int32_t code, int32_t errCode, const char *errDesc);
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_p2p_test_mock.cpp104 char *VerifyP2pPackError(int32_t code, int32_t errCode, const char *errDesc) in VerifyP2pPackError() argument
106 return GetTransTcpDirectP2pInterface()->VerifyP2pPackError(code, errCode, errDesc); in VerifyP2pPackError()
H A Dtrans_tcp_direct_p2p_test_mock.h47 virtual char *VerifyP2pPackError(int32_t code, int32_t errCode, const char *errDesc) = 0;
80 MOCK_METHOD3(VerifyP2pPackError, char *(int32_t code, int32_t errCode, const char *errDesc));
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/include/
H A Dtrans_udp_negotiation_exchange.h33 int32_t TransPackReplyErrInfo(cJSON *msg, int errCode, const char* errDesc);
/foundation/communication/dsoftbus/core/transmission/common/include/
H A Dsoftbus_message_open_channel.h81 char *PackError(int errCode, const char *errDesc);
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation_exchange.c248 int32_t TransPackReplyErrInfo(cJSON *msg, int errCode, const char* errDesc) in TransPackReplyErrInfo() argument
251 if (msg == NULL || errDesc == NULL) { in TransPackReplyErrInfo()
257 (void)AddStringToJsonObject(msg, ERR_DESC, errDesc); in TransPackReplyErrInfo()
H A Dtrans_udp_negotiation.c430 static int32_t SendReplyErrInfo(int errCode, char* errDesc, AuthHandle authHandle, int64_t seq) in SendReplyErrInfo() argument
436 int32_t ret = TransPackReplyErrInfo(replyMsg, errCode, errDesc); in SendReplyErrInfo()
668 char *errDesc = NULL; in TransOnExchangeUdpInfoRequest() local
677 errDesc = (char *)"peer device session name not create"; in TransOnExchangeUdpInfoRequest()
685 errDesc = (char *)"notify app error"; in TransOnExchangeUdpInfoRequest()
692 errDesc = (char *)"send reply error"; in TransOnExchangeUdpInfoRequest()
701 errDesc = (char *)"notify OnBind failed"; in TransOnExchangeUdpInfoRequest()
711 if (SendReplyErrInfo(ret, errDesc, authHandle, seq) != SOFTBUS_OK) { in TransOnExchangeUdpInfoRequest()
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_nego_test.cpp205 const char* errDesc = "errDesc"; in HWTEST_F() local
210 ret = TransPackReplyErrInfo(msg, errCode, errDesc); in HWTEST_F()
244 string errDesc = "ProcessMessage"; in HWTEST_F() local
249 ret = SendReplyErrInfo(errCode, (char *)errDesc.c_str(), authHandle, 0); in HWTEST_F()
/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c30 char *PackError(int errCode, const char *errDesc) in PackError() argument
32 if (errDesc == NULL) { in PackError()
43 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in PackError()
/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp126 const char *errDesc = "test"; in HWTEST_F() local
128 msg = PackError(errCode, errDesc); in HWTEST_F()
/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi/
H A Djsi.h737 * @param [in] errDesc: error description for fail callback
739 static void FailCallback(const JSIValue thisVal, const JSIValue args, int32_t errCode, const char * const errDesc);
/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/
H A Djsi.cpp1145 void JSI::FailCallback(const JSIValue thisVal, const JSIValue args, int32_t errCode, const char * const errDesc) in FailCallback() argument
1152 JSIValue errInfo = CreateString(errDesc); in FailCallback()
/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_remote_object.cpp58 const char *errDesc) in IsValidParamWithNotify()
61 ZLOGE(LOG_LABEL, "%{public}s", errDesc); in IsValidParamWithNotify()
57 IsValidParamWithNotify(napi_value value, CallbackParam *param, napi_handle_scope &scope, const char *errDesc) IsValidParamWithNotify() argument

Completed in 21 milliseconds