HomeSort by relevance Sort by last modified time
    Searched refs:fromIndex (Results 1 - 25 of 53) sorted by null

1 2 3

  /external/guava/src/com/google/common/collect/
RegularImmutableSortedSet.java 45 private final int fromIndex;
56 this.fromIndex = 0;
61 Comparator<? super E> comparator, int fromIndex, int toIndex) {
64 this.fromIndex = fromIndex;
72 Iterators.forArray(elements, fromIndex, size());
80 return toIndex - fromIndex;
105 int i = fromIndex;
131 int lower = fromIndex;
151 Platform.unsafeArrayCopy(elements, fromIndex, array, 0, size())
    [all...]
ImmutableSortedAsList.java 54 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
55 Preconditions.checkPositionIndexes(fromIndex, toIndex, size());
56 return (fromIndex == toIndex)
60 offset() + fromIndex, offset() + toIndex).asList();
SingletonImmutableList.java 74 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
75 Preconditions.checkPositionIndexes(fromIndex, toIndex, 1);
76 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this;
ForwardingList.java 84 public List<E> subList(int fromIndex, int toIndex) {
85 return Platform.subList(delegate(), fromIndex, toIndex);
Platform.java 42 static <T> List<T> subList(List<T> list, int fromIndex, int toIndex) {
43 return list.subList(fromIndex, toIndex);
EmptyImmutableList.java 85 @Override public ImmutableList<Object> subList(int fromIndex, int toIndex) {
86 checkPositionIndexes(fromIndex, toIndex, 0);
ImmutableSortedMap.java 376 private final transient int fromIndex;
380 Comparator<? super K> comparator, int fromIndex, int toIndex) {
386 this.fromIndex = fromIndex;
396 return toIndex - fromIndex;
413 int lower = fromIndex;
436 for (int i = fromIndex; i < toIndex; i++) {
473 return Iterators.forArray(map.entries, map.fromIndex, size());
518 for (int i = fromIndex; i < toIndex; i++) {
519 array[i - fromIndex] = entries[i].getKey()
    [all...]
RegularImmutableList.java 113 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
114 Preconditions.checkPositionIndexes(fromIndex, toIndex, size);
115 return (fromIndex == toIndex)
118 array, offset + fromIndex, toIndex - fromIndex);
  /libcore/luni/src/main/java/org/apache/xml/utils/
XMLStringDefault.java 418 * no smaller than <code>fromIndex</code>, then the index of the first
422 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
425 * position <code>fromIndex</code>, then <code>-1</code> is returned.
427 * There is no restriction on the value of <code>fromIndex</code>. If it
434 * @param fromIndex the index to start the search from.
437 * than or equal to <code>fromIndex</code>, or <code>-1</code>
440 public int indexOf(int ch, int fromIndex)
442 return m_str.indexOf(ch, fromIndex);
471 * this.charAt(k) == ch) && (k <= fromIndex)
476 * @param fromIndex the index to start the search from. There is n
    [all...]
XMLString.java 352 * no smaller than <code>fromIndex</code>, then the index of the first
356 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
359 * position <code>fromIndex</code>, then <code>-1</code> is returned.
361 * There is no restriction on the value of <code>fromIndex</code>. If it
368 * @param fromIndex the index to start the search from.
371 * than or equal to <code>fromIndex</code>, or <code>-1</code>
374 public abstract int indexOf(int ch, int fromIndex);
399 * this.charAt(k) == ch) && (k <= fromIndex)
404 * @param fromIndex the index to start the search from. There is no
405 * restriction on the value of <code>fromIndex</code>. If it i
    [all...]
  /libcore/luni/src/main/java/java/util/
BitSet.java 252 private void checkRange(int fromIndex, int toIndex) {
253 if (fromIndex < 0 || toIndex < 0 || toIndex < fromIndex) {
254 throw new IndexOutOfBoundsException("fromIndex=" + fromIndex + " toIndex=" + toIndex);
259 * Retrieves the bits starting from {@code fromIndex} to {@code toIndex} and returns
262 * @param fromIndex
268 * if {@code fromIndex} or {@code toIndex} is negative, or if
269 * {@code toIndex} is smaller than {@code fromIndex}.
272 public BitSet get(int fromIndex, int toIndex)
    [all...]
ArrayList.java 443 @Override protected void removeRange(int fromIndex, int toIndex) {
444 if (fromIndex == toIndex) {
449 if (fromIndex >= s) {
450 throw new IndexOutOfBoundsException("fromIndex " + fromIndex
457 if (fromIndex > toIndex) {
458 throw new IndexOutOfBoundsException("fromIndex " + fromIndex
462 System.arraycopy(a, toIndex, a, fromIndex, s - toIndex);
463 int rangeSize = toIndex - fromIndex;
    [all...]
DualPivotQuicksort.java 77 * to be sorted extends from the index {@code fromIndex}, inclusive, to
78 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
82 * @param fromIndex the index of the first element, inclusive, to be sorted
84 * @throws IllegalArgumentException if {@code fromIndex > toIndex}
86 * if {@code fromIndex < 0} or {@code toIndex > a.length}
88 public static void sort(int[] a, int fromIndex, int toIndex) {
89 rangeCheck(a.length, fromIndex, toIndex);
90 doSort(a, fromIndex, toIndex - 1);
355 * to be sorted extends from the index {@code fromIndex}, inclusive, to
356 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
NameLookupBuilder.java 212 * fromIndex and toIndex
220 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex,
222 if (fromIndex == toIndex) {
231 String firstToken = mNames[fromIndex];
232 for (int i = fromIndex; i < toIndex; i++) {
233 mNames[fromIndex] = mNames[i];
236 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex,
237 initiallyExact && i == fromIndex, buildCollationKey);
239 mNames[i] = mNames[fromIndex];
240 mNames[fromIndex] = firstToken
    [all...]
  /libcore/luni/src/main/java/javax/security/auth/x500/
X500Principal.java 228 int fromIndex = resultName.length();
230 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) {
243 fromIndex = commaIndex;
250 int fromIndex = resultName.length();
254 while (-1 != (equalIndex = resultName.lastIndexOf("=", fromIndex))) {
275 fromIndex = commaIndex;
304 int fromIndex = sbName.length();
306 while (-1 != (equalIndex = sbName.lastIndexOf("=", fromIndex))) {
312 fromIndex = commaIndex;
  /libcore/luni/src/main/java/org/apache/xpath/objects/
XString.java 658 * no smaller than <code>fromIndex</code>, then the index of the first
662 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
665 * position <code>fromIndex</code>, then <code>-1</code> is returned.
667 * There is no restriction on the value of <code>fromIndex</code>. If it
674 * @param fromIndex the index to start the search from.
677 * than or equal to <code>fromIndex</code>, or <code>-1</code>
680 public int indexOf(int ch, int fromIndex)
682 return str().indexOf(ch, fromIndex);
711 * this.charAt(k) == ch) && (k <= fromIndex)
716 * @param fromIndex the index to start the search from. There is n
    [all...]
XStringForFSB.java 685 * no smaller than <code>fromIndex</code>, then the index of the first
689 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
692 * position <code>fromIndex</code>, then <code>-1</code> is returned.
694 * There is no restriction on the value of <code>fromIndex</code>. If it
701 * @param fromIndex the index to start the search from.
704 * than or equal to <code>fromIndex</code>, or <code>-1</code>
707 public int indexOf(int ch, int fromIndex)
713 if (fromIndex < 0)
715 fromIndex = 0;
717 else if (fromIndex >= m_length
    [all...]
  /external/proguard/src/proguard/
DataEntryWriterFactory.java 40 * @param fromIndex the start index in the class path.
45 int fromIndex,
51 for (int index = toIndex - 1; index >= fromIndex; index--)
InputReader.java 191 int fromIndex,
195 for (int index = fromIndex; index < toIndex; index++)
  /external/guava/src/com/google/common/primitives/
Bytes.java 324 /*@Override*/ public List<Byte> subList(int fromIndex, int toIndex) {
326 checkPositionIndexes(fromIndex, toIndex, size);
327 if (fromIndex == toIndex) {
330 return new ByteArrayAsList(array, start + fromIndex, start + toIndex);
Booleans.java 409 /*@Override*/ public List<Boolean> subList(int fromIndex, int toIndex) {
411 checkPositionIndexes(fromIndex, toIndex, size);
412 if (fromIndex == toIndex) {
415 return new BooleanArrayAsList(array, start + fromIndex, start + toIndex);
Chars.java 510 /*@Override*/ public List<Character> subList(int fromIndex, int toIndex) {
512 checkPositionIndexes(fromIndex, toIndex, size);
513 if (fromIndex == toIndex) {
516 return new CharArrayAsList(array, start + fromIndex, start + toIndex);
Doubles.java 446 /*@Override*/ public List<Double> subList(int fromIndex, int toIndex) {
448 checkPositionIndexes(fromIndex, toIndex, size);
449 if (fromIndex == toIndex) {
452 return new DoubleArrayAsList(array, start + fromIndex, start + toIndex);
Floats.java 443 /*@Override*/ public List<Float> subList(int fromIndex, int toIndex) {
445 checkPositionIndexes(fromIndex, toIndex, size);
446 if (fromIndex == toIndex) {
449 return new FloatArrayAsList(array, start + fromIndex, start + toIndex);
Ints.java 517 /*@Override*/ public List<Integer> subList(int fromIndex, int toIndex) {
519 checkPositionIndexes(fromIndex, toIndex, size);
520 if (fromIndex == toIndex) {
523 return new IntArrayAsList(array, start + fromIndex, start + toIndex);

Completed in 495 milliseconds

1 2 3