Searched refs:shortNumber (Results 1 – 2 of 2) sorted by relevance
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | ShortNumberInfo.java | 118 public boolean isPossibleShortNumberForRegion(String shortNumber, String regionDialingFrom) { in isPossibleShortNumberForRegion() argument 124 return matcherApi.matchesPossibleNumber(shortNumber, phoneMetadata.getGeneralDesc()); in isPossibleShortNumberForRegion() 156 String shortNumber = getNationalSignificantNumber(number); in isPossibleShortNumber() local 159 if (matcherApi.matchesPossibleNumber(shortNumber, phoneMetadata.getGeneralDesc())) { in isPossibleShortNumber() 181 public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { in isValidShortNumberForRegion() argument 188 if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { in isValidShortNumberForRegion() 192 return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); in isValidShortNumberForRegion() 210 String shortNumber = getNationalSignificantNumber(number); in isValidShortNumberForRegion() local 212 if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { in isValidShortNumberForRegion() 216 return matchesPossibleNumberAndNationalNumber(shortNumber, shortNumberDesc); in isValidShortNumberForRegion() [all …]
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 1755 PhoneNumber shortNumber = new PhoneNumber(); in testParseNationalNumber() local 1756 shortNumber.setCountryCode(64).setNationalNumber(12L); in testParseNationalNumber() 1757 assertEquals(shortNumber, phoneUtil.parse("12", RegionCode.NZ)); in testParseNationalNumber()
|