Home
last modified time | relevance | path

Searched refs:TOLL_FREE (Results 1 – 23 of 23) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java109 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 …]
DExampleNumbersTest.java98 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()
DPhoneNumberUtilTest.java1145 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree()
1149 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree()
1153 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree()
1157 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber)); in testIsTollFree()
1159 assertEquals(PhoneNumberType.TOLL_FREE, phoneUtil.getNumberType(INTERNATIONAL_TOLL_FREE)); in testIsTollFree()
1393 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths()
1400 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths()
1407 assertTrue(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths()
1415 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForType_DifferentTypeLengths()
1514 phoneUtil.isPossibleNumberForTypeWithReason(number, PhoneNumberType.TOLL_FREE)); in testIsPossibleNumberForTypeWithReason_DifferentTypeLengths()
[all …]
/third_party/libphonenumber/cpp/test/phonenumbers/
Dshortnumberinfo_test.cc167 RegionCode::FR(), ShortNumberInfo::TOLL_FREE); in TEST_F()
168 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
176 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
194 ShortNumberInfo::TOLL_FREE, in TEST_F()
201 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
283 ShortNumberInfo::TOLL_FREE, in TEST_F()
449 ShortNumberInfo::TOLL_FREE, in TEST_F()
457 ShortNumberInfo::TOLL_FREE, in TEST_F()
465 EXPECT_EQ(ShortNumberInfo::TOLL_FREE, in TEST_F()
474 ShortNumberInfo::TOLL_FREE, in TEST_F()
[all …]
Dphonenumberutil_test.cc1867 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
1878 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
1889 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
1902 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2046 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2060 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2074 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2090 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2245 number, PhoneNumberUtil::TOLL_FREE)); in TEST_F()
2694 EXPECT_EQ(PhoneNumberUtil::TOLL_FREE, phone_util_.GetNumberType(number)); in TEST_F()
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dshortnumberinfo_test.js155 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 …]
Dshortnumberinfo.js76 TOLL_FREE: 0, property
282 return ShortNumberCost.TOLL_FREE;
286 return ShortNumberCost.TOLL_FREE;
330 var cost = ShortNumberCost.TOLL_FREE;
345 case ShortNumberCost.TOLL_FREE:
441 case ShortNumberCost.TOLL_FREE:
Dphonenumberutil_test.js1609 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber));
1614 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber));
1619 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber));
1624 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(tollFreeNumber));
1626 assertEquals(PNT.TOLL_FREE, phoneUtil.getNumberType(INTERNATIONAL_TOLL_FREE));
1918 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE));
1925 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE));
1932 assertTrue(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE));
1941 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.TOLL_FREE));
2066 phoneUtil.isPossibleNumberForTypeWithReason(number, PNT.TOLL_FREE));
[all …]
Ddemo.js175 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE:
Dphonenumberutil.js992 TOLL_FREE: 3, property
2859 case i18n.phonenumbers.PhoneNumberType.TOLL_FREE:
2926 return i18n.phonenumbers.PhoneNumberType.TOLL_FREE;
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java64 TOLL_FREE, enumConstant
274 return ShortNumberCost.TOLL_FREE; in getExpectedCostForRegion()
278 return ShortNumberCost.TOLL_FREE; in getExpectedCostForRegion()
312 ShortNumberCost cost = ShortNumberCost.TOLL_FREE; in getExpectedCost()
326 case TOLL_FREE: in getExpectedCost()
394 case TOLL_FREE: in getExampleShortNumberForCost()
DPhoneNumberUtil.java463 TOLL_FREE, enumConstant
2196 case TOLL_FREE:
2245 return PhoneNumberType.TOLL_FREE;
/third_party/libphonenumber/cpp/src/phonenumbers/
Dshortnumberinfo.cc216 return ShortNumberInfo::TOLL_FREE; in GetExpectedCostForRegion()
220 return ShortNumberInfo::TOLL_FREE; in GetExpectedCostForRegion()
236 ShortNumberInfo::ShortNumberCost cost = ShortNumberInfo::TOLL_FREE; in GetExpectedCost()
250 case ShortNumberInfo::TOLL_FREE: in GetExpectedCost()
307 case TOLL_FREE: in GetExampleShortNumberForCost()
Dshortnumberinfo.h50 TOLL_FREE, enumerator
Dphonenumberutil.h98 TOLL_FREE, enumerator
Dphonenumberutil.cc142 case PhoneNumberUtil::TOLL_FREE: in GetNumberDescByType()
2529 return PhoneNumberUtil::TOLL_FREE; in GetNumberTypeHelper()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DRangeTableTest.java24 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.TOLL_FREE;
262 .apply(assign(ranges("4xxxx"), TYPE, TOLL_FREE)) 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()
DCsvTableTest.java93 table.put(PhoneRegion.of("US"), ValidNumberType.TOLL_FREE, DigitSequence.of("800123456")); in testExampleNumberExport()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/
DTypes.java28 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/
DRangesTableSchema.java152 TOLL_FREE, enumConstant
159 Stream.of(ExtTariff.TOLL_FREE, ExtTariff.SHARED_COST, ExtTariff.PREMIUM_RATE)
DShortcodesTableSchema.java142 Stream.of(ExtTariff.TOLL_FREE, ExtTariff.STANDARD_RATE, ExtTariff.PREMIUM_RATE)
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java87 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()
/third_party/libphonenumber/metadata/src/main/proto/
Dtypes.proto52 TOLL_FREE = 5; enumerator