/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListSubListTester.java | 37 * A generic JUnit test which tests {@code subList()} operations on a list. 49 getList().subList(-1, 0); 50 fail("subList(-1, 0) should throw"); 57 getList().subList(0, getNumElements() + 1); 58 fail("subList(0, size + 1) should throw"); 65 getList().subList(1, 0); 66 fail("subList(1, 0) should throw"); 70 * The subList() docs claim that this should be an 79 assertEquals("subList(0, 0) should be empty", 80 emptyList(), getList().subList(0, 0)) [all...] |
/external/smack/src/org/jivesoftware/smackx/pubsub/ |
SubscriptionsExtension.java | 31 * @param subList The list of subscriptions
33 public SubscriptionsExtension(List<Subscription> subList)
37 if (subList != null)
38 items = subList;
45 * @param subList The list of subscriptions
47 public SubscriptionsExtension(String nodeId, List<Subscription> subList)
51 if (subList != null)
52 items = subList;
|
/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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
ObjectBrowser.py | 46 sublist = [] 57 sublist.append(item) 58 return sublist 64 sublist = ObjectTreeItem.GetSubList(self) 65 sublist.insert(0, 67 return sublist 73 sublist = ObjectTreeItem.GetSubList(self) 79 sublist.insert(0, item) 80 return sublist 92 sublist = [ [all...] |
PathBrowser.py | 26 sublist = [] 29 sublist.append(item) 30 return sublist 56 sublist = [] 59 sublist.append(item) 62 sublist.append(item) 63 return sublist
|
StackViewer.py | 50 sublist = [] 53 sublist.append(item) 54 return sublist 82 sublist = [] 85 sublist.append(item) 87 sublist.append(item) 88 return sublist 112 sublist = [] 121 sublist.append(item) 122 return sublist [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
ObjectBrowser.py | 46 sublist = [] 57 sublist.append(item) 58 return sublist 64 sublist = ObjectTreeItem.GetSubList(self) 65 sublist.insert(0, 67 return sublist 73 sublist = ObjectTreeItem.GetSubList(self) 79 sublist.insert(0, item) 80 return sublist 92 sublist = [ [all...] |
PathBrowser.py | 26 sublist = [] 29 sublist.append(item) 30 return sublist 56 sublist = [] 59 sublist.append(item) 62 sublist.append(item) 63 return sublist
|
StackViewer.py | 50 sublist = [] 53 sublist.append(item) 54 return sublist 82 sublist = [] 85 sublist.append(item) 87 sublist.append(item) 88 return sublist 112 sublist = [] 121 sublist.append(item) 122 return sublist [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...] |
/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(); }
|
/external/chromium_org/ipc/ |
ipc_message_unittest.cc | 49 scoped_ptr<base::ListValue> sublist(new base::ListValue()); 50 sublist->Set(0, new base::FundamentalValue(42.42)); 51 sublist->Set(1, new base::StringValue("forty")); 52 sublist->Set(2, new base::StringValue("two")); 53 subdict->Set("list", sublist.release());
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ArrayListMultimapTest.java | 76 * Test throwing ConcurrentModificationException when a sublist's ancestor's 84 List<Integer> sublist = list.subList(0, 5); local 85 ASSERT.that(sublist).hasContentsInOrder(1, 2, 3, 4, 5); 87 sublist.clear(); 88 assertTrue(sublist.isEmpty()); 92 sublist.isEmpty();
|
AbstractListMultimapTest.java | 213 List<Integer> sublist = list.subList(1, 4); local 214 ASSERT.that(sublist).hasContentsInOrder(2, 3, 4); 220 * Test sublist of List returned by get() after the original list is updated. 231 List<Integer> sublist = list.subList(1, 4); local 232 ASSERT.that(sublist).hasContentsInOrder(2, 3, 4); 235 ASSERT.that(sublist).hasContentsInOrder(2, 3, 6); 293 * Test calling set() on a sublist. 300 List<Integer> sublist = list.subList(1, 4) local 315 List<Integer> sublist = list.subList(1, 4); local 339 List<Integer> sublist = list.subList(1, 4); local 359 List<Integer> sublist = list.subList(1, 4); local 375 List<Integer> sublist = list.subList(0, 5); local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/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/mockito/src/org/mockito/internal/exceptions/stacktrace/ |
StackTraceFilter.java | 47 top = unfilteredStackTrace.subList(0, firstBad); 52 List<StackTraceElement> bottom = unfilteredStackTrace.subList(lastBad + 1, unfilteredStackTrace.size());
|
/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 ); 217 public static IList<T> subList<T>( this IList<T> list, int fromIndex, int toIndex ) 219 return new SubList<T>( list, fromIndex, toIndex ); 227 public static IList<T> subList<T>( this List<T> list, int fromIndex, int toIndex ) 229 return new SubList<T>( list, fromIndex, toIndex );
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
ByteArrayAsListTest.java | 59 .named("Bytes.asList, head subList"), 62 .named("Bytes.asList, tail subList"), 65 .named("Bytes.asList, middle subList") 94 return asList(all).subList(0, elements.length); 102 return asList(all).subList(2, elements.length + 2); 111 return asList(all).subList(2, elements.length + 2);
|
CharArrayAsListTest.java | 59 .named("Chars.asList, head subList"), 62 .named("Chars.asList, tail subList"), 65 .named("Chars.asList, middle subList") 94 return asList(all).subList(0, elements.length); 102 return asList(all).subList(2, elements.length + 2); 111 return asList(all).subList(2, elements.length + 2);
|
DoubleArrayAsListTest.java | 59 .named("Doubles.asList, head subList"), 62 .named("Doubles.asList, tail subList"), 65 .named("Doubles.asList, middle subList") 94 return asList(all).subList(0, elements.length); 102 return asList(all).subList(2, elements.length + 2); 111 return asList(all).subList(2, elements.length + 2);
|
FloatArrayAsListTest.java | 59 .named("Floats.asList, head subList"), 62 .named("Floats.asList, tail subList"), 65 .named("Floats.asList, middle subList") 94 return asList(all).subList(0, elements.length); 102 return asList(all).subList(2, elements.length + 2); 111 return asList(all).subList(2, elements.length + 2);
|
IntArrayAsListTest.java | 60 .named("Ints.asList, head subList"), 63 .named("Ints.asList, tail subList"), 66 .named("Ints.asList, middle subList") 95 return asList(all).subList(0, elements.length); 103 return asList(all).subList(2, elements.length + 2); 112 return asList(all).subList(2, elements.length + 2);
|