Home
last modified time | relevance | path

Searched refs:FIXED_LINE (Results 1 – 18 of 18) sorted by relevance

/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DRangeTableTest.java20 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.FIXED_LINE;
88 Assignment<ValidNumberType> fixedLine = Assignment.of(TYPE, FIXED_LINE); in testBasicAssign()
93 assertThat(table.getRanges(TYPE, FIXED_LINE)).isEqualTo(ranges("14xxxx")); in testBasicAssign()
98 assertThat(table.getRanges(TYPE, FIXED_LINE)).isEqualTo(ranges("1[34]xxxx")); in testBasicAssign()
107 assertThat(table.getRanges(TYPE, FIXED_LINE)).isEqualTo(ranges("1[3-5]xxxx")); in testBasicAssign()
128 .apply(assign(ranges("[1-3]xxxxxx"), TYPE, FIXED_LINE)) in testApplyChanges()
137 assertThat(table).assigned(TYPE, FIXED_LINE).containsExactly("[1-3]xxxxxx"); in testApplyChanges()
196 .apply(assign(ranges("[24]xxxxxx"), TYPE, FIXED_LINE)) in testTableImportExport()
205 assertThat(exported).containsCell(assigned("2xxxxxx", TYPE, FIXED_LINE)); in testTableImportExport()
209 assertThat(exported).containsCell(assigned("4xxxxxx", TYPE, FIXED_LINE)); in testTableImportExport()
[all …]
DColumnTest.java19 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.FIXED_LINE;
80 assertThat(column.cast(FIXED_LINE)).isEqualTo(FIXED_LINE); in testEnumColumn()
84 assertThat(column.parse("FIXED_LINE")).isEqualTo(FIXED_LINE); in testEnumColumn()
85 assertThat(column.parse("fixed_line")).isEqualTo(FIXED_LINE); in testEnumColumn()
86 assertThat(column.parse("fixedLine")).isEqualTo(FIXED_LINE); in testEnumColumn()
DCsvTableTest.java23 import static com.google.i18n.phonenumbers.metadata.model.RangesTableSchema.ExtType.FIXED_LINE;
77 .apply(row(columns, key("345", 8), FIXED_LINE, 3, true, null)) in testRangeTableExport()
78 .apply(row(columns, key("456x8", 8), FIXED_LINE, 3, null, true)) in testRangeTableExport()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java167 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion()
177 .contains(PhoneNumberType.FIXED_LINE)); in testGetSupportedTypesForRegion()
403 DE_NUMBER, phoneUtil.getExampleNumberForType(RegionCode.DE, PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
407 assertNotNull(phoneUtil.getExampleNumberForType(RegionCode.US, PhoneNumberType.FIXED_LINE)); in testGetExampleNumber()
436 assertNotNull(phoneUtil.getExampleNumberForType(PhoneNumberType.FIXED_LINE)); in testGetExampleNumberWithoutRegion()
1174 assertEquals(PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(BS_NUMBER)); in testIsFixedLine()
1175 assertEquals(PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(IT_NUMBER)); in testIsFixedLine()
1176 assertEquals(PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(GB_NUMBER)); in testIsFixedLine()
1177 assertEquals(PhoneNumberType.FIXED_LINE, phoneUtil.getNumberType(DE_NUMBER)); in testIsFixedLine()
1383 assertFalse(phoneUtil.isPossibleNumberForType(number, PhoneNumberType.FIXED_LINE)); in testIsPossibleNumberForType_DifferentTypeLengths()
[all …]
DExampleNumbersTest.java82 Set<PhoneNumberType> fixedLineTypes = EnumSet.of(PhoneNumberType.FIXED_LINE, in testFixedLine()
84 checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); in testFixedLine()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js487 assertTrue(types.includes(PNT.FIXED_LINE));
497 assertTrue(types.includes(PNT.FIXED_LINE));
558 phoneUtil.getExampleNumberForType(RegionCode.DE, PNT.FIXED_LINE)));
567 phoneUtil.getExampleNumberForType(RegionCode.US, PNT.FIXED_LINE));
1645 assertEquals(PNT.FIXED_LINE, phoneUtil.getNumberType(BS_NUMBER));
1646 assertEquals(PNT.FIXED_LINE, phoneUtil.getNumberType(IT_NUMBER));
1647 assertEquals(PNT.FIXED_LINE, phoneUtil.getNumberType(GB_NUMBER));
1648 assertEquals(PNT.FIXED_LINE, phoneUtil.getNumberType(DE_NUMBER));
1908 assertFalse(phoneUtil.isPossibleNumberForType(number, PNT.FIXED_LINE));
1914 assertTrue(phoneUtil.isPossibleNumberForType(number, PNT.FIXED_LINE));
[all …]
Dphonenumberutil.js986 FIXED_LINE: 0, property
1643 return numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE ||
1984 (numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE) ||
1989 numberType == i18n.phonenumbers.PhoneNumberType.FIXED_LINE) {
2739 i18n.phonenumbers.PhoneNumberType.FIXED_LINE);
2863 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE:
2958 return i18n.phonenumbers.PhoneNumberType.FIXED_LINE;
3434 metadata, i18n.phonenumbers.PhoneNumberType.FIXED_LINE))) {
Ddemo.js169 case i18n.phonenumbers.PhoneNumberType.FIXED_LINE:
/third_party/libphonenumber/cpp/test/phonenumbers/
Dphonenumberutil_test.cc202 EXPECT_NE(types.find(PhoneNumberUtil::FIXED_LINE), types.end()); in TEST_F()
213 EXPECT_NE(types.find(PhoneNumberUtil::FIXED_LINE), types.end()); in TEST_F()
410 RegionCode::DE(), PhoneNumberUtil::FIXED_LINE, &test_number); in TEST_F()
430 RegionCode::US(), PhoneNumberUtil::FIXED_LINE, &test_number); in TEST_F()
492 PhoneNumberUtil::FIXED_LINE, in TEST_F()
1852 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::FIXED_LINE)); in TEST_F()
1861 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::FIXED_LINE)); in TEST_F()
1874 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::FIXED_LINE)); in TEST_F()
1885 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::FIXED_LINE)); in TEST_F()
1898 phone_util_.IsPossibleNumberForType(number, PhoneNumberUtil::FIXED_LINE)); in TEST_F()
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/
DTypes.java22 import static com.google.i18n.phonenumbers.metadata.proto.Types.ValidNumberType.FIXED_LINE;
64 .put(XML_FIXED_LINE, FIXED_LINE)
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java457 FIXED_LINE, enumConstant
1226 return phoneNumberType == PhoneNumberType.FIXED_LINE
1471 (numberType == PhoneNumberType.FIXED_LINE) || (numberType == PhoneNumberType.MOBILE)
1474 if (regionCode.equals("CO") && numberType == PhoneNumberType.FIXED_LINE) {
2022 return getExampleNumberForType(regionCode, PhoneNumberType.FIXED_LINE);
2046 PhoneNumberType.FIXED_LINE);
2200 case FIXED_LINE:
2273 return PhoneNumberType.FIXED_LINE;
2608 if (!descHasPossibleNumberData(getNumberDescByType(metadata, PhoneNumberType.FIXED_LINE))) {
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DRangesTableSchema.java106 FIXED_LINE, enumConstant
128 ExtType.FIXED_LINE,
DNumberingScheme.java557 if (t == ValidNumberType.MOBILE || t == ValidNumberType.FIXED_LINE) { in checkExampleNumbers()
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumberutil.cc146 case PhoneNumberUtil::FIXED_LINE: in GetNumberDescByType()
423 GetNumberDescByType(metadata, PhoneNumberUtil::FIXED_LINE); in TestNumberLength()
1269 (number_type == FIXED_LINE) || (number_type == MOBILE) || in FormatNumberForMobileDialing()
1272 if ((region_code == "CO") && (number_type == FIXED_LINE)) { in FormatNumberForMobileDialing()
1939 return GetExampleNumberForType(region_code, FIXED_LINE, number); in GetExampleNumber()
1956 GetNumberDescByType(*region_metadata, FIXED_LINE); in GetInvalidExampleNumber()
2474 return phone_number_type == PhoneNumberUtil::FIXED_LINE || in IsNumberGeographical()
2569 return PhoneNumberUtil::FIXED_LINE; in GetNumberTypeHelper()
Dphonenumberutil.h92 FIXED_LINE, enumerator
/third_party/libphonenumber/metadata/src/main/proto/
Dtypes.proto48 FIXED_LINE = 1; enumerator
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java56 private static final String FIXED_LINE = "fixedLine"; field in BuildMetadataFromXml
496 metadata.setFixedLine(processPhoneNumberDescElement(generalDesc, element, FIXED_LINE)); in setRelevantDescPatterns()
/third_party/libphonenumber/
DFAQ.md148 `FIXED_LINE` number for a business matches the country it is in, to try and spot