Home
last modified time | relevance | path

Searched refs:PhoneNumberDesc (Results 1 – 14 of 14) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonemetadata.java196 public static class PhoneNumberDesc implements Externalizable { class in Phonemetadata
198 public PhoneNumberDesc() {} in PhoneNumberDesc() method in Phonemetadata.PhoneNumberDesc
205 public static final class Builder extends PhoneNumberDesc {
206 public PhoneNumberDesc build() { in build()
210 public Builder mergeFrom(PhoneNumberDesc other) { in mergeFrom()
236 public PhoneNumberDesc setNationalNumberPattern(String value) { in setNationalNumberPattern()
241 public PhoneNumberDesc clearNationalNumberPattern() { in clearNationalNumberPattern()
256 public PhoneNumberDesc addPossibleLength(int value) { in addPossibleLength()
260 public PhoneNumberDesc clearPossibleLength() { in clearPossibleLength()
274 public PhoneNumberDesc addPossibleLengthLocalOnly(int value) { in addPossibleLengthLocalOnly()
[all …]
DShortNumberInfo.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
175 PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); in isValidShortNumberForRegion()
179 PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); in isValidShortNumberForRegion()
359 PhoneNumberDesc desc = phoneMetadata.getShortCode(); in getExampleShortNumber()
380 PhoneNumberDesc desc = null; in getExampleShortNumberForCost()
552 PhoneNumberDesc numberDesc) { in matchesPossibleNumberAndNationalNumber()
DPhoneNumberUtil.java21 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
993 private static boolean descHasPossibleNumberData(PhoneNumberDesc desc) {
1006 private static boolean descHasData(PhoneNumberDesc desc) {
1974 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode),
2026 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode), type);
2054 PhoneNumberDesc desc = getNumberDescByType(
2083 for (PhoneNumberDesc desc : Arrays.asList(metadata.getMobile(), metadata.getTollFree(),
2121 PhoneNumberDesc getNumberDescByType(PhoneMetadata metadata, PhoneNumberType type) {
2231 boolean isNumberMatchingDesc(String nationalNumber, PhoneNumberDesc numberDesc) {
2503 PhoneNumberDesc descForType = getNumberDescByType(metadata, type);
[all …]
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhonemetadata.java213 public static class PhoneNumberDesc implements Externalizable { class in Phonemetadata
215 public PhoneNumberDesc() {} in PhoneNumberDesc() method in Phonemetadata.PhoneNumberDesc
223 public static final class Builder extends PhoneNumberDesc {
224 public PhoneNumberDesc build() { in build()
228 public Builder mergeFrom(PhoneNumberDesc other) { in mergeFrom()
255 public PhoneNumberDesc setNationalNumberPattern(String value) { in setNationalNumberPattern()
260 public PhoneNumberDesc clearNationalNumberPattern() { in clearNationalNumberPattern()
275 public PhoneNumberDesc addPossibleLength(int value) { in addPossibleLength()
279 public PhoneNumberDesc clearPossibleLength() { in clearPossibleLength()
293 public PhoneNumberDesc addPossibleLengthLocalOnly(int value) { in addPossibleLengthLocalOnly()
[all …]
DShortNumberInfo.java23 import com.android.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
178 PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); in isValidShortNumberForRegion()
182 PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); in isValidShortNumberForRegion()
362 PhoneNumberDesc desc = phoneMetadata.getShortCode(); in getExampleShortNumber()
383 PhoneNumberDesc desc = null; in getExampleShortNumberForCost()
555 PhoneNumberDesc numberDesc) { in matchesPossibleNumberAndNationalNumber()
DPhoneNumberUtil.java22 import com.android.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
1026 private static boolean descHasPossibleNumberData(PhoneNumberDesc desc) {
1039 private static boolean descHasData(PhoneNumberDesc desc) {
2011 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode),
2063 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode), type);
2091 PhoneNumberDesc desc = getNumberDescByType(
2120 for (PhoneNumberDesc desc : Arrays.asList(metadata.getMobile(), metadata.getTollFree(),
2158 PhoneNumberDesc getNumberDescByType(PhoneMetadata metadata, PhoneNumberType type) {
2269 boolean isNumberMatchingDesc(String nationalNumber, PhoneNumberDesc numberDesc) {
2545 PhoneNumberDesc descForType = getNumberDescByType(metadata, type);
[all …]
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/internal/
DMatcherTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
32 PhoneNumberDesc desc = new PhoneNumberDesc(); in checkMatcherBehavesAsExpected()
62 private PhoneNumberDesc createDesc(String nationalNumberPattern) { in createDesc()
63 PhoneNumberDesc desc = new PhoneNumberDesc(); in createDesc()
70 private void assertMatched(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertMatched()
77 private void assertInvalid(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertInvalid()
84 private void assertTooLong(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertTooLong()
91 private String toString(PhoneNumberDesc desc) { in toString()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/internal/
DMatcherApi.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
30 boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
DRegexBasedMatcher.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
38 public boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/internal/
DMatcherApi.java20 import com.android.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
32 boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
DRegexBasedMatcher.java20 import com.android.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
40 public boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
145 PhoneNumberDesc desc = in testCanBeInternationallyDialled()
240 PhoneNumberDesc desc = in testEmergency()
262 PhoneNumberDesc desc = in testCarrierSpecificShortNumbers()
280 PhoneNumberDesc desc = in testSmsServiceShortNumbers()
DPhoneNumberUtilTest.java24 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
1832 metadata.setGeneralDesc(new PhoneNumberDesc().setNationalNumberPattern("\\d{4,8}")); in testMaybeStripNationalPrefix()
/external/libphonenumber/
Drelease_notes.txt38 should be present at every PhoneNumberDesc with data.