Home
last modified time | relevance | path

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

/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
DPhonemetadata.java292 public static class PhoneMetadata implements Externalizable { class in Phonemetadata
294 public PhoneMetadata() {} in PhoneMetadata() method in Phonemetadata.PhoneMetadata
301 public static final class Builder extends PhoneMetadata {
302 public PhoneMetadata build() { in build()
315 public PhoneMetadata setGeneralDesc(PhoneNumberDesc value) { in setGeneralDesc()
329 public PhoneMetadata setFixedLine(PhoneNumberDesc value) { in setFixedLine()
343 public PhoneMetadata setMobile(PhoneNumberDesc value) { in setMobile()
357 public PhoneMetadata setTollFree(PhoneNumberDesc value) { in setTollFree()
371 public PhoneMetadata setPremiumRate(PhoneNumberDesc value) { in setPremiumRate()
385 public PhoneMetadata setSharedCost(PhoneNumberDesc value) { in setSharedCost()
[all …]
DMetadataManager.java19 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
46 private static final Map<Integer, PhoneMetadata> callingCodeToAlternateFormatsMap =
47 Collections.synchronizedMap(new HashMap<Integer, PhoneMetadata>());
75 for (PhoneMetadata metadata : alternateFormats.getMetadataList()) { in loadMetadataFromFile()
85 static PhoneMetadata getAlternateFormatsForCountry(int countryCallingCode) { in getAlternateFormatsForCountry()
DPhoneNumberUtil.java20 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
359 private final Map<String, PhoneMetadata> regionToMetadataMap =
360 Collections.synchronizedMap(new HashMap<String, PhoneMetadata>());
365 private final Map<Integer, PhoneMetadata> countryCodeToNonGeographicalMetadataMap =
366 Collections.synchronizedMap(new HashMap<Integer, PhoneMetadata>());
595 List<PhoneMetadata> metadataList = metadataCollection.getMetadataList();
603 PhoneMetadata metadata = metadataList.get(0);
792 PhoneMetadata metadata = getMetadataForRegion(getRegionCodeForNumber(number));
1052 PhoneMetadata metadata =
1083 PhoneMetadata metadata =
[all …]
DAsYouTypeFormatter.java20 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
64 private static final PhoneMetadata EMPTY_METADATA =
65 new PhoneMetadata().setInternationalPrefix("NA");
66 private PhoneMetadata defaultMetaData;
67 private PhoneMetadata currentMetaData;
135 private PhoneMetadata getMetadataForRegion(String regionCode) { in getMetadataForRegion()
138 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(mainCountry); in getMetadataForRegion()
DShortNumberUtil.java19 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
80 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(regionCode); in matchesEmergencyNumberHelper()
DPhoneNumberMatcher.java23 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
558 PhoneMetadata alternateFormats = in checkNumberGroupingIsValid()
613 PhoneMetadata metadata = util.getMetadataForRegion(phoneNumberRegion); in isNationalPrefixPresentIfRequired()
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
Dphonenumberutil.h53 class PhoneMetadata; variable
633 scoped_ptr<map<string, PhoneMetadata> > region_to_metadata_map_;
639 scoped_ptr<map<int, PhoneMetadata> >
678 const i18n::phonenumbers::PhoneMetadata* GetMetadataForRegion(
681 const i18n::phonenumbers::PhoneMetadata* GetMetadataForNonGeographicalRegion(
684 const i18n::phonenumbers::PhoneMetadata* GetMetadataForRegionOrCallingCode(
726 const PhoneMetadata& metadata,
731 const PhoneMetadata& metadata,
738 const PhoneMetadata& metadata,
758 const PhoneMetadata& metadata,
[all …]
Dshortnumberinfo.cc49 region_to_short_metadata_map_(new map<string, PhoneMetadata>()) { in ShortNumberInfo()
55 for (RepeatedPtrField<PhoneMetadata>::const_iterator it = in ShortNumberInfo()
66 const PhoneMetadata* ShortNumberInfo::GetMetadataForRegion( in GetMetadataForRegion()
68 map<string, PhoneMetadata>::const_iterator it = in GetMetadataForRegion()
99 const PhoneMetadata* metadata = GetMetadataForRegion(region_code); in MatchesEmergencyNumberHelper()
Dasyoutypeformatter.h90 const PhoneMetadata* GetMetadataForRegion(const string& region_code) const;
203 const PhoneMetadata empty_metadata_;
204 const PhoneMetadata* const default_metadata_;
205 const PhoneMetadata* current_metadata_;
Dphonenumberutil.cc123 const PhoneMetadata& metadata, in GetNumberDescByType()
200 const string& national_number, const PhoneMetadata& metadata, in GetNumberTypeHelper()
668 region_to_metadata_map_(new map<string, PhoneMetadata>()), in PhoneNumberUtil()
670 new map<int, PhoneMetadata>) { in PhoneNumberUtil()
682 for (RepeatedPtrField<PhoneMetadata>::const_iterator it = in PhoneNumberUtil()
736 for (map<string, PhoneMetadata>::const_iterator it = in GetSupportedRegions()
814 const PhoneMetadata* metadata = GetMetadataForRegion(region_code); in GetNddPrefixForRegion()
846 const PhoneMetadata* PhoneNumberUtil::GetMetadataForRegion( in GetMetadataForRegion()
848 map<string, PhoneMetadata>::const_iterator it = in GetMetadataForRegion()
856 const PhoneMetadata* PhoneNumberUtil::GetMetadataForNonGeographicalRegion( in GetMetadataForNonGeographicalRegion()
[all …]
Dshortnumberinfo.h62 scoped_ptr<map<string, PhoneMetadata> >
65 const i18n::phonenumbers::PhoneMetadata* GetMetadataForRegion(
Dphonenumbermatcher.cc325 map<int, const PhoneMetadata*> calling_code_to_alternate_formats_map_;
334 for (RepeatedPtrField<PhoneMetadata>::const_iterator it = in AlternateFormats()
343 const PhoneMetadata* GetAlternateFormatsForCountry(int country_calling_code) in GetAlternateFormatsForCountry()
345 map<int, const PhoneMetadata*>::const_iterator it = in GetAlternateFormatsForCountry()
676 const PhoneMetadata* alternate_formats = in CheckNumberGroupingIsValid()
740 const PhoneMetadata* metadata = in IsNationalPrefixPresentIfRequired()
Dasyoutypeformatter.cc118 PhoneMetadata CreateEmptyMetadata() { in CreateEmptyMetadata()
119 PhoneMetadata metadata; in CreateEmptyMetadata()
156 const PhoneMetadata* AsYouTypeFormatter::GetMetadataForRegion( in GetMetadataForRegion()
161 const PhoneMetadata* const metadata = in GetMetadataForRegion()
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DMetadataManagerTest.java19 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
32 PhoneMetadata germanyAlternateFormats = MetadataManager.getAlternateFormatsForCountry(49); in testAlternateFormatsContainsData()
38 PhoneMetadata noAlternateFormats = MetadataManager.getAlternateFormatsForCountry(999); in testAlternateFormatsFailsGracefully()
DPhoneNumberUtilTest.java21 import com.android.i18n.phonenumbers.Phonemetadata.PhoneMetadata;
145 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.US); in testGetInstanceLoadUSMetadata()
166 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.DE); in testGetInstanceLoadDEMetadata()
186 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.AR); in testGetInstanceLoadARMetadata()
202 PhoneMetadata metadata = phoneUtil.getMetadataForNonGeographicalRegion(800); in testGetInstanceLoadInternationalTollFreeMetadata()
1397 PhoneMetadata metadata = new PhoneMetadata(); in testMaybeStripNationalPrefix()
1506 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.US); in testMaybeExtractCountryCode()
/external/chromium_org/third_party/libphonenumber/src/resources/
Dphonemetadata.proto116 message PhoneMetadata { message
281 repeated PhoneMetadata metadata = 1;