Home
last modified time | relevance | path

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

/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java273 assertTrue(shortInfo.isEmergencyNumber("911", RegionCode.US)); in testIsEmergencyNumber_US()
274 assertTrue(shortInfo.isEmergencyNumber("112", RegionCode.US)); in testIsEmergencyNumber_US()
275 assertFalse(shortInfo.isEmergencyNumber("999", RegionCode.US)); in testIsEmergencyNumber_US()
279 assertFalse(shortInfo.isEmergencyNumber("9116666666", RegionCode.US)); in testIsEmergencyNumberLongNumber_US()
280 assertFalse(shortInfo.isEmergencyNumber("1126666666", RegionCode.US)); in testIsEmergencyNumberLongNumber_US()
281 assertFalse(shortInfo.isEmergencyNumber("9996666666", RegionCode.US)); in testIsEmergencyNumberLongNumber_US()
285 assertTrue(shortInfo.isEmergencyNumber("9-1-1", RegionCode.US)); in testIsEmergencyNumberWithFormatting_US()
286 assertTrue(shortInfo.isEmergencyNumber("*911", RegionCode.US)); in testIsEmergencyNumberWithFormatting_US()
287 assertTrue(shortInfo.isEmergencyNumber("1-1-2", RegionCode.US)); in testIsEmergencyNumberWithFormatting_US()
288 assertTrue(shortInfo.isEmergencyNumber("*112", RegionCode.US)); in testIsEmergencyNumberWithFormatting_US()
[all …]
DExampleNumbersTest.java246 || !shortNumberInfo.isEmergencyNumber(exampleNumber, regionCode)) { in testEmergency()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java257 if (isEmergencyNumber(shortNumber, regionDialingFrom)) { in getExpectedCostForRegion()
431 public boolean isEmergencyNumber(String number, String regionCode) { in isEmergencyNumber() method in ShortNumberInfo
/external/ims/rcs/rcsmanager/src/java/com/android/ims/internal/
DContactNumberUtils.java164 if (PhoneNumberUtils.isEmergencyNumber(number)) { in validate()
/external/libphonenumber/
Drelease_notes.txt1102 - Providing an "exact match" isEmergencyNumber method