Home
last modified time | relevance | path

Searched refs:territoryElement (Results 1 – 2 of 2) sorted by relevance

/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DBuildMetadataFromXmlTest.java107 Element territoryElement = parseXmlString(xmlInput); in testGetNationalPrefix() local
108 assertEquals("00", BuildMetadataFromXml.getNationalPrefix(territoryElement)); in testGetNationalPrefix()
121 Element territoryElement = parseXmlString(xmlInput); in testLoadTerritoryTagMetadata() local
123 BuildMetadataFromXml.loadTerritoryTagMetadata("33", territoryElement, "0"); in testLoadTerritoryTagMetadata()
139 Element territoryElement = parseXmlString(xmlInput); in testLoadTerritoryTagMetadataSetsBooleanFieldsToFalseByDefault() local
141 BuildMetadataFromXml.loadTerritoryTagMetadata("33", territoryElement, ""); in testLoadTerritoryTagMetadataSetsBooleanFieldsToFalseByDefault()
149 Element territoryElement = parseXmlString(xmlInput); in testLoadTerritoryTagMetadataSetsNationalPrefixForParsingByDefault() local
151 BuildMetadataFromXml.loadTerritoryTagMetadata("33", territoryElement, "00"); in testLoadTerritoryTagMetadataSetsNationalPrefixForParsingByDefault()
160 Element territoryElement = parseXmlString(xmlInput); in testLoadTerritoryTagMetadataWithRequiredAttributesOnly() local
162 BuildMetadataFromXml.loadTerritoryTagMetadata("33", territoryElement, ""); in testLoadTerritoryTagMetadataWithRequiredAttributesOnly()
[all …]
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java122 Element territoryElement = (Element) territory.item(i); in buildPhoneMetadataCollection() local
126 if (territoryElement.hasAttribute("id")) { in buildPhoneMetadataCollection()
127 regionCode = territoryElement.getAttribute("id"); in buildPhoneMetadataCollection()
129 PhoneMetadata.Builder metadata = loadCountryMetadata(regionCode, territoryElement, in buildPhoneMetadataCollection()