Home
last modified time | relevance | path

Searched refs:phoneNum (Results 1 – 25 of 65) sorted by relevance

123

/base/telephony/cellular_call/services/common/src/
Demergency_utils.cpp26 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/
Danswerrequest_fuzzer.cpp37 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/
Dcellular_call_connection_ims.cpp37 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 …]
Dbase_connection.cpp106 void BaseConnection::UpdateCallNumber(std::string phoneNum) in UpdateCallNumber() argument
109 standardizeUtils.ExtractAddressAndPostDial(phoneNum, phoneNumber_, postDialCallString_); in UpdateCallNumber()
/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()
79 if (std::find(phones_.begin(), phones_.end(), std::string(info.phoneNum)) != phones_.end()) { in doIncomingFilter()
Dcall_status_policy.cpp33 std::string numberStr(info.phoneNum); in IncomingHandlePolicy()
48 std::string number(info.phoneNum); in DialingHandlePolicy()
Dcall_status_manager.cpp195 …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 …]
Dcall_request_process.cpp59 (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/
Dsetorupdatecallreportinfo_fuzzer.cpp43 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/
Ddialrequest_fuzzer.cpp38 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI()
40 dialRequest.phoneNum = phoneNum; in DoSomethingInterestingWithMyAPI()
/base/telephony/cellular_call/services/connection/include/
Dcellular_call_connection_ims.h54 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);
Dbase_connection.h111 void UpdateCallNumber(std::string phoneNum);
/base/telephony/call_manager/interfaces/innerkits/
Dcall_manager_inner_type.h564 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/
Dims_control.cpp49 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 …]
Dcs_control.cpp66 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/
Daudio_control_manager.h41 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/
Demergency_utils.h45 int32_t IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled);
Dstandardize_utils.h43 std::string RemoveSeparatorsPhoneNumber(const std::string &phoneNum);
/base/telephony/call_manager/services/telephony_interaction/include/
Dcellular_call_connection.h112 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/
Dcellular_call_connection.cpp284 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/
Dims_control.h204 …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/
Dimsclient_fuzzer.cpp55 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/
Dims_call_types.h148 char phoneNum[kMaxNumberLength] = { 0 }; member
/base/telephony/cellular_call/test/fuzztest/getcallrestriction_fuzzer/
Dgetcallrestriction_fuzzer.cpp84 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/
Daudio_control_manager.cpp249 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

123