Home
last modified time | relevance | path

Searched refs:phoneNumber (Results 1 - 25 of 116) sorted by relevance

12345

/base/telephony/call_manager/frameworks/cj/src/
H A Dtelephony_call_ffi.cpp39 bool FfiOHOSTelephonyCallIsEmergencyPhoneNumber(char* phoneNumber, int32_t slotId, int32_t* errCode) in FfiOHOSTelephonyCallIsEmergencyPhoneNumber() argument
41 return TelephonyCallImpl::IsEmergencyPhoneNumber(phoneNumber, slotId, errCode); in FfiOHOSTelephonyCallIsEmergencyPhoneNumber()
59 int32_t FfiOHOSTelephonyCallDialCall(char *phoneNumber, DialCallOptions options) in FfiOHOSTelephonyCallDialCall() argument
61 return TelephonyCallImpl::DialCall(phoneNumber, options); in FfiOHOSTelephonyCallDialCall()
69 char* FfiOHOSTelephonyCallFormatPhoneNumber(char *phoneNumber, char *countryCode, int32_t *errCode) in FfiOHOSTelephonyCallFormatPhoneNumber() argument
71 return TelephonyCallImpl::FormatPhoneNumber(phoneNumber, countryCode, errCode); in FfiOHOSTelephonyCallFormatPhoneNumber()
H A Dtelephony_call_ffi.h33 FFI_EXPORT int32_t FfiOHOSTelephonyCallDialCall(char *phoneNumber, DialCallOptions options);
37 FFI_EXPORT char* FfiOHOSTelephonyCallFormatPhoneNumber(char *phoneNumber, char *countryCode, int32_t *errCode);
43 FFI_EXPORT bool FfiOHOSTelephonyCallIsEmergencyPhoneNumber(char *phoneNumber, int32_t slotId, int32_t* errCode);
H A Dtelephony_call_impl.cpp105 std::u16string phoneNumber = Str8ToStr16(tmpPhoneNumber); in FormatPhoneNumberToE164() local
108 phoneNumber, countryCode, formatNumber); in FormatPhoneNumberToE164()
114 int32_t TelephonyCallImpl::MakeCall(char* phoneNumber) in MakeCall() argument
120 wantParams.SetParam("phoneNumber", AAFwk::String::Box(std::string(phoneNumber))); in MakeCall()
163 int32_t TelephonyCallImpl::DialCall(char *phoneNumber, DialCallOptions options) in DialCall() argument
170 std::string temPhoneNumber = phoneNumber; in DialCall()
186 std::u16string phoneNumber = Str8ToStr16(tmpPhoneNumber); in FormatPhoneNumber() local
189 phoneNumber, countryCode, formatNumber); in FormatPhoneNumber()
H A Dtelephony_call_impl.h31 static int32_t DialCall(char *phoneNumber, DialCallOptions options);
43 static int32_t MakeCall(char* phoneNumber);
/base/telephony/call_manager/utils/include/
H A Dcall_number_utils.h32 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
34 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
36 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
38 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
39 int32_t FormatNumberBase(const std::string phoneNumber, std::string countryCode,
42 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
43 int32_t CheckNumberIsEmergency(const std::string &phoneNumber, const int32_t slotId, bool &enabled);
50 bool HasBCPhoneNumber(const std::string &phoneNumber);
/base/telephony/call_manager/utils/src/
H A Dcall_number_utils.cpp38 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) in FormatPhoneNumber()
40 if (phoneNumber.empty()) { in FormatPhoneNumber()
41 TELEPHONY_LOGE("phoneNumber is nullptr!"); in FormatPhoneNumber()
44 if (phoneNumber.front() == '#' || phoneNumber.front() == '*') { in FormatPhoneNumber()
45 formatNumber = phoneNumber; in FormatPhoneNumber()
56 phoneUtils->ParseAndKeepRawInput(phoneNumber, tmpCode, &parseResult); in FormatPhoneNumber()
65 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) in FormatPhoneNumberToE164()
67 return FormatNumberBase(phoneNumber, countryCode, i18n::phonenumbers::PhoneNumberUtil::E164, formatNumber); in FormatPhoneNumberToE164()
71 const std::string phoneNumber, cons in FormatPhoneNumberToNational()
37 FormatPhoneNumber( const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) FormatPhoneNumber() argument
64 FormatPhoneNumberToE164( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToE164() argument
70 FormatPhoneNumberToNational( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToNational() argument
79 FormatPhoneNumberToInternational( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToInternational() argument
88 FormatNumberBase(const std::string phoneNumber, std::string countryCode, const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber) FormatNumberBase() argument
109 FormatPhoneNumberAsYouType( const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) FormatPhoneNumberAsYouType() argument
155 CheckNumberIsEmergency(const std::string &phoneNumber, const int32_t slotId, bool &enabled) CheckNumberIsEmergency() argument
255 HasBCPhoneNumber(const std::string &phoneNumber) HasBCPhoneNumber() argument
305 std::vector<std::string> phoneNumber; QueryNumberLocationInfo() local
390 std::vector<std::string> phoneNumber; QueryYellowPageAndMarkInfo() local
[all...]
/base/telephony/cellular_call/services/utils/src/
H A Dstandardize_utils.cpp39 std::string StandardizeUtils::FormatNumberAndToa(const std::string &phoneNumber, const int32_t callToa) in FormatNumberAndToa() argument
41 if (phoneNumber.empty()) { in FormatNumberAndToa()
42 TELEPHONY_LOGE("FormatNumberAndToa return, phoneNumber is empty."); in FormatNumberAndToa()
43 return phoneNumber; in FormatNumberAndToa()
47 if (callToa == TOA_INTER && !phoneNumber.empty() && phoneNumber.front() != '+') { in FormatNumberAndToa()
49 for (char c : phoneNumber) { in FormatNumberAndToa()
53 newString = phoneNumber; in FormatNumberAndToa()
/base/global/i18n/frameworks/intl/src/
H A Dphone_number_format.cpp170 i18n::phonenumbers::PhoneNumber phoneNumber; in isValidPhoneNumber() local
171 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in isValidPhoneNumber()
175 return util->IsValidNumber(phoneNumber); in isValidPhoneNumber()
185 i18n::phonenumbers::PhoneNumber phoneNumber; in format() local
186 PhoneNumberUtil::ErrorType type = util->ParseAndKeepRawInput(number, country, &phoneNumber); in format()
192 util->FormatInOriginalFormat(phoneNumber, country, &formatted_number); in format()
194 util->Format(phoneNumber, phoneNumberFormat, &formatted_number); in format()
206 std::string phoneNumber = std::regex_replace(number, pattern, ""); in GetAsYouTypeFormatResult() local
207 if (lastFormatNumber.length() > 0 && phoneNumber.length() == lastFormatNumber.length() + 1) { in GetAsYouTypeFormatResult()
208 if (phoneNumber in GetAsYouTypeFormatResult()
252 i18n::phonenumbers::PhoneNumber phoneNumber; getLocationName() local
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_datashare_helper.cpp130 ErrCode AdvancedDatashareHelper::QueryContact(Uri &uri, const std::string &phoneNumber, const std::string &policy) in QueryContact() argument
141 if (phoneNumber.size() >= PHONE_NUMBER_LENGTH) { in QueryContact()
143 phoneNumber.substr(phoneNumber.size() - PHONE_NUMBER_LENGTH, phoneNumber.size())); in QueryContact()
145 predicates.EqualTo(DETAIL_INFO, phoneNumber); in QueryContact()
162 resultId = TEL_EXTENTION_WRAPPER->GetCallerIndex(resultSet, phoneNumber); in QueryContact()
165 if ((phoneNumber.size() >= PHONE_NUMBER_LENGTH && resultSet->GoToRow(resultId) == DataShare::E_OK) || in QueryContact()
166 (phoneNumber.size() < PHONE_NUMBER_LENGTH && resultSet->GoToFirstRow() == DataShare::E_OK)) { in QueryContact()
215 bool AdvancedDatashareHelper::isRepeatCall(const std::string &phoneNumber) in isRepeatCall() argument
[all...]
/base/global/i18n/frameworks/intl/test/fuzztest/regexrule_fuzzer/
H A Dregexrule_fuzzer.cpp37 i18n::phonenumbers::PhoneNumber phoneNumber; in DoSomethingInterestingWithMyAPI() local
40 phoneNumberUtil->Parse(input, country, &phoneNumber); in DoSomethingInterestingWithMyAPI()
42 PhoneNumberMatch* possibleNumber = new PhoneNumberMatch(size, input, phoneNumber); in DoSomethingInterestingWithMyAPI()
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
H A Dcall_manager2_gtest.cpp332 std::string phoneNumber = "11111111111"; in HWTEST_F() local
336 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
347 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
403 std::string phoneNumber = "-12354785268"; in HWTEST_F() local
407 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
417 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
442 std::string phoneNumber = "19119080646435437102938190283912471651865810514786470168818468143768714648"; in HWTEST_F() local
446 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
457 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
557 std::string phoneNumber in HWTEST_F() local
580 std::string phoneNumber = PHONE_NUMBER; // OPERATOR PHONY NUMBER HWTEST_F() local
604 std::string phoneNumber = PHONE_NUMBER; // OPERATOR PHONY NUMBER HWTEST_F() local
663 std::string phoneNumber = "33333333333"; HWTEST_F() local
692 std::string phoneNumber = PHONE_NUMBER; // OPERATOR PHONY NUMBER HWTEST_F() local
722 std::string phoneNumber = HWTEST_F() local
763 std::string phoneNumber = ""; HWTEST_F() local
793 std::string phoneNumber = PHONE_NUMBER; // OPERATOR PHONY NUMBER HWTEST_F() local
820 std::string phoneNumber = "10086"; HWTEST_F() local
873 std::string phoneNumber = "10086,123"; HWTEST_F() local
[all...]
H A Dcall_manager4_gtest.cpp338 std::u16string phoneNumber = Str8ToStr16(number); in HWTEST_F() local
341 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM1_SLOTID, enabled); in HWTEST_F()
347 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM2_SLOTID, enabled); in HWTEST_F()
364 std::u16string phoneNumber = Str8ToStr16("112"); in HWTEST_F() local
367 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM2_SLOTID, enabled); in HWTEST_F()
373 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM1_SLOTID, enabled); in HWTEST_F()
415 std::u16string phoneNumber = Str8ToStr16(number); in HWTEST_F() local
418 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM1_SLOTID, enabled); in HWTEST_F()
424 int32_t result = CallManagerGtest::clientPtr_->IsEmergencyPhoneNumber(phoneNumber, SIM2_SLOTID, enabled); in HWTEST_F()
442 std::u16string phoneNumber in HWTEST_F() local
461 std::u16string phoneNumber = Str8ToStr16(number); HWTEST_F() local
480 std::u16string phoneNumber = Str8ToStr16(number); HWTEST_F() local
499 std::u16string phoneNumber = Str8ToStr16(number); HWTEST_F() local
613 std::string phoneNumber = "10086"; HWTEST_F() local
683 std::string phoneNumber = "10086"; HWTEST_F() local
[all...]
H A Dcall_manager8_gtest.cpp182 std::string phoneNumber = "77777777777"; in HWTEST_F() local
188 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
215 std::string phoneNumber = "88888888888"; in HWTEST_F() local
221 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
252 std::string phoneNumber = "99999999999"; in HWTEST_F() local
254 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
281 std::string phoneNumber = "00000001111"; in HWTEST_F() local
287 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo_); in HWTEST_F()
314 std::string phoneNumber = "00000002222"; in HWTEST_F() local
320 int32_t ret = CallManagerGtest::clientPtr_->DialCall(Str8ToStr16(phoneNumber), dialInfo in HWTEST_F()
347 std::string phoneNumber = "00000003333"; HWTEST_F() local
381 std::string phoneNumber = "00000004444"; HWTEST_F() local
434 std::string phoneNumber = "00000000000"; HWTEST_F() local
[all...]
/base/telephony/call_manager/services/spam_call/include/
H A Dspam_call_connection.h27 SpamCallConnection(const std::string &phoneNumber, const int32_t &slotId, in SpamCallConnection() argument
30 phoneNumber_ = phoneNumber; in SpamCallConnection()
H A Dspam_call_adapter.h35 bool DetectSpamCall(const std::string &phoneNumber, const int32_t &slotId);
46 bool ConnectSpamCallAbility(const AAFwk::Want &want, const std::string &phoneNumber, const int32_t &slotId);
H A Di_spam_call.h30 virtual int32_t DetectSpamCall(const std::string &phoneNumber, const int32_t &slotId,
/base/telephony/call_manager/test/unittest/call_manager_zero_gtest/src/
H A Dzero_branch2_test.cpp72 const std::string phoneNumber = "12345678900"; in HWTEST_F() local
74 ASSERT_FALSE(spamCallAdapter_->DetectSpamCall(phoneNumber, slotId)); in HWTEST_F()
153 std::string phoneNumber = "123456789012"; in HWTEST_F() local
157 SpamCallConnection spamCallConnection(phoneNumber, slotId, spamCallAdapter); in HWTEST_F()
190 std::string phoneNumber = "123456789012"; in HWTEST_F() local
193 ASSERT_NE(spamCallProxy.DetectSpamCall(phoneNumber, slotId, spamCallAdapter), 0); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_datashare_helper.h39 bool isRepeatCall(const std::string &phoneNumber);
40 ErrCode QueryContact(Uri &uri, const std::string &phoneNumber, const std::string &policy);
/base/telephony/call_manager/services/spam_call/src/
H A Dspam_call_proxy.cpp33 int32_t SpamCallProxy::DetectSpamCall(const std::string &phoneNumber, const int32_t &slotId, in DetectSpamCall() argument
47 if (!dataParcel.WriteString16(Str8ToStr16(phoneNumber))) { in DetectSpamCall()
H A Dspam_call_adapter.cpp52 bool SpamCallAdapter::DetectSpamCall(const std::string &phoneNumber, const int32_t &slotId) in DetectSpamCall() argument
55 phoneNumber_ = phoneNumber; in DetectSpamCall()
60 bool connectResult = ConnectSpamCallAbility(want, phoneNumber, slotId); in DetectSpamCall()
68 bool SpamCallAdapter::ConnectSpamCallAbility(const AAFwk::Want &want, const std::string &phoneNumber, in ConnectSpamCallAbility() argument
73 connection_ = new (std::nothrow) SpamCallConnection(phoneNumber, slotId, in ConnectSpamCallAbility()
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp569 i18n::phonenumbers::PhoneNumber phoneNumber; in HWTEST_F() local
574 phoneNumberUtil->ParseAndKeepRawInput(input, country, &phoneNumber); in HWTEST_F()
576 std::make_unique<PhoneNumberMatch>(size, input, phoneNumber); in HWTEST_F()
1093 i18n::phonenumbers::PhoneNumber phoneNumber; in HWTEST_F() local
1096 std::unique_ptr<PhoneNumberMatch> possibleNumber = std::make_unique<PhoneNumberMatch>(start, rawStr, phoneNumber); in HWTEST_F()
1138 i18n::phonenumbers::PhoneNumber phoneNumber; in HWTEST_F() local
1142 phoneNumberUtil->ParseAndKeepRawInput(input, country, &phoneNumber); in HWTEST_F()
1146 std::make_unique<PhoneNumberMatch>(start, rawString, phoneNumber); in HWTEST_F()
1169 i18n::phonenumbers::PhoneNumber phoneNumber; in HWTEST_F() local
1173 std::make_unique<PhoneNumberMatch>(start, rawStr, phoneNumber); in HWTEST_F()
1192 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1221 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1253 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1293 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1324 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1354 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1384 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1511 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1547 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1567 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1626 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1668 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1723 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1765 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1882 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1904 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1938 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
1962 i18n::phonenumbers::PhoneNumber phoneNumber; HWTEST_F() local
[all...]
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/
H A Dphone_number_matched.cpp77 PhoneNumber phoneNumber = match->number(); in DealWithoutFixed() local
78 if (phoneNumberUtil->IsValidNumber(phoneNumber)) { in DealWithoutFixed()
153 PhoneNumber phoneNumber; in FindShortNumbers() local
155 phoneNumberUtil->ParseAndKeepRawInput(stringParse, country, &phoneNumber); in FindShortNumbers()
161 if (shortNumberInfo->IsPossibleShortNumberForRegion(phoneNumber, country)) { in FindShortNumbers()
179 PhoneNumber phoneNumber; in AddPhoneNumber() local
185 PhoneNumberUtil::ErrorType parseStatus = phoneNumberUtil->Parse(number, country, &phoneNumber); in AddPhoneNumber()
193 phoneNumberUtil->IsValidNumber(phoneNumber)) { in AddPhoneNumber()
194 PhoneNumberMatch* match = new PhoneNumberMatch(start, number, phoneNumber); in AddPhoneNumber()
/base/telephony/state_registry/frameworks/js/napi/include/
H A Dupdate_contexts.h32 std::u16string phoneNumber; member
36 phoneNumber = info.phoneNumber_; in operator =()
/base/telephony/call_manager/services/call/call_state_observer/src/
H A Dcall_data_base_helper.cpp220 std::string phoneNumber = ""; in QueryCallLog() local
223 operationResult = resultSet->GetString(columnIndex, phoneNumber); in QueryCallLog()
224 if (operationResult == TELEPHONY_SUCCESS && (!phoneNumber.empty())) { in QueryCallLog()
225 auto iter = phoneNumAndUnreadCountMap.find(phoneNumber); in QueryCallLog()
230 std::map<std::string, int32_t>::value_type(phoneNumber, CALL_LOG_DEFAULT_COUNT)); in QueryCallLog()
429 std::string phoneNumber) in GetCallerIndex()
443 int resultId = getCallerIndex(resultSet, phoneNumber); in GetCallerIndex()
428 GetCallerIndex(std::shared_ptr<DataShare::DataShareResultSet> resultSet, std::string phoneNumber) GetCallerIndex() argument
/base/telephony/core_service/interfaces/innerkits/ims/include/
H A Dims_core_service_proxy.h33 int32_t GetPhoneNumberFromIMPU(int32_t slotId, std::string &phoneNumber) override;

Completed in 15 milliseconds

12345