Searched refs:possibleLengths (Results 1 - 10 of 10) sorted by relevance
/third_party/libphonenumber/java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
H A D | DefaultMapStorage.java | 56 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()
|
H A D | FlyweightMapStorage.java | 82 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()
|
H A D | PhonePrefixMapStorageStrategy.java | 34 protected final TreeSet<Integer> possibleLengths = new TreeSet<Integer>(); field in PhonePrefixMapStorageStrategy 92 return possibleLengths; in getPossibleLengths()
|
/third_party/libphonenumber/cpp/src/phonenumbers/ohos/ |
H A D | update_geocoding.cc | 156 int32_t* possibleLengths = (int32_t*)malloc(sizeof(int32_t) * lengthsSize); in AddPrefixDescriptions() local 157 if (!possibleLengths) { in AddPrefixDescriptions() 160 ModifyPossibleLengths(possibleLengths, prefixesInfo, index); in AddPrefixDescriptions() 166 possibleLengths, in AddPrefixDescriptions() 224 void UpdateGeocoding::ModifyPossibleLengths(int32_t* possibleLengths, PrefixesInfo& prefixesInfo, int index) in ModifyPossibleLengths() argument 228 possibleLengths[i] = prefixesInfo.lengths(i); in ModifyPossibleLengths() 232 possibleLengths[i] = prefixDescriptionsArray[index]->possible_lengths[i]; in ModifyPossibleLengths()
|
H A D | update_geocoding.h | 42 static void ModifyPossibleLengths(int32_t* possibleLengths, PrefixesInfo& prefixesInfo, int index);
|
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/ |
H A D | BuildMetadataFromXml.java | 77 private static final String POSSIBLE_LENGTHS = "possibleLengths"; 402 * stored already in the description pattern. Note that possibleLengths may be empty but must not 405 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() 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/ |
H A D | PhoneNumberUtil.java | 2342 List<Integer> possibleLengths = numberDesc.getPossibleLengthList(); in isNumberMatchingDesc() 2343 if (possibleLengths.size() > 0 && !possibleLengths.contains(actualLength)) { in isNumberMatchingDesc() 2610 // There should always be "possibleLengths" set for every element. This is declared in the XML in testNumberLength() 2612 // For size efficiency, where a sub-description (e.g. fixed-line) has the same possibleLengths in testNumberLength() 2616 List<Integer> possibleLengths = descForType.getPossibleLengthList().isEmpty() in testNumberLength() 2630 possibleLengths = new ArrayList<>(possibleLengths); in testNumberLength() 2634 possibleLengths.addAll(mobileDesc.getPossibleLengthCount() == 0 in testNumberLength() 2639 Collections.sort(possibleLengths); in testNumberLength() [all...] |
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/ |
H A D | MetadataFilterTest.java | 36 private static final int[] possibleLengths = {8}; field in MetadataFilterTest 875 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_liteBuild() 902 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_specialBuild() 936 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_emptyFilter() 985 for (int i : possibleLengths) { in getFakeArmeniaPhoneNumberDesc()
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
H A D | shortnumberinfo.js | 160 var possibleLengths = phoneMetadata.getGeneralDesc().possibleLengthArray(); 161 if (possibleLengths.includes(shortNumberLength)) {
|
H A D | phonenumberutil.js | 3486 // There should always be "possibleLengths" set for every element. This is 3490 // same possibleLengths as the parent, this is missing, so we fall back to 3494 var possibleLengths = descForType.possibleLengthCount() == 0 ? 3514 // array, it doesn't edit possibleLengths in place, so we don't need a 3520 possibleLengths = possibleLengths.concat( 3527 possibleLengths.sort(); 3541 if (possibleLengths[0] == -1) { 3552 var minimumLength = possibleLengths[0]; 3557 } else if (possibleLengths[possibleLength [all...] |
Completed in 15 milliseconds