Home
last modified time | relevance | path

Searched refs:CountryCodeSource (Results 1 – 4 of 4) 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;
1337 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1344 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1349 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1356 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_IDD, in testMaybeStripInternationalPrefix()
1363 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1370 assertEquals(CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN, in testMaybeStripInternationalPrefix()
1380 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1387 assertEquals(CountryCodeSource.FROM_DEFAULT_COUNTRY, in testMaybeStripInternationalPrefix()
1406 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;
628 if (number.getCountryCodeSource() != CountryCodeSource.FROM_DEFAULT_COUNTRY) { in isNationalPrefixPresentIfRequired()
2407 CountryCodeSource countryCodeSource = in maybeExtractCountryCode()
2412 if (countryCodeSource != CountryCodeSource.FROM_DEFAULT_COUNTRY) { in maybeExtractCountryCode()
2454 phoneNumber.setCountryCodeSource(CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN); in maybeExtractCountryCode()
2502 CountryCodeSource maybeStripInternationalPrefixAndNormalize( in maybeStripInternationalPrefixAndNormalize()
2506 return CountryCodeSource.FROM_DEFAULT_COUNTRY; in maybeStripInternationalPrefixAndNormalize()
2514 return CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN; in maybeStripInternationalPrefixAndNormalize()
2520 ? CountryCodeSource.FROM_NUMBER_WITH_IDD in maybeStripInternationalPrefixAndNormalize()
2521 : CountryCodeSource.FROM_DEFAULT_COUNTRY; in maybeStripInternationalPrefixAndNormalize()