Home
last modified time | relevance | path

Searched refs:phone_number (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium_org/components/autofill/core/browser/
Dphone_number_unittest.cc23 PhoneNumber phone_number(&profile); in TEST() local
24 phone_number.SetInfo(AutofillType(PHONE_HOME_WHOLE_NUMBER), phone, "US"); in TEST()
27 phone_number.GetMatchingTypes(base::string16(), "US", &matching_types); in TEST()
31 phone_number.GetMatchingTypes(ASCIIToUTF16("1"), "US", &matching_types); in TEST()
36 phone_number.GetMatchingTypes(ASCIIToUTF16("16"), "US", &matching_types); in TEST()
38 phone_number.GetMatchingTypes(ASCIIToUTF16("165"), "US", &matching_types); in TEST()
40 phone_number.GetMatchingTypes(ASCIIToUTF16("1650"), "US", &matching_types); in TEST()
42 phone_number.GetMatchingTypes(ASCIIToUTF16("16502"), "US", &matching_types); in TEST()
44 phone_number.GetMatchingTypes(ASCIIToUTF16("165023"), "US", &matching_types); in TEST()
46 phone_number.GetMatchingTypes(ASCIIToUTF16("1650234"), "US", &matching_types); in TEST()
[all …]
Dphone_number_i18n.cc32 bool IsValidPhoneNumber(const PhoneNumber& phone_number) { in IsValidPhoneNumber() argument
34 if (!phone_util->IsPossibleNumber(phone_number)) in IsValidPhoneNumber()
41 if (!phone_util->IsValidNumber(phone_number)) in IsValidPhoneNumber()
167 PhoneNumber phone_number; in NormalizePhoneNumber() local
169 &unused_number, &unused_region, &phone_number)) { in NormalizePhoneNumber()
174 FormatValidatedNumber(phone_number, country_code, NULL, &normalized_number); in NormalizePhoneNumber()
188 PhoneNumber phone_number; in ConstructPhoneNumber() local
191 &unused_region, &phone_number)) { in ConstructPhoneNumber()
195 FormatValidatedNumber(phone_number, country_code, whole_number, NULL); in ConstructPhoneNumber()
DBUILD.gn104 "phone_number.cc",
105 "phone_number.h",
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dasyoutypeformatter.cc353 string* phone_number) { in InputDigitWithOptionToRememberPosition() argument
354 DCHECK(phone_number); in InputDigitWithOptionToRememberPosition()
380 phone_number->clear(); in InputDigitWithOptionToRememberPosition()
381 accrued_input_.toUTF8String(*phone_number); in InputDigitWithOptionToRememberPosition()
384 AttemptToChoosePatternWithPrefixExtracted(phone_number); in InputDigitWithOptionToRememberPosition()
393 AttemptToChoosePatternWithPrefixExtracted(phone_number); in InputDigitWithOptionToRememberPosition()
396 phone_number->clear(); in InputDigitWithOptionToRememberPosition()
397 accrued_input_.toUTF8String(*phone_number); in InputDigitWithOptionToRememberPosition()
408 phone_number->clear(); in InputDigitWithOptionToRememberPosition()
409 accrued_input_.toUTF8String(*phone_number); in InputDigitWithOptionToRememberPosition()
[all …]
Dphonenumbermatcher.cc119 const PhoneNumber& phone_number, in AllNumberGroupsRemainGrouped() argument
142 util.GetRegionCodeForCountryCode(phone_number.country_code(), &region); in AllNumberGroupsRemainGrouped()
155 phone_number, &national_significant_number); in AllNumberGroupsRemainGrouped()
166 .find(phone_number.extension()) != string::npos; in AllNumberGroupsRemainGrouped()
658 const PhoneNumber& phone_number, in CheckNumberGroupingIsValid() argument
668 GetNationalNumberGroups(phone_number, NULL, // Use default formatting pattern in CheckNumberGroupingIsValid()
670 if (checker->Run(phone_util_, phone_number, normalized_candidate, in CheckNumberGroupingIsValid()
678 phone_number.country_code()); in CheckNumberGroupingIsValid()
684 GetNationalNumberGroups(phone_number, &*it, &formatted_number_groups); in CheckNumberGroupingIsValid()
685 if (checker->Run(phone_util_, phone_number, normalized_candidate, in CheckNumberGroupingIsValid()
[all …]
Dasyoutypeformatter.h114 string* phone_number);
133 string* phone_number) const;
Dphonenumbermatcher.h133 const PhoneNumber& phone_number,
145 const PhoneNumber& phone_number,
Dphonenumberutil.h670 bool IsNumberGeographical(const PhoneNumber& phone_number) const;
774 PhoneNumber* phone_number) const;
784 PhoneNumber* phone_number) const;
Dphonenumberutil.cc1846 PhoneNumber* phone_number) const { in ParseHelper()
1847 DCHECK(phone_number); in ParseHelper()
1940 phone_number->MergeFrom(temp_number); in ParseHelper()
2115 const PhoneNumber& phone_number) const { in IsNumberGeographical()
2116 PhoneNumberType number_type = GetNumberType(phone_number); in IsNumberGeographical()
2520 PhoneNumber* phone_number) const { in MaybeExtractCountryCode()
2522 DCHECK(phone_number); in MaybeExtractCountryCode()
2532 phone_number->set_country_code_source(country_code_source); in MaybeExtractCountryCode()
2542 phone_number->set_country_code(potential_country_code); in MaybeExtractCountryCode()
2581 phone_number->set_country_code_source( in MaybeExtractCountryCode()
[all …]
/external/protobuf/examples/
Dlist_people.py16 for phone_number in person.phone:
17 if phone_number.type == addressbook_pb2.Person.MOBILE:
19 elif phone_number.type == addressbook_pb2.Person.HOME:
21 elif phone_number.type == addressbook_pb2.Person.WORK:
23 print phone_number.number
Dadd_person.py22 phone_number = person.phone.add()
23 phone_number.number = number
27 phone_number.type = addressbook_pb2.Person.MOBILE
29 phone_number.type = addressbook_pb2.Person.HOME
31 phone_number.type = addressbook_pb2.Person.WORK
Dadd_person.cc35 tutorial::Person::PhoneNumber* phone_number = person->add_phone(); in PromptForAddress() local
36 phone_number->set_number(number); in PromptForAddress()
42 phone_number->set_type(tutorial::Person::MOBILE); in PromptForAddress()
44 phone_number->set_type(tutorial::Person::HOME); in PromptForAddress()
46 phone_number->set_type(tutorial::Person::WORK); in PromptForAddress()
Dlist_people.cc21 const tutorial::Person::PhoneNumber& phone_number = person.phone(j); in ListPeople() local
23 switch (phone_number.type()) { in ListPeople()
34 cout << phone_number.number() << endl; in ListPeople()
/external/chromium_org/components/autofill/content/browser/wallet/
Dwallet_address.cc56 base::string16 phone_number; in CreateAddressInternal() local
57 if (!dictionary.GetString("phone_number", &phone_number)) in CreateAddressInternal()
104 phone_number, in CreateAddressInternal()
149 const base::string16& phone_number, in Address() argument
160 phone_number_(phone_number), in Address()
161 phone_object_(phone_number, country_name_code), in Address()
242 base::string16 phone_number; in CreateDisplayAddress() local
243 if (!dictionary.GetString("phone_number", &phone_number)) in CreateDisplayAddress()
263 phone_number, in CreateDisplayAddress()
326 return i18n::PhoneObject(phone_number(), country_name_code()). in DisplayPhoneNumber()
[all …]
Dwallet_address.h54 const base::string16& phone_number,
116 const base::string16& phone_number() const { return phone_number_; } in phone_number() function
149 void SetPhoneNumber(const base::string16& phone_number);
Dwallet_client.cc388 instrument->address()->phone_number()); in SaveToWallet()
405 instrument->address()->phone_number()); in SaveToWallet()
/external/chromium_org/chrome/browser/ui/autofill/
Ddata_model_wrapper.cc138 const base::string16& phone_number = values[GetVariantForType(type)]; in GetInfoForDisplay() local
142 if (base::ContainsOnlyChars(phone_number, in GetInfoForDisplay()
146 i18n::PhoneObject phone(phone_number, region); in GetInfoForDisplay()
153 return phone_number; in GetInfoForDisplay()
/external/chromium_org/chrome/browser/ui/android/autofill/
Dautofill_dialog_result.cc64 const base::string16 phone_number = in ParseJavaWalletAddress() local
81 phone_number, in ParseJavaWalletAddress()
/external/chromium_org/components/
Dautofill.gypi173 'autofill/core/browser/phone_number.cc',
174 'autofill/core/browser/phone_number.h',
Dautofill_core_browser.target.linux-arm64.mk66 components/autofill/core/browser/phone_number.cc \
Dautofill_core_browser.target.darwin-arm64.mk66 components/autofill/core/browser/phone_number.cc \
Dautofill_core_browser.target.darwin-x86.mk66 components/autofill/core/browser/phone_number.cc \
Dautofill_core_browser.target.linux-x86.mk66 components/autofill/core/browser/phone_number.cc \
Dautofill_core_browser.target.linux-x86_64.mk66 components/autofill/core/browser/phone_number.cc \
Dautofill_core_browser.target.linux-mips64.mk66 components/autofill/core/browser/phone_number.cc \

12