/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ListsTest.java | 73 = 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 …]
|
D | ObjectArraysTest.java | 57 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 …]
|
D | IteratorsTest.java | 22 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 …]
|
D | ImmutableListTest.java | 57 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 …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 90 = 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 …]
|
D | FluentIterableTest.java | 63 Lists.newArrayList(FluentIterable.from(ImmutableList.of(1, 2, 3, 4)))); in testFrom() 74 Lists.newArrayList(FluentIterable.of(new Object[] {"1", "2", "3", "4"}))); in testOfArray() 171 FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.newArrayList(4, 5, 6)); in testAppend() 172 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 176 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 182 FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.<Integer>newArrayList()); in testAppend_emptyList() 183 assertEquals(asList(1, 2, 3), Lists.newArrayList(result)); in testAppend_emptyList() 208 List<String> actual = Lists.newArrayList(filtered); in testFilter() 228 ArrayList<String> list = Lists.newArrayList(); in testAnyMatch() 240 List<String> list = Lists.newArrayList(); in testAllMatch() [all …]
|
D | ObjectArraysTest.java | 128 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 …]
|
D | IteratorsTest.java | 22 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 …]
|
/external/guava/guava-tests/test/com/google/common/eventbus/outside/ |
D | AnnotatedSubscriberFinderTests.java | 21 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/llvm/lib/CodeGen/AsmPrinter/ |
D | DebugLocStream.h | 53 SmallVector<List, 4> Lists; 64 size_t getNumLists() const { return Lists.size(); } in getNumLists() 65 const List &getList(size_t LI) const { return Lists[LI]; } in getList() 66 ArrayRef<List> getLists() const { return Lists; } in getLists() 79 size_t LI = Lists.size(); in startList() 80 Lists.emplace_back(CU, Entries.size()); in startList() 111 .slice(Lists[LI].EntryOffset, getNumEntries(LI)); in getEntries() 127 assert(&Lists.front() <= &L && &L <= &Lists.back() && in getIndex() 129 return &L - &Lists.front(); in getIndex() 137 if (LI + 1 == Lists.size()) in getNumEntries() [all …]
|
D | DebugLocStream.cpp | 17 if (Lists.back().EntryOffset == Entries.size()) { in finalizeList() 19 Lists.pop_back(); in finalizeList() 24 Lists.back().Label = Asm.createTempSymbol("debug_loc"); in finalizeList() 37 assert(Lists.back().EntryOffset <= Entries.size() && in finalizeEntry()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapPutIterableTester.java | 27 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 …]
|
/external/testng/src/main/java/org/testng/xml/ |
D | Parser.java | 3 import org.testng.collections.Lists; 37 private static final List<ISuiteParser> PARSERS = Lists.newArrayList(DEFAULT_FILE_PARSER); 146 List<String> processedSuites = Lists.newArrayList(); in parse() 149 List<String> toBeParsed = Lists.newArrayList(); in parse() 150 List<String> toBeAdded = Lists.newArrayList(); in parse() 151 List<String> toBeRemoved = Lists.newArrayList(); in parse() 211 toBeRemoved = Lists.newArrayList(); in parse() 216 toBeAdded = Lists.newArrayList(); in parse() 221 List<XmlSuite> resultList = Lists.newArrayList(); in parse() 237 List<XmlSuite> result = Lists.newArrayList(); in parseToList()
|
/external/testng/src/main/java/org/testng/ |
D | TestListenerAdapter.java | 3 import org.testng.collections.Lists; 29 Collections.synchronizedList(Lists.<ITestNGMethod>newArrayList()); 30 …private List<ITestResult> m_passedTests = Collections.synchronizedList(Lists.<ITestResult>newArray… 31 …private List<ITestResult> m_failedTests = Collections.synchronizedList(Lists.<ITestResult>newArray… 32 …private List<ITestResult> m_skippedTests = Collections.synchronizedList(Lists.<ITestResult>newArra… 33 …private List<ITestResult> m_failedButWSPerTests = Collections.synchronizedList(Lists.<ITestResult>… 35 …private List<ITestResult> m_failedConfs= Collections.synchronizedList(Lists.<ITestResult>newArrayL… 36 …private List<ITestResult> m_skippedConfs= Collections.synchronizedList(Lists.<ITestResult>newArray… 37 …private List<ITestResult> m_passedConfs= Collections.synchronizedList(Lists.<ITestResult>newArrayL…
|
D | InstanceOrderingMethodInterceptor.java | 3 import org.testng.collections.Lists; 26 List<Object> instanceList = Lists.newArrayList(); in groupMethodsByInstance() 36 l = Lists.newArrayList(); in groupMethodsByInstance() 43 List<IMethodInstance> result = Lists.newArrayList(); in groupMethodsByInstance()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingList.java | 145 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/testng/src/main/java/org/testng/junit/ |
D | JUnitTestClass.java | 6 import org.testng.collections.Lists; 18 private List<ITestNGMethod> m_testMethods = Lists.newArrayList(); 19 private List<ITestNGMethod> m_beforeClass = Lists.newArrayList(); 20 private List<ITestNGMethod> m_afterClass = Lists.newArrayList(); 21 private List<ITestNGMethod> m_beforeTest = Lists.newArrayList(); 22 private List<ITestNGMethod> m_afterTest = Lists.newArrayList();
|
/external/guava/guava-tests/test/com/google/common/eventbus/ |
D | ReentrantEventsTest.java | 19 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();
|
/external/smali/util/src/main/java/org/jf/util/ |
D | CharSequenceUtils.java | 36 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/guice/core/src/com/google/inject/internal/ |
D | InheritingState.java | 23 import com.google.common.collect.Lists; 54 private final List<TypeConverterBinding> converters = Lists.newArrayList(); 56 private final List<MethodAspect> methodAspects = Lists.newArrayList(); 58 private final List<TypeListenerBinding> typeListenerBindings = Lists.newArrayList(); 59 private final List<ProvisionListenerBinding> provisionListenerBindings = Lists.newArrayList(); 60 private final List<ModuleAnnotatedMethodScannerBinding> scannerBindings = Lists.newArrayList(); 141 Lists.newArrayListWithCapacity(parentBindings.size() + typeListenerBindings.size()); in getTypeListenerBindings() 154 Lists.newArrayListWithCapacity(parentBindings.size() + provisionListenerBindings.size()); in getProvisionListenerBindings() 167 Lists.newArrayListWithCapacity(parentBindings.size() + scannerBindings.size()); in getScannerBindings()
|
/external/testng/src/main/java/org/testng/internal/ |
D | Configuration.java | 4 import org.testng.collections.Lists; 17 List<IExecutionListener> m_executionListeners = Lists.newArrayList(); 18 List<IAlterSuiteListener> m_alterSuiteListeners = Lists.newArrayList(); 19 private List<IConfigurationListener> m_configurationListeners = Lists.newArrayList(); 85 return Lists.newArrayList(m_configurationListeners); in getConfigurationListeners()
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/ |
D | baksmaliOptions.java | 34 import com.google.common.collect.Lists; 59 public List<String> bootClassPathDirs = Lists.newArrayList(); 61 public List<String> bootClassPathEntries = Lists.newArrayList(); 62 public List<String> extraClassPathEntries = Lists.newArrayList(); 92 bootClassPathEntries = Lists.newArrayList(bootClassPath.split(":")); in setBootClassPath()
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletModuleTest.java | 19 import com.google.common.collect.Lists; 78 List<LinkedFilterBinding> linkedFilters = Lists.newArrayList(); 79 List<LinkedServletBinding> linkedServlets = Lists.newArrayList(); 80 List<InstanceFilterBinding> instanceFilters = Lists.newArrayList(); 81 List<InstanceServletBinding> instanceServlets = Lists.newArrayList();
|
/external/testng/src/main/java/org/testng/xml/dom/ |
D | Wrapper.java | 3 import org.testng.collections.Lists; 34 List<Object[]> allParameters = Lists.newArrayList(); in getParameters() 36 List<Object> result = Lists.newArrayList(); in getParameters() 42 List<Object> result = Lists.newArrayList(); in getParameters() 50 List<Object> result = Lists.newArrayList(); in getParameters()
|
/external/guava/guava-testlib/test/com/google/common/collect/testing/ |
D | IteratorTesterTest.java | 19 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()
|