Home
last modified time | relevance | path

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

1234

/ohos5.0/base/telephony/cellular_call/test/unittest/imstest/
H A Demergency_utils_test.cpp50 std::string phoneNum; variable
52 …EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALI…
54 phoneNum = "+911";
55 …EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALI…
57 phoneNum = "911@123456778901";
58 …EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALI…
60 phoneNum = "911%40123456778901";
61 …EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALI…
/ohos5.0/base/telephony/cellular_call/services/connection/src/
H A 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(hangUpCallInfo.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(answerCallInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in AnswerRequest()
134 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in RejectRequest()
137 … if (strcpy_s(rejectCallInfo.phoneNum, strlen(phoneNum.c_str()) + 1, phoneNum.c_str()) != EOK) { in RejectRequest()
[all …]
H A Dbase_connection.cpp106 void BaseConnection::UpdateCallNumber(std::string phoneNum) in UpdateCallNumber() argument
109 standardizeUtils.ExtractAddressAndPostDial(phoneNum, phoneNumber_, postDialCallString_); in UpdateCallNumber()
/ohos5.0/base/telephony/cellular_call/services/utils/src/
H A 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()
/ohos5.0/base/telephony/cellular_call/test/fuzztest/answerrequest_fuzzer/
H A 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()
/ohos5.0/base/telephony/call_manager/services/call/src/
H A Dcall_incoming_filter_manager.cpp38 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
42 if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in PackCellularCallInfo()
53 info.phoneNum, info.accountId, isEcc); in DoIncomingFilter()
H A Dcall_status_manager.cpp387 SetContactInfo(call, std::string(info.phoneNum)); in IncomingHandle()
428 .number = phoneNum, in SetContactInfo()
436 QueryCallerInfo(contactInfo, phoneNum); in SetContactInfo()
552 predicates.EqualTo(DETAIL_INFO, phoneNum); in QueryCallerInfo()
660 std::string tmpStr(info.phoneNum); in ActiveHandle()
727 std::string tmpStr(info.phoneNum); in HoldingHandle()
787 std::string tmpStr(info.phoneNum); in AlertHandle()
810 std::string tmpStr(info.phoneNum); in DisconnectingHandle()
852 std::string tmpStr(info.phoneNum); in DisconnectedHandle()
1389 info.phoneNum, info.accountId, isEcc); in ShouldBlockIncomingCall()
[all …]
/ohos5.0/base/telephony/cellular_call/test/fuzztest/satelliteclient_fuzzer/
H A Dsatelliteclient_fuzzer.cpp66 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestSatelliteCallClientWithCallInfo()
71 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestSatelliteCallClientWithCallInfo()
91 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestSatelliteCallProxyWithCallInfo()
96 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestSatelliteCallProxyWithCallInfo()
/ohos5.0/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
H A Dimsclient_fuzzer.cpp67 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallClientWithCallInfo()
74 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallClientWithCallInfo()
192 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallClientWithCallMediaModeRequest()
197 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallClientWithCallMediaModeRequest()
211 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallClientWithCallMediaModeResponse()
216 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallClientWithCallMediaModeResponse()
245 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallProxyWithCallInfo()
252 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallProxyWithCallInfo()
366 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallProxyWithCallMediaModeRequest()
371 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallProxyWithCallMediaModeRequest()
[all …]
/ohos5.0/base/telephony/cellular_call/services/control/src/
H A Dims_video_call_control.cpp141 if (static_cast<int32_t>(strlen(callInfo.phoneNum) + 1) > kMaxNumberLen) { in SendUpdateCallMediaModeRequest()
144 … errno_t result = strcpy_s(imsCallInfo.phoneNum, strlen(callInfo.phoneNum) + 1, callInfo.phoneNum); in SendUpdateCallMediaModeRequest()
183 if (static_cast<int32_t>(strlen(callInfo.phoneNum) + 1) > kMaxNumberLen) { in SendUpdateCallMediaModeResponse()
186 … errno_t result = strcpy_s(imsCallInfo.phoneNum, strlen(callInfo.phoneNum) + 1, callInfo.phoneNum); in SendUpdateCallMediaModeResponse()
H A Dims_control.cpp49 std::string newPhoneNum(callInfo.phoneNum); in Dial()
73 pendingPhoneNumber_ = phoneNum; in DialJudgment()
81 emergencyUtils.IsEmergencyCall(slotId, phoneNum, isEmergency); in DialJudgment()
82 connection.second.SetHoldToDialInfo(phoneNum, clirMode, videoState, isEmergency); in DialJudgment()
88 return EncapsulateDial(slotId, phoneNum, clirMode, videoState); in DialJudgment()
92 int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const in EncapsulateDial() argument
100 emergencyUtils.IsEmergencyCall(slotId, phoneNum, dialInfo.bEmergencyCall); in EncapsulateDial()
108 dialInfo.phoneNum = phoneNum; in EncapsulateDial()
156 return connection.RejectRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in HangUp()
238 return pConnection->RejectRequest(callInfo.slotId, callInfo.phoneNum, callInfo.index); in Reject()
[all …]
H A Dsatellite_control.cpp43 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in Dial()
62 int32_t SatelliteControl::EncapsulateDialCommon(int32_t slotId, const std::string &phoneNum, CLIRMo… in EncapsulateDialCommon() argument
64 pendingPhoneNumber_ = phoneNum; in EncapsulateDialCommon()
72 dialRequest.phoneNum = phoneNum; in EncapsulateDialCommon()
365 …if (memcpy_s(satelliteCallReportInfo.accountNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != E… in ReportHangUp()
456 standardizeUtils.ExtractAddressAndPostDial(callInfo.phoneNum, networkAddress, postDialString); in PostDialProceed()
H A Dcs_control.cpp67 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialCdma()
97 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in DialGsm()
128 int32_t CSControl::EncapsulateDialCommon(int32_t slotId, const std::string &phoneNum, CLIRMode &cli… in EncapsulateDialCommon() argument
130 pendingPhoneNumber_ = phoneNum; in EncapsulateDialCommon()
138 dialRequest.phoneNum = phoneNum; in EncapsulateDialCommon()
651 standardizeUtils.ExtractAddressAndPostDial(callInfo.phoneNum, networkAddress, postDialString); in PostDialProceed()
692 … if (memcpy_s(csCallReportInfo.accountNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in ReportHangUp()
/ohos5.0/base/telephony/cellular_call/test/fuzztest/setorupdatecallreportinfo_fuzzer/
H A 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()
/ohos5.0/foundation/distributeddatamgr/preferences/test/js/unittest/storage/src/
H A DStorageCallBackJsunit.test.js402 let phoneNum = "1";
403 phoneNum = phoneNum.repeat(1025);
405 mPref.put(phoneNum, "123456", (ret) => {
421 let phoneNum = "1";
422 phoneNum = phoneNum.repeat(1024);
424 mPref.put(phoneNum, "123456", (ret) => {
/ohos5.0/base/telephony/cellular_call/test/fuzztest/satellitecallrequest_fuzzer/
H A Dsatellitecallrequest_fuzzer.cpp38 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI()
42 dialRequest.phoneNum = phoneNum; in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/telephony/cellular_call/test/fuzztest/dialrequest_fuzzer/
H A Ddialrequest_fuzzer.cpp38 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI()
40 dialRequest.phoneNum = phoneNum; in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/telephony/cellular_call/services/connection/include/
H A 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);
/ohos5.0/base/telephony/call_manager/interfaces/innerkits/
H A Dcall_manager_info.h34 char phoneNum[kMaxNumberLen] = { 0 };
131 char phoneNum[kMaxNumberLen + 1] = { 0 };
447 char phoneNum[kMaxNumberLen + 1] = { 0 };
501 std::copy(std::begin(temp.phoneNum), std::end(temp.phoneNum), std::begin(phoneNum));
H A Dcall_manager_inner_type.h392 char phoneNum[kMaxNumberLen + 1] = { 0 };
696 char phoneNum[kMaxNumberLen + 1] = { 0 };
714 char phoneNum[kMaxNumberLen + 1] = { 0 };
/ohos5.0/base/telephony/cellular_call/test/unittest/cstest/
H A Dcs_test.cpp123 std::cin >> callInfo.phoneNum; in Dial()
202 std::string phoneNum; in IsEmergencyPhoneNumber() local
204 std::cin >> phoneNum; in IsEmergencyPhoneNumber()
209 telephonyService->IsEmergencyPhoneNumber(slotId, phoneNum, enabled); in IsEmergencyPhoneNumber()
240 std::string phoneNum; in InviteToConference() local
241 std::cin >> phoneNum; in InviteToConference()
242 numberList.push_back(phoneNum); in InviteToConference()
558 std::cin >> callInfo.phoneNum; in InitCallInfo()
/ohos5.0/base/telephony/call_manager/services/telephony_interaction/src/
H A 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
892 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in ClearAllCalls()
896 …if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, info.accountNumber, strlen(info.accountNumber)) != … in ClearAllCalls()
/ohos5.0/base/telephony/call_manager/services/telephony_interaction/include/
H A Dcellular_call_connection.h113 int IsEmergencyPhoneNumber(const std::string &phoneNum, int32_t slotId, bool &enabled);
171 int SendDtmf(char cDTMFCode, const std::string &phoneNum);
184 …int SendDtmfString(const std::string &dtmfCodeStr, const std::string &phoneNum, PhoneNetType phone…
/ohos5.0/base/telephony/call_manager/services/call/call_state_observer/src/
H A Dcall_data_base_helper.cpp331 int32_t CallDataBaseHelper::QueryIsBlockPhoneNumber(const std::string &phoneNum, bool &result) in QueryIsBlockPhoneNumber() argument
345 phoneNum, ISO_COUNTRY_CODE, nationalNumber); in QueryIsBlockPhoneNumber()
348 nationalNumber = phoneNum; in QueryIsBlockPhoneNumber()
351 phoneNum, ISO_COUNTRY_CODE, internationalNumber); in QueryIsBlockPhoneNumber()
354 internationalNumber = phoneNum; in QueryIsBlockPhoneNumber()
/ohos5.0/base/telephony/cellular_call/services/control/include/
H A Dims_control.h207 …int32_t DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t vide…
217 …int32_t EncapsulateDial(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t v…

1234