Home
last modified time | relevance | path

Searched refs:ShortNumberInfo (Results 1 – 5 of 5) sorted by relevance

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java27 private static final ShortNumberInfo shortInfo = ShortNumberInfo.getInstance();
62 ShortNumberInfo.ShortNumberCost.PREMIUM_RATE); in testGetExpectedCost()
63 assertEquals(ShortNumberInfo.ShortNumberCost.PREMIUM_RATE, shortInfo.getExpectedCostForRegion( in testGetExpectedCost()
67 assertEquals(ShortNumberInfo.ShortNumberCost.PREMIUM_RATE, in testGetExpectedCost()
71 ShortNumberInfo.ShortNumberCost.STANDARD_RATE); in testGetExpectedCost()
72 assertEquals(ShortNumberInfo.ShortNumberCost.STANDARD_RATE, shortInfo.getExpectedCostForRegion( in testGetExpectedCost()
76 assertEquals(ShortNumberInfo.ShortNumberCost.STANDARD_RATE, in testGetExpectedCost()
80 ShortNumberInfo.ShortNumberCost.TOLL_FREE); in testGetExpectedCost()
81 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost()
85 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost()
[all …]
DExampleNumbersTest.java40 private ShortNumberInfo shortNumberInfo = ShortNumberInfo.getInstance();
199 for (ShortNumberInfo.ShortNumberCost cost : ShortNumberInfo.ShortNumberCost.values()) { in testShortNumbersValidAndCorrectCost()
228 != ShortNumberInfo.ShortNumberCost.TOLL_FREE) { in testEmergency()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberUtil.java49 return ShortNumberInfo.getInstance().getSupportedRegions(); in getSupportedRegions()
64 return ShortNumberInfo.getInstance().connectsToEmergencyNumber(number, regionCode); in connectsToEmergencyNumber()
78 return ShortNumberInfo.getInstance().isEmergencyNumber(number, regionCode); in isEmergencyNumber()
DShortNumberInfo.java44 public class ShortNumberInfo { class
45 private static final Logger logger = Logger.getLogger(ShortNumberInfo.class.getName());
47 private static final ShortNumberInfo INSTANCE =
48 new ShortNumberInfo(RegexBasedMatcher.create());
69 public static ShortNumberInfo getInstance() { in getInstance()
85 ShortNumberInfo(MatcherApi matcherApi) { in ShortNumberInfo() method in ShortNumberInfo
/external/libphonenumber/
Drelease_notes.txt41 - New APIs for ShortNumberInfo. The old APIs have been deprecated and will be
202 - Adding more functionality to ShortNumberInfo -> such as getExpectedCostForRegion.
305 - Renamed ShortNumberUtil to ShortNumberInfo -> the former class is now deprecated and will be
306 deleted in a later release. At the moment it just delegates to ShortNumberInfo.
307 - New methods in the ShortNumberInfo API - isCarrierSpecific, singleton interface,