Home
last modified time | relevance | path

Searched refs:kMaxNumberLen (Results 1 – 25 of 30) sorted by relevance

12

/base/telephony/call_manager/interfaces/innerkits/
Dcall_manager_inner_type.h26 constexpr int16_t kMaxNumberLen = 100; variable
149 char accountNumber[kMaxNumberLen + 1];
170 char phoneNumber[kMaxNumberLen + 1];
171 char formattedPhoneNumber[kMaxNumberLen + 1];
191 char phoneNum[kMaxNumberLen + 1];
198 char bundleName[kMaxNumberLen + 1];
204 char accountNum[kMaxNumberLen + 1]; // call phone number
449 char message[kMaxNumberLen + 1];
457 char number[kMaxNumberLen + 1];
501 char phoneNum[kMaxNumberLen]; // call phone number
[all …]
/base/telephony/call_manager/services/call/src/
Dcall_incoming_filter_manager.cpp48 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
52 if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
Dcall_request_process.cpp47 if (info.number.length() > static_cast<size_t>(kMaxNumberLen)) { in DialRequest()
57 (void)memset_s(eventInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen); in DialRequest()
59 … (void)memcpy_s(eventInfo.phoneNum, kMaxNumberLen, info.number.c_str(), info.number.length()); in DialRequest()
334 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
338 if (info.number.length() > static_cast<size_t>(kMaxNumberLen)) { in PackCellularCallInfo()
342 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.number.c_str(), info.number.length()) != EOK) { in PackCellularCallInfo()
351 char number[kMaxNumberLen + 1] = { 0 }; in IsFdnNumber()
354 if (i >= kMaxNumberLen) { in IsFdnNumber()
Dcarrier_call.cpp268 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
272 if (accountNumber_.length() > static_cast<size_t>(kMaxNumberLen)) { in PackCellularCallInfo()
276 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, accountNumber_.c_str(), accountNumber_.length()) !=… in PackCellularCallInfo()
Dcall_base.cpp87 (void)memset_s(info.accountNumber, kMaxNumberLen, 0, kMaxNumberLen); in GetCallAttributeBaseInfo()
88 if (accountNumber_.length() > static_cast<size_t>(kMaxNumberLen)) { in GetCallAttributeBaseInfo()
92 …if (memcpy_s(info.accountNumber, kMaxNumberLen, accountNumber_.c_str(), accountNumber_.length()) =… in GetCallAttributeBaseInfo()
Dott_call.cpp330 if (accountNumber_.length() > static_cast<size_t>(kMaxNumberLen)) { in PackOttCallRequestInfo()
334 …if (memcpy_s(requestInfo.phoneNum, kMaxNumberLen, accountNumber_.c_str(), accountNumber_.length())… in PackOttCallRequestInfo()
Dcall_status_manager.cpp185 if (dialInfo.number.length() > static_cast<size_t>(kMaxNumberLen)) { in HandleEventResultReportInfo()
189 …if (memcpy_s(eventInfo.phoneNum, kMaxNumberLen, dialInfo.number.c_str(), dialInfo.number.length())… in HandleEventResultReportInfo()
208 if (strlen(info.bundleName) > static_cast<size_t>(kMaxNumberLen)) { in HandleOttEventReportInfo()
212 …if (memcpy_s(eventInfo.bundleName, kMaxNumberLen, info.bundleName, strlen(info.bundleName)) != EOK… in HandleOttEventReportInfo()
Dcall_policy.cpp368 if (numberList[index].length() > kMaxNumberLen) { in InviteToConferencePolicy()
/base/telephony/cellular_call/test/fuzztest/registercallmanagercallback_fuzzer/
Dregistercallmanagercallback_fuzzer.cpp58 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportCallsInfo()
59 if (memcpy_s(callReportInfo.accountNum, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportCallsInfo()
103 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetRestrictionResult()
104 if (memcpy_s(callTransferResponse.number, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetRestrictionResult()
156 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetImsConfigResult()
157 if (memcpy_s(mmiCodeInfo.message, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetImsConfigResult()
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_records_manager.cpp73 if (strlen(info.accountNumber) > static_cast<size_t>(kMaxNumberLen)) { in AddOneCallRecord()
77 …errno_t result = memcpy_s(data.phoneNumber, kMaxNumberLen, info.accountNumber, strlen(info.account… in AddOneCallRecord()
102 if (tmpStr.length() > static_cast<size_t>(kMaxNumberLen)) { in AddOneCallRecord()
106 if (memcpy_s(data.formattedPhoneNumber, kMaxNumberLen, tmpStr.c_str(), tmpStr.length()) != 0) { in AddOneCallRecord()
/base/telephony/cellular_call/test/unittest/imstest/
Dims_test.h170 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in InitCellularCallInfo()
173 if (phonenumber.length() > static_cast<size_t>(kMaxNumberLen)) { in InitCellularCallInfo()
176 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, phonenumber.c_str(), phonenumber.length()) != EOK) { in InitCellularCallInfo()
/base/telephony/cellular_call/test/unittest/cstest/
Dcs_test.h171 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in InitCellularCallInfo()
174 if (phonenumber.length() > static_cast<size_t>(kMaxNumberLen)) { in InitCellularCallInfo()
177 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, phonenumber.c_str(), phonenumber.length()) != EOK) { in InitCellularCallInfo()
/base/telephony/cellular_call/services/common/include/
Dcellular_call_data_struct.h274 char sdpMd[kMaxNumberLen];
280 char number[kMaxNumberLen];
/base/telephony/call_manager/test/fuzztest/call_fuzzer/
Dcall_fuzzer.cpp199 int32_t length = msg.length() > kMaxNumberLen ? kMaxNumberLen : msg.length(); in IMSCallFunc()
200 if (memcpy_s(response.phoneNum, kMaxNumberLen, msg.c_str(), length) != EOK) { in IMSCallFunc()
252 int32_t length = msg.length() > kMaxNumberLen ? kMaxNumberLen : msg.length(); in OttCallFunc()
253 if (memcpy_s(response.phoneNum, kMaxNumberLen, msg.c_str(), length) != EOK) { in OttCallFunc()
/base/telephony/call_manager/services/call/include/
Dcommon_type.h78 char number[kMaxNumberLen];
/base/telephony/call_manager/frameworks/js/napi/include/
Dnapi_call_manager_types.h57 char number[kMaxNumberLen + 1];
155 char path[kMaxNumberLen + 1];
/base/telephony/call_manager/services/telephony_interaction/src/
Dcall_status_callback.cpp41 (void)memcpy_s(detailInfo.phoneNum, kMaxNumberLen, info.accountNum, kMaxNumberLen); in UpdateCallReportInfo()
67 (void)memcpy_s(detailInfo.phoneNum, kMaxNumberLen, (*it).accountNum, kMaxNumberLen); in UpdateCallsReportInfo()
Dreport_call_info_handler.cpp352 if (memcpy_s(para->phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in UpdateMediaModeResponse()
/base/telephony/core_service/frameworks/js/sim/include/
Dnapi_sim.h30 constexpr size_t kMaxNumberLen = 100; variable
/base/telephony/call_manager/test/fuzztest/callnotification_fuzzer/
Dcallnotification_fuzzer.cpp185 length = message.length() > kMaxNumberLen ? kMaxNumberLen : message.length(); in CallDataRdbObserverFunc()
186 if (memcpy_s(contactInfo.number, kMaxNumberLen, message.c_str(), length) != EOK) { in CallDataRdbObserverFunc()
/base/telephony/call_manager/test/fuzztest/setcalltransferinfo_fuzzer/
Dsetcalltransferinfo_fuzzer.cpp120 (void)memcpy_s(info.transferNum, kMaxNumberLen, reinterpret_cast<const char *>(data), size); in SetCallTransferInfo()
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
Dcall_manager_gtest.cpp2360 if (strcpy_s(info.password, kMaxNumberLen + 1, "123") != EOK) {
2389 if (strcpy_s(info.password, kMaxNumberLen + 1, "123") != EOK) {
2413 if (strcpy_s(info.password, kMaxNumberLen + 1, "123") != EOK) {
2435 if (strcpy_s(info.password, kMaxNumberLen + 1, "123") != EOK) {
2683 if (strcpy_s(info.transferNum, kMaxNumberLen + 1, "123") != EOK) {
2711 if (strcpy_s(info.transferNum, kMaxNumberLen + 1, "123") != EOK) {
2734 if (strcpy_s(info.transferNum, kMaxNumberLen + 1, "123") != EOK) {
2758 if (strcpy_s(info.transferNum, kMaxNumberLen + 1, "123") != EOK) {
2786 if (strcpy_s(info.transferNum, kMaxNumberLen + 1, "123") != EOK) {
2816 if (strcpy_s(info.transferNum, kMaxNumberLen + 2,
[all …]
/base/telephony/call_manager/services/call_setting/src/
Dcall_setting_manager.cpp269 if (strlen(info.transferNum) > kMaxNumberLen) { in SetCallTransferInfoPolicy()
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp313 char tmpStr[kMaxNumberLen + 1] = {0}; in PinInfoParaAnalyze()
333 char tmpStr[kMaxNumberLen + 1] = {0}; in PersoLockInfoAnalyze()
961 char tmpStr[kMaxNumberLen + 1] = {0}; in UnlockPin()
1018 char tmpStr1[kMaxNumberLen + 1] = {0}; in UnlockPuk()
1019 char tmpStr2[kMaxNumberLen + 1] = {0}; in UnlockPuk()
1080 char tmpStr1[kMaxNumberLen + 1] = {0}; in AlterPin()
1081 char tmpStr2[kMaxNumberLen + 1] = {0}; in AlterPin()
1434 char tmpStr[kMaxNumberLen + 1] = {0}; in UnlockPin2()
1491 char tmpStr1[kMaxNumberLen + 1] = {0}; in UnlockPuk2()
1492 char tmpStr2[kMaxNumberLen + 1] = {0}; in UnlockPuk2()
[all …]
/base/telephony/call_manager/services/call_manager_service/src/
Dcall_manager_service.cpp809 (void)memcpy_s(detailInfo.phoneNum, kMaxNumberLen, (*it).phoneNum, kMaxNumberLen); in ReportOttCallDetailsInfo()

12