Searched refs:phoneMetadata (Results 1 – 9 of 9) sorted by relevance
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | shortnumberinfo.js | 130 var phoneMetadata = this.getMetadataForRegion_(regionDialingFrom); 131 if (!phoneMetadata) { 135 return phoneMetadata.getGeneralDesc().possibleLengthArray().includes( 156 var phoneMetadata = this.getMetadataForRegion_(region); 157 if (!phoneMetadata) { 160 var possibleLengths = phoneMetadata.getGeneralDesc().possibleLengthArray(); 184 var phoneMetadata = this.getMetadataForRegion_(regionDialingFrom); 185 if (!phoneMetadata) { 189 var generalDesc = phoneMetadata.getGeneralDesc(); 193 var shortNumberDesc = phoneMetadata.getShortCode(); [all …]
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | ShortNumberInfo.java | 145 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionDialingFrom); in isPossibleShortNumberForRegion() local 146 if (phoneMetadata == null) { in isPossibleShortNumberForRegion() 150 return phoneMetadata.getGeneralDesc().getPossibleLengthList().contains(numberLength); in isPossibleShortNumberForRegion() 166 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(region); in isPossibleShortNumber() local 167 if (phoneMetadata == null) { in isPossibleShortNumber() 170 if (phoneMetadata.getGeneralDesc().getPossibleLengthList().contains(shortNumberLength)) { in isPossibleShortNumber() 190 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionDialingFrom); in isValidShortNumberForRegion() local 191 if (phoneMetadata == null) { in isValidShortNumberForRegion() 195 PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); in isValidShortNumberForRegion() 199 PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); in isValidShortNumberForRegion() [all …]
|
D | PhoneNumberUtil.java | 2294 PhoneMetadata phoneMetadata = metadataSource.getMetadataForRegion(regionCode); 2295 ensureMetadataIsNonNull(phoneMetadata, "Missing metadata for region code " + regionCode); 2296 return phoneMetadata; 2310 PhoneMetadata phoneMetadata = metadataSource.getMetadataForNonGeographicalRegion( 2312 ensureMetadataIsNonNull(phoneMetadata, 2314 return phoneMetadata; 2317 private static void ensureMetadataIsNonNull(PhoneMetadata phoneMetadata, String message) { 2318 if (phoneMetadata == null) {
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/source/ |
D | MapBackedMetadataContainer.java | 33 public String getKeyOf(PhoneMetadata phoneMetadata) { in byRegionCode() 34 return phoneMetadata.getId(); in byRegionCode() 43 public Integer getKeyOf(PhoneMetadata phoneMetadata) { 44 return phoneMetadata.getCountryCode(); 67 public void accept(PhoneMetadata phoneMetadata) { 68 metadataMap.put(keyProvider.getKeyOf(phoneMetadata), phoneMetadata); 72 T getKeyOf(PhoneMetadata phoneMetadata);
|
D | CompositeMetadataContainer.java | 61 public void accept(PhoneMetadata phoneMetadata) { in accept() argument 62 String regionCode = metadataByRegionCode.getKeyProvider().getKeyOf(phoneMetadata); in accept() 64 metadataByRegionCode.accept(phoneMetadata); in accept() 66 metadataByCountryCode.accept(phoneMetadata); in accept()
|
D | BlockingMetadataBootstrappingGuard.java | 63 Collection<PhoneMetadata> phoneMetadata = read(phoneMetadataFile); in bootstrapMetadata() local 64 for (PhoneMetadata metadata : phoneMetadata) { in bootstrapMetadata()
|
D | MetadataContainer.java | 31 void accept(PhoneMetadata phoneMetadata); in accept() argument
|
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/ |
D | BuildMetadataFromXmlTest.java | 122 PhoneMetadata.Builder phoneMetadata = in testLoadTerritoryTagMetadata() local 124 assertEquals(33, phoneMetadata.getCountryCode()); in testLoadTerritoryTagMetadata() 125 assertEquals("2", phoneMetadata.getLeadingDigits()); in testLoadTerritoryTagMetadata() 126 assertEquals("00", phoneMetadata.getInternationalPrefix()); in testLoadTerritoryTagMetadata() 127 assertEquals("00~11", phoneMetadata.getPreferredInternationalPrefix()); in testLoadTerritoryTagMetadata() 128 assertEquals("0", phoneMetadata.getNationalPrefixForParsing()); in testLoadTerritoryTagMetadata() 129 assertEquals("9$1", phoneMetadata.getNationalPrefixTransformRule()); in testLoadTerritoryTagMetadata() 130 assertEquals("0", phoneMetadata.getNationalPrefix()); in testLoadTerritoryTagMetadata() 131 assertEquals(" x", phoneMetadata.getPreferredExtnPrefix()); in testLoadTerritoryTagMetadata() 132 assertTrue(phoneMetadata.getMainCountryForCode()); in testLoadTerritoryTagMetadata() [all …]
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/init/ |
D | MetadataParser.java | 76 List<PhoneMetadata> phoneMetadata = phoneMetadataCollection.getMetadataList(); in parse() local 78 if (phoneMetadata.isEmpty()) { in parse()
|