HomeSort by relevance Sort by last modified time
    Searched full:fromindex (Results 1 - 25 of 258) sorted by null

1 2 3 4 5 6 7 8 91011

  /libcore/ojluni/src/main/java/java/util/
BitSet.java 352 * Checks that fromIndex ... toIndex is a valid range of bit indices.
354 private static void checkRange(int fromIndex, int toIndex) {
355 if (fromIndex < 0)
356 throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex);
359 if (fromIndex > toIndex)
360 throw new IndexOutOfBoundsException("fromIndex: " + fromIndex +
386 * Sets each bit from the specified {@code fromIndex} (inclusive) to the
390 * @param fromIndex index of the first bit to fli
    [all...]
Arrays.java 131 * to be sorted extends from the index {@code fromIndex}, inclusive, to
132 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
142 * @param fromIndex the index of the first element, inclusive, to be sorted
145 * @throws IllegalArgumentException if {@code fromIndex > toIndex}
147 * if {@code fromIndex < 0} or {@code toIndex > a.length}
149 public static void sort(int[] a, int fromIndex, int toIndex) {
150 rangeCheck(a.length, fromIndex, toIndex);
151 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0);
171 * to be sorted extends from the index {@code fromIndex}, inclusive, to
172 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}
    [all...]
AbstractList.java 227 * index)} or {@code removeRange(int fromIndex, int toIndex)} is
479 * {@code (fromIndex < 0 || toIndex > size)}
481 * {@code (fromIndex > toIndex)}
483 public List<E> subList(int fromIndex, int toIndex) {
485 new RandomAccessSubList<>(this, fromIndex, toIndex) :
486 new SubList<>(this, fromIndex, toIndex));
547 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive.
549 * This call shortens the list by {@code (toIndex - fromIndex)} elements.
550 * (If {@code toIndex==fromIndex}, this operation has no effect.)
559 * {@code fromIndex}, and repeatedly calls {@code ListIterator.next
    [all...]
ArrayList.java 605 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive.
607 * This call shortens the list by {@code (toIndex - fromIndex)} elements.
608 * (If {@code toIndex==fromIndex}, this operation has no effect.)
610 * @throws IndexOutOfBoundsException if {@code fromIndex} or
612 * ({@code fromIndex < 0 ||
613 * fromIndex >= size() ||
615 * toIndex < fromIndex})
617 protected void removeRange(int fromIndex, int toIndex) {
618 // Android-changed : Throw an IOOBE if toIndex < fromIndex as documented.
621 if (toIndex < fromIndex) {
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
ListExtensions.cs 206 public static IList subList( this IList list, int fromIndex, int toIndex )
208 return new SubList( list, fromIndex, toIndex );
212 // .Skip( fromIndex )
213 // .Take( toIndex - fromIndex + 1 )
217 public static IList<T> subList<T>( this IList<T> list, int fromIndex, int toIndex )
219 return new SubList<T>( list, fromIndex, toIndex );
222 // .Skip( fromIndex )
223 // .Take( toIndex - fromIndex + 1 )
227 public static IList<T> subList<T>( this List<T> list, int fromIndex, int toIndex )
229 return new SubList<T>( list, fromIndex, toIndex )
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/
StateViewPage.java 270 * Update GL state from GL call at fromIndex to the call at toIndex.
271 * If fromIndex < toIndex, the GL state will be updated by applying all the transformations
272 * corresponding to calls from (fromIndex + 1) to toIndex (inclusive).
273 * If fromIndex > toIndex, the GL state will be updated by reverting all the calls from
274 * fromIndex (inclusive) to (toIndex + 1).
277 private Set<IGLProperty> updateState(int fromIndex, int toIndex) {
278 assert fromIndex >= -1 && fromIndex < mGLCalls.size();
281 if (fromIndex < toIndex) {
282 return applyTransformations(fromIndex, toIndex)
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/
Sort.java 40 public <T> void sort (T[] a, int fromIndex, int toIndex) {
42 comparableTimSort.doSort(a, fromIndex, toIndex);
55 public <T> void sort (T[] a, Comparator<? super T> c, int fromIndex, int toIndex) {
57 timSort.doSort(a, c, fromIndex, toIndex);
  /external/v8/test/mjsunit/es7/
typed-array-includes.js 58 // called on a symbol fromIndex
71 // converting the fromIndex to a number
75 var fromIndex = {
85 ta.includes(2, fromIndex);
92 // optional second argument fromIndex defaults to 0
103 // %TypedArray%.prototype.includes returns false if fromIndex is greater or
115 // index from the given negative fromIndex argument is less than 0
126 // from the end of the array to compute fromIndex
137 // %TypedArray%.prototype.includes converts its fromIndex parameter to an
  /frameworks/data-binding/extensions/library/src/main/java/android/databinding/
ObservableArrayList.java 111 protected void removeRange(int fromIndex, int toIndex) {
112 super.removeRange(fromIndex, toIndex);
113 notifyRemove(fromIndex, toIndex - fromIndex);
  /external/okhttp/okio/okio/src/main/java/okio/
RealBufferedSource.java 303 @Override public long indexOf(byte b, long fromIndex) throws IOException {
305 while (fromIndex >= buffer.size) {
309 while ((index = buffer.indexOf(b, fromIndex)) == -1) {
310 fromIndex = buffer.size;
320 @Override public long indexOf(ByteString bytes, long fromIndex) throws IOException {
323 fromIndex = indexOf(bytes.getByte(0), fromIndex);
324 if (fromIndex == -1) {
327 if (rangeEquals(fromIndex, bytes)) {
328 return fromIndex;
    [all...]
  /external/guava/guava/src/com/google/common/collect/
RegularImmutableSortedMap.java 100 private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) {
101 if (fromIndex == 0 && toIndex == size()) {
103 } else if (fromIndex == toIndex) {
107 keySet.getSubSet(fromIndex, toIndex),
108 valueList.subList(fromIndex, toIndex));
RegularImmutableList.java 96 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
98 array, offset + fromIndex, toIndex - fromIndex);
SingletonImmutableList.java 66 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
67 Preconditions.checkPositionIndexes(fromIndex, toIndex, 1);
68 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this;
ImmutableSortedAsList.java 81 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
83 super.subListUnchecked(fromIndex, toIndex), comparator())
ImmutableList.java 375 * fromIndex}, inclusive, and {@code toIndex}, exclusive. (If {@code
376 * fromIndex} and {@code toIndex} are equal, the empty immutable list is
380 public ImmutableList<E> subList(int fromIndex, int toIndex) {
381 checkPositionIndexes(fromIndex, toIndex, size());
382 int length = toIndex - fromIndex;
387 return of(get(fromIndex));
389 return subListUnchecked(fromIndex, toIndex);
395 * toIndex - fromIndex > 1}, after index validation has already been
398 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
399 return new SubList(fromIndex, toIndex - fromIndex)
    [all...]
  /frameworks/minikin/libs/minikin/
SparseBitSet.cpp 115 uint32_t SparseBitSet::nextSetBit(uint32_t fromIndex) const {
116 if (fromIndex >= mMaxVal) {
119 uint32_t fromPage = fromIndex >> kLogValuesPerPage;
121 uint32_t offset = (fromIndex & kPageMask) >> kLogBitsPerEl;
122 element e = bitmap[offset] & (kElAllOnes >> (fromIndex & kElMask));
124 return (fromIndex & ~kElMask) + CountLeadingZeros(e);
129 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
SentenceLevelAdapter.java 91 public int getEndOfWord(final CharSequence sequence, final int fromIndex) {
93 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1);
116 public int getBeginningOfNextWord(final CharSequence sequence, final int fromIndex) {
118 if (fromIndex >= length) {
121 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
MoreSuggestions.java 56 public int layout(final SuggestedWords suggestedWords, final int fromIndex,
66 int index = fromIndex;
67 int rowStartIndex = fromIndex;
98 minWidth, calcurateMaxRowWidth(fromIndex, index));
100 return index - fromIndex;
190 public Builder layout(final SuggestedWords suggestedWords, final int fromIndex,
197 final int count = mParams.layout(suggestedWords, fromIndex, maxWidth, minWidth, maxRow,
199 mFromIndex = fromIndex;
200 mToIndex = fromIndex + count;
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
NameLookupBuilder.java 231 * fromIndex and toIndex
239 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex,
241 if (fromIndex == toIndex) {
250 String firstToken = mNames[fromIndex];
251 for (int i = fromIndex; i < toIndex; i++) {
252 mNames[fromIndex] = mNames[i];
255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex,
256 initiallyExact && i == fromIndex, buildCollationKey);
258 mNames[i] = mNames[fromIndex];
259 mNames[fromIndex] = firstToken
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ForwardingImmutableList.java 49 public ImmutableList<E> subList(int fromIndex, int toIndex) {
50 return unsafeDelegateList(delegateList().subList(fromIndex, toIndex));
  /external/apache-xml/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...]