Home
last modified time | relevance | path

Searched refs:PhoneMetadata (Results 1 – 25 of 51) sorted by relevance

123

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonemetadata.pb.js639 i18n.phonenumbers.PhoneMetadata = function() { class in i18n.phonenumbers
642 goog.inherits(i18n.phonenumbers.PhoneMetadata, goog.proto2.Message);
649 i18n.phonenumbers.PhoneMetadata.descriptor_ = null;
657 i18n.phonenumbers.PhoneMetadata.prototype.clone;
664 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc = function() {
673 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault = function() {
682 i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc = function(value) {
690 i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc = function() {
698 i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount = function() {
706 i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc = function() {
[all …]
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonemetadata.pb.h59 class PhoneMetadata; variable
72 template<> ::i18n::phonenumbers::PhoneMetadata* Arena::CreateMaybeMessage<::i18n::phonenumbers::Pho…
543 class PhoneMetadata PROTOBUF_FINAL :
546 inline PhoneMetadata() : PhoneMetadata(nullptr) {} in PhoneMetadata() function
547 virtual ~PhoneMetadata();
549 PhoneMetadata(const PhoneMetadata& from);
550 PhoneMetadata(PhoneMetadata&& from) noexcept in PhoneMetadata() function
551 : PhoneMetadata() { in PhoneMetadata()
555 inline PhoneMetadata& operator=(const PhoneMetadata& from) {
559 inline PhoneMetadata& operator=(PhoneMetadata&& from) noexcept {
[all …]
Dphonemetadata.pb.cc29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PhoneMetadata> _instance;
56 new (ptr) ::i18n::phonenumbers::PhoneMetadata(); in InitDefaultsscc_info_PhoneMetadata_phonemetadata_2eproto()
59 ::i18n::phonenumbers::PhoneMetadata::InitAsDefaultInstance(); in InitDefaultsscc_info_PhoneMetadata_phonemetadata_2eproto()
825 void PhoneMetadata::InitAsDefaultInstance() { in InitAsDefaultInstance()
861 class PhoneMetadata::_Internal {
863 using HasBits = decltype(std::declval<PhoneMetadata>()._has_bits_);
864 static const ::i18n::phonenumbers::PhoneNumberDesc& general_desc(const PhoneMetadata* msg);
868 static const ::i18n::phonenumbers::PhoneNumberDesc& fixed_line(const PhoneMetadata* msg);
872 static const ::i18n::phonenumbers::PhoneNumberDesc& mobile(const PhoneMetadata* msg);
876 static const ::i18n::phonenumbers::PhoneNumberDesc& toll_free(const PhoneMetadata* msg);
[all …]
Dphonenumberutil.h45 class PhoneMetadata; variable
758 const string& national_number, const PhoneMetadata& metadata) const;
812 scoped_ptr<std::map<string, PhoneMetadata> > region_to_metadata_map_;
818 scoped_ptr<std::map<int, PhoneMetadata> >
855 const i18n::phonenumbers::PhoneMetadata* GetMetadataForRegion(
858 const i18n::phonenumbers::PhoneMetadata* GetMetadataForNonGeographicalRegion(
861 const i18n::phonenumbers::PhoneMetadata* GetMetadataForRegionOrCallingCode(
898 const PhoneMetadata& metadata,
903 const PhoneMetadata& metadata,
910 const PhoneMetadata& metadata,
[all …]
Dshortnumberinfo.cc48 region_to_short_metadata_map_(new std::map<string, PhoneMetadata>()), in ShortNumberInfo()
68 const PhoneMetadata* ShortNumberInfo::GetMetadataForRegion( in GetMetadataForRegion()
111 const PhoneMetadata* phone_metadata = in IsPossibleShortNumberForRegion()
131 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in IsPossibleShortNumber()
150 const PhoneMetadata* phone_metadata = in IsValidShortNumberForRegion()
184 const PhoneMetadata* phone_metadata = in GetExpectedCostForRegion()
275 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code_it); in GetRegionCodeForShortNumberFromRegionList()
288 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in GetExampleShortNumber()
301 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in GetExampleShortNumberForCost()
350 const PhoneMetadata* metadata = GetMetadataForRegion(region_code); in MatchesEmergencyNumberHelper()
[all …]
Dphonenumberutil.cc137 const PhoneMetadata& metadata, in GetNumberDescByType()
383 const PhoneMetadata& metadata, in GetSupportedTypesForMetadata()
405 const string& number, const PhoneMetadata& metadata, in TestNumberLength()
484 const string& number, const PhoneMetadata& metadata) { in TestNumberLength()
832 region_to_metadata_map_(new std::map<string, PhoneMetadata>()), in PhoneNumberUtil()
834 new std::map<int, PhoneMetadata>) { in PhoneNumberUtil()
846 for (RepeatedPtrField<PhoneMetadata>::const_iterator it = in PhoneNumberUtil()
900 for (std::map<string, PhoneMetadata>::const_iterator it = in GetSupportedRegions()
910 for (std::map<int, PhoneMetadata>::const_iterator it = in GetSupportedGlobalNetworkCallingCodes()
935 const PhoneMetadata* metadata = GetMetadataForRegion(region_code); in GetSupportedTypesForRegion()
[all …]
Dasyoutypeformatter.h89 const PhoneMetadata* GetMetadataForRegion(const string& region_code) const;
204 const PhoneMetadata empty_metadata_;
205 const PhoneMetadata* const default_metadata_;
206 const PhoneMetadata* current_metadata_;
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DMetadataManager.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
60 private static final ConcurrentHashMap<Integer, PhoneMetadata> alternateFormatsMap =
61 new ConcurrentHashMap<Integer, PhoneMetadata>();
64 private static final ConcurrentHashMap<String, PhoneMetadata> shortNumberMetadataMap =
65 new ConcurrentHashMap<String, PhoneMetadata>();
79 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry()
87 static PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion()
108 static <T> PhoneMetadata getMetadataFromMultiFilePrefix(T key, in getMetadataFromMultiFilePrefix()
109 ConcurrentHashMap<T, PhoneMetadata> map, String filePrefix, MetadataLoader metadataLoader) { in getMetadataFromMultiFilePrefix()
110 PhoneMetadata metadata = map.get(key); in getMetadataFromMultiFilePrefix()
[all …]
DPhonemetadata.java353 public static class PhoneMetadata implements Externalizable { class in Phonemetadata
355 public PhoneMetadata() {} in PhoneMetadata() method in Phonemetadata.PhoneMetadata
362 public static final class Builder extends PhoneMetadata {
363 public PhoneMetadata build() { in build()
392 public PhoneMetadata setGeneralDesc(PhoneNumberDesc value) { in setGeneralDesc()
406 public PhoneMetadata setFixedLine(PhoneNumberDesc value) { in setFixedLine()
420 public PhoneMetadata setMobile(PhoneNumberDesc value) { in setMobile()
434 public PhoneMetadata setTollFree(PhoneNumberDesc value) { in setTollFree()
448 public PhoneMetadata setPremiumRate(PhoneNumberDesc value) { in setPremiumRate()
462 public PhoneMetadata setSharedCost(PhoneNumberDesc value) { in setSharedCost()
[all …]
DMultiFileMetadataSourceImpl.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
38 private final ConcurrentHashMap<String, PhoneMetadata> geographicalRegions =
39 new ConcurrentHashMap<String, PhoneMetadata>();
47 private final ConcurrentHashMap<Integer, PhoneMetadata> nonGeographicalRegions =
48 new ConcurrentHashMap<Integer, PhoneMetadata>();
63 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion()
69 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion()
DShortNumberInfo.java21 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
122 private PhoneMetadata getShortNumberMetadataForRegion(String regionCode) { in getShortNumberMetadataForRegion()
145 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionDialingFrom); in isPossibleShortNumberForRegion()
166 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(region); in isPossibleShortNumber()
190 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionDialingFrom); in isValidShortNumberForRegion()
251 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionDialingFrom); in getExpectedCostForRegion()
348 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionCode); in getRegionCodeForShortNumberFromRegionList()
367 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionCode); in getExampleShortNumber()
388 PhoneMetadata phoneMetadata = getShortNumberMetadataForRegion(regionCode); in getExampleShortNumberForCost()
456 PhoneMetadata metadata = getShortNumberMetadataForRegion(regionCode); in matchesEmergencyNumberHelper()
[all …]
DPhoneNumberUtil.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
875 PhoneMetadata metadata = getMetadataForRegion(getRegionCodeForNumber(number));
1092 private Set<PhoneNumberType> getSupportedTypesForMetadata(PhoneMetadata metadata) {
1119 PhoneMetadata metadata = getMetadataForRegion(regionCode);
1133 PhoneMetadata metadata = getMetadataForNonGeographicalRegion(countryCallingCode);
1306 PhoneMetadata metadata =
1337 PhoneMetadata metadata =
1398 PhoneMetadata metadata = getMetadataForRegionOrCallingCode(countryCallingCode, regionCode);
1409 private PhoneMetadata getMetadataForRegionOrCallingCode(
1491 PhoneMetadata regionMetadata = getMetadataForRegion(regionCallingFrom);
[all …]
DMetadataSource.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
31 PhoneMetadata getMetadataForRegion(String regionCode); in getMetadataForRegion()
38 PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode); in getMetadataForNonGeographicalRegion()
DSingleFileMetadataSourceImpl.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
49 public PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion()
55 public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) { in getMetadataForNonGeographicalRegion()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DMetadataManagerTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
29 PhoneMetadata germanyMetadata = MetadataManager.getAlternateFormatsForCountry(49); in testAlternateFormatsLoadCorrectly()
35 PhoneMetadata noAlternateFormats = MetadataManager.getAlternateFormatsForCountry(999); in testAlternateFormatsFailsGracefully()
41 PhoneMetadata franceMetadata = MetadataManager.getShortNumberMetadataForRegion("FR"); in testShortNumberMetadataLoadCorrectly()
47 PhoneMetadata noShortNumberMetadata = MetadataManager.getShortNumberMetadataForRegion("XXX"); in testShortNumberMetadataFailsGracefully()
52 ConcurrentHashMap<String, PhoneMetadata> map = new ConcurrentHashMap<String, PhoneMetadata>(); in testGetMetadataFromMultiFilePrefix_regionCode()
53 PhoneMetadata metadata = MetadataManager.getMetadataFromMultiFilePrefix("CA", map, in testGetMetadataFromMultiFilePrefix_regionCode()
60 ConcurrentHashMap<Integer, PhoneMetadata> map = new ConcurrentHashMap<Integer, PhoneMetadata>(); in testGetMetadataFromMultiFilePrefix_countryCallingCode()
61 PhoneMetadata metadata = MetadataManager.getMetadataFromMultiFilePrefix(800, map, in testGetMetadataFromMultiFilePrefix_countryCallingCode()
73 new ConcurrentHashMap<String, PhoneMetadata>(), "no/such/file", in testGetMetadataFromMultiFilePrefix_missingMetadataFileThrowsRuntimeException()
[all …]
DMultiFileMetadataSourceImplTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
33 PhoneMetadata uaeMetadata = SOURCE.getMetadataForRegion("AE"); in testGeoPhoneNumberMetadataLoadCorrectly()
49 PhoneMetadata intlMetadata = SOURCE.getMetadataForNonGeographicalRegion(800); in testNonGeoPhoneNumberMetadataLoadCorrectly()
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DBuildMetadataFromXmlTest.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
122 PhoneMetadata.Builder phoneMetadata = in testLoadTerritoryTagMetadata()
140 PhoneMetadata.Builder phoneMetadata = in testLoadTerritoryTagMetadataSetsBooleanFieldsToFalseByDefault()
150 PhoneMetadata.Builder phoneMetadata = in testLoadTerritoryTagMetadataSetsNationalPrefixForParsingByDefault()
171 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadInternationalFormat()
184 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadInternationalFormatWithBothNationalAndIntlFormatsDefined()
197 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadInternationalFormatExpectsOnlyOnePattern()
213 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadInternationalFormatUsesNationalFormatByDefault()
227 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadInternationalFormatCopiesNationalFormatData()
243 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in testLoadNationalFormat()
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/source/
DMapBackedMetadataContainer.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
33 public String getKeyOf(PhoneMetadata phoneMetadata) { in byRegionCode()
43 public Integer getKeyOf(PhoneMetadata phoneMetadata) {
49 private final ConcurrentMap<T, PhoneMetadata> metadataMap;
58 PhoneMetadata getMetadataBy(T key) {
67 public void accept(PhoneMetadata phoneMetadata) {
72 T getKeyOf(PhoneMetadata phoneMetadata);
DCompositeMetadataContainer.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
38 PhoneMetadata getMetadataBy(String regionCode) { in getMetadataBy()
47 PhoneMetadata getMetadataBy(int countryCallingCode) { in getMetadataBy()
61 public void accept(PhoneMetadata phoneMetadata) { in accept()
DBlockingMetadataBootstrappingGuard.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
63 Collection<PhoneMetadata> phoneMetadata = read(phoneMetadataFile); in bootstrapMetadata()
64 for (PhoneMetadata metadata : phoneMetadata) { in bootstrapMetadata()
70 private Collection<PhoneMetadata> read(String phoneMetadataFile) { in read()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/source/
DCompositeMetadataContainerTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
27 private static final PhoneMetadata PHONE_METADATA_WITH_REGION_CODE =
28 PhoneMetadata.newBuilder().setId(REGION_CODE).setCountryCode(COUNTRY_CODE);
29 private static final PhoneMetadata PHONE_METADATA_WITH_COUNTRY_CODE =
30 PhoneMetadata.newBuilder()
DMapBackedMetadataContainerTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
26 private static final PhoneMetadata PHONE_METADATA =
27 PhoneMetadata.newBuilder().setId(REGION_CODE).setCountryCode(COUNTRY_CODE);
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/init/
DMetadataParserTest.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
76 .addMetadata(PhoneMetadata.newBuilder().setId("id").build())); in test_parse_shouldParseValidInput()
78 Collection<PhoneMetadata> actual = metadataParser.parse(input); in test_parse_shouldParseValidInput()
84 Collection<PhoneMetadata> actual = MetadataParser.newLenientParser().parse(null); in test_parse_shouldReturnEmptyCollectionForNullInput()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/init/
DMetadataParser.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
67 public Collection<PhoneMetadata> parse(InputStream source) { in parse()
76 List<PhoneMetadata> phoneMetadata = phoneMetadataCollection.getMetadataList(); in parse()
94 private List<PhoneMetadata> handleNullSource() { in handleNullSource()
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
129 PhoneMetadata.Builder metadata = loadCountryMetadata(regionCode, territoryElement, in buildPhoneMetadataCollection()
144 for (PhoneMetadata metadata : metadataCollection.getMetadataList()) { in buildCountryCodeToRegionCodeMap()
197 static PhoneMetadata.Builder loadTerritoryTagMetadata(String regionCode, Element element, in loadTerritoryTagMetadata()
199 PhoneMetadata.Builder metadata = PhoneMetadata.newBuilder(); in loadTerritoryTagMetadata()
248 static boolean loadInternationalFormat(PhoneMetadata.Builder metadata, in loadInternationalFormat()
286 static void loadNationalFormat(PhoneMetadata.Builder metadata, Element numberFormatElement, in loadNationalFormat()
310 static void loadAvailableFormats(PhoneMetadata.Builder metadata, in loadAvailableFormats()
485 static void setRelevantDescPatterns(PhoneMetadata.Builder metadata, Element element, in setRelevantDescPatterns()
734 static PhoneMetadata.Builder loadCountryMetadata(String regionCode, in loadCountryMetadata()
[all …]

123