/base/telephony/cellular_call/services/common/src/ |
D | emergency_utils.cpp | 26 int32_t EmergencyUtils::IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled) in IsEmergencyCall() argument 28 if (phoneNum.empty()) { in IsEmergencyCall() 33 if (phoneNum.find('@') != std::string::npos || phoneNum.find("%40") != std::string::npos) { in IsEmergencyCall() 38 if (phoneNum.front() == '+') { in IsEmergencyCall() 43 return IsEmergencyCallProcessing(slotId, phoneNum, enabled); in IsEmergencyCall()
|
/base/telephony/cellular_call/test/fuzztest/answerrequest_fuzzer/ |
D | answerrequest_fuzzer.cpp | 37 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 43 numberList.push_back(phoneNum); in DoSomethingInterestingWithMyAPI() 44 cellularCallConnectionIMS->HangUpRequest(slotId, phoneNum, index); in DoSomethingInterestingWithMyAPI() 45 cellularCallConnectionIMS->AnswerRequest(slotId, phoneNum, videoState, index); in DoSomethingInterestingWithMyAPI() 46 cellularCallConnectionIMS->RejectRequest(slotId, phoneNum, index); in DoSomethingInterestingWithMyAPI()
|
/base/telephony/cellular_call/services/connection/src/ |
D | cellular_call_connection_ims.cpp | 37 UpdateCallNumber(dialRequest.phoneNum); in DialRequest() 43 if (strcpy_s(callInfo.phoneNum, cpyLen, phoneNumber_.c_str()) != EOK) { in DialRequest() 62 int32_t CellularCallConnectionIMS::HangUpRequest(int32_t slotId, const std::string &phoneNum, int32… in HangUpRequest() argument 71 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in HangUpRequest() 74 if (strcpy_s(callInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in HangUpRequest() 94 int32_t slotId, const std::string &phoneNum, int32_t videoState, int32_t index) in AnswerRequest() argument 103 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in AnswerRequest() 106 if (strcpy_s(callInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in AnswerRequest() 125 int32_t CellularCallConnectionIMS::RejectRequest(int32_t slotId, const std::string &phoneNum, int32… in RejectRequest() argument 134 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in RejectRequest() [all …]
|
D | base_connection.cpp | 106 void BaseConnection::UpdateCallNumber(std::string phoneNum) in UpdateCallNumber() argument 109 standardizeUtils.ExtractAddressAndPostDial(phoneNum, phoneNumber_, postDialCallString_); in UpdateCallNumber()
|
/base/telephony/call_manager/services/call/src/ |
D | call_incoming_filter_manager.cpp | 48 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo() 52 if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in PackCellularCallInfo() 79 if (std::find(phones_.begin(), phones_.end(), std::string(info.phoneNum)) != phones_.end()) { in doIncomingFilter()
|
D | call_status_policy.cpp | 33 std::string numberStr(info.phoneNum); in IncomingHandlePolicy() 48 std::string number(info.phoneNum); in DialingHandlePolicy()
|
D | call_status_manager.cpp | 195 …if (memcpy_s(eventInfo.phoneNum, kMaxNumberLen, dialInfo.number.c_str(), dialInfo.number.length())… in HandleEventResultReportInfo() 264 QueryCallerInfo(contactInfo, std::string(info.phoneNum)); in IncomingHandle() 280 void CallStatusManager::QueryCallerInfo(ContactInfo &contactInfo, std::string phoneNum) in QueryCallerInfo() argument 289 predicates.EqualTo(DETAIL_INFO, phoneNum); in QueryCallerInfo() 345 std::string phoneNum(info.phoneNum); in UpdateDialingCallInfo() local 347 if (oriNum.length() > phoneNum.length()) { in UpdateDialingCallInfo() 348 oriNum = oriNum.substr(INIT_INDEX, phoneNum.length()); in UpdateDialingCallInfo() 350 if (oriNum != phoneNum) { in UpdateDialingCallInfo() 427 std::string tmpStr(info.phoneNum); in HoldingHandle() 454 std::string tmpStr(info.phoneNum); in AlertHandle() [all …]
|
D | call_request_process.cpp | 59 (void)memset_s(eventInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen); in DialRequest() 61 … (void)memcpy_s(eventInfo.phoneNum, kMaxNumberLen, info.number.c_str(), info.number.length()); in DialRequest() 316 …if (memcpy_s(&callDetatilInfo.phoneNum, kMaxNumberLen, info.number.c_str(), info.number.length()) … in UpdateCallReportInfo() 430 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo() 438 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.number.c_str(), info.number.length()) != EOK) { in PackCellularCallInfo()
|
/base/telephony/cellular_call/test/fuzztest/setorupdatecallreportinfo_fuzzer/ |
D | setorupdatecallreportinfo_fuzzer.cpp | 43 std::string phoneNum = "000000000"; in DoSomethingInterestingWithMyAPI() local 46 phoneNum = tempNum; in DoSomethingInterestingWithMyAPI() 48 size_t length = strlen(phoneNum.c_str()) + 1; in DoSomethingInterestingWithMyAPI() 56 if (strcpy_s(callReportInfo.accountNum, length, phoneNum.c_str()) != EOK) { in DoSomethingInterestingWithMyAPI()
|
/base/telephony/cellular_call/test/fuzztest/dialrequest_fuzzer/ |
D | dialrequest_fuzzer.cpp | 38 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 40 dialRequest.phoneNum = phoneNum; in DoSomethingInterestingWithMyAPI()
|
/base/telephony/cellular_call/services/connection/include/ |
D | cellular_call_connection_ims.h | 54 int32_t HangUpRequest(int32_t slotId, const std::string &phoneNum, int32_t index); 65 …int32_t AnswerRequest(int32_t slotId, const std::string &phoneNum, int32_t videoState, int32_t ind… 75 int32_t RejectRequest(int32_t slotId, const std::string &phoneNum, int32_t index);
|
D | base_connection.h | 111 void UpdateCallNumber(std::string phoneNum);
|
/base/telephony/call_manager/interfaces/innerkits/ |
D | call_manager_inner_type.h | 564 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1408 char phoneNum[kMaxNumberLen] = { 0 }; member 1706 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1720 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1735 std::copy(std::begin(temp.phoneNum), std::end(temp.phoneNum), std::begin(phoneNum)); 1848 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1866 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1927 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 1969 std::copy(std::begin(temp.phoneNum), std::end(temp.phoneNum), std::begin(phoneNum));
|
/base/telephony/cellular_call/services/control/src/ |
D | ims_control.cpp | 49 std::string newPhoneNum(callInfo.phoneNum); in Dial() 63 int32_t IMSControl::DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, i… in DialJudgment() argument 82 pendingPhoneNumber_ = phoneNum; in DialJudgment() 83 return EncapsulateDial(slotId, phoneNum, clirMode, videoState); in DialJudgment() 87 int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const in EncapsulateDial() argument 95 emergencyUtils.IsEmergencyCall(slotId, phoneNum, dialInfo.bEmergencyCall); in EncapsulateDial() 103 dialInfo.phoneNum = phoneNum; in EncapsulateDial() 137 return pConnection->HangUpRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in HangUp() 150 return connection.RejectRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in HangUp() 199 …return pConnection->AnswerRequest(callInfo.slotId, callInfo.phoneNum, callInfo.videoState, callInf… in Answer() [all …]
|
D | cs_control.cpp | 66 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialCdma() 95 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialGsm() 125 int32_t CSControl::EncapsulateDialCommon(int32_t slotId, const std::string &phoneNum, CLIRMode &cli… in EncapsulateDialCommon() argument 127 pendingPhoneNumber_ = phoneNum; in EncapsulateDialCommon() 135 dialRequest.phoneNum = phoneNum; in EncapsulateDialCommon() 602 standardizeUtils.ExtractAddressAndPostDial(callInfo.phoneNum, networkAddress, postDialString); in PostDialProceed() 637 … if (memcpy_s(callReportInfo.accountNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in ReportHangUp()
|
/base/telephony/call_manager/services/audio/include/ |
D | audio_control_manager.h | 41 bool PlayRingtone(const std::string &phoneNum); // plays the default ringtone 42 …bool PlayRingtone(const std::string &phoneNum, const std::string &ringtonePath); // plays the spec… 88 bool IsNumberAllowed(const std::string &phoneNum);
|
/base/telephony/cellular_call/services/common/include/ |
D | emergency_utils.h | 45 int32_t IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled);
|
D | standardize_utils.h | 43 std::string RemoveSeparatorsPhoneNumber(const std::string &phoneNum);
|
/base/telephony/call_manager/services/telephony_interaction/include/ |
D | cellular_call_connection.h | 112 int IsEmergencyPhoneNumber(const std::string &phoneNum, int32_t slotId, bool &enabled); 170 int SendDtmf(char cDTMFCode, const std::string &phoneNum); 183 …int SendDtmfString(const std::string &dtmfCodeStr, const std::string &phoneNum, PhoneNetType phone…
|
/base/telephony/call_manager/services/telephony_interaction/src/ |
D | cellular_call_connection.cpp | 284 int CellularCallConnection::IsEmergencyPhoneNumber(const std::string &phoneNum, int32_t slotId, boo… in IsEmergencyPhoneNumber() argument 290 return cellularCallInterfacePtr_->IsEmergencyPhoneNumber(slotId, phoneNum, enabled); in IsEmergencyPhoneNumber() 377 int CellularCallConnection::SendDtmf(char cDTMFCode, const std::string &phoneNum) in SendDtmf() argument 388 if (phoneNum.length() + 1 > static_cast<size_t>(kMaxNumberLen)) { in SendDtmf() 391 if (strcpy_s(callInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in SendDtmf() 403 …CellularCallConnection::SendDtmfString(const std::string &dtmfCodeStr, const std::string &phoneNum, in SendDtmfString() argument 846 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in ClearAllCalls() 850 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.accountNumber, strlen(info.accountNumber)) != … in ClearAllCalls()
|
/base/telephony/cellular_call/services/control/include/ |
D | ims_control.h | 204 …int32_t DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t vide… 214 …int32_t EncapsulateDial(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t v…
|
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/ |
D | imsclient_fuzzer.cpp | 55 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallClientWithCallInfo() 62 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallClientWithCallInfo() 173 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallProxyWithCallInfo() 180 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallProxyWithCallInfo()
|
/base/telephony/cellular_call/interfaces/innerkits/ims/ |
D | ims_call_types.h | 148 char phoneNum[kMaxNumberLength] = { 0 }; member
|
/base/telephony/cellular_call/test/fuzztest/getcallrestriction_fuzzer/ |
D | getcallrestriction_fuzzer.cpp | 84 std::string phoneNum(reinterpret_cast<const char *>(data), size); in IsEmergencyPhoneNumber() 87 dataMessageParcel.WriteString(phoneNum); in IsEmergencyPhoneNumber() 251 if (strcpy_s(callInfo.phoneNum, length, telNum.c_str()) != EOK) { in Dial() 302 if (strcpy_s(callInfo.phoneNum, length, telNum.c_str()) != EOK) { in KickOutFromConference()
|
/base/telephony/call_manager/services/audio/src/ |
D | audio_control_manager.cpp | 249 bool AudioControlManager::PlayRingtone(const std::string &phoneNum) in PlayRingtone() argument 251 if (!IsNumberAllowed(phoneNum)) { in PlayRingtone() 274 bool AudioControlManager::PlayRingtone(const std::string &phoneNum, const std::string &ringtonePath) in PlayRingtone() argument 276 if (!IsNumberAllowed(phoneNum)) { in PlayRingtone() 521 bool AudioControlManager::IsNumberAllowed(const std::string &phoneNum) in IsNumberAllowed() argument
|