HomeSort by relevance Sort by last modified time
    Searched refs:subList (Results 1 - 25 of 178) sorted by null

1 2 3 4 5 6 7 8

  /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...]
SetCreationTester.java 49 Arrays.asList(array).subList(1, getNumElements());
61 Arrays.asList(array).subList(1, getNumElements());
  /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...]
  /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/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
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...]
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...]
  /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/guava/guava/src/com/google/common/collect/
ImmutableSortedAsList.java 61 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
65 backingList.subList(fromIndex, toIndex), backingSet.comparator())
ForwardingList.java 110 public List<E> subList(int fromIndex, int toIndex) {
111 return delegate().subList(fromIndex, toIndex);
207 * A sensible default implementation of {@link #subList(int, int)}. If you
208 * override any other methods, you may wish to override {@link #subList(int,
TransformedImmutableList.java 93 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
94 return new TransformedView(backingList.subList(fromIndex, toIndex));
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
ListGenerators.java 84 .subList(0, elements.length);
96 .subList(2, elements.length + 2);
112 .subList(2, elements.length + 2);
  /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);
LongArrayAsListTest.java 59 .named("Longs.asList, head subList"),
62 .named("Longs.asList, tail subList"),
65 .named("Longs.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);
ShortArrayAsListTest.java 59 .named("Shorts.asList, head subList"),
62 .named("Shorts.asList, tail subList"),
65 .named("Shorts.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);
  /external/smack/src/org/xbill/DNS/
RRset.java 139 list.addAll(rrs.subList(start, size));
141 list.addAll(rrs.subList(0, start));
143 list.addAll(rrs.subList(start, total));
  /libcore/luni/src/main/java/java/util/
List.java 321 * the index at which to start the sublist.
323 * the index one past the end of the sublist.
329 public List<E> subList(int start, int end);
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...]
  /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...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
BatchingNamedTaskExecutor.java 68 List<NamedTask> nextTasks = mQueuedTasks.subList(0, count);
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
CroppedTrack.java 50 return origTrack.getSamples().subList(fromSample, toSample);
129 return origTrack.getSampleDependencies().subList(fromSample, toSample);

Completed in 1834 milliseconds

1 2 3 4 5 6 7 8