/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/ |
StringContainsInOrder.java | 18 int fromIndex = 0; 21 fromIndex = s.indexOf(substring, fromIndex); 22 if (fromIndex == -1) {
|
/libcore/ojluni/src/main/java/java/util/ |
BitSet.java | 358 * Checks that fromIndex ... toIndex is a valid range of bit indices. 360 private static void checkRange(int fromIndex, int toIndex) { 361 if (fromIndex < 0) 362 throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex); 365 if (fromIndex > toIndex) 366 throw new IndexOutOfBoundsException("fromIndex: " + fromIndex + 392 * Sets each bit from the specified {@code fromIndex} (inclusive) to the 396 * @param fromIndex index of the first bit to fli [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...] |
Arrays.java | 111 * Checks that {@code fromIndex} and {@code toIndex} are in 114 private static void rangeCheck(int arrayLength, int fromIndex, int toIndex) { 115 if (fromIndex > toIndex) { 117 "fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")"); 119 if (fromIndex < 0) { 120 throw new ArrayIndexOutOfBoundsException(fromIndex); 166 * to be sorted extends from the index {@code fromIndex}, inclusive, to 167 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, 177 * @param fromIndex the index of the first element, inclusive, to be sorte [all...] |
/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...] |
/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/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;
|
ForwardingList.java | 110 public List<E> subList(int fromIndex, int toIndex) { 111 return delegate().subList(fromIndex, toIndex); 214 @Beta protected List<E> standardSubList(int fromIndex, int toIndex) { 215 return Lists.subListImpl(this, fromIndex, toIndex);
|
ImmutableSortedAsList.java | 81 ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { 83 super.subListUnchecked(fromIndex, toIndex), comparator())
|
/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...] |
/frameworks/minikin/libs/minikin/ |
SparseBitSet.cpp | 112 uint32_t SparseBitSet::nextSetBit(uint32_t fromIndex) const { 113 if (fromIndex >= mMaxVal) { 116 uint32_t fromPage = fromIndex >> kLogValuesPerPage; 118 uint32_t offset = (fromIndex & kPageMask) >> kLogBitsPerEl; 119 element e = bitmap[offset] & (kElAllOnes >> (fromIndex & kElMask)); 121 return (fromIndex & ~kElMask) + CountLeadingZeros(e); 126 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e);
|
/libcore/ojluni/src/main/java/java/lang/ |
String.java | [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
BufferedSource.java | 211 * fromIndex}. This expands the buffer as necessary until {@code b} is found. 215 long indexOf(byte b, long fromIndex) throws IOException; 226 * fromIndex}. This expands the buffer as necessary until {@code bytes} is found. This reads an 230 long indexOf(ByteString bytes, long fromIndex) throws IOException; 242 * at or after {@code fromIndex}. This expands the buffer as necessary until 247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException;
|
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-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));
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
InputPointers.java | 42 final int fromIndex = mTimes.getLength(); 45 if (fromIndex <= 0) { 48 final int fillLength = index - fromIndex + 1; 52 final int lastTime = mTimes.get(fromIndex - 1); 53 mTimes.fill(lastTime, fromIndex, fillLength);
|
/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...] |
/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;
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
TokenRewriteStream.as | 141 public function replaceRange(fromIndex:int, toIndex:int, text:Object, programName:String = DEFAULT_PROGRAM_NAME):void { 142 if ( fromIndex > toIndex || fromIndex<0 || toIndex<0 || toIndex >= tokens.length ) { 143 throw new Error("replace: range invalid: "+fromIndex+".."+toIndex+"(size="+tokens.length+")"); 145 var op:RewriteOperation = new ReplaceOp(fromIndex, toIndex, text); 163 public function removeRange(fromIndex:int, toIndex:int, programName:String = DEFAULT_PROGRAM_NAME):void { 164 replaceRange(fromIndex, toIndex, null, programName); 484 public function ReplaceOp(fromIndex:int, toIndex:int, text:Object) { 485 super(fromIndex, text); 502 public function DeleteOp(fromIndex:int, toIndex:int) [all...] |
/external/apache-xml/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...] |
/tools/loganalysis/src/com/android/loganalysis/util/ |
LogTailUtil.java | 100 final int fromIndex = Math.max(toIndex - size, 0); 103 for (LogLine line : mRingBuffer.subList(fromIndex, toIndex)) {
|