Searched refs:connectsToEmergencyNumber (Results 1 – 4 of 4) sorted by relevance
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ShortNumberUtilTest.java | 34 assertTrue(shortUtil.connectsToEmergencyNumber("911", RegionCode.US)); in testConnectsToEmergencyNumber_US() 35 assertTrue(shortUtil.connectsToEmergencyNumber("112", RegionCode.US)); in testConnectsToEmergencyNumber_US() 36 assertFalse(shortUtil.connectsToEmergencyNumber("999", RegionCode.US)); in testConnectsToEmergencyNumber_US() 40 assertTrue(shortUtil.connectsToEmergencyNumber("9116666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 41 assertTrue(shortUtil.connectsToEmergencyNumber("1126666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 42 assertFalse(shortUtil.connectsToEmergencyNumber("9996666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 46 assertTrue(shortUtil.connectsToEmergencyNumber("9-1-1", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 47 assertTrue(shortUtil.connectsToEmergencyNumber("1-1-2", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 48 assertFalse(shortUtil.connectsToEmergencyNumber("9-9-9", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 52 assertFalse(shortUtil.connectsToEmergencyNumber("+911", RegionCode.US)); in testConnectsToEmergencyNumberWithPlusSign_US() [all …]
|
D | ShortNumberInfoTest.java | 187 assertTrue(shortInfo.connectsToEmergencyNumber("911", RegionCode.US)); in testConnectsToEmergencyNumber_US() 188 assertTrue(shortInfo.connectsToEmergencyNumber("112", RegionCode.US)); in testConnectsToEmergencyNumber_US() 189 assertFalse(shortInfo.connectsToEmergencyNumber("999", RegionCode.US)); in testConnectsToEmergencyNumber_US() 193 assertTrue(shortInfo.connectsToEmergencyNumber("9116666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 194 assertTrue(shortInfo.connectsToEmergencyNumber("1126666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 195 assertFalse(shortInfo.connectsToEmergencyNumber("9996666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US() 199 assertTrue(shortInfo.connectsToEmergencyNumber("9-1-1", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 200 assertTrue(shortInfo.connectsToEmergencyNumber("1-1-2", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 201 assertFalse(shortInfo.connectsToEmergencyNumber("9-9-9", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US() 205 assertFalse(shortInfo.connectsToEmergencyNumber("+911", RegionCode.US)); in testConnectsToEmergencyNumberWithPlusSign_US() [all …]
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | ShortNumberUtil.java | 63 public boolean connectsToEmergencyNumber(String number, String regionCode) { in connectsToEmergencyNumber() method in ShortNumberUtil 64 return ShortNumberInfo.getInstance().connectsToEmergencyNumber(number, regionCode); in connectsToEmergencyNumber()
|
D | ShortNumberInfo.java | 495 public boolean connectsToEmergencyNumber(String number, String regionCode) { in connectsToEmergencyNumber() method in ShortNumberInfo
|