/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-regr6/ |
D | module.py | 4 list(1) 5 + list(2) 6 + list(2) 7 + list(2) 8 + list(2) 9 + list(2) 10 + list(2) 11 + list(2) 12 + list(2) 13 + list(2) [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ListsTest.java | 36 import java.util.List; 72 private static final List<Integer> SOME_LIST 75 private static final List<Integer> SOME_SEQUENTIAL_LIST 78 private static final List<String> SOME_STRING_LIST 95 List<Character> chars = Lists.charactersOf(builder); in testCharactersOfIsView() 106 ArrayList<Integer> list = Lists.newArrayList(); in testNewArrayListEmpty() local 107 assertEquals(Collections.emptyList(), list); in testNewArrayListEmpty() local 111 ArrayList<Integer> list = Lists.newArrayListWithCapacity(0); in testNewArrayListWithCapacity() local 112 assertEquals(Collections.emptyList(), list); in testNewArrayListWithCapacity() local 127 ArrayList<Integer> list = Lists.newArrayListWithExpectedSize(0); in testNewArrayListWithExpectedSize() local [all …]
|
D | IterablesTest.java | 41 import java.util.List; 80 List<Integer> nums = asList(1, 2, 3, 4, 5); in testSize_collection_doesntIterate() 81 List<Integer> collection = new ArrayList<Integer>(nums) { in testSize_collection_doesntIterate() 90 final List<String> list = asList(elements); in iterable() local 94 return list.iterator(); in iterable() 187 List<String> list = newArrayList(); 190 assertFalse(Iterables.any(list, predicate)); 191 list.add("cool"); 192 assertFalse(Iterables.any(list, predicate)); 193 list.add("pants"); [all …]
|
D | ImmutableListTest.java | 32 import java.util.List; 46 List<String> list = ImmutableList.of(); in testCreation_noArgs() local 47 assertEquals(Collections.emptyList(), list); in testCreation_noArgs() local 51 List<String> list = ImmutableList.of("a"); in testCreation_oneElement() local 52 assertEquals(Collections.singletonList("a"), list); in testCreation_oneElement() 56 List<String> list = ImmutableList.of("a", "b"); in testCreation_twoElements() local 57 assertEquals(Lists.newArrayList("a", "b"), list); in testCreation_twoElements() 61 List<String> list = ImmutableList.of("a", "b", "c"); in testCreation_threeElements() local 62 assertEquals(Lists.newArrayList("a", "b", "c"), list); in testCreation_threeElements() 66 List<String> list = ImmutableList.of("a", "b", "c", "d"); in testCreation_fourElements() local [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ListsTest.java | 52 import java.util.List; 89 private static final List<Integer> SOME_LIST 92 private static final List<Integer> SOME_SEQUENTIAL_LIST 95 private static final List<String> SOME_STRING_LIST 116 @Override protected List<String> create(String[] elements) { in suite() 129 @Override protected List<String> create(String[] elements) { in suite() 145 @Override protected List<String> create(String[] elements) { in suite() 146 List<String> fromList = Lists.newArrayList(); in suite() 161 @Override protected List<String> create(String[] elements) { in suite() 162 List<String> fromList = Lists.newLinkedList(); in suite() [all …]
|
D | IterablesTest.java | 47 import java.util.List; 86 List<Integer> nums = asList(1, 2, 3, 4, 5); in testSize_collection_doesntIterate() 87 List<Integer> collection = new ArrayList<Integer>(nums) { in testSize_collection_doesntIterate() 96 final List<String> list = asList(elements); in iterable() local 100 return list.iterator(); in iterable() 215 List<String> list = newArrayList(); 218 assertFalse(Iterables.any(list, predicate)); 219 list.add("cool"); 220 assertFalse(Iterables.any(list, predicate)); 221 list.add("pants"); [all …]
|
/external/dbus/dbus/ |
D | dbus-list.c | 2 /* dbus-list.c Generic linked list utility (internal to D-Bus implementation) 26 #include "dbus-list.h" 31 * @defgroup DBusList Linked list 39 _DBUS_DEFINE_GLOBAL_LOCK (list); 42 * @defgroup DBusListInternals Linked list implementation details 59 _DBUS_LOCK (list); in alloc_link() 67 _DBUS_UNLOCK (list); in alloc_link() 76 _DBUS_UNLOCK (list); in alloc_link() 88 _DBUS_UNLOCK (list); in alloc_link() 96 _DBUS_LOCK (list); in free_link() [all …]
|
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/fixtures/ |
D | formatting_element_list_test.js | 12 var list = new FormattingElementList(treeAdapter); 14 list.insertMarker(); 15 assert.strictEqual(list.length, 1); 16 assert.strictEqual(list.entries[0].type, FormattingElementList.MARKER_ENTRY); 18 list.insertMarker(); 19 assert.strictEqual(list.length, 2); 20 assert.strictEqual(list.entries[1].type, FormattingElementList.MARKER_ENTRY); 24 var list = new FormattingElementList(treeAdapter), 30 list.pushElement(element1, element1Token); 31 assert.strictEqual(list.length, 1); [all …]
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
D | LazyList.java | 28 import java.util.List; 32 /** Lazy List creation. 33 * A List helper class that attempts to avoid unnecessary List 34 * creation. If a method needs to create a List to return, but it is 40 * LazyList works by passing an opaque representation of the list in 42 * null for an empty list, an Object for a list with a single entry 43 * or an {@link ArrayList} for a list of items. 59 * @see java.util.List 72 * @param list The list to add to or null if none yet created. 77 public static Object add(Object list, Object item) in add() argument [all …]
|
/external/v8/test/cctest/ |
D | test-list.cc | 7 // notice, this list of conditions and the following disclaimer. 9 // copyright notice, this list of conditions and the following 55 // Check that we can add (a reference to) an element of the list 58 // Add elements to the list to grow it to its capacity. in TEST() 59 List<int, ZeroingAllocationPolicy> list(4); in TEST() local 60 list.Add(1); in TEST() 61 list.Add(2); in TEST() 62 list.Add(3); in TEST() 63 list.Add(4); in TEST() 66 list.Add(list[0]); in TEST() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_simple_list.h | 5 * Intended to work with a list sentinal which is created as an empty 6 * list. Insert & delete are O(1). 41 * Remove an element from list. 54 * Insert an element to the list head. 56 * \param list list. 59 #define insert_at_head(list, elem) \ argument 61 (elem)->prev = list; \ 62 (elem)->next = (list)->next; \ 63 (list)->next->prev = elem; \ 64 (list)->next = elem; \ [all …]
|
/external/mesa3d/src/mesa/main/ |
D | simple_list.h | 5 * Intended to work with a list sentinal which is created as an empty 6 * list. Insert & delete are O(1). 50 * Remove an element from list. 61 * Insert an element to the list head. 63 * \param list list. 66 #define insert_at_head(list, elem) \ argument 68 (elem)->prev = list; \ 69 (elem)->next = (list)->next; \ 70 (list)->next->prev = elem; \ 71 (list)->next = elem; \ [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | ListExtensions.cs | 14 * notice, this list of conditions and the following disclaimer. 16 * notice, this list of conditions and the following disclaimer in the 47 public static bool add( this IList list, object value ) in add() argument 49 int count = list.Count; in add() 50 list.Add( value ); in add() 51 return list.Count == count + 1; in add() 55 public static void add<T>( this ICollection<T> list, T value ) in add() argument 57 list.Add( value ); in add() 61 public static void add<T>( this List<T> list, T value ) in add() argument 63 list.Add( value ); in add() [all …]
|
/external/google-breakpad/src/third_party/libdisasm/swig/ |
D | libdisasm.i | 124 x86_op_list *list = (x86_op_list *) in x86_op_list_new() local 126 list->count = 0; in x86_op_list_new() 127 return list; in x86_op_list_new() 130 void x86_op_list_free(x86_op_list *list) { in x86_op_list_free() argument 133 node = list->head; in x86_op_list_free() 141 free( list ); in x86_op_list_free() 144 x86_op_list_node * x86_op_list_first(x86_op_list *list) { in x86_op_list_first() argument 145 return list->head; in x86_op_list_first() 148 x86_op_list_node * x86_op_list_last(x86_op_list *list) { in x86_op_list_last() argument 149 return list->tail; in x86_op_list_last() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/ |
D | ListSubListTester.java | 36 import java.util.List; 39 * A generic JUnit test which tests {@code subList()} operations on a list. 85 assertEquals("subList(0, size) should be equal to the original list", in testSubList_entireList() 92 List<E> subList = getList().subList(0, 1); in testSubList_subListRemoveAffectsOriginal() 94 List<E> expected = in testSubList_subListRemoveAffectsOriginal() 102 List<E> subList = getList().subList(0, 1); in testSubList_subListClearAffectsOriginal() 104 List<E> expected = in testSubList_subListClearAffectsOriginal() 111 List<E> subList = getList().subList(0, 0); in testSubList_subListAddAffectsOriginal() 119 List<E> subList = getList().subList(0, 1); in testSubList_subListSetAffectsOriginal() 121 List<E> expected = Helpers.copyToList(createSamplesArray()); in testSubList_subListSetAffectsOriginal() [all …]
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_ListTest.java | 21 import java.util.List; 27 List<Integer> list; // must contain the Integers 0 to 99 in order field in Support_ListTest 33 public Support_ListTest(String p1, List<Integer> l) { in Support_ListTest() 35 list = l; in Support_ListTest() 43 elem = list.get(counter); in runTest() 48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); in runTest() 50 list.add(50, new Integer(1000)); in runTest() 51 assertTrue("ListTest - a) add with index failed--did not insert", list in runTest() 55 list.get(51).equals(new Integer(50))); in runTest() 58 list.get(49).equals(new Integer(49))); in runTest() [all …]
|
/external/llvm/unittests/ADT/ |
D | ilistTest.cpp | 30 ilist<Node> List; in TEST() local 31 List.push_back(Node(1)); in TEST() 32 EXPECT_EQ(1, List.back().Value); in TEST() 33 EXPECT_EQ(nullptr, List.getPrevNode(List.back())); in TEST() 34 EXPECT_EQ(nullptr, List.getNextNode(List.back())); in TEST() 36 List.push_back(Node(2)); in TEST() 37 EXPECT_EQ(2, List.back().Value); in TEST() 38 EXPECT_EQ(2, List.getNextNode(List.front())->Value); in TEST() 39 EXPECT_EQ(1, List.getPrevNode(List.back())->Value); in TEST() 41 const ilist<Node> &ConstList = List; in TEST() [all …]
|
/external/dbus/bus/ |
D | expirelist.c | 2 /* expirelist.c List of items that expire 33 DBusList *items; /**< List of BusExpireItem */ 49 BusExpireList *list; in bus_expire_list_new() local 51 list = dbus_new0 (BusExpireList, 1); in bus_expire_list_new() 52 if (list == NULL) in bus_expire_list_new() 55 list->expire_func = expire_func; in bus_expire_list_new() 56 list->data = data; in bus_expire_list_new() 57 list->loop = loop; in bus_expire_list_new() 58 list->expire_after = expire_after; in bus_expire_list_new() 60 list->timeout = _dbus_timeout_new (100, /* irrelevant */ in bus_expire_list_new() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | ListSubListTester.java | 39 import java.util.List; 43 * A generic JUnit test which tests {@code subList()} operations on a list. 89 assertEquals("subList(0, size) should be equal to the original list", in testSubList_entireList() 96 List<E> subList = getList().subList(0, 1); in testSubList_subListRemoveAffectsOriginal() 98 List<E> expected = in testSubList_subListRemoveAffectsOriginal() 106 List<E> subList = getList().subList(0, 1); in testSubList_subListClearAffectsOriginal() 108 List<E> expected = in testSubList_subListClearAffectsOriginal() 115 List<E> subList = getList().subList(0, 0); in testSubList_subListAddAffectsOriginal() 123 List<E> subList = getList().subList(0, 1); in testSubList_subListSetAffectsOriginal() 125 List<E> expected = Helpers.copyToList(createSamplesArray()); in testSubList_subListSetAffectsOriginal() [all …]
|
/external/smali/util/src/test/java/org/jf/util/ |
D | LinearSearchTest.java | 10 * notice, this list of conditions and the following disclaimer. 12 * copyright notice, this list of conditions and the following disclaimer 39 import java.util.List; 44 List<Integer> list = Lists.newArrayList(0, 1, 3, 4); in testLinearSearch() local 46 doTest(list, 5, 10); in testLinearSearch() 47 doTest(list, 5, 4); in testLinearSearch() 48 doTest(list, 5, 3); in testLinearSearch() 49 doTest(list, 5, 2); in testLinearSearch() 50 doTest(list, 5, 1); in testLinearSearch() 51 doTest(list, 5, 0); in testLinearSearch() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/webapp/ |
D | Ordering.java | 25 import java.util.List; 39 public List<Resource> order(List<Resource> fragments); in order() 52 protected List<String> _order = new ArrayList<String>(); 62 … * Order the list of jars in WEB-INF/lib according to the ordering declarations in the descriptors 63 * @see org.eclipse.jetty.webapp.Ordering#order(java.util.List) 66 public List<Resource> order(List<Resource> jars) in order() 68 List<Resource> orderedList = new ArrayList<Resource>(); in order() 69 List<Resource> tmp = new ArrayList<Resource>(jars); in order() 71 //1. put everything into the list of named others, and take the named ones out of there, in order() 75 //2. for each name, take out of the list of others, add to tail of list in order() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | SortedLists.java | 25 import java.util.List; 31 * Static methods pertaining to sorted {@link List} instances. 36 * list. 45 * A specification for which index to return if the list contains at least one element that 50 * Return the index of any list element that compares as equal to the key. No guarantees are 56 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex() argument 61 * Return the index of the last list element that compares as equal to the key. 66 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { in resultIndex() argument 70 int upper = list.size() - 1; in resultIndex() 74 int c = comparator.compare(list.get(middle), key); in resultIndex() [all …]
|
D | Lists.java | 47 import java.util.List; 56 * Static utility methods pertaining to {@link List} instances. Also see this 99 * might be null, or you need support for {@link List#set(int, Object)}, use 104 * Arrays#asList asList}{@code (...))}, or for creating an empty list then 113 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList() local 114 Collections.addAll(list, elements); in newArrayList() 115 return list; in newArrayList() 127 * elements; a very thin shortcut for creating an empty list then calling 151 * elements; a very thin shortcut for creating an empty list and then calling 159 ArrayList<E> list = newArrayList(); in newArrayList() local [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Lists.java | 46 import java.util.List; 54 * Static utility methods pertaining to {@link List} instances. Also see this 97 * might be null, or you need support for {@link List#set(int, Object)}, use 102 * Arrays#asList asList}{@code (...))}, or for creating an empty list then 111 ArrayList<E> list = new ArrayList<E>(capacity); in newArrayList() local 112 Collections.addAll(list, elements); in newArrayList() 113 return list; in newArrayList() 125 * elements; a very thin shortcut for creating an empty list then calling 149 * elements; a very thin shortcut for creating an empty list and then calling 157 ArrayList<E> list = newArrayList(); in newArrayList() local [all …]
|
/external/llvm/test/Feature/ |
D | recursivetype.ll | 6 ; typedef struct list { 7 ; struct list *Next; 9 ; } list; 12 ; void InsertIntoListTail(list **L, int Data) { 15 ; *L = (list*)malloc(sizeof(list)); 20 ; // Recursive list search fn 21 ; list *FindData(list *L, int Data) { 28 ; list *MyList = 0; 40 %list = type { %list*, i32 } 44 define void @InsertIntoListTail(%list** %L, i32 %Data) { [all …]
|