Home
last modified time | relevance | path

Searched refs:CountryCodeSource (Results 1 – 5 of 5) 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;
1425 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1432 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1437 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1444 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1451 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1458 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN, in testMaybeStripInternationalPrefix()
1468 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1475 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1494 CountryCodeSource.FROM_NUMBER_WITH_IDD, number.getCountryCodeSource()); in testMaybeExtractCountryCode()
[all …]
/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()
130 private CountryCodeSource countryCodeSource_;
132 public CountryCodeSource getCountryCodeSource() { return countryCodeSource_; } in getCountryCodeSource()
133 public PhoneNumber setCountryCodeSource(CountryCodeSource value) { in setCountryCodeSource()
143 countryCodeSource_ = CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN; in clearCountryCodeSource()
DPhoneNumberUtil.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
2389 CountryCodeSource countryCodeSource =
2394 if (countryCodeSource != CountryCodeSource.FROM_DEFAULT_COUNTRY) {
2436 phoneNumber.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN);
2484 CountryCodeSource maybeStripInternationalPrefixAndNormalize(
2488 return CountryCodeSource.FROM_DEFAULT_COUNTRY;
2496 return CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN;
2502 ? CountryCodeSource.FROM_NUMBER_WITH_IDD
2503 : CountryCodeSource.FROM_DEFAULT_COUNTRY;
DPhoneNumberMatcher.java24 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource;
608 if (number.getCountryCodeSource() != CountryCodeSource.FROM_DEFAULT_COUNTRY) { in isNationalPrefixPresentIfRequired()