HomeSort by relevance Sort by last modified time
    Searched refs:RegionCode (Results 1 - 9 of 9) sorted by null

  /external/libphonenumber/java/test/com/android/i18n/phonenumbers/
ShortNumberUtilTest.java 34 assertTrue(shortUtil.connectsToEmergencyNumber("911", RegionCode.US));
35 assertTrue(shortUtil.connectsToEmergencyNumber("112", RegionCode.US));
36 assertFalse(shortUtil.connectsToEmergencyNumber("999", RegionCode.US));
40 assertTrue(shortUtil.connectsToEmergencyNumber("9116666666", RegionCode.US));
41 assertTrue(shortUtil.connectsToEmergencyNumber("1126666666", RegionCode.US));
42 assertFalse(shortUtil.connectsToEmergencyNumber("9996666666", RegionCode.US));
46 assertTrue(shortUtil.connectsToEmergencyNumber("9-1-1", RegionCode.US));
47 assertTrue(shortUtil.connectsToEmergencyNumber("1-1-2", RegionCode.US));
48 assertFalse(shortUtil.connectsToEmergencyNumber("9-9-9", RegionCode.US));
52 assertFalse(shortUtil.connectsToEmergencyNumber("+911", RegionCode.US))
    [all...]
ShortNumberInfoTest.java 37 assertTrue(shortInfo.isPossibleShortNumberForRegion("123456", RegionCode.FR));
42 assertFalse(shortInfo.isPossibleShortNumberForRegion("9", RegionCode.FR));
53 assertTrue(shortInfo.isValidShortNumberForRegion("1010", RegionCode.FR));
56 assertFalse(shortInfo.isValidShortNumberForRegion("123456", RegionCode.FR));
65 RegionCode.FR, ShortNumberInfo.ShortNumberCost.PREMIUM_RATE);
67 shortInfo.getExpectedCostForRegion(premiumRateExample, RegionCode.FR));
74 RegionCode.FR, ShortNumberInfo.ShortNumberCost.STANDARD_RATE);
76 shortInfo.getExpectedCostForRegion(standardRateExample, RegionCode.FR));
83 RegionCode.FR, ShortNumberInfo.ShortNumberCost.TOLL_FREE);
85 shortInfo.getExpectedCostForRegion(tollFreeExample, RegionCode.FR))
    [all...]
PhoneNumberMatcherTest.java 83 doTestFindInContext("033316005", RegionCode.NZ);
84 // ("33316005", RegionCode.NZ) is omitted since the national prefix is obligatory for these
87 doTestFindInContext("03-331 6005", RegionCode.NZ);
88 doTestFindInContext("03 331 6005", RegionCode.NZ);
91 doTestFindInContext("0064 3 331 6005", RegionCode.NZ);
94 doTestFindInContext("01164 3 331 6005", RegionCode.US);
95 doTestFindInContext("+64 3 331 6005", RegionCode.US);
97 doTestFindInContext("64(0)64123456", RegionCode.NZ);
100 doTestFindInContext("0123/456789", RegionCode.PL);
101 doTestFindInContext("123-456-7890", RegionCode.US)
    [all...]
PhoneNumberUtilTest.java 145 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.US);
166 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.DE);
186 PhoneMetadata metadata = phoneUtil.getMetadataForRegion(RegionCode.AR);
297 RegionCode.MX)));
301 RegionCode.SE)));
317 assertEquals(DE_NUMBER, phoneUtil.getExampleNumber(RegionCode.DE));
320 phoneUtil.getExampleNumberForType(RegionCode.DE,
323 phoneUtil.getExampleNumberForType(RegionCode.DE,
327 assertNotNull(phoneUtil.getExampleNumberForType(RegionCode.US,
329 assertNotNull(phoneUtil.getExampleNumberForType(RegionCode.US
    [all...]
RegionCode.java 22 final class RegionCode {
AsYouTypeFormatterTest.java 30 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ);
52 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ);
72 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ);
92 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY);
107 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.BY);
121 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US);
215 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US);
229 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US);
238 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US);
254 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.US)
    [all...]
  /external/chromium_org/third_party/libphonenumber/src/phonenumbers/
region_code.h 25 class RegionCode {
phonenumberutil.cc 687 if (region_code == RegionCode::GetUnknown()) {
    [all...]
  /external/chromium_org/content/renderer/android/
phone_number_detector.cc 21 using i18n::phonenumbers::RegionCode;
33 : region_code_(RegionCode::GetUnknown()) {
38 : region_code_(region.empty() ? RegionCode::GetUnknown()

Completed in 136 milliseconds