/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 84 private static final List<Integer> SOME_LIST = Lists.newArrayList(1, 2, 3, 4); 86 private static final List<Integer> SOME_SEQUENTIAL_LIST = Lists.newLinkedList(asList(1, 2, 3, 4)); 113 return Lists.asList(elements[0], rest); in suite() 131 return Lists.asList(elements[0], elements[1], rest); in suite() 148 List<String> fromList = Lists.newArrayList(); in suite() 152 return Lists.transform(fromList, removeFirst); in suite() 168 List<String> fromList = Lists.newLinkedList(); in suite() 172 return Lists.transform(fromList, removeFirst); in suite() 188 List<String> fromList = Lists.newArrayList(elements); in suite() 189 return Lists.transform(fromList, Functions.<String>identity()); in suite() [all …]
|
D | FluentIterableTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 76 Lists.newArrayList(FluentIterable.from(ImmutableList.of(1, 2, 3, 4)))); in testFrom() 86 assertEquals(ImmutableList.of(1, 2, 3, 4), Lists.newArrayList(FluentIterable.of(1, 2, 3, 4))); in testOf() 92 Lists.newArrayList(FluentIterable.from(new Object[] {"1", "2", "3", "4"}))); in testFromArray() 96 assertEquals(ImmutableList.of(), Lists.newArrayList(FluentIterable.of())); in testOf_empty() 309 FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.newArrayList(4, 5, 6)); in testAppend() 310 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 314 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 320 FluentIterable.<Integer>of().append(Lists.newArrayList(1, 2, 3)); in testAppend_toEmpty() 321 assertEquals(asList(1, 2, 3), Lists.newArrayList(result)); in testAppend_toEmpty() [all …]
|
D | ListsImplTest.java | 119 assertThat(Lists.hashCodeImpl(base)).isEqualTo(Lists.hashCodeImpl(copy)); in testHashCodeImpl() 121 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(outOfOrder)); in testHashCodeImpl() 122 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffValue)); in testHashCodeImpl() 123 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffLength)); in testHashCodeImpl() 124 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(empty)); in testHashCodeImpl() 136 assertThat(Lists.equalsImpl(base, copy)).isTrue(); in testEqualsImpl() 137 assertThat(Lists.equalsImpl(base, otherType)).isTrue(); in testEqualsImpl() 142 assertWithMessage("%s", other).that(Lists.equalsImpl(base, other)).isFalse(); in testEqualsImpl() 172 .that(Lists.addAllImpl(toTest, index, iterableToAdd)) in testAddAllImpl() 220 assertWithMessage(name).that(Lists.indexOfImpl(toTest, obj)).isEqualTo(expected[index]); in checkIndexOf() [all …]
|
D | ObjectArraysTest.java | 122 doTestToArrayImpl1(Lists.<Integer>newArrayList()); in testToArrayImpl1() 123 doTestToArrayImpl1(Lists.newArrayList(1)); in testToArrayImpl1() 124 doTestToArrayImpl1(Lists.newArrayList(1, null, 3)); in testToArrayImpl1() 135 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[0], false); in testToArrayImpl2() 136 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[1], true); in testToArrayImpl2() 138 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[0], false); in testToArrayImpl2() 139 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[1], true); in testToArrayImpl2() 140 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[] {2, 3}, true); in testToArrayImpl2() 142 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[0], false); in testToArrayImpl2() 143 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[2], false); in testToArrayImpl2() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 84 private static final List<Integer> SOME_LIST = Lists.newArrayList(1, 2, 3, 4); 86 private static final List<Integer> SOME_SEQUENTIAL_LIST = Lists.newLinkedList(asList(1, 2, 3, 4)); 113 return Lists.asList(elements[0], rest); in suite() 131 return Lists.asList(elements[0], elements[1], rest); in suite() 148 List<String> fromList = Lists.newArrayList(); in suite() 152 return Lists.transform(fromList, removeFirst); in suite() 168 List<String> fromList = Lists.newLinkedList(); in suite() 172 return Lists.transform(fromList, removeFirst); in suite() 188 List<String> fromList = Lists.newArrayList(elements); in suite() 189 return Lists.transform(fromList, Functions.<String>identity()); in suite() [all …]
|
D | FluentIterableTest.java | 20 import static com.google.common.collect.Lists.newArrayList; 80 Lists.newArrayList(FluentIterable.from(ImmutableList.of(1, 2, 3, 4)))); in testFrom() 90 assertEquals(ImmutableList.of(1, 2, 3, 4), Lists.newArrayList(FluentIterable.of(1, 2, 3, 4))); in testOf() 96 Lists.newArrayList(FluentIterable.from(new Object[] {"1", "2", "3", "4"}))); in testFromArray() 100 assertEquals(ImmutableList.of(), Lists.newArrayList(FluentIterable.of())); in testOf_empty() 313 FluentIterable.<Integer>from(asList(1, 2, 3)).append(Lists.newArrayList(4, 5, 6)); in testAppend() 314 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 318 assertEquals(asList(1, 2, 3, 4, 5, 6), Lists.newArrayList(result)); in testAppend() 324 FluentIterable.<Integer>of().append(Lists.newArrayList(1, 2, 3)); in testAppend_toEmpty() 325 assertEquals(asList(1, 2, 3), Lists.newArrayList(result)); in testAppend_toEmpty() [all …]
|
D | ListsImplTest.java | 119 assertThat(Lists.hashCodeImpl(base)).isEqualTo(Lists.hashCodeImpl(copy)); in testHashCodeImpl() 121 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(outOfOrder)); in testHashCodeImpl() 122 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffValue)); in testHashCodeImpl() 123 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffLength)); in testHashCodeImpl() 124 assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(empty)); in testHashCodeImpl() 136 assertThat(Lists.equalsImpl(base, copy)).isTrue(); in testEqualsImpl() 137 assertThat(Lists.equalsImpl(base, otherType)).isTrue(); in testEqualsImpl() 142 assertWithMessage("%s", other).that(Lists.equalsImpl(base, other)).isFalse(); in testEqualsImpl() 172 .that(Lists.addAllImpl(toTest, index, iterableToAdd)) in testAddAllImpl() 220 assertWithMessage(name).that(Lists.indexOfImpl(toTest, obj)).isEqualTo(expected[index]); in checkIndexOf() [all …]
|
D | ObjectArraysTest.java | 122 doTestToArrayImpl1(Lists.<Integer>newArrayList()); in testToArrayImpl1() 123 doTestToArrayImpl1(Lists.newArrayList(1)); in testToArrayImpl1() 124 doTestToArrayImpl1(Lists.newArrayList(1, null, 3)); in testToArrayImpl1() 135 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[0], false); in testToArrayImpl2() 136 doTestToArrayImpl2(Lists.<Integer>newArrayList(), new Integer[1], true); in testToArrayImpl2() 138 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[0], false); in testToArrayImpl2() 139 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[1], true); in testToArrayImpl2() 140 doTestToArrayImpl2(Lists.newArrayList(1), new Integer[] {2, 3}, true); in testToArrayImpl2() 142 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[0], false); in testToArrayImpl2() 143 doTestToArrayImpl2(Lists.newArrayList(1, null, 3), new Integer[2], false); in testToArrayImpl2() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/eventbus/outside/ |
D | AnnotatedSubscriberFinderTests.java | 21 import com.google.common.collect.Lists; 67 final List<Object> nonSubscriberEvents = Lists.newArrayList(); 68 final List<Object> subscriberEvents = Lists.newArrayList(); 105 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList(); 106 final List<Object> overriddenInSubclassEvents = Lists.newArrayList(); 137 final List<Object> notOverriddenInSubclassEvents = Lists.newArrayList(); 138 final List<Object> overriddenNotAnnotatedInSubclassEvents = Lists.newArrayList(); 139 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList(); 141 Lists.newArrayList(); 142 final List<Object> differentlyOverriddenAnnotatedInSubclassBadEvents = Lists.newArrayList(); [all …]
|
/external/guava/guava-tests/test/com/google/common/eventbus/outside/ |
D | AnnotatedSubscriberFinderTests.java | 21 import com.google.common.collect.Lists; 67 final List<Object> nonSubscriberEvents = Lists.newArrayList(); 68 final List<Object> subscriberEvents = Lists.newArrayList(); 105 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList(); 106 final List<Object> overriddenInSubclassEvents = Lists.newArrayList(); 137 final List<Object> notOverriddenInSubclassEvents = Lists.newArrayList(); 138 final List<Object> overriddenNotAnnotatedInSubclassEvents = Lists.newArrayList(); 139 final List<Object> overriddenAndAnnotatedInSubclassEvents = Lists.newArrayList(); 141 Lists.newArrayList(); 142 final List<Object> differentlyOverriddenAnnotatedInSubclassBadEvents = Lists.newArrayList(); [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapPutIterableTester.java | 28 import com.google.common.collect.Lists; 55 return Lists.newArrayList(v3(), v4()).iterator(); in testPutAllNonEmptyIterableOnPresentKey() 64 assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4()))); in testPutAllNonEmptyCollectionOnPresentKey() 77 return Lists.newArrayList(v3(), v4()).iterator(); in testPutAllNonEmptyIterableOnAbsentKey() 85 assertTrue(multimap().putAll(k3(), Lists.newArrayList(v3(), v4()))); in testPutAllNonEmptyCollectionOnAbsentKey() 92 assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), null))); in testPutAllNullValueOnPresentKey_supported() 98 assertTrue(multimap().putAll(k3(), Lists.newArrayList(v3(), null))); in testPutAllNullValueOnAbsentKey_supported() 104 multimap().putAll(k1(), Lists.newArrayList((V) null)); in testPutAllNullValueSingle_unsupported() 115 multimap().putAll(k3(), Lists.newArrayList(v3(), null)); in testPutAllNullValueNullLast_unsupported() 124 assertEquals(Lists.newArrayList(), Lists.newArrayList(values)); in testPutAllNullValueNullLast_unsupported() [all …]
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapPutIterableTester.java | 28 import com.google.common.collect.Lists; 55 return Lists.newArrayList(v3(), v4()).iterator(); in testPutAllNonEmptyIterableOnPresentKey() 64 assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4()))); in testPutAllNonEmptyCollectionOnPresentKey() 77 return Lists.newArrayList(v3(), v4()).iterator(); in testPutAllNonEmptyIterableOnAbsentKey() 85 assertTrue(multimap().putAll(k3(), Lists.newArrayList(v3(), v4()))); in testPutAllNonEmptyCollectionOnAbsentKey() 92 assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), null))); in testPutAllNullValueOnPresentKey_supported() 98 assertTrue(multimap().putAll(k3(), Lists.newArrayList(v3(), null))); in testPutAllNullValueOnAbsentKey_supported() 104 multimap().putAll(k1(), Lists.newArrayList((V) null)); in testPutAllNullValueSingle_unsupported() 115 multimap().putAll(k3(), Lists.newArrayList(v3(), null)); in testPutAllNullValueNullLast_unsupported() 124 assertEquals(Lists.newArrayList(), Lists.newArrayList(values)); in testPutAllNullValueNullLast_unsupported() [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 …]
|
/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
D | DebugLocStream.h | 48 SmallVector<List, 4> Lists; 60 size_t getNumLists() const { return Lists.size(); } in getNumLists() 61 const List &getList(size_t LI) const { return Lists[LI]; } in getList() 62 ArrayRef<List> getLists() const { return Lists; } in getLists() 81 size_t LI = Lists.size(); in startList() 82 Lists.emplace_back(CU, Entries.size()); in startList() 113 .slice(Lists[LI].EntryOffset, getNumEntries(LI)); in getEntries() 129 assert(&Lists.front() <= &L && &L <= &Lists.back() && in getIndex() 131 return &L - &Lists.front(); in getIndex() 139 if (LI + 1 == Lists.size()) in getNumEntries() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | DebugLocStream.h | 48 SmallVector<List, 4> Lists; 60 size_t getNumLists() const { return Lists.size(); } in getNumLists() 61 const List &getList(size_t LI) const { return Lists[LI]; } in getList() 62 ArrayRef<List> getLists() const { return Lists; } in getLists() 81 size_t LI = Lists.size(); in startList() 82 Lists.emplace_back(CU, Entries.size()); in startList() 113 .slice(Lists[LI].EntryOffset, getNumEntries(LI)); in getEntries() 129 assert(&Lists.front() <= &L && &L <= &Lists.back() && in getIndex() 131 return &L - &Lists.front(); in getIndex() 139 if (LI + 1 == Lists.size()) in getNumEntries() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | UnknownField.cs | 78 && Lists.Equals(varintList, otherField.varintList) in Equals() 79 && Lists.Equals(fixed32List, otherField.fixed32List) in Equals() 80 && Lists.Equals(fixed64List, otherField.fixed64List) in Equals() 81 && Lists.Equals(lengthDelimitedList, otherField.lengthDelimitedList) in Equals() 82 && Lists.Equals(groupList, otherField.groupList); in Equals() 91 hash = hash * 47 + Lists.GetHashCode(varintList); in GetHashCode() 92 hash = hash * 47 + Lists.GetHashCode(fixed32List); in GetHashCode() 93 hash = hash * 47 + Lists.GetHashCode(fixed64List); in GetHashCode() 94 hash = hash * 47 + Lists.GetHashCode(lengthDelimitedList); in GetHashCode() 95 hash = hash * 47 + Lists.GetHashCode(groupList); in GetHashCode()
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/pool/ |
D | RollbackTest.java | 34 import com.google.common.collect.Lists; 57 … Lists.newArrayList(new ImmutableAnnotation(AnnotationVisibility.RUNTIME, "Lannotation;", null)), in testRollback() 58 Lists.<Field>newArrayList( in testRollback() 61 Lists.<Method>newArrayList( in testRollback() 63 … Lists.<MethodParameter>newArrayList(new ImmutableMethodParameter("L", null, null)), "V", in testRollback() 68 … Lists.newArrayList(new ImmutableAnnotation(AnnotationVisibility.RUNTIME, "Lannotation2;", null)), in testRollback() 69 Lists.<Field>newArrayList( in testRollback() 72 Lists.<Method>newArrayList( in testRollback() 74 … Lists.<MethodParameter>newArrayList(new ImmutableMethodParameter("D", null, null)), "V", in testRollback()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
D | ClassPathResolver.java | 36 import com.google.common.collect.Lists; 214 return Lists.newArrayList(Splitter.on('/').split(path)); in splitDevicePath() 255 return Lists.newArrayList( in getDefaultBootClassPath() 262 return Lists.newArrayList( in getDefaultBootClassPath() 271 return Lists.newArrayList( in getDefaultBootClassPath() 281 return Lists.newArrayList( in getDefaultBootClassPath() 293 return Lists.newArrayList( in getDefaultBootClassPath() 305 return Lists.newArrayList( in getDefaultBootClassPath() 318 return Lists.newArrayList( in getDefaultBootClassPath() 334 return Lists.newArrayList( in getDefaultBootClassPath() [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…
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | ForwardingList.java | 146 return Lists.addAllImpl(this, index, elements); in standardAddAll() 157 return Lists.indexOfImpl(this, element); in standardIndexOf() 168 return Lists.lastIndexOfImpl(this, element); in standardLastIndexOf() 203 return Lists.listIteratorImpl(this, start); in standardListIterator() 214 return Lists.subListImpl(this, fromIndex, toIndex); in standardSubList() 226 return Lists.equalsImpl(this, object); in standardEquals() 238 return Lists.hashCodeImpl(this); in standardHashCode()
|
/external/guava/guava/src/com/google/common/collect/ |
D | ForwardingList.java | 146 return Lists.addAllImpl(this, index, elements); in standardAddAll() 157 return Lists.indexOfImpl(this, element); in standardIndexOf() 168 return Lists.lastIndexOfImpl(this, element); in standardLastIndexOf() 203 return Lists.listIteratorImpl(this, start); in standardListIterator() 214 return Lists.subListImpl(this, fromIndex, toIndex); in standardSubList() 226 return Lists.equalsImpl(this, object); in standardEquals() 238 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/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2CellUnionTest.java | 18 import com.google.common.collect.Lists; 33 ArrayList<S2CellId> ids = Lists.newArrayList(); in testBasic() 46 ArrayList<Long> cellids = Lists.newArrayList(); in testBasic() 67 union.initFromCellIds(Lists.newArrayList(randomCells)); in testContainsCellUnion() 74 unionPlusOne.initFromCellIds(Lists.newArrayList(randomCells)); in testContainsCellUnion() 86 parentUnion.initFromCellIds(Lists.newArrayList(parents)); in testContainsCellUnion() 172 ArrayList<S2CellId> input = Lists.newArrayList(); in testNormalize() 173 ArrayList<S2CellId> expected = Lists.newArrayList(); in testNormalize() 216 ArrayList<S2CellId> x = Lists.newArrayList(); in testNormalize() 217 ArrayList<S2CellId> y = Lists.newArrayList(); in testNormalize() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/eventbus/ |
D | ReentrantEventsTest.java | 19 import com.google.common.collect.Lists; 43 Lists.<Object>newArrayList(FIRST, SECOND), in testNoReentrantEvents() 49 List<Object> eventsReceived = Lists.newArrayList(); 80 Lists.<Object>newArrayList(FIRST, SECOND), in testEventOrderingIsPredictable() 92 List<Object> eventsReceived = Lists.newArrayList();
|