Home
last modified time | relevance | path

Searched refs:cpyLen (Results 1 – 12 of 12) sorted by relevance

/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
Dhisysevent_c_wrapper.cpp46 int cpyLen = 0; // The length of string to be copied is initialized to be 0. in SplitStringToArray() local
53 cpyLen = sliceEnd - sliceBegin + 1; in SplitStringToArray()
54 if ((cpyLen <= 0) || (cpyLen > MAX_LENGTH_OF_EVENT_NAME) || in SplitStringToArray()
55 (memcpy_s(dest[destItemIndex], cpyLen, src + sliceBegin, cpyLen) != EOK)) { in SplitStringToArray()
71 cpyLen = sliceEnd - sliceBegin + 1; in SplitStringToArray()
72 if ((cpyLen <= 0) || (cpyLen > MAX_LENGTH_OF_EVENT_NAME) || (destItemIndex >= destSize) || in SplitStringToArray()
73 (memcpy_s(dest[destItemIndex], cpyLen, src + sliceBegin, cpyLen) != EOK)) { in SplitStringToArray()
/base/hiviewdfx/faultloggerd/common/cutil/
Dmusl_cutil.h63 size_t cpyLen = strlen(nameFilter) + 1; in ReadStringFromFile() local
64 if (cpyLen > dstSz) { in ReadStringFromFile()
65 cpyLen = dstSz; in ReadStringFromFile()
67 memcpy(dst, nameFilter, cpyLen); in ReadStringFromFile()
/base/telephony/core_service/utils/common/src/
Dtelephony_config.cpp65 size_t cpyLen = maxCap.length() + 1; in ConvertCharToInt() local
66 if (strcpy_s(content, cpyLen, maxCap.c_str()) != EOK) { in ConvertCharToInt()
/base/telephony/cellular_call/services/control/src/
Dcellular_call_supplement.cpp491 size_t cpyLen = strlen(infoA.c_str()) + 1; in HandleCallRestriction() local
493 …if (strcpy_s(utCommand->password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, infoA.c_str()) != EOK) { in HandleCallRestriction()
673 size_t cpyLen = strlen(queryResult.number.c_str()) + 1; in BuildCallForwardQueryInfo() local
674 if (strcpy_s(response.number, cpyLen, queryResult.number.c_str()) != EOK) { in BuildCallForwardQueryInfo()
1040 size_t cpyLen = strlen(info.c_str()) + 1; in SetCallRestriction() local
1042 … if (strcpy_s(utCommand->password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, info.c_str()) != EOK) { in SetCallRestriction()
1364 size_t cpyLen = strlen(QUERY_SS_FAILED.c_str()) + 1; in GetMessage() local
1365 if (strcpy_s(mmiCodeInfo.message, cpyLen, QUERY_SS_FAILED.c_str()) != EOK) { in GetMessage()
1372 size_t cpyLen = strlen(TRANSFER_UNCONDITIONAL_SUCCESS.c_str()) + 1; in GetMessage() local
1373 … if (strcpy_s(mmiCodeInfo.message, cpyLen, TRANSFER_UNCONDITIONAL_SUCCESS.c_str()) != EOK) { in GetMessage()
[all …]
Dcs_control.cpp489 size_t cpyLen = strlen(callInfo.number.c_str()) + 1; in EncapsulationCallReportInfo() local
490 if (cpyLen > static_cast<size_t>(kMaxNumberLen + 1)) { in EncapsulationCallReportInfo()
494 if (strcpy_s(callReportInfo.accountNum, cpyLen, callInfo.number.c_str()) != EOK) { in EncapsulationCallReportInfo()
Dims_control.cpp473 size_t cpyLen = strlen(callInfo.number.c_str()) + 1; in EncapsulationCallReportInfo() local
474 if (cpyLen > static_cast<size_t>(kMaxNumberLen + 1)) { in EncapsulationCallReportInfo()
478 if (strcpy_s(callReportInfo.accountNum, cpyLen, callInfo.number.c_str()) != EOK) { in EncapsulationCallReportInfo()
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp451 int64_t cpyLen = static_cast<int64_t>(IGMDIFF_LIMIT_UNIT); in WriteDiffData() local
452cpyLen = (offset + cpyLen > controlDatas[i].diffLength) ? (controlDatas[i].diffLength - offset) : in WriteDiffData()
453 for (int64_t k = 0; k < cpyLen; k++) { in WriteDiffData()
457 … BlockBuffer srcData = {reinterpret_cast<uint8_t*>(diffData.data()), static_cast<size_t>(cpyLen)}; in WriteDiffData()
463 offset += cpyLen; in WriteDiffData()
/base/telephony/cellular_call/services/connection/src/
Dsupplement_request_cs.cpp106 size_t cpyLen = strlen(pw.c_str()) + 1; in SetCallRestrictionRequest() local
108 …if (strcpy_s(callRestrictionParam.password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, pw.c_str()) !… in SetCallRestrictionRequest()
Dcellular_call_connection_ims.cpp38 size_t cpyLen = strlen(phoneNumber_.c_str()) + 1; in DialRequest() local
39 if (cpyLen > static_cast<size_t>(kMaxNumberLength)) { in DialRequest()
43 if (strcpy_s(callInfo.phoneNum, cpyLen, phoneNumber_.c_str()) != EOK) { in DialRequest()
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_data_base_helper.cpp171 size_t cpyLen = displayName.length() + 1; in Query() local
177 if (strcpy_s(contactInfo.name, cpyLen, displayName.c_str()) != EOK) { in Query()
/base/telephony/cellular_call/services/common/src/
Dcellular_call_hisysevent.cpp354 size_t cpyLen = callForwardingNumber_.length() + 1; in GetCallForwardingInfo() local
358 if (strcpy_s(info.number, cpyLen, callForwardingNumber_.c_str()) != EOK) { in GetCallForwardingInfo()
/base/telephony/core_service/services/tel_ril/test/
Dtel_ril_test.cpp1760 size_t cpyLen = strlen(code.c_str()) + 1; in OnRequestSetCallRestrictionTest() local
1762 …if (strcpy_s(restriction.password, cpyLen > maxCpyLen ? maxCpyLen : cpyLen, code.c_str()) != EOK) { in OnRequestSetCallRestrictionTest()