Home
last modified time | relevance | path

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

123

/base/telephony/call_manager/services/audio/src/
Dcall_state_processor.cpp35 void CallStateProcessor::AddCall(const std::string &phoneNum, TelCallState state) in AddCall() argument
39 if (dialingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall()
41 dialingCalls_.insert(phoneNum); in AddCall()
45 if (alertingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall()
47 alertingCalls_.insert(phoneNum); in AddCall()
51 if (incomingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall()
53 incomingCalls_.insert(phoneNum); in AddCall()
57 if (activeCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall()
59 activeCalls_.insert(phoneNum); in AddCall()
63 if (holdingCalls_.count(phoneNum) == EMPTY_VALUE) { in AddCall()
[all …]
Daudio_control_manager.cpp237 bool AudioControlManager::PlayRingtone(const std::string &phoneNum) in PlayRingtone() argument
239 if (!IsNumberAllowed(phoneNum)) { in PlayRingtone()
260 bool AudioControlManager::PlayRingtone(const std::string &phoneNum, const std::string &ringtonePath) in PlayRingtone() argument
262 if (!IsNumberAllowed(phoneNum)) { in PlayRingtone()
432 sptr<CallBase> AudioControlManager::GetCallBase(const std::string &phoneNum) const in GetCallBase()
435 if (phoneNum.empty()) { in GetCallBase()
439 if (call->GetAccountNumber() == phoneNum) { in GetCallBase()
477 bool AudioControlManager::IsNumberAllowed(const std::string &phoneNum) in IsNumberAllowed() argument
/base/telephony/cellular_call/services/connection/src/
Dcellular_call_connection_ims.cpp36 size_t cpyLen = strlen(dialRequest.phoneNum.c_str()) + 1; in DialRequest()
40 if (strcpy_s(callInfo.phoneNum, cpyLen, dialRequest.phoneNum.c_str()) != EOK) { in DialRequest()
57 int32_t CellularCallConnectionIMS::HangUpRequest(int32_t slotId, const std::string &phoneNum, int32… in HangUpRequest() argument
66 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in HangUpRequest()
69 if (strcpy_s(callInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in HangUpRequest()
89 int32_t slotId, const std::string &phoneNum, int32_t videoState, int32_t index) in AnswerRequest() argument
98 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in AnswerRequest()
101 if (strcpy_s(callInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in AnswerRequest()
120 int32_t CellularCallConnectionIMS::RejectRequest(int32_t slotId, const std::string &phoneNum, int32… in RejectRequest() argument
129 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in RejectRequest()
[all …]
/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/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.cpp124 if (strcmp(it.phoneNum, it1.phoneNum) == 0) { in HandleCallsReportInfo()
144 if (strcmp(it2.phoneNum, it3.phoneNum) == 0) { in HandleCallsReportInfo()
189 …if (memcpy_s(eventInfo.phoneNum, kMaxNumberLen, dialInfo.number.c_str(), dialInfo.number.length())… in HandleEventResultReportInfo()
258 QueryCallerInfo(contactInfo, std::string(info.phoneNum)); in IncomingHandle()
274 void CallStatusManager::QueryCallerInfo(ContactInfo &contactInfo, std::string phoneNum) in QueryCallerInfo() argument
283 predicates.EqualTo(DETAIL_INFO, phoneNum); in QueryCallerInfo()
359 std::string tmpStr(info.phoneNum); in ActiveHandle()
392 std::string tmpStr(info.phoneNum); in HoldingHandle()
419 std::string tmpStr(info.phoneNum); in AlertHandle()
442 std::string tmpStr(info.phoneNum); in DisconnectingHandle()
[all …]
/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/control/src/
Dims_control.cpp44 std::string newPhoneNum(callInfo.phoneNum); in Dial()
58 int32_t IMSControl::DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, i… in DialJudgment() argument
77 return EncapsulateDial(slotId, phoneNum, clirMode, videoState); in DialJudgment()
81 int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const in EncapsulateDial() argument
89 emergencyUtils.IsEmergencyCall(slotId, phoneNum, dialInfo.bEmergencyCall); in EncapsulateDial()
97 dialInfo.phoneNum = phoneNum; in EncapsulateDial()
121 …ConnectionData<ImsConnectionMap &, CellularCallConnectionIMS *>(connectionMap_, callInfo.phoneNum); in HangUp()
136 return pConnection->HangUpRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in HangUp()
149 return connection.RejectRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in HangUp()
162 …ConnectionData<ImsConnectionMap &, CellularCallConnectionIMS *>(connectionMap_, callInfo.phoneNum); in Answer()
[all …]
Dcs_control.cpp60 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialCdma()
89 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialGsm()
119 int32_t CSControl::EncapsulateDialCommon(int32_t slotId, const std::string &phoneNum, CLIRMode &cli… in EncapsulateDialCommon() argument
128 dialRequest.phoneNum = phoneNum; in EncapsulateDialCommon()
154 …etConnectionData<CsConnectionMap &, CellularCallConnectionCS *>(connectionMap_, callInfo.phoneNum); in HangUp()
207 …etConnectionData<CsConnectionMap &, CellularCallConnectionCS *>(connectionMap_, callInfo.phoneNum); in Answer()
263 …etConnectionData<CsConnectionMap &, CellularCallConnectionCS *>(connectionMap_, callInfo.phoneNum); in Reject()
/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…
81 bool IsNumberAllowed(const std::string &phoneNum);
83 sptr<CallBase> GetCallBase(const std::string &phoneNum) const;
Dcall_state_processor.h34 void AddCall(const std::string &phoneNum, TelCallState state);
35 void DeleteCall(const std::string &phoneNum, TelCallState state);
/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);
/base/telephony/call_manager/interfaces/innerkits/
Dcall_manager_inner_type.h191 char phoneNum[kMaxNumberLen + 1]; member
501 char phoneNum[kMaxNumberLen]; // call phone number member
619 char phoneNum[kMaxNumberLen + 1]; member
624 char phoneNum[kMaxNumberLen + 1]; member
695 char phoneNum[kMaxNumberLen + 1]; // call phone number member
701 char phoneNum[kMaxNumberLen + 1]; // call phone number member
718 char phoneNum[kMaxNumberLen + 1]; // call phone number member
/base/telephony/call_manager/services/telephony_interaction/include/
Dcellular_call_connection.h111 int IsEmergencyPhoneNumber(const std::string &phoneNum, int32_t slotId, bool &enabled);
158 int SendDtmf(char cDTMFCode, const std::string &phoneNum);
171 …int SendDtmfString(const std::string &dtmfCodeStr, const std::string &phoneNum, PhoneNetType phone…
/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/cellular_call/services/control/include/
Dims_control.h199 …int32_t DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t vide…
209 …int32_t EncapsulateDial(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t v…
Dcontrol_base.h339 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in StartDtmf()
379 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in StopDtmf()
427 … auto pConnection = GetConnectionData<T &, decltype(&t.begin()->second)>(t, callInfo.phoneNum); in SendDtmf()
/base/telephony/call_manager/test/fuzztest/audiodevice_fuzzer/
Daudiodevice_fuzzer.cpp158 std::string phoneNum(reinterpret_cast<const char *>(data), size); in AudioProxyFunc()
162 audioControlManager->GetCallBase(phoneNum); in AudioProxyFunc()
197 std::string phoneNum(reinterpret_cast<const char *>(data), size); in AudioSceneProcessorFunc()
199 audioControlManager->IsNumberAllowed(phoneNum); in AudioSceneProcessorFunc()
/base/telephony/cellular_call/vendor/ims/test/ui_client/
Dims_unit_test.cpp143 std::cin >> callInfo.phoneNum; in Dial()
160 std::cin >> callInfo.phoneNum; in HangUp()
178 std::cin >> callInfo.phoneNum; in RejectWithReason()
196 std::cin >> callInfo.phoneNum; in Answer()
258 std::string phoneNum; in InviteToConference() local
259 std::cin >> phoneNum; in InviteToConference()
260 numberList.push_back(phoneNum); in InviteToConference()
272 std::string phoneNum; in KickOutFromConference() local
273 std::cin >> phoneNum; in KickOutFromConference()
274 numberList.push_back(phoneNum); in KickOutFromConference()
[all …]
/base/telephony/sms_mms/services/
Dsms_persist_helper.cpp107 bool SmsPersistHelper::QueryBlockPhoneNumber(const std::string &phoneNum) in QueryBlockPhoneNumber() argument
112 if (phoneNum.empty()) { in QueryBlockPhoneNumber()
123 predicates.EqualTo(phoneNumber, phoneNum); in QueryBlockPhoneNumber()
/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()
172 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallProxyWithCallInfo()
179 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallProxyWithCallInfo()

123