/third_party/libphonenumber/cpp/test/phonenumbers/ |
H A D | shortnumberinfo_test.cc | 170 RegionCode::FR(), ShortNumberInfo::TOLL_FREE); in TEST_F() 171 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F() 179 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F() 197 ShortNumberInfo::TOLL_FREE, in TEST_F() 204 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F() 286 ShortNumberInfo::TOLL_FREE, in TEST_F() 452 ShortNumberInfo::TOLL_FREE, in TEST_F() 460 ShortNumberInfo::TOLL_FREE, in TEST_F() 468 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F() 477 ShortNumberInfo::TOLL_FREE, in TEST_F() [all...] |
H A D | phonenumberutil_test.cc | 1883 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 1894 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 1905 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 1918 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2062 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2076 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2090 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2106 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2261 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F() 2714 EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util in TEST_F() [all...] |
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
H A D | ShortNumberInfoTest.java | 109 ShortNumberInfo.ShortNumberCost.TOLL_FREE); in testGetExpectedCost() 110 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost() 114 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost() 127 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost() 132 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testGetExpectedCost() 187 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, shortInfo.getExpectedCostForRegion( in testGetExpectedCostForSharedCountryCallingCode() 327 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testEmergencyNumberForSharedCountryCallingCode() 331 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testEmergencyNumberForSharedCountryCallingCode() 336 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testEmergencyNumberForSharedCountryCallingCode() 344 assertEquals(ShortNumberInfo.ShortNumberCost.TOLL_FREE, in testOverlappingNANPANumber() [all...] |
H A D | ExampleNumbersTest.java | 98 Set<PhoneNumberType> tollFreeTypes = EnumSet.of(PhoneNumberType.TOLL_FREE); in testTollFree() 99 checkNumbersValidAndCorrectType(PhoneNumberType.TOLL_FREE, tollFreeTypes); in testTollFree() 253 != ShortNumberInfo.ShortNumberCost.TOLL_FREE) { in testEmergency()
|
H A D | PhoneNumberUtilTest.java | 1150 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree() 1154 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree() 1158 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree() 1162 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree() 1164 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(INTERNATIONAL_TOLL_FREE)); in testIsTollFree() 1398 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths() 1405 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths() 1412 assertTrue(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths() 1420 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths() 1519 phoneUtil.isPossibleNumberForTypeWithReason(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForTypeWithReason_DifferentTypeLengths() [all...] |
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
H A D | shortnumberinfo_test.js | 155 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE); 157 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 164 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 183 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 191 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 269 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 420 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 427 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 435 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, 444 i18n.phonenumbers.ShortNumberInfo.ShortNumberCost.TOLL_FREE, [all...] |
H A D | shortnumberinfo.js | 76 TOLL_FREE: 0, 282 return ShortNumberCost.TOLL_FREE; 286 return ShortNumberCost.TOLL_FREE; 299 * TOLL_FREE. The reason for the position of UNKNOWN_COST in this order is that 300 * if a number is UNKNOWN_COST in one region but STANDARD_RATE or TOLL_FREE in 304 * For example, if a number is STANDARD_RATE in the US, but TOLL_FREE in Canada, 330 var cost = ShortNumberCost.TOLL_FREE; 345 case ShortNumberCost.TOLL_FREE: 441 case ShortNumberCost.TOLL_FREE:
|
H A D | demo.js | 186 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE: 187 return 'TOLL_FREE';
|
H A D | phonenumberutil_test.js | 1616 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); 1621 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); 1626 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); 1631 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); 1633 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(INTERNATIONAL_TOLL_FREE)); 1925 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE)); 1932 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE)); 1939 assertTrue(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE)); 1948 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE)); 2073 phoneUtil.isPossibleNumberForTypeWithReason(number, PNT.TOLL_FREE)); [all...] |
H A D | phonenumberutil.js | 1066 TOLL_FREE: 3, 2927 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE: 2994 return i18n.phonenumbers.PhoneNumberType.TOLL_FREE;
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
H A D | ShortNumberInfo.java | 64 TOLL_FREE, enum constant 274 return ShortNumberCost.TOLL_FREE; in getExpectedCostForRegion() 278 return ShortNumberCost.TOLL_FREE; in getExpectedCostForRegion() 288 * PREMIUM_RATE, UNKNOWN_COST, STANDARD_RATE, TOLL_FREE. The reason for the position of 290 * or TOLL_FREE in another, its expected cost cannot be estimated as one of the latter since it 293 * For example, if a number is STANDARD_RATE in the US, but TOLL_FREE in Canada, the expected 312 ShortNumberCost cost = ShortNumberCost.TOLL_FREE; in getExpectedCost() 326 case TOLL_FREE: in getExpectedCost() 394 case TOLL_FREE: in getExampleShortNumberForCost()
|
H A D | PhoneNumberUtil.java | 480 TOLL_FREE, enum constant 2210 case TOLL_FREE: in getNumberDescByType() 2259 return PhoneNumberType.TOLL_FREE; in getNumberTypeHelper()
|
/third_party/libphonenumber/cpp/src/phonenumbers/ |
H A D | shortnumberinfo.cc | 225 return ShortNumberInfo::TOLL_FREE; in GetExpectedCostForRegion() 229 return ShortNumberInfo::TOLL_FREE; in GetExpectedCostForRegion() 245 ShortNumberInfo::ShortNumberCost cost = ShortNumberInfo::TOLL_FREE; in GetExpectedCost() 259 case ShortNumberInfo::TOLL_FREE: in GetExpectedCost() 316 case TOLL_FREE: in GetExampleShortNumberForCost()
|
H A D | shortnumberinfo.h | 55 TOLL_FREE, enumerator 114 // STANDARD_RATE, TOLL_FREE. The reason for the position of UNKNOWN_COST in 116 // STANDARD_RATE or TOLL_FREE in another, its expected cost cannot be 119 // For example, if a number is STANDARD_RATE in the US, but TOLL_FREE in
|
H A D | phonenumberutil.h | 102 TOLL_FREE, enumerator
|
H A D | phonenumberutil.cc | 144 case PhoneNumberUtil::TOLL_FREE: in GetNumberDescByType() 2560 return PhoneNumberUtil::TOLL_FREE; in GetNumberTypeHelper()
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/ |
H A D | RangeTableTest.java | 24 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.TOLL_FREE; 262 .apply(assign(ranges("4xxxx"), TYPE, TOLL_FREE)) in testGetPrefixMap() 271 // contains the shortest unique prefix for each range. The mapping from TOLL_FREE could not in testGetPrefixMap() 275 assertThat(map).containsEntry(TOLL_FREE, PrefixTree.from(ranges("4"))); in testGetPrefixMap() 284 .apply(assign(ranges("4xxxx"), TYPE, TOLL_FREE)) in testGetPrefixMap_minLength() 292 assertThat(map).containsEntry(TOLL_FREE, PrefixTree.from(ranges("4"))); in testGetPrefixMap_minLength()
|
H A D | CsvTableTest.java | 93 table.put(PhoneRegion.of("US"), ValidNumberType.TOLL_FREE, DigitSequence.of("800123456")); in testExampleNumberExport() 101 "US ; TOLL_FREE ; \"800123456\"", in testExampleNumberExport()
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/ |
H A D | Types.java | 28 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.TOLL_FREE; 67 .put(XML_TOLL_FREE, TOLL_FREE)
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/ |
H A D | RangesTableSchema.java | 152 /** Maps to {@link ValidNumberType#TOLL_FREE}. */ 153 TOLL_FREE, enum constant 160 Stream.of(ExtTariff.TOLL_FREE, ExtTariff.SHARED_COST, ExtTariff.PREMIUM_RATE)
|
H A D | ShortcodesTableSchema.java | 142 Stream.of(ExtTariff.TOLL_FREE, ExtTariff.STANDARD_RATE, ExtTariff.PREMIUM_RATE)
|
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/ |
H A D | BuildMetadataFromXml.java | 87 private static final String TOLL_FREE = "tollFree"; field in BuildMetadataFromXml 513 metadata.setTollFree(processPhoneNumberDescElement(generalDesc, element, TOLL_FREE)); in setRelevantDescPatterns() 522 metadata.setTollFree(processPhoneNumberDescElement(generalDesc, element, TOLL_FREE)); in setRelevantDescPatterns()
|