Home
last modified time | relevance | path

Searched refs:possibleLengths (Results 1 – 9 of 9) sorted by relevance

/third_party/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DDefaultMapStorage.java56 possibleLengths.add((int) Math.log10(prefix) + 1); in readFromSortedMap()
75 possibleLengths.clear(); in readExternal()
77 possibleLengths.add(objectInput.readInt()); in readExternal()
88 int sizeOfLengths = possibleLengths.size(); in writeExternal()
90 for (Integer length : possibleLengths) { in writeExternal()
DFlyweightMapStorage.java82 possibleLengths.add((int) Math.log10(prefix) + 1); in readFromSortedMap()
118 possibleLengths.clear(); in readExternal()
120 possibleLengths.add(objectInput.readInt()); in readExternal()
161 int sizeOfLengths = possibleLengths.size(); in writeExternal()
163 for (Integer length : possibleLengths) { in writeExternal()
DPhonePrefixMapStorageStrategy.java34 protected final TreeSet<Integer> possibleLengths = new TreeSet<Integer>(); field in PhonePrefixMapStorageStrategy
92 return possibleLengths; in getPossibleLengths()
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java405 private static boolean arePossibleLengthsEqual(TreeSet<Integer> possibleLengths, in arePossibleLengthsEqual() argument
407 if (possibleLengths.size() != desc.getPossibleLengthCount()) { in arePossibleLengthsEqual()
412 for (Integer length : possibleLengths) { in arePossibleLengthsEqual()
596 NodeList possibleLengths = data.getElementsByTagName(POSSIBLE_LENGTHS); in populatePossibleLengthSets() local
597 for (int i = 0; i < possibleLengths.getLength(); i++) { in populatePossibleLengthSets()
598 Element element = (Element) possibleLengths.item(i); in populatePossibleLengthSets()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java2328 List<Integer> possibleLengths = numberDesc.getPossibleLengthList();
2329 if (possibleLengths.size() > 0 && !possibleLengths.contains(actualLength)) {
2602 List<Integer> possibleLengths = descForType.getPossibleLengthList().isEmpty()
2616 possibleLengths = new ArrayList<>(possibleLengths);
2620 possibleLengths.addAll(mobileDesc.getPossibleLengthCount() == 0
2625 Collections.sort(possibleLengths);
2640 if (possibleLengths.get(0) == -1) {
2651 int minimumLength = possibleLengths.get(0);
2656 } else if (possibleLengths.get(possibleLengths.size() - 1) < actualLength) {
2660 return possibleLengths.subList(1, possibleLengths.size()).contains(actualLength)
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DMetadataFilterTest.java36 private static final int[] possibleLengths = {8}; field in MetadataFilterTest
879 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_liteBuild() local
906 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_specialBuild() local
940 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_emptyFilter() local
989 for (int i : possibleLengths) { in getFakeArmeniaPhoneNumberDesc()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dshortnumberinfo.js160 var possibleLengths = phoneMetadata.getGeneralDesc().possibleLengthArray();
161 if (possibleLengths.includes(shortNumberLength)) {
Dphonenumberutil.js3426 var possibleLengths = descForType.possibleLengthCount() == 0 ?
3452 possibleLengths = possibleLengths.concat(
3459 possibleLengths.sort();
3473 if (possibleLengths[0] == -1) {
3484 var minimumLength = possibleLengths[0];
3489 } else if (possibleLengths[possibleLengths.length - 1] < actualLength) {
3493 return (possibleLengths.indexOf(actualLength, 1) > -1) ?
/third_party/libphonenumber/
Drelease_notes.txt1508 to use the new possibleLengths metadata. This affects a lot of countries,