Home
last modified time | relevance | path

Searched refs:connectsToEmergencyNumber (Results 1 – 4 of 4) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java205 assertTrue(shortInfo.connectsToEmergencyNumber("911", RegionCode.US)); in testConnectsToEmergencyNumber_US()
206 assertTrue(shortInfo.connectsToEmergencyNumber("112", RegionCode.US)); in testConnectsToEmergencyNumber_US()
207 assertFalse(shortInfo.connectsToEmergencyNumber("999", RegionCode.US)); in testConnectsToEmergencyNumber_US()
211 assertTrue(shortInfo.connectsToEmergencyNumber("9116666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US()
212 assertTrue(shortInfo.connectsToEmergencyNumber("1126666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US()
213 assertFalse(shortInfo.connectsToEmergencyNumber("9996666666", RegionCode.US)); in testConnectsToEmergencyNumberLongNumber_US()
217 assertTrue(shortInfo.connectsToEmergencyNumber("9-1-1", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US()
218 assertTrue(shortInfo.connectsToEmergencyNumber("1-1-2", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US()
219 assertFalse(shortInfo.connectsToEmergencyNumber("9-9-9", RegionCode.US)); in testConnectsToEmergencyNumberWithFormatting_US()
223 assertFalse(shortInfo.connectsToEmergencyNumber("+911", RegionCode.US)); in testConnectsToEmergencyNumberWithPlusSign_US()
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dshortnumberinfo_test.js293 assertTrue(shortInfo.connectsToEmergencyNumber('911', RegionCode.US));
294 assertTrue(shortInfo.connectsToEmergencyNumber('112', RegionCode.US));
295 assertFalse(shortInfo.connectsToEmergencyNumber('999', RegionCode.US));
299 assertTrue(shortInfo.connectsToEmergencyNumber('9116666666', RegionCode.US));
300 assertTrue(shortInfo.connectsToEmergencyNumber('1126666666', RegionCode.US));
301 assertFalse(shortInfo.connectsToEmergencyNumber('9996666666', RegionCode.US));
305 assertTrue(shortInfo.connectsToEmergencyNumber('9-1-1', RegionCode.US));
306 assertTrue(shortInfo.connectsToEmergencyNumber('1-1-2', RegionCode.US));
307 assertFalse(shortInfo.connectsToEmergencyNumber('9-9-9', RegionCode.US));
311 assertFalse(shortInfo.connectsToEmergencyNumber('+911', RegionCode.US));
[all …]
Dshortnumberinfo.js478 i18n.phonenumbers.ShortNumberInfo.prototype.connectsToEmergencyNumber = method in i18n.phonenumbers.ShortNumberInfo
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java427 public boolean connectsToEmergencyNumber(String number, String regionCode) { in connectsToEmergencyNumber() method in ShortNumberInfo