Home
last modified time | relevance | path

Searched refs:PhoneNumber (Results 1 – 25 of 30) sorted by relevance

12

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhonenumberTest.java19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
32 PhoneNumber numberA = new PhoneNumber(); in testEqualSimpleNumber()
35 PhoneNumber numberB = new PhoneNumber(); in testEqualSimpleNumber()
43 PhoneNumber numberA = new PhoneNumber(); in testEqualWithItalianLeadingZeroSetToDefault()
46 PhoneNumber numberB = new PhoneNumber(); in testEqualWithItalianLeadingZeroSetToDefault()
55 PhoneNumber numberA = new PhoneNumber(); in testEqualWithCountryCodeSourceSet()
58 PhoneNumber numberB = new PhoneNumber(); in testEqualWithCountryCodeSourceSet()
66 PhoneNumber numberA = new PhoneNumber(); in testNonEqualWithItalianLeadingZeroSetToTrue()
69 PhoneNumber numberB = new PhoneNumber(); in testNonEqualWithItalianLeadingZeroSetToTrue()
[all …]
DPhoneNumberUtilTest.java23 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
42 private static final PhoneNumber ALPHA_NUMERIC_NUMBER =
43 new PhoneNumber().setCountryCode(1).setNationalNumber(80074935247L);
44 private static final PhoneNumber AE_UAN =
45 new PhoneNumber().setCountryCode(971).setNationalNumber(600123456L);
46 private static final PhoneNumber AR_MOBILE =
47 new PhoneNumber().setCountryCode(54).setNationalNumber(91187654321L);
48 private static final PhoneNumber AR_NUMBER =
49 new PhoneNumber().setCountryCode(54).setNationalNumber(1187654321);
[all …]
DPhoneNumberMatchTest.java19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
35 PhoneNumber number = new PhoneNumber(); in testValueTypeSemantics()
53 new PhoneNumberMatch(-110, "1 800 234 45 67", new PhoneNumber()); in testIllegalArguments()
63 new PhoneNumberMatch(10, null, new PhoneNumber()); in testIllegalArguments()
DExampleNumbersTest.java21 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
41 private List<PhoneNumber> invalidCases = new ArrayList<PhoneNumber>();
42 private List<PhoneNumber> wrongTypeCases = new ArrayList<PhoneNumber>();
69 PhoneNumber exampleNumber = in checkNumbersValidAndCorrectType()
160 PhoneNumber exampleNumber = null; in testCanBeInternationallyDialled()
199 PhoneNumber exampleNumber = in testGlobalNetworkNumbers()
211 PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumber(regionCode); in testEveryRegionHasAnExampleNumber()
DPhoneNumberMatcherTest.java20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
201 PhoneNumber expectedResult = phoneUtil.parse(number, RegionCode.US); in testMatchWithSurroundingZipcodes()
329 PhoneNumber number1 = new PhoneNumber(); in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation()
334 PhoneNumber number2 = new PhoneNumber(); in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation()
638 PhoneNumber number1 = new PhoneNumber(); in testSequences()
643 PhoneNumber number2 = new PhoneNumber(); in testSequences()
668 List<PhoneNumber> expected = new ArrayList<PhoneNumber>(100); in testMaxMatches()
669 PhoneNumber number = phoneUtil.parse("+14156667777", null); in testMaxMatches()
676 List<PhoneNumber> actual = new ArrayList<PhoneNumber>(100); in testMaxMatches()
706 List<PhoneNumber> expected = new ArrayList<PhoneNumber>(100); in testMaxMatchesMixed()
[all …]
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoderTest.java19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
36 private static final PhoneNumber KO_NUMBER1 =
37 new PhoneNumber().setCountryCode(82).setNationalNumber(22123456L);
38 private static final PhoneNumber KO_NUMBER2 =
39 new PhoneNumber().setCountryCode(82).setNationalNumber(322123456L);
40 private static final PhoneNumber KO_NUMBER3 =
41 new PhoneNumber().setCountryCode(82).setNationalNumber(6421234567L);
42 private static final PhoneNumber KO_INVALID_NUMBER =
43 new PhoneNumber().setCountryCode(82).setNationalNumber(1234L);
44 private static final PhoneNumber US_NUMBER1 =
[all …]
DAreaCodeMapTest.java19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
38 private PhoneNumber number = new PhoneNumber();
/external/chromium/chrome/browser/autofill/
Dphone_number.cc35 PhoneNumber::PhoneNumber() {} in PhoneNumber() function in PhoneNumber
37 PhoneNumber::PhoneNumber(const PhoneNumber& number) : FormGroup() { in PhoneNumber() function in PhoneNumber
41 PhoneNumber::~PhoneNumber() {} in ~PhoneNumber()
43 PhoneNumber& PhoneNumber::operator=(const PhoneNumber& number) { in operator =()
53 void PhoneNumber::GetPossibleFieldTypes(const string16& text, in GetPossibleFieldTypes()
76 void PhoneNumber::GetAvailableFieldTypes(FieldTypeSet* available_types) const { in GetAvailableFieldTypes()
95 string16 PhoneNumber::GetInfo(AutofillFieldType type) const { in GetInfo()
114 void PhoneNumber::SetInfo(AutofillFieldType type, const string16& value) { in SetInfo()
135 bool PhoneNumber::ParsePhoneNumber(const string16& value, in ParsePhoneNumber()
175 string16 PhoneNumber::WholeNumber() const { in WholeNumber()
[all …]
Dphone_number_unittest.cc18 PhoneNumber::ParsePhoneNumber(phone0, &number, &city_code, &country_code); in TEST()
25 PhoneNumber::ParsePhoneNumber(phone1, &number, &city_code, &country_code); in TEST()
32 PhoneNumber::ParsePhoneNumber(phone2, &number, &city_code, &country_code); in TEST()
40 PhoneNumber::ParsePhoneNumber(phone_separator2, in TEST()
49 PhoneNumber::ParsePhoneNumber(phone3, &number, &city_code, &country_code); in TEST()
58 PhoneNumber::ParsePhoneNumber(phone3, &number, &city_code, &country_code); in TEST()
66 PhoneNumber::ParsePhoneNumber(phone4, &number, &city_code, &country_code); in TEST()
74 PhoneNumber::ParsePhoneNumber(phone_separator4, in TEST()
83 PhoneNumber::ParsePhoneNumber(phone5, &number, &city_code, &country_code); in TEST()
91 PhoneNumber::ParsePhoneNumber(phone6, &number, &city_code, &country_code); in TEST()
Dphone_number.h17 class PhoneNumber : public FormGroup {
19 PhoneNumber();
20 explicit PhoneNumber(const PhoneNumber& number);
21 virtual ~PhoneNumber();
23 PhoneNumber& operator=(const PhoneNumber& number);
Dhome_phone_number.cc10 : PhoneNumber(phone) { in HomePhoneNumber()
16 PhoneNumber::operator=(phone); in operator =()
Dfax_number.cc9 FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) {} in FaxNumber()
14 PhoneNumber::operator=(fax); in operator =()
Dfax_number.h12 class FaxNumber : public PhoneNumber {
Dhome_phone_number.h13 class HomePhoneNumber : public PhoneNumber {
Dautofill_manager.cc1014 static_cast<size_t>(PhoneNumber::kPrefixLength +
1015 PhoneNumber::kSuffixLength));
1017 field->max_length == PhoneNumber::kPrefixLength) {
1018 number = number.substr(PhoneNumber::kPrefixOffset,
1019 PhoneNumber::kPrefixLength);
1022 field->max_length == PhoneNumber::kSuffixLength) {
1023 number = number.substr(PhoneNumber::kSuffixOffset,
1024 PhoneNumber::kSuffixLength);
Dpersonal_data_manager_mac.mm205 PhoneNumber::ParsePhoneNumber(
214 PhoneNumber::ParsePhoneNumber(homeFax,
223 PhoneNumber::ParsePhoneNumber(workPhone,
232 PhoneNumber::ParsePhoneNumber(workFax,
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhonenumber.java29 public static class PhoneNumber implements Serializable { class in Phonenumber
38 public PhoneNumber() { in PhoneNumber() method in Phonenumber.PhoneNumber
47 public PhoneNumber setCountryCode(int value) { in setCountryCode()
52 public PhoneNumber clearCountryCode() { in clearCountryCode()
63 public PhoneNumber setNationalNumber(long value) { in setNationalNumber()
68 public PhoneNumber clearNationalNumber() { in clearNationalNumber()
79 public PhoneNumber setExtension(String value) { in setExtension()
87 public PhoneNumber clearExtension() { in clearExtension()
98 public PhoneNumber setItalianLeadingZero(boolean value) { in setItalianLeadingZero()
103 public PhoneNumber clearItalianLeadingZero() { in clearItalianLeadingZero()
[all …]
DPhoneNumberUtil.java23 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
463 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
475 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
496 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
505 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
527 boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util) { in verify()
536 public boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in verify()
547 abstract boolean verify(PhoneNumber number, String candidate, PhoneNumberUtil util);
791 public int getLengthOfGeographicalAreaCode(PhoneNumber number) {
[all …]
DPhoneNumberMatch.java19 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
62 private final PhoneNumber number;
71 PhoneNumberMatch(int start, String rawString, PhoneNumber number) { in PhoneNumberMatch()
84 public PhoneNumber number() { in number()
DPhoneNumberMatcher.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
25 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
418 PhoneNumber number = phoneUtil.parseAndKeepRawInput(candidate, preferredRegion); in parseAndVerify()
450 boolean checkGroups(PhoneNumberUtil util, PhoneNumber number, in checkGroups()
455 PhoneNumber number, in allNumberGroupsRemainGrouped()
489 PhoneNumber number, in allNumberGroupsAreExactlyPresent()
525 private static String[] getNationalNumberGroups(PhoneNumberUtil util, PhoneNumber number, in getNationalNumberGroups()
548 PhoneNumber number, String candidate, PhoneNumberUtil util, NumberGroupingChecker checker) { in checkNumberGroupingIsValid()
577 PhoneNumber number, String candidate, PhoneNumberUtil util) { in containsOnlyValidXChars()
605 static boolean isNationalPrefixPresentIfRequired(PhoneNumber number, PhoneNumberUtil util) { in isNationalPrefixPresentIfRequired()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoder.java21 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
132 private String getCountryNameForNumber(PhoneNumber number, Locale language) { in getCountryNameForNumber()
160 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForValidNumber()
192 public String getDescriptionForValidNumber(PhoneNumber number, Locale languageCode, in getDescriptionForValidNumber()
216 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode) { in getDescriptionForNumber()
238 public String getDescriptionForNumber(PhoneNumber number, Locale languageCode, in getDescriptionForNumber()
272 PhoneNumber number, String lang, String script, String region) { in getAreaDescriptionForNumber()
DAreaCodeMap.java20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber;
145 String lookup(PhoneNumber number) { in lookup()
/external/protobuf/examples/
Daddressbook.proto19 message PhoneNumber { message
24 repeated PhoneNumber phone = 4;
DAddPerson.java38 Person.PhoneNumber.Builder phoneNumber = in PromptForAddress()
39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress()
DListPeople.java19 for (Person.PhoneNumber phoneNumber : person.getPhoneList()) { in Print()

12