Searched refs:shortInfo (Results 1 – 4 of 4) sorted by relevance
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ShortNumberInfoTest.java | 27 private static final ShortNumberInfo shortInfo = ShortNumberInfo.getInstance(); field in ShortNumberInfoTest 32 assertTrue(shortInfo.isPossibleShortNumber(possibleNumber)); in testIsPossibleShortNumber() 34 shortInfo.isPossibleShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsPossibleShortNumber() 38 assertFalse(shortInfo.isPossibleShortNumber(impossibleNumber)); in testIsPossibleShortNumber() 42 assertTrue(shortInfo.isPossibleShortNumber( in testIsPossibleShortNumber() 47 assertTrue(shortInfo.isValidShortNumber( in testIsValidShortNumber() 49 assertTrue(shortInfo.isValidShortNumberForRegion(parse("1010", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber() 50 assertFalse(shortInfo.isValidShortNumber( in testIsValidShortNumber() 53 shortInfo.isValidShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber() 56 assertTrue(shortInfo.isValidShortNumber( in testIsValidShortNumber() [all …]
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | shortnumberinfo_test.js | 39 var shortInfo = i18n.phonenumbers.ShortNumberInfo.getInstance(); variable 51 assertTrue(shortInfo.isPossibleShortNumber(possibleNumber)); 52 assertTrue(shortInfo.isPossibleShortNumberForRegion( 58 assertFalse(shortInfo.isPossibleShortNumber(impossibleNumber)); 65 assertTrue(shortInfo.isPossibleShortNumber(impossibleUkNumber)); 72 assertTrue(shortInfo.isValidShortNumber(shortNumber1)); 73 assertTrue(shortInfo.isValidShortNumberForRegion( 78 assertFalse(shortInfo.isValidShortNumber(shortNumber2)); 79 assertFalse(shortInfo.isValidShortNumberForRegion( 86 assertTrue(shortInfo.isValidShortNumber(shortNumber3)); [all …]
|
D | demo.js | 106 var shortInfo = i18n.phonenumbers.ShortNumberInfo.getInstance(); 109 output.append(shortInfo.isPossibleShortNumber(number)); 111 output.append(shortInfo.isValidShortNumber(number)); 115 shortInfo.isPossibleShortNumberForRegion(number, regionCode)); 118 shortInfo.isValidShortNumberForRegion(number, regionCode));
|
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/ |
D | PhoneNumberParserServlet.java | 61 private ShortNumberInfo shortInfo = ShortNumberInfo.getInstance(); field in PhoneNumberParserServlet 320 boolean isPossibleShort = shortInfo.isPossibleShortNumber(number); in getOutputForSingleNumber() 326 Boolean.toString(shortInfo.isValidShortNumber(number)), in getOutputForSingleNumber() 330 shortInfo.isPossibleShortNumberForRegion(number, defaultCountry); in getOutputForSingleNumber() 338 Boolean.toString(shortInfo.isValidShortNumberForRegion(number, defaultCountry)), in getOutputForSingleNumber()
|