| /test/xts/device_attest/services/core/network/ |
| D | attest_network.c | 168 int32_t retCode = ToLowerStr(udid, UDID_STRING_LEN); in SetSocketCliented() local 169 if (retCode != ATTEST_OK) { in SetSocketCliented() 178 retCode = Sha256Udid(udid, clientId); in SetSocketCliented() 179 if (retCode != ATTEST_OK) { in SetSocketCliented() 180 ATTEST_LOG_ERROR("[SetSocketCliented] SHA256 uid fail, ret = %d.\n", retCode); in SetSocketCliented() 203 …int32_t retCode = memcpy_s(tracekId, traceIdLen, clientId + strlen(clientId) - clientIdLastLen, cl… in SetSocketTracekId() local 204 if (retCode != ATTEST_OK) { in SetSocketTracekId() 210 retCode = sprintf_s(tracekId, traceIdLen, "%s_%s", tracekId, randomUuid); in SetSocketTracekId() 211 if (retCode < 0) { in SetSocketTracekId() 240 int32_t retCode = SetSocketCliented(devValue->udid, &reqXclientID); in BuildSocketInfo() local [all …]
|
| /test/xts/acts/ai_lite/ai_engine_posix/base/src/sample/source/ |
| D | sample_plugin_1.cpp | 44 errno_t retCode; in ReturnDataCopyOrDefaultData() local 59 retCode = memcpy_s(outputInfo.data, outputInfo.length, sourceData.data, sourceData.length); in ReturnDataCopyOrDefaultData() 60 if (retCode != EOK) { in ReturnDataCopyOrDefaultData() 61 HILOGE("[SamplePlugin1]memcpy_s failed[%d].", retCode); in ReturnDataCopyOrDefaultData() 103 int retCode = ReturnDataCopyOrDefaultData(inputInfo, outputInfo); in SyncProcess() local 106 response->SetRetCode(retCode); in SyncProcess() 107 return retCode; in SyncProcess()
|
| D | sample_plugin_2.cpp | 44 errno_t retCode; in ReturnDataCopyOrDefaultData() local 59 retCode = memcpy_s(outputInfo.data, outputInfo.length, sourceData.data, sourceData.length); in ReturnDataCopyOrDefaultData() 60 if (retCode != EOK) { in ReturnDataCopyOrDefaultData() 61 HILOGE("[SamplePlugin2]memcpy_s failed[%d].", retCode); in ReturnDataCopyOrDefaultData() 109 int retCode = ReturnDataCopyOrDefaultData(inputInfo, outputInfo); in AsyncProcess() local 112 response->SetRetCode(retCode); in AsyncProcess()
|
| /test/xts/device_attest/test/fuzztest/devattestcorenetwork_fuzzer/ |
| D | devattest_core_network_fuzz.c | 106 int32_t retCode = ParseHttpsRespIntPara(respMsg, ATTEST_HTTPS_RESCODE, &httpRetCode); in ParseHttpsResp() local 107 if ((retCode != ATTEST_FUZZTEST_OK) || (httpRetCode != ATTEST_FUZZTEST_HTTP_OK)) { in ParseHttpsResp() 112 retCode = ParseHttpsRespIntPara(respMsg, ATTEST_HTTPS_RESLEN, &contentLen); in ParseHttpsResp() 113 if (retCode != ATTEST_FUZZTEST_OK || contentLen <= 0 || contentLen >= strlen(respMsg)) { in ParseHttpsResp() 123 retCode = memcpy_s(body, contentLen + 1, respMsg + headerLen, contentLen); in ParseHttpsResp() 124 if (retCode != ATTEST_FUZZTEST_OK) { in ParseHttpsResp()
|
| /test/xts/acts/communication_lite/dsoftbus_hal/src/ |
| D | softbus_bus_center_test.c | 96 static void OnJoinLNNDone(ConnectionAddr *addr, const char *networkId, int32_t retCode) in OnJoinLNNDone() argument 100 (void)retCode; in OnJoinLNNDone() 103 static void OnLeaveLNNDone(const char *networkId, int32_t retCode) in OnLeaveLNNDone() argument 106 (void)retCode; in OnLeaveLNNDone() 124 static void OnTimeSyncResult(const TimeSyncResultInfo *info, int32_t retCode) in OnTimeSyncResult() argument 127 (void)retCode; in OnTimeSyncResult()
|
| /test/xts/device_attest_lite/services/core/network/ |
| D | attest_network.c | 958 int32_t retCode; in SendAttestMsg() local 966 retCode = GenCoapMsg(devPacket, actionType, &reqData); in SendAttestMsg() 967 if (retCode != ATTEST_OK) { in SendAttestMsg() 968 ATTEST_LOG_ERROR("[SendAttestMsg] Generate coap msg fail, retCode = %d.", retCode); in SendAttestMsg() 974 retCode = SendCoapMsg(g_attestSession, devPacket, actionType, &payload); in SendAttestMsg() 975 if (retCode != ATTEST_OK) { in SendAttestMsg() 976 ATTEST_LOG_ERROR("[SendAttestMsg] Send https msg failed, retCode = %d.", retCode); in SendAttestMsg() 980 retCode = RecvCoapMsg(g_attestSession, &respData, &respDataLen); in SendAttestMsg() 981 if (retCode != ATTEST_OK) { in SendAttestMsg() 982 ATTEST_LOG_ERROR("[SendAttestMsg] Parse response failed, retCode = %d.", retCode); in SendAttestMsg() [all …]
|