/base/telephony/cellular_call/test/fuzztest/answerrequest_fuzzer/ |
H A 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/utils/src/ |
H A 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() 29 TELEPHONY_LOGI("IsEmergencyCall return, phoneNum is empty."); in IsEmergencyCall() 33 if (phoneNum.find('@') != std::string::npos || phoneNum.find("%40") != std::string::npos) { in IsEmergencyCall() 34 TELEPHONY_LOGI("IsEmergencyCall return, phoneNum is not emergency."); in IsEmergencyCall() 38 if (phoneNum.front() == '+') { in IsEmergencyCall() 39 TELEPHONY_LOGI("IsEmergencyCall return, phoneNum is not emergency."); in IsEmergencyCall() 43 return IsEmergencyCallProcessing(slotId, phoneNum, enabled); in IsEmergencyCall()
|
/base/telephony/cellular_call/test/unittest/imstest/ |
H A D | emergency_utils_test.cpp | 50 std::string phoneNum; in HWTEST_F() local 52 EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALID); in HWTEST_F() 54 phoneNum = "+911"; in HWTEST_F() 55 EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALID); in HWTEST_F() 57 phoneNum = "911@123456778901"; in HWTEST_F() 58 EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALID); in HWTEST_F() 60 phoneNum = "911%40123456778901"; in HWTEST_F() 61 EXPECT_EQ(emergencyUtils.IsEmergencyCall(slotId, phoneNum, enabled), TELEPHONY_ERR_ARGUMENT_INVALID); in HWTEST_F()
|
/base/telephony/call_manager/services/call/src/ |
H A D | call_incoming_filter_manager.cpp | 38 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 D | call_status_policy.cpp | 33 std::string number(info.phoneNum); in DialingHandlePolicy()
|
/base/telephony/cellular_call/test/fuzztest/satelliteclient_fuzzer/ |
H A D | satelliteclient_fuzzer.cpp | 66 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()
|
/base/telephony/cellular_call/test/fuzztest/dialrequest_fuzzer/ |
H A 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/test/fuzztest/satellitecallrequest_fuzzer/ |
H A D | satellitecallrequest_fuzzer.cpp | 38 std::string phoneNum(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 42 dialRequest.phoneNum = phoneNum; in DoSomethingInterestingWithMyAPI()
|
/base/telephony/cellular_call/services/connection/src/ |
H A 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_t index) 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() 103 if (static_cast<int32_t>(phoneNum.length() + 1) > kMaxNumberLength) { in AnswerRequest() 106 if (strcpy_s(answerCallInfo.phoneNum, strle in AnswerRequest() 93 AnswerRequest( int32_t slotId, const std::string &phoneNum, int32_t videoState, int32_t index) AnswerRequest() argument 125 RejectRequest(int32_t slotId, const std::string &phoneNum, int32_t index) RejectRequest() argument [all...] |
H A D | base_connection.cpp | 108 void BaseConnection::UpdateCallNumber(std::string phoneNum) in UpdateCallNumber() argument 111 standardizeUtils.ExtractAddressAndPostDial(phoneNum, phoneNumber_, postDialCallString_); in UpdateCallNumber()
|
/base/telephony/cellular_call/test/fuzztest/setorupdatecallreportinfo_fuzzer/ |
H A 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/services/connection/include/ |
H A D | cellular_call_connection_ims.h | 50 * @param phoneNum 54 int32_t HangUpRequest(int32_t slotId, const std::string &phoneNum, int32_t index); 60 * @param phoneNum 65 int32_t AnswerRequest(int32_t slotId, const std::string &phoneNum, int32_t videoState, int32_t index); 71 * @param phoneNum 75 int32_t RejectRequest(int32_t slotId, const std::string &phoneNum, int32_t index);
|
/base/telephony/cellular_call/services/control/src/ |
H A D | ims_video_call_control.cpp | 141 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 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, int32_t videoState) in DialJudgment() argument 73 pendingPhoneNumber_ = phoneNum; in DialJudgment() 82 emergencyUtils.IsEmergencyCall(slotId, phoneNum, isEmergency); in DialJudgment() 83 connection.second.SetHoldToDialInfo(phoneNum, clirMode, videoState, isEmergency); in DialJudgment() 89 return EncapsulateDial(slotId, phoneNum, clirMode, videoState); in DialJudgment() 93 int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const in EncapsulateDial() 101 emergencyUtils.IsEmergencyCall(slotId, phoneNum, dialInfo.bEmergencyCall); in EncapsulateDial() 109 dialInfo.phoneNum = phoneNum; in EncapsulateDial() 92 EncapsulateDial( int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const EncapsulateDial() argument [all...] |
H A D | satellite_control.cpp | 43 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum); in Dial() 62 int32_t SatelliteControl::EncapsulateDialCommon(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode) in EncapsulateDialCommon() argument 64 pendingPhoneNumber_ = phoneNum; in EncapsulateDialCommon() 72 dialRequest.phoneNum = phoneNum; in EncapsulateDialCommon() 365 if (memcpy_s(satelliteCallReportInfo.accountNum, kMaxNumberLen, info.phoneNum, kMaxNumberLen) != EOK) { in ReportHangUp() 456 standardizeUtils.ExtractAddressAndPostDial(callInfo.phoneNum, networkAddress, postDialString); in PostDialProceed()
|
H A D | cs_control.cpp | 67 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 &clirMode) 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()
|
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/ |
H A D | imsclient_fuzzer.cpp | 67 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) in TestImsCallProxyWithCallInfo() [all...] |
/base/telephony/call_manager/interfaces/innerkits/ |
H A D | call_manager_info.h | 34 char phoneNum[kMaxNumberLen] = { 0 }; member 135 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 461 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 515 std::copy(std::begin(temp.phoneNum), std::end(temp.phoneNum), std::begin(phoneNum)); in operator =()
|
H A D | call_manager_inner_type.h | 392 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 696 char phoneNum[kMaxNumberLen + 1] = { 0 }; member 714 char phoneNum[kMaxNumberLen + 1] = { 0 }; member
|
/base/telephony/cellular_call/services/utils/include/ |
H A D | emergency_utils.h | 41 * @param phoneNum 45 int32_t IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled);
|
/base/telephony/cellular_call/interfaces/innerkits/satellite/ |
H A D | satellite_call_types.h | 33 char phoneNum[kMaxNumberLen] = { 0 }; member
|
/base/telephony/cellular_call/services/control/include/ |
H A D | ims_control.h | 202 * @param std::string phoneNum 207 int32_t DialJudgment(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState); 212 * @param std::string phoneNum 217 int32_t EncapsulateDial(int32_t slotId, const std::string &phoneNum, CLIRMode &clirMode, int32_t videoState) const;
|
/base/telephony/cellular_call/test/unittest/satellitetest/ |
H A D | satellite_test.h | 152 if (memset_s(callInfo.phoneNum, kMaxNumberLen, 0, kMaxNumberLen) != EOK) { in InitCellularCallInfo() 158 if (memcpy_s(callInfo.phoneNum, kMaxNumberLen, phonenumber.c_str(), phonenumber.length()) != EOK) { in InitCellularCallInfo()
|
/base/telephony/cellular_call/test/unittest/cstest/ |
H A D | cs_test.cpp | 123 std::cin >> callInfo.phoneNum; in Dial() 202 std::string phoneNum; in IsEmergencyPhoneNumber() local 203 std::cout << "input phoneNum: "; in IsEmergencyPhoneNumber() 204 std::cin >> phoneNum; in IsEmergencyPhoneNumber() local 209 telephonyService->IsEmergencyPhoneNumber(slotId, phoneNum, enabled); in IsEmergencyPhoneNumber() 240 std::string phoneNum; in InviteToConference() local 241 std::cin >> phoneNum; in InviteToConference() local 242 numberList.push_back(phoneNum); in InviteToConference() 558 std::cin >> callInfo.phoneNum; in InitCallInfo()
|
/base/telephony/call_manager/services/telephony_interaction/include/ |
H A D | cellular_call_connection.h | 113 int IsEmergencyPhoneNumber(const std::string &phoneNum, int32_t slotId, bool &enabled); 168 * @param phoneNum[in], Phone number corresponding to the call 171 int SendDtmf(char cDTMFCode, const std::string &phoneNum); 178 * @param phoneNum[in], Phone number corresponding to the call 184 int SendDtmfString(const std::string &dtmfCodeStr, const std::string &phoneNum, PhoneNetType phoneNetType,
|