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

1 2 3 4

  /libcore/luni/src/test/java/tests/api/java/util/
AbstractListTest.java 116 * java.util.AbstractList#subList(int, int)
119 // Test each of the SubList operations to ensure a
125 List sList = mList.subList(0, 2);
150 // test the type of sublist that is returned
156 "Sublist returned should have implemented Random Access interface",
157 al.subList(3, 7) instanceof RandomAccess);
164 "Sublist returned should not have implemented Random Access interface",
165 !(ll.subList(3, 7) instanceof RandomAccess));
170 * java.util.AbstractList#subList(int, int)
176 List emptySubList = al.subList(0, 0)
    [all...]
ConcurrentModTest.java 32 * Test method for 'java.util.AbstractList.subList(int, int)'
44 List sub = al.subList(1, 3);
53 // illegal call the subList's method get(int).
76 * Test method for 'java.util.AbstractList.subList(int, int)'
88 List sub = al.subList(1, 3);
97 // illegal call the subList's method set(int,Object).
106 * Test method for 'java.util.AbstractList.subList(int, int)'
118 List sub = al.subList(1, 3);
127 // illegal call the subList's method Add(int,Object).
136 * Test method for 'java.util.AbstractList.subList(int, int)
    [all...]
CollectionsTest.java 1297 List sublist = new ArrayList(); local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ConcurrentModTest.java 32 * Test method for 'java.util.AbstractList.subList(int, int)'
44 List sub = al.subList(1, 3);
53 // illegal call the subList's method get(int).
62 * Test method for 'java.util.AbstractList.subList(int, int)'
74 List sub = al.subList(1, 3);
83 // illegal call the subList's method set(int,Object).
92 * Test method for 'java.util.AbstractList.subList(int, int)'
104 List sub = al.subList(1, 3);
113 // illegal call the subList's method Add(int,Object).
122 * Test method for 'java.util.AbstractList.subList(int, int)
    [all...]
AbstractListTest.java 124 * @tests java.util.AbstractList#subList(int, int)
127 // Test each of the SubList operations to ensure a
133 List sList = mList.subList(0, 2);
158 // test the type of sublist that is returned
164 "Sublist returned should have implemented Random Access interface",
165 al.subList(3, 7) instanceof RandomAccess);
172 "Sublist returned should not have implemented Random Access interface",
173 !(ll.subList(3, 7) instanceof RandomAccess));
178 * @tests java.util.AbstractList#subList(int, int)
184 List emptySubList = al.subList(0, 0)
    [all...]
CollectionsTest.java 818 String string1 = "A-B-C-D-E-S-JF-SUB-G-H-I-J-SUBL-K-L-LIST-M-N--S-S-O-SUBLIS-P-Q-R-SUBLIST-S-T-U-V-W-X-Y-Z";
938 // rotate sublist with negative distance
939 List subList = list.subList(1, 5);
940 Collections.rotate(subList, -1);
944 // rotate sublist with positive distance
945 Collections.rotate(subList, 2);
1033 String string1 = "A-B-C-D-E-S-JF-SUB-G-H-I-J-SUBL-K-L-LIST-M-N--S-S-O-SUBLIS-P-Q-R-SUBLIST-S-T-U-V-W-X-Y-Z";
1037 testwithCharList(3, string1, "SUBLIST", true);
1119 List sublist = new ArrayList(); local
    [all...]
  /external/javassist/src/main/javassist/compiler/ast/
MethodDecl.java 36 public ASTList getParams() { return (ASTList)sublist(2).head(); }
38 public ASTList getThrows() { return (ASTList)sublist(3).head(); }
40 public Stmnt getBody() { return (Stmnt)sublist(4).head(); }
FieldDecl.java 29 public ASTree getInit() { return (ASTree)sublist(2).head(); }
  /external/webkit/Source/WebCore/editing/
ModifySelectionListLevel.cpp 67 // - if the end is anywhere in a sublist lower than start, the whole sublist gets moved
70 // sublist of startListChild or a sibling
71 // - if endListChild is in a sublist of startListChild or a sibling, it must be adjusted
79 // if the selection ends on a list item with a sublist, include the entire sublist
184 // create a sublist for the preceding element and move nodes there
266 // at start of sublist, move the child(ren) to before the sublist
268 // if that was the whole sublist we moved, remove the sublist nod
    [all...]
  /packages/apps/Gallery/src/com/android/camera/gallery/
