Home
last modified time | relevance | path

Searched refs:possibleLengths (Results 1 – 11 of 11) 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/cpp/src/phonenumbers/ohos/
Dupdate_geocoding.cc158 int32_t* possibleLengths = (int32_t*)malloc(sizeof(int32_t) * lengthsSize); in AddPrefixDescriptions() local
159 if (!possibleLengths) { in AddPrefixDescriptions()
162 ModifyPossibleLengths(possibleLengths, prefixesInfo, index); in AddPrefixDescriptions()
168 possibleLengths, in AddPrefixDescriptions()
226 void UpdateGeocoding::ModifyPossibleLengths(int32_t* possibleLengths, PrefixesInfo& prefixesInfo, i… in ModifyPossibleLengths() argument
230 possibleLengths[i] = prefixesInfo.lengths(i); in ModifyPossibleLengths()
234 possibleLengths[i] = prefixDescriptionsArray[index]->possible_lengths[i]; in ModifyPossibleLengths()
Dupdate_geocoding.h42 …static void ModifyPossibleLengths(int32_t* possibleLengths, PrefixesInfo& prefixesInfo, int index);
/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.java2342 List<Integer> possibleLengths = numberDesc.getPossibleLengthList();
2343 if (possibleLengths.size() > 0 && !possibleLengths.contains(actualLength)) {
2616 List<Integer> possibleLengths = descForType.getPossibleLengthList().isEmpty()
2630 possibleLengths = new ArrayList<>(possibleLengths);
2634 possibleLengths.addAll(mobileDesc.getPossibleLengthCount() == 0
2639 Collections.sort(possibleLengths);
2654 if (possibleLengths.get(0) == -1) {
2665 int minimumLength = possibleLengths.get(0);
2670 } else if (possibleLengths.get(possibleLengths.size() - 1) < actualLength) {
2674 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
875 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_liteBuild() local
902 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_specialBuild() local
936 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_emptyFilter() local
985 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.js3494 var possibleLengths = descForType.possibleLengthCount() == 0 ?
3520 possibleLengths = possibleLengths.concat(
3527 possibleLengths.sort();
3541 if (possibleLengths[0] == -1) {
3552 var minimumLength = possibleLengths[0];
3557 } else if (possibleLengths[possibleLengths.length - 1] < actualLength) {
3561 return (possibleLengths.indexOf(actualLength, 1) > -1) ?
/third_party/libphonenumber/
Drelease_notes.txt1893 to use the new possibleLengths metadata. This affects a lot of countries,