Home
last modified time | relevance | path

Searched refs:callingCode (Results 1 – 6 of 6) sorted by relevance

/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/
DMetadataKey.java31 Comparator.comparing(MetadataKey::region).thenComparing(MetadataKey::callingCode);
38 public static MetadataKey create(PhoneRegion region, DigitSequence callingCode) { in create() argument
42 Preconditions.checkArgument(!callingCode.isEmpty()); in create()
43 return new AutoValue_MetadataKey(region, callingCode); in create()
53 public abstract DigitSequence callingCode(); in callingCode() method in MetadataKey
63 return String.format("region=%s, calling code=+%s", region(), callingCode()); in toString()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java168 for (Integer callingCode : phoneNumberUtil.getSupportedGlobalNetworkCallingCodes()) { in testGlobalNetworkNumbers()
170 phoneNumberUtil.getExampleNumberForNonGeoEntity(callingCode); in testGlobalNetworkNumbers()
171 assertNotNull("No example phone number for calling code " + callingCode, exampleNumber); in testGlobalNetworkNumbers()
DPhoneNumberUtilTest.java141 for (int callingCode : globalNetworkCallingCodes) { in testGetSupportedGlobalNetworkCallingCodes()
142 assertTrue(callingCode > 0); in testGetSupportedGlobalNetworkCallingCodes()
143 assertEquals(RegionCode.UN001, phoneUtil.getRegionCodeForCountryCode(callingCode)); in testGetSupportedGlobalNetworkCallingCodes()
150 for (int callingCode : callingCodes) { in testGetSupportedCallingCodes()
151 assertTrue(callingCode > 0); in testGetSupportedCallingCodes()
152 assertTrue(phoneUtil.getRegionCodeForCountryCode(callingCode) != RegionCode.ZZ); in testGetSupportedCallingCodes()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/testing/
DTestNumberingScheme.java82 private final DigitSequence callingCode; field in TestNumberingScheme
113 this.callingCode = checkNotNull(cc); in TestNumberingScheme()
152 "[%s] cannot set IDD for non-geographic calling code", callingCode); in setInternationalPrefix()
259 callingCode, in build()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js1428 return callingCodesAsStrings.map(function(callingCode) { argument
1429 return parseInt(callingCode, 10);
1449 ...countryCodesAsStrings.map(function(callingCode) { argument
1450 return parseInt(callingCode, 10);
Dphonenumberutil_test.js470 phoneUtil.getSupportedCallingCodes().forEach(function(callingCode) { argument
471 assertTrue(callingCode > 0);
473 phoneUtil.getRegionCodeForCountryCode(callingCode) == RegionCode.ZZ);