ImageListUber.java 42 // "a number" and "an index of sublist".
44 // belong to a given sublist.
46 // * The higher 32bit component indicates which sublist we're referring
53 public ImageListUber(IImageList [] sublist, int sort) {
54 mSubList = sublist.clone();
81 for (IImageList subList : mSubList) {
82 count += subList.getCount();
88 for (IImageList subList : mSubList) {
89 if (!subList.isEmpty()) return false;
162 for (IImageList sublist : mSubList)
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/concurrent/
CopyOnWriteArrayListTest.java 49 * with the subList() documentation which suggests that only size-changing
55 List<String> bcd = list.subList(1, 4);
67 List<String> bcd = list.subList(1, 4);
79 List<String> bcd = list.subList(1, 4);
106 List<String> bcd = list.subList(1, 4);
114 new CopyOnWriteArrayList<String>().subList(0, 0).clear(); // the RI fails here
120 Iterator<String> bcd = list.subList(1, 4).iterator();
131 List<String> bcd = list.subList(1, 4);
140 List<String> bcd = list.subList(1, 4);
149 List<String> def = list.subList(3, 6)
    [all...]
  /external/guava/src/com/google/common/collect/
ForwardingList.java 83 @GwtIncompatible("List.subList")
84 public List<E> subList(int fromIndex, int toIndex) {
85 return Platform.subList(delegate(), fromIndex, toIndex);
Platform.java 34 * Calls {@link List#subList(int, int)}. Factored out so that it can be
41 @GwtIncompatible("List.subList")
42 static <T> List<T> subList(List<T> list, int fromIndex, int toIndex) {
43 return list.subList(fromIndex, toIndex);
ImmutableSortedAsList.java 54 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
EmptyImmutableList.java 85 @Override public ImmutableList<Object> subList(int fromIndex, int toIndex) {
  /libcore/luni/src/main/java/java/util/
AbstractList.java 169 private final SubAbstractList<E> subList;
180 subList = list;
187 subList.sizeChanged(true);
227 subList.sizeChanged(false);
687 * occurs in the returned subList will be reflected to the original list,
689 * list will also be supported by this subList.
693 * {@code list.subList(from, to).clear();}
696 * subList, the behavior of the returned subList becomes undefined.
698 * The returned subList is a subclass of AbstractList. The subclass store
    [all...]
Collections.java 481 @Override public List<E> subList(int start, int end) {
483 return new SynchronizedRandomAccessList<E>(list.subList(start, end), mutex);
619 @Override public List<E> subList(int start, int end) {
621 return new SynchronizedList<E>(list.subList(start, end), mutex);
1006 @Override public List<E> subList(int start, int end) {
1007 return new UnmodifiableRandomAccessList<E>(list.subList(start, end));
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_ListTest.java 97 List<Integer> mySubList = list.subList(50, 53);
100 "ListTest - a) sublist Failed--does not contain correct elements",
103 "ListTest - b) sublist Failed--does not contain correct elements",
106 "ListTest - c) sublist Failed--does not contain correct elements",
112 assertEquals("ListTest - Clearing the sublist did not remove the appropriate elements from the original list",
  /external/chromium/chrome/common/
common_param_traits_unittest.cc 150 scoped_ptr<ListValue> sublist(new ListValue());
151 sublist->Set(0, Value::CreateDoubleValue(42.42));
152 sublist->Set(1, Value::CreateStringValue("forty"));
153 sublist->Set(2, Value::CreateStringValue("two"));
154 subdict->Set("list", sublist.release());
  /libcore/support/src/test/java/tests/support/
Support_ListTest.java 97 List<Integer> mySubList = list.subList(50, 53);
100 "ListTest - a) sublist Failed--does not contain correct elements",
103 "ListTest - b) sublist Failed--does not contain correct elements",
106 "ListTest - c) sublist Failed--does not contain correct elements",
112 assertEquals("ListTest - Clearing the sublist did not remove the appropriate elements from the original list",
  /libcore/luni/src/main/java/libcore/util/
CollectionUtils.java 95 list.subList(j, list.size()).clear();
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
ClusterAlbum.java 80 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end));
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
BatchingNamedTaskExecutor.java 68 List<NamedTask> nextTasks = mQueuedTasks.subList(0, count);
  /external/easymock/src/org/easymock/internal/
MocksBehavior.java 167 for (UnorderedBehavior behaviorList : behaviorLists.subList(position,
182 for (UnorderedBehavior behaviorList : behaviorLists.subList(position,
  /external/srec/tools/grxmlcompile/
sub_grph.cpp 293 void SubGraph::ExpandRules (SubGraph **subList, int *lookupList, int numSubs)
304 // printf ("Expanding rule (%d) %s\n", -ruleId, subList[ruleId]->title);
308 // subList[ruleId]->SortLanguage();
309 // subList[ruleId]->Print();
312 CopyFastArcs (subList[ruleId], 0, subList[ruleId]->numArc, numVertex,
313 subList[ruleId]->startId, initialId, subList[ruleId]->lastId, finalId);

Completed in 1540 milliseconds

1 2 3 4