Home
last modified time | relevance | path

Searched refs:CountryCodeSource (Results 1 – 9 of 9) sorted by relevance

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DPhonenumberTest.java20 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
57 setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); in testEqualWithCountryCodeSourceSet()
60 setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); in testEqualWithCountryCodeSourceSet()
79 setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); in testNonEqualWithDifferingRawInput()
85 setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); in testNonEqualWithDifferingRawInput()
DPhoneNumberUtilTest.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
1506 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1513 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1518 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1525 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1532 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1539 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN, in testMaybeStripInternationalPrefix()
1549 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1556 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1575 CountryCodeSource.FROM_NUMBER_WITH_IDD, number.getCountryCodeSource()); in testMaybeExtractCountryCode()
[all …]
DPhoneNumberMatcherTest.java21 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
40 number.setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY); in testContainsMoreThanOneSlashInNationalNumber()
48 number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN); in testContainsMoreThanOneSlashInNationalNumber()
55 number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN); in testContainsMoreThanOneSlashInNationalNumber()
61 number.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN); in testContainsMoreThanOneSlashInNationalNumber()
75 number.setCountryCodeSource(CountryCodeSource.FROM_DEFAULT_COUNTRY); in testContainsMoreThanOneSlashInNationalNumber()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhonenumber.java31 public enum CountryCodeSource { enum in Phonenumber.PhoneNumber
39 countryCodeSource_ = CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN; in PhoneNumber()
146 private CountryCodeSource countryCodeSource_;
148 public CountryCodeSource getCountryCodeSource() { return countryCodeSource_; } in getCountryCodeSource()
149 public PhoneNumber setCountryCodeSource(CountryCodeSource value) { in setCountryCodeSource()
159 countryCodeSource_ = CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN; in clearCountryCodeSource()
DPhoneNumberMatcher.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
477 if (number.getCountryCodeSource() != CountryCodeSource.FROM_DEFAULT_COUNTRY) { in allNumberGroupsRemainGrouped()
614 (number.getCountryCodeSource() == CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN || in containsMoreThanOneSlashInNationalNumber()
615 number.getCountryCodeSource() == CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN); in containsMoreThanOneSlashInNationalNumber()
657 if (number.getCountryCodeSource() != CountryCodeSource.FROM_DEFAULT_COUNTRY) { in isNationalPrefixPresentIfRequired()
DPhoneNumberUtil.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
2521 CountryCodeSource countryCodeSource =
2526 if (countryCodeSource != CountryCodeSource.FROM_DEFAULT_COUNTRY) {
2568 phoneNumber.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN);
2616 CountryCodeSource maybeStripInternationalPrefixAndNormalize(
2620 return CountryCodeSource.FROM_DEFAULT_COUNTRY;
2628 return CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN;
2634 ? CountryCodeSource.FROM_NUMBER_WITH_IDD
2635 : CountryCodeSource.FROM_DEFAULT_COUNTRY;
/external/chromium_org/third_party/libphonenumber/src/resources/
Dphonenumber.proto72 enum CountryCodeSource { enum
93 optional CountryCodeSource country_code_source = 6;
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumberutil.h753 PhoneNumber::CountryCodeSource MaybeStripInternationalPrefixAndNormalize(
Dphonenumberutil.cc2322 PhoneNumber::CountryCodeSource
2528 PhoneNumber::CountryCodeSource country_code_source = in MaybeExtractCountryCode()