Home
last modified time | relevance | path

Searched refs:isValidShortNumberForRegion (Results 1 – 3 of 3) sorted by relevance

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java49 assertTrue(shortInfo.isValidShortNumberForRegion(parse("1010", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber()
53 shortInfo.isValidShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber()
97 shortInfo.isValidShortNumberForRegion(parse("116123", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
133 assertTrue(shortInfo.isValidShortNumberForRegion( in testGetExpectedCostForSharedCountryCallingCode()
137 assertFalse(shortInfo.isValidShortNumberForRegion( in testGetExpectedCostForSharedCountryCallingCode()
145 assertTrue(shortInfo.isValidShortNumberForRegion( in testGetExpectedCostForSharedCountryCallingCode()
149 assertFalse(shortInfo.isValidShortNumberForRegion( in testGetExpectedCostForSharedCountryCallingCode()
156 assertTrue(shortInfo.isValidShortNumberForRegion(parse(ambiguousTollFreeString, RegionCode.AU), in testGetExpectedCostForSharedCountryCallingCode()
160 assertFalse(shortInfo.isValidShortNumberForRegion(parse(ambiguousTollFreeString, RegionCode.CX), in testGetExpectedCostForSharedCountryCallingCode()
308 assertTrue(shortInfo.isValidShortNumberForRegion(parse("112", RegionCode.AU), RegionCode.AU)); in testEmergencyNumberForSharedCountryCallingCode()
[all …]
DExampleNumbersTest.java186 if (!shortNumberInfo.isValidShortNumberForRegion( in testShortNumbersValidAndCorrectCost()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java181 public boolean isValidShortNumberForRegion(String shortNumber, String regionDialingFrom) { in isValidShortNumberForRegion() method in ShortNumberInfo
204 public boolean isValidShortNumberForRegion(PhoneNumber number, String regionDialingFrom) { in isValidShortNumberForRegion() method in ShortNumberInfo
236 return isValidShortNumberForRegion(number, regionCode); in isValidShortNumber()