Home
last modified time | relevance | path

Searched refs:Lists (Results 1 – 25 of 259) sorted by relevance

1234567891011

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java73 = Lists.newArrayList(1, 2, 3, 4);
76 = Lists.newLinkedList(asList(1, 2, 3, 4));
95 List<Character> chars = Lists.charactersOf(builder); in testCharactersOfIsView()
106 ArrayList<Integer> list = Lists.newArrayList(); in testNewArrayListEmpty()
111 ArrayList<Integer> list = Lists.newArrayListWithCapacity(0); in testNewArrayListWithCapacity()
114 ArrayList<Integer> bigger = Lists.newArrayListWithCapacity(256); in testNewArrayListWithCapacity()
120 Lists.newArrayListWithCapacity(-1); in testNewArrayListWithCapacity_negative()
127 ArrayList<Integer> list = Lists.newArrayListWithExpectedSize(0); in testNewArrayListWithExpectedSize()
130 ArrayList<Integer> bigger = Lists.newArrayListWithExpectedSize(256); in testNewArrayListWithExpectedSize()
136 Lists.newArrayListWithExpectedSize(-1); in testNewArrayListWithExpectedSize_negative()
[all …]
DObjectArraysTest.java57 doTestToArrayImpl1(Lists.<Integer>newArrayList()); in testToArrayImpl1()
58 doTestToArrayImpl1(Lists.newArrayList(1)); in testToArrayImpl1()
59 doTestToArrayImpl1(Lists.newArrayList(1, null, 3)); in testToArrayImpl1()
70 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[0], false); in testToArrayImpl2()
71 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[1], true); in testToArrayImpl2()
73 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[0], false); in testToArrayImpl2()
74 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[1], true); in testToArrayImpl2()
75 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[] { 2, 3 }, true); in testToArrayImpl2()
77 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[0], false); in testToArrayImpl2()
78 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[2], false); in testToArrayImpl2()
[all …]
DIteratorsTest.java22 import static com.google.common.collect.Lists.newArrayList;
230 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterSimple()
234 List<String> actual = Lists.newArrayList(filtered); in testFilterSimple()
239 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterNoMatch()
243 List<String> actual = Lists.newArrayList(filtered); in testFilterNoMatch()
248 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterMatchAll()
251 List<String> expected = Lists.newArrayList("foo", "bar"); in testFilterMatchAll()
252 List<String> actual = Lists.newArrayList(filtered); in testFilterMatchAll()
267 List<String> actual = Lists.newArrayList(filtered); in testFilterNothing()
272 List<String> list = Lists.newArrayList(); in testAny()
[all …]
DImmutableListTest.java57 assertEquals(Lists.newArrayList("a", "b"), list); in testCreation_twoElements()
62 assertEquals(Lists.newArrayList("a", "b", "c"), list); in testCreation_threeElements()
67 assertEquals(Lists.newArrayList("a", "b", "c", "d"), list); in testCreation_fourElements()
72 assertEquals(Lists.newArrayList("a", "b", "c", "d", "e"), list); in testCreation_fiveElements()
77 assertEquals(Lists.newArrayList("a", "b", "c", "d", "e", "f"), list); in testCreation_sixElements()
82 assertEquals(Lists.newArrayList("a", "b", "c", "d", "e", "f", "g"), list); in testCreation_sevenElements()
88 assertEquals(Lists.newArrayList( in testCreation_eightElements()
95 assertEquals(Lists.newArrayList( in testCreation_nineElements()
102 assertEquals(Lists.newArrayList( in testCreation_tenElements()
109 assertEquals(Lists.newArrayList( in testCreation_elevenElements()
[all …]
DImmutableSetTest.java88 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); in testCreation_allDuplicates()
90 assertEquals(Lists.newArrayList("a"), Lists.newArrayList(set)); in testCreation_allDuplicates()
97 assertEquals(Lists.newArrayList( in testCreation_oneDuplicate()
99 Lists.newArrayList(set)); in testCreation_oneDuplicate()
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java90 = Lists.newArrayList(1, 2, 3, 4);
93 = Lists.newLinkedList(asList(1, 2, 3, 4));
119 return Lists.asList(elements[0], rest); in suite()
132 return Lists.asList(elements[0], elements[1], rest); in suite()
146 List<String> fromList = Lists.newArrayList(); in suite()
150 return Lists.transform(fromList, removeFirst); in suite()
162 List<String> fromList = Lists.newLinkedList(); in suite()
166 return Lists.transform(fromList, removeFirst); in suite()
178 List<String> fromList = Lists.newArrayList(elements); in suite()
179 return Lists.transform(fromList, Functions.<String>identity()); in suite()
[all …]
DFluentIterableTest.java62 Lists.newArrayList(FluentIterable.from(ImmutableList.of(1, 2, 3, 4)))); in testFrom()
176 List<String> actual = Lists.newArrayList(filtered); in testFilter()
196 ArrayList<String> list = Lists.newArrayList(); in testAnyMatch()
208 List<String> list = Lists.newArrayList(); in testAllMatch()
220 FluentIterable<String> iterable = FluentIterable.from(Lists.newArrayList("cool", "pants")); in testFirstMatch()
239 assertEquals(asList(1, 2, 3), Lists.newArrayList(iterable)); in testTransformWith()
270 assertEquals(asList("1", "2", "null", "3"), Lists.newArrayList(result)); in testTransformWith_nullFriendlyTransform()
286 assertEquals(asList("1", "1", "2", "2", "3", "3"), Lists.newArrayList(result)); in testTransformAndConcat()
304 List<String> list = Lists.newArrayList("a", "b", "c"); in testFirst_list()
309 List<String> list = Lists.newArrayList(null, "a", "b"); in testFirst_null()
[all …]
DObjectArraysTest.java128 doTestToArrayImpl1(Lists.<Integer>newArrayList()); in testToArrayImpl1()
129 doTestToArrayImpl1(Lists.newArrayList(1)); in testToArrayImpl1()
130 doTestToArrayImpl1(Lists.newArrayList(1, null, 3)); in testToArrayImpl1()
141 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[0], false); in testToArrayImpl2()
142 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[1], true); in testToArrayImpl2()
144 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[0], false); in testToArrayImpl2()
145 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[1], true); in testToArrayImpl2()
146 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[] { 2, 3 }, true); in testToArrayImpl2()
148 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[0], false); in testToArrayImpl2()
149 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[2], false); in testToArrayImpl2()
[all …]
DIteratorsTest.java22 import static com.google.common.collect.Lists.newArrayList;
277 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterSimple()
281 List<String> actual = Lists.newArrayList(filtered); in testFilterSimple()
286 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterNoMatch()
290 List<String> actual = Lists.newArrayList(filtered); in testFilterNoMatch()
295 Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); in testFilterMatchAll()
298 List<String> expected = Lists.newArrayList("foo", "bar"); in testFilterMatchAll()
299 List<String> actual = Lists.newArrayList(filtered); in testFilterMatchAll()
314 List<String> actual = Lists.newArrayList(filtered); in testFilterNothing()
336 List<String> list = Lists.newArrayList(); in testAny()
[all …]
DPeekingIteratorTest.java66 targetList = Lists.newArrayList(master); in newTargetIterator()
101 actsLikeIteratorHelper(Lists.newArrayList("A", "B", "C")); in testPeekingIteratorBehavesLikeIteratorOnThreeElementIterable()
106 actsLikeIteratorHelper(Lists.newArrayList(null, "A", null)); in testPeekingIteratorAcceptsNullElements()
121 List<?> list = Lists.newArrayList("A", "B", "C"); in testPeekDoesntChangeIteration()
162 List<String> list = Lists.newArrayList("A", "B", "C"); in testCantRemoveAfterPeek()
233 list = Lists.newArrayList(1, 2); in testPeekingIteratorDoesntAdvancePrematurely()
DMinMaxPriorityQueueTest.java272 mmHeap.addAll(Lists.newArrayList(1, 2, 3, 4, 47, 1, 5, 3, 0)); in testRemove()
280 mmHeap.removeAll(Lists.newArrayList(2, 3)); in testRemove()
287 mmHeap.addAll(Lists.newArrayList(1, 1, 2)); in testContains()
307 mmHeap.addAll(Lists.newArrayList(1, 2)); in testIteratorPastEndException()
322 mmHeap.addAll(Lists.newArrayList(1, 2, 3, 4)); in testIteratorConcurrentModification()
340 final ArrayList<Integer> initial = Lists.newArrayList( in testIteratorRegressionChildlessUncle()
349 List<Integer> result = Lists.newArrayListWithCapacity(initial.size()); in testIteratorRegressionChildlessUncle()
368 mmHeap.addAll(Lists.newArrayList( in testInvalidatingRemove()
382 List<Integer> values = Lists.newArrayList( in testInvalidatingRemove2()
391 values.removeAll(Lists.newArrayList(2)); in testInvalidatingRemove2()
[all …]
/external/guava/guava-tests/test/com/google/common/eventbus/outside/
DAnnotatedSubscriberFinderTests.java21 import com.google.common.collect.Lists;
68 final List<Object> nonSubscriberEvents = Lists.newArrayList();
69 final List<Object> subscriberEvents = Lists.newArrayList();
106 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList();
107 final List<Object> overriddenInSubclassEvents = Lists.newArrayList();
138 final List<Object> notOverriddenInSubclassEvents = Lists.newArrayList();
139 final List<Object> overriddenNotAnnotatedInSubclassEvents = Lists.newArrayList();
140 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList();
141 final List<Object> differentlyOverriddenNotAnnotatedInSubclassBadEvents = Lists
143 final List<Object> differentlyOverriddenAnnotatedInSubclassBadEvents = Lists.newArrayList();
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutIterableTester.java27 import com.google.common.collect.Lists;
49 return Lists.newArrayList(sampleValues().e3, sampleValues().e4).iterator(); in testPutAllNonEmptyIterableOnPresentKey()
59 sampleKeys().e0, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); in testPutAllNonEmptyCollectionOnPresentKey()
68 return Lists.newArrayList(sampleValues().e3, sampleValues().e4).iterator(); in testPutAllNonEmptyIterableOnAbsentKey()
77 sampleKeys().e3, Lists.newArrayList(sampleValues().e3, sampleValues().e4))); in testPutAllNonEmptyCollectionOnAbsentKey()
84 assertTrue(multimap().putAll(sampleKeys().e0, Lists.newArrayList(sampleValues().e3, null))); in testPutAllNullValueOnPresentKey_supported()
90 assertTrue(multimap().putAll(sampleKeys().e3, Lists.newArrayList(sampleValues().e3, null))); in testPutAllNullValueOnAbsentKey_supported()
96 multimap().putAll(sampleKeys().e1, Lists.newArrayList((V) null)); in testPutAllNullValueSingle_unsupported()
107 multimap().putAll(sampleKeys().e3, Lists.newArrayList(sampleValues().e3, null)); in testPutAllNullValueNullLast_unsupported()
116 assertEquals(Lists.newArrayList(), Lists.newArrayList(values)); in testPutAllNullValueNullLast_unsupported()
[all …]
DListMultimapAsMapTester.java21 import com.google.common.collect.Lists;
74 expected.put(sampleKeys().e0, Lists.newArrayList(sampleValues().e0, sampleValues().e3)); in testEquals()
75 expected.put(sampleKeys().e1, Lists.newArrayList(sampleValues().e0)); in testEquals()
90 (Collection<V>) Lists.newArrayList(sampleValues().e0, sampleValues().e3))); in testEntrySetEquals()
93 (Collection<V>) Lists.newArrayList(sampleValues().e0))); in testEntrySetEquals()
110 sampleKeys().e0, Lists.newArrayList(sampleValues().e0, sampleValues().e3)), in testValuesRemove()
/external/guava/guava/src/com/google/common/collect/
DForwardingList.java145 return Lists.addAllImpl(this, index, elements); in standardAddAll()
156 return Lists.indexOfImpl(this, element); in standardIndexOf()
168 return Lists.lastIndexOfImpl(this, element); in standardLastIndexOf()
204 return Lists.listIteratorImpl(this, start); in standardListIterator()
215 return Lists.subListImpl(this, fromIndex, toIndex); in standardSubList()
226 return Lists.equalsImpl(this, object); in standardEquals()
237 return Lists.hashCodeImpl(this); in standardHashCode()
/external/guava/guava-tests/test/com/google/common/eventbus/
DReentrantEventsTest.java19 import com.google.common.collect.Lists;
45 Lists.<Object>newArrayList(FIRST, SECOND), hater.eventsReceived); in testNoReentrantEvents()
50 List<Object> eventsReceived = Lists.newArrayList();
80 Lists.<Object>newArrayList(FIRST, SECOND), recorder.eventsReceived); in testEventOrderingIsPredictable()
90 List<Object> eventsReceived = Lists.newArrayList();
DEventBusTest.java20 import com.google.common.collect.Lists;
70 final List<Object> objectEvents = Lists.newArrayList(); in testPolymorphicDistribution()
78 final List<Comparable<?>> compEvents = Lists.newArrayList(); in testPolymorphicDistribution()
231 List<String> expectedEvents = Lists.newArrayList(); in testUnregister()
239 Lists.newArrayList(EVENT), catcher2.getEvents()); in testUnregister()
268 List<StringCatcher> catchers = Lists.newCopyOnWriteArrayList(); in testRegisterThreadSafety()
269 List<Future<?>> futures = Lists.newArrayList(); in testRegisterThreadSafety()
339 private List<DeadEvent> events = Lists.newArrayList();
/external/smali/util/src/main/java/org/jf/util/
DCharSequenceUtils.java36 import com.google.common.collect.Lists;
44 return Lists.transform(list, TO_STRING).hashCode(); in listHashCode()
48 return Lists.transform(list1, TO_STRING).equals( in listEquals()
49 Lists.transform(list2, TO_STRING)); in listEquals()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DbaksmaliOptions.java34 import com.google.common.collect.Lists;
58 public List<String> bootClassPathDirs = Lists.newArrayList();
60 public List<String> bootClassPathEntries = Lists.newArrayList();
61 public List<String> extraClassPathEntries = Lists.newArrayList();
86 bootClassPathEntries = Lists.newArrayList(bootClassPath.split(":")); in setBootClassPath()
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DIteratorTesterTest.java19 import static com.google.common.collect.Lists.newArrayList;
25 import com.google.common.collect.Lists;
48 return Lists.newArrayList(1, 2, 3, 4).iterator(); in testCanCatchDifferentLengthOfIteration()
59 return Lists.newArrayList(1, 3, 2).iterator(); in testCanCatchDifferentContents()
147 Iterator<Integer> iterator = Lists.newArrayList(1, 2).iterator(); in testCanCatchSunJavaBug6529795InTargetIterator()
162 Iterator<Integer> iterator = Lists.newArrayList(1, 2).iterator(); in testCanWorkAroundSunJavaBug6529795InTargetIterator()
186 return Lists.newArrayList(1).iterator(); in newTargetIterator()
210 return Lists.newArrayList(1, 2, 3).iterator(); in testVerifyCanThrowAssertionThatFailsTest()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
DPayloadAlignmentTest.java34 import com.google.common.collect.Lists;
57 Lists.newArrayList(implBuilder.getMethodImplementation().getInstructions()); in testPayloadAlignmentRemoveNop()
74 Lists.newArrayList(implBuilder.getMethodImplementation().getInstructions()); in testPayloadAlignmentAddNop()
101 …List<Instruction> instructions = Lists.newArrayList(implBuilder.getMethodImplementation().getInstr… in testPayloadAlignmentRemoveNopWithReferent()
127 …List<Instruction> instructions = Lists.newArrayList(implBuilder.getMethodImplementation().getInstr… in testPayloadAlignmentAddNopWithReferent()
158 implBuilder.addInstruction(new BuilderPackedSwitchPayload(0, Lists.newArrayList( in testPackedSwitchAlignment()
176 …List<Instruction> instructions = Lists.newArrayList(implBuilder.getMethodImplementation().getInstr… in testPackedSwitchAlignment()
209 implBuilder.addInstruction(new BuilderSparseSwitchPayload(Lists.newArrayList( in testSparseSwitchAlignment()
227 …List<Instruction> instructions = Lists.newArrayList(implBuilder.getMethodImplementation().getInstr… in testSparseSwitchAlignment()
/external/guava/guava-testlib/src/com/google/common/testing/
DClassSanityTester.java30 import com.google.common.collect.Lists;
310 List<? extends Invokable<?, ?>> factories = Lists.reverse(getFactories(TypeToken.of(cls))); in doTestEquals()
315 List<ParameterNotInstantiableException> paramErrors = Lists.newArrayList(); in doTestEquals()
316 List<ParameterHasNoDistinctValueException> distinctValueErrors = Lists.newArrayList(); in doTestEquals()
317 List<InvocationTargetException> instantiationExceptions = Lists.newArrayList(); in doTestEquals()
318 List<FactoryMethodReturnsNullException> nullErrors = Lists.newArrayList(); in doTestEquals()
361 List<ParameterNotInstantiableException> paramErrors = Lists.newArrayList(); in instantiate()
362 List<InvocationTargetException> instantiationExceptions = Lists.newArrayList(); in instantiate()
363 List<FactoryMethodReturnsNullException> nullErrors = Lists.newArrayList(); in instantiate()
576 List<FreshValueGenerator> argGenerators = Lists.newArrayListWithCapacity(params.size()); in testEqualsUsing()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableList.java21 import com.google.common.collect.Lists;
134 return copyFromCollection(Lists.newArrayList(elements)); in copyOf()
208 return (object == null) ? -1 : Lists.indexOfImpl(this, object); in indexOf()
213 return (object == null) ? -1 : Lists.lastIndexOfImpl(this, object); in lastIndexOf()
237 return unsafeDelegateList(Lists.subListImpl(this, fromIndex, toIndex)); in subList()
259 return Lists.equalsImpl(this, obj);
264 return Lists.hashCodeImpl(this);
268 List<E> list = Lists.newArrayList(this);
281 contents = Lists.newArrayList();
285 contents = Lists.newArrayListWithCapacity(capacity);
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/editor/structure/property/
DPropertyListIntersector.java13 import com.google.common.collect.Lists;
40 m_intersection = Lists.newArrayList(); in intersect()
59 List<Property> properties = Lists.newArrayList(); in getProperties()
79 private final List<Property> m_properties = Lists.newArrayList();
/external/guava/guava-tests/test/com/google/common/io/
DLineBufferTest.java20 import com.google.common.collect.Lists;
65 List<String> expectRead = Lists.transform(expectProcess, in bufferHelper()
84 final List<String> lines = Lists.newArrayList(); in bufferHelper()
104 List<String> lines = Lists.newArrayList(); in readUsingJava()
119 List<String> lines = Lists.newArrayList(); in readUsingReader()

1234567891011