/libcore/luni/src/main/java/java/util/ |
BitSet.java | 232 private void checkRange(int fromIndex, int toIndex) { 233 if ((fromIndex | toIndex) < 0 || toIndex < fromIndex) { 234 throw new IndexOutOfBoundsException("fromIndex=" + fromIndex + " toIndex=" + toIndex); 240 * range of bits {@code [fromIndex, toIndex)}, shifted down so that the bit 241 * at {@code fromIndex} is at bit 0 in the new {@code BitSet}. 244 * if {@code fromIndex} or {@code toIndex} is negative, or if 245 * {@code toIndex} is smaller than {@code fromIndex}. 247 public BitSet get(int fromIndex, int toIndex) [all...] |
ArrayList.java | 440 @Override protected void removeRange(int fromIndex, int toIndex) { 441 if (fromIndex == toIndex) { 446 if (fromIndex >= s) { 447 throw new IndexOutOfBoundsException("fromIndex " + fromIndex 454 if (fromIndex > toIndex) { 455 throw new IndexOutOfBoundsException("fromIndex " + fromIndex 459 System.arraycopy(a, toIndex, a, fromIndex, s - toIndex); 460 int rangeSize = toIndex - fromIndex; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
CsvUtils.java | 75 * @param fromIndex the index to start the search from, inclusive. 77 * <code>text</code> that is greater than or equal to <code>fromIndex</code>, or the length of 80 private static int indexOfNonSpace(final String text, final int fromIndex) { 82 if (fromIndex < 0 || fromIndex > length) { 83 throw new IllegalArgumentException("text=" + text + " fromIndex=" + fromIndex); 85 int index = fromIndex; 96 * @param fromIndex the index to start the search from, exclusive. 100 * <code>text</code>, exclusive. It is less than <code>fromIndex</code> and greater tha [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...] |
/external/arduino/hardware/arduino/cores/arduino/ |
WString.h | 63 int indexOf( char ch, unsigned int fromIndex ) const; 65 int indexOf( const String &str, unsigned int fromIndex ) const; 67 int lastIndexOf( char ch, unsigned int fromIndex ) const; 69 int lastIndexOf( const String &str, unsigned int fromIndex ) const;
|
WString.cpp | 268 int String::indexOf( char ch, unsigned int fromIndex ) const 270 if ( fromIndex >= _length ) 273 const char* temp = strchr( &_buffer[fromIndex], ch ); 285 int String::indexOf( const String &s2, unsigned int fromIndex ) const 287 if ( fromIndex >= _length ) 290 const char *theFind = strstr( &_buffer[ fromIndex ], s2._buffer ); 303 int String::lastIndexOf( char ch, unsigned int fromIndex ) const 305 if ( fromIndex >= _length ) 308 char tempchar = _buffer[fromIndex + 1]; 309 _buffer[fromIndex + 1] = '\0' [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ImmutableSortedAsList.java | 61 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { 62 Preconditions.checkPositionIndexes(fromIndex, toIndex, size()); 63 return (fromIndex == toIndex) ? ImmutableList.<E>of() 65 backingList.subList(fromIndex, toIndex), backingSet.comparator())
|
ForwardingList.java | 110 public List<E> subList(int fromIndex, int toIndex) { 111 return delegate().subList(fromIndex, toIndex); 213 @Beta protected List<E> standardSubList(int fromIndex, int toIndex) { 214 return Lists.subListImpl(this, fromIndex, toIndex);
|
RegularImmutableList.java | 117 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { 118 Preconditions.checkPositionIndexes(fromIndex, toIndex, size); 119 return (fromIndex == toIndex) 122 array, offset + fromIndex, toIndex - fromIndex);
|
SingletonImmutableList.java | 107 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { 108 Preconditions.checkPositionIndexes(fromIndex, toIndex, 1); 109 return (fromIndex == toIndex) ? ImmutableList.<E>of() : this;
|
EmptyImmutableList.java | 118 @Override public ImmutableList<Object> subList(int fromIndex, int toIndex) { 119 checkPositionIndexes(fromIndex, toIndex, 0);
|
TransformedImmutableList.java | 93 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) { 94 return new TransformedView(backingList.subList(fromIndex, toIndex));
|
/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...] |
/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;
|
/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/suggestions/ |
MoreSuggestions.java | 63 public int layout(final SuggestedWords suggestedWords, final int fromIndex, 72 int index = fromIndex; 73 int rowStartIndex = fromIndex; 98 minWidth, calcurateMaxRowWidth(fromIndex, index)); 100 return index - fromIndex; 185 public Builder layout(final SuggestedWords suggestedWords, final int fromIndex, 193 final int count = mParams.layout(suggestedWords, fromIndex, maxWidth, minWidth, maxRow, 195 mFromIndex = fromIndex; 196 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...] |
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/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...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
ObjectPropertiesSection.js | 684 * @param {number} fromIndex 688 WebInspector.ArrayGroupingTreeElement = function(object, fromIndex, toIndex, propertyCount) 690 TreeElement.call(this, String.sprintf("[%d \u2026 %d]", fromIndex, toIndex), undefined, true); 691 this._fromIndex = fromIndex; 705 * @param {number} fromIndex 708 WebInspector.ArrayGroupingTreeElement._populateArray = function(treeElement, object, fromIndex, toIndex) 710 WebInspector.ArrayGroupingTreeElement._populateRanges(treeElement, object, fromIndex, toIndex, true); 716 * @param {number} fromIndex 721 WebInspector.ArrayGroupingTreeElement._populateRanges = function(treeElement, object, fromIndex, toIndex, topLevel) 723 object.callFunctionJSON(packRanges, [{value: fromIndex}, {value: toIndex}, {value: WebInspector.ArrayGroupingTreeElement._bucketThreshold}, {value: WebIn (…) [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
PhoneNumberMatcher.java | 458 int fromIndex = 0; 462 // Fails if the substring of {@code normalizedCandidate} starting from {@code fromIndex} 464 fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex); 465 if (fromIndex < 0) { 468 // Moves {@code fromIndex} forward. 469 fromIndex += formattedNumberGroups[i].length(); 470 if (i == 0 && fromIndex < normalizedCandidate.length()) { 472 if (Character.isDigit(normalizedCandidate.charAt(fromIndex))) { 477 return normalizedCandidate.substring(fromIndex - formattedNumberGroups[i].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--)
|
/external/guava/guava/src/com/google/common/primitives/ |
Bytes.java | 327 @Override public List<Byte> subList(int fromIndex, int toIndex) { 329 checkPositionIndexes(fromIndex, toIndex, size); 330 if (fromIndex == toIndex) { 333 return new ByteArrayAsList(array, start + fromIndex, start + toIndex);
|