/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 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) { 248 checkRange(fromIndex, toIndex); [all...] |
ArrayList.java | 440 @Override protected void removeRange(int fromIndex, int toIndex) { 441 if (fromIndex == toIndex) { 450 if (toIndex > s) { 451 throw new IndexOutOfBoundsException("toIndex " + toIndex 454 if (fromIndex > toIndex) { 456 + " > toIndex " + toIndex); 459 System.arraycopy(a, toIndex, a, fromIndex, s - toIndex); [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);
|
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;
|
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);
|
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));
|
/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) { 279 assert toIndex >= 0 && toIndex < mGLCalls.size(); 281 if (fromIndex < toIndex) { 282 return applyTransformations(fromIndex, toIndex); [all...] |
/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) { 486 lastIndex = toIndex; [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/ |
FileBasedSearchResultsPane.js | 87 var toIndex = Math.min(this._searchResult.searchMatches.length, WebInspector.FileBasedSearchResultsPane.fileMatchesShownAtOnce); 88 if (toIndex < this._searchResult.searchMatches.length) { 89 this._appendSearchMatches(0, toIndex - 1); 90 this._appendShowMoreMatchesElement(toIndex - 1); 92 this._appendSearchMatches(0, toIndex); 126 * @param {number} toIndex 128 _appendSearchMatches: function(fromIndex, toIndex) 139 for (var i = fromIndex; i < toIndex; ++i) {
|
/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 ); 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 ); 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 ); 233 // .Take( toIndex - fromIndex + 1 )
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/components/ |
ObjectPropertiesSection.js | 786 * @param {number} toIndex 789 WebInspector.ArrayGroupingTreeElement = function(object, fromIndex, toIndex, propertyCount) 791 TreeElement.call(this, String.sprintf("[%d \u2026 %d]", fromIndex, toIndex), undefined, true); 795 this._toIndex = toIndex; 809 * @param {number} toIndex 811 WebInspector.ArrayGroupingTreeElement._populateArray = function(treeElement, object, fromIndex, toIndex) 813 WebInspector.ArrayGroupingTreeElement._populateRanges(treeElement, object, fromIndex, toIndex, true); 820 * @param {number} toIndex 824 WebInspector.ArrayGroupingTreeElement._populateRanges = function(treeElement, object, fromIndex, toIndex, topLevel) 826 object.callFunctionJSON(packRanges, [{value: fromIndex}, {value: toIndex}, {value: WebInspector.ArrayGroupingTreeElement._bucketThreshold}, {value: WebInspector.ArrayGroup (…) [all...] |
/external/chromium_org/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/ |
SocketTunnelClient.java | 71 int index = toIndex(id); 81 int index = toIndex(id); 91 return mLocks[toIndex(id)] > 0; 98 int index = toIndex(id); 108 private int toIndex(int id) {
|
/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) { 242 insertNameVariant(rawContactId, dataId, toIndex, 251 for (int i = fromIndex; i < toIndex; i++) { 255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex,
|
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/ |
bookmark_button.h | 174 - (void)moveButtonFromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex;
|
/external/proguard/src/proguard/ |
DataEntryWriterFactory.java | 41 * @param toIndex the end index in the class path. 46 int toIndex) 51 for (int index = toIndex - 1; index >= fromIndex; index--)
|
InputReader.java | 194 int toIndex, 197 for (int index = fromIndex; index < toIndex; 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);
|
Booleans.java | 410 @Override public List<Boolean> subList(int fromIndex, int toIndex) { 412 checkPositionIndexes(fromIndex, toIndex, size); 413 if (fromIndex == toIndex) { 416 return new BooleanArrayAsList(array, start + fromIndex, start + toIndex);
|
Chars.java | 526 @Override public List<Character> subList(int fromIndex, int toIndex) { 528 checkPositionIndexes(fromIndex, toIndex, size); 529 if (fromIndex == toIndex) { 532 return new CharArrayAsList(array, start + fromIndex, start + toIndex);
|
Doubles.java | 472 @Override public List<Double> subList(int fromIndex, int toIndex) { 474 checkPositionIndexes(fromIndex, toIndex, size); 475 if (fromIndex == toIndex) { 478 return new DoubleArrayAsList(array, start + fromIndex, start + toIndex);
|
Floats.java | 469 @Override public List<Float> subList(int fromIndex, int toIndex) { 471 checkPositionIndexes(fromIndex, toIndex, size); 472 if (fromIndex == toIndex) { 475 return new FloatArrayAsList(array, start + fromIndex, start + toIndex);
|
/frameworks/support/v4/ics/android/support/v4/view/accessibility/ |
AccessibilityRecordCompatIcs.java | 190 public static void setToIndex(Object record, int toIndex) { 191 ((AccessibilityRecord) record).setToIndex(toIndex);
|
/external/chromium_org/ui/app_list/cocoa/ |
apps_grid_controller.h | 95 toItemIndex:(size_t)toIndex;
|