Home
last modified time | relevance | path

Searched full:list (Results 1 – 25 of 14302) sorted by relevance

12345678910>>...573

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java36 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 …]
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java52 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 …]
DIterablesTest.java47 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/protobuf/java/core/src/test/java/com/google/protobuf/
DIntArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private IntArrayList list; field in IntArrayListTest
56 list = new IntArrayList(); in setUp()
68 list.addInt(2); in testMakeImmutable()
69 list.addInt(4); in testMakeImmutable()
70 list.addInt(6); in testMakeImmutable()
71 list.addInt(8); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DBooleanArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private BooleanArrayList list; field in BooleanArrayListTest
56 list = new BooleanArrayList(); in setUp()
68 list.addBoolean(true); in testMakeImmutable()
69 list.addBoolean(false); in testMakeImmutable()
70 list.addBoolean(true); in testMakeImmutable()
71 list.addBoolean(true); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DDoubleArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private DoubleArrayList list; field in DoubleArrayListTest
56 list = new DoubleArrayList(); in setUp()
68 list.addDouble(2); in testMakeImmutable()
69 list.addDouble(4); in testMakeImmutable()
70 list.addDouble(6); in testMakeImmutable()
71 list.addDouble(8); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DLongArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private LongArrayList list; field in LongArrayListTest
56 list = new LongArrayList(); in setUp()
68 list.addLong(2); in testMakeImmutable()
69 list.addLong(4); in testMakeImmutable()
70 list.addLong(6); in testMakeImmutable()
71 list.addLong(8); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DFloatArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private FloatArrayList list; field in FloatArrayListTest
56 list = new FloatArrayList(); in setUp()
68 list.addFloat(2); in testMakeImmutable()
69 list.addFloat(4); in testMakeImmutable()
70 list.addFloat(6); in testMakeImmutable()
71 list.addFloat(8); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DLazyStringArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
40 import java.util.List;
58 LazyStringArrayList list = new LazyStringArrayList(); in testJustStrings() local
59 list.add(STRING_A); in testJustStrings()
60 list.add(STRING_B); in testJustStrings()
61 list.add(STRING_C); in testJustStrings()
63 assertEquals(3, list.size()); in testJustStrings()
64 assertSame(STRING_A, list.get(0)); in testJustStrings()
65 assertSame(STRING_B, list.get(1)); in testJustStrings()
[all …]
DProtobufArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
40 import java.util.List;
51 private ProtobufArrayList<Integer> list; field in ProtobufArrayListTest
55 list = new ProtobufArrayList<Integer>(); in setUp()
67 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration()
68 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration()
69 assertEquals(4, list.size()); in testModificationWithIteration()
70 assertEquals(1, (int) list.get(0)); in testModificationWithIteration()
73 list.remove(0); in testModificationWithIteration()
[all …]
/external/mesa3d/src/util/
Dsimple_list.h5 * 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.
62 * Insert an element to the list head.
64 * \param list list.
67 #define insert_at_head(list, elem) \ argument
69 (elem)->prev = list; \
70 (elem)->next = (list)->next; \
71 (list)->next->prev = elem; \
72 (list)->next = elem; \
[all …]
/external/kmod/libkmod/
Dlibkmod-list.c26 * SECTION:libkmod-list
27 * @short_description: general purpose list
38 static inline void list_node_append(struct list_node *list, in list_node_append() argument
41 if (list == NULL) { in list_node_append()
46 node->prev = list->prev; in list_node_append()
47 list->prev->next = node; in list_node_append()
48 list->prev = node; in list_node_append()
49 node->next = list; in list_node_append()
63 static inline void list_node_insert_after(struct list_node *list, in list_node_insert_after() argument
66 if (list == NULL) { in list_node_insert_after()
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DListExtensions.cs14 * 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/
Dlibdisasm.i124 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/llvm/unittests/ADT/
DilistTest.cpp30 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/smali/util/src/test/java/org/jf/util/
DLinearSearchTest.java10 * 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/apache-harmony/support/src/test/java/tests/support/
DSupport_ListTest.java21 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/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DListSubListTester.java36 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/adhd/cras/src/server/
Dstream_list.c26 struct stream_list *list = (struct stream_list *)data; in delete_streams() local
29 DL_FOREACH(list->streams_to_delete, to_delete) { in delete_streams()
32 drain_delay = list->stream_removed_cb(to_delete); in delete_streams()
37 DL_DELETE(list->streams_to_delete, to_delete); in delete_streams()
38 list->stream_destroy_cb(to_delete); in delete_streams()
41 list->drain_timer = NULL; in delete_streams()
43 list->drain_timer = cras_tm_create_timer(list->timer_manager, in delete_streams()
44 MAX(max_drain_delay, 10), delete_streams, list); in delete_streams()
57 struct stream_list *list = calloc(1, sizeof(struct stream_list)); in stream_list_create() local
59 list->stream_added_cb = add_cb; in stream_list_create()
[all …]
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DVisitorListTest.java29 import java.util.List;
43 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAll() local
44 list.add(JavaParser.parse("class X{}")); in visitorAddAll()
45 list.add(JavaParser.parse("class X{}")); in visitorAddAll()
48 vList.addAll(list); in visitorAddAll()
49 for (int i = 0; i < list.size(); i++) in visitorAddAll()
50 assertEquals(list.get(i), vList.get(i)); in visitorAddAll()
55 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAllAtIndex() local
56 list.add(JavaParser.parse("class X{}")); in visitorAddAllAtIndex()
57 list.add(JavaParser.parse("class Y{}")); in visitorAddAllAtIndex()
[all …]
/external/kmod/testsuite/
Dtest-list.c27 static int len(struct kmod_list *list) in len() argument
31 kmod_list_foreach(l, list) in len()
39 struct kmod_list *list = NULL, *last; in test_list_last() local
45 list = kmod_list_append(list, v[i]); in test_list_last()
46 assert_return(len(list) == N, EXIT_FAILURE); in test_list_last()
48 last = kmod_list_last(list); in test_list_last()
54 .description = "test for the last element of a list");
59 struct kmod_list *list = NULL, *l, *p; in test_list_prev() local
64 l = kmod_list_prev(list, list); in test_list_prev()
68 list = kmod_list_append(list, v[i]); in test_list_prev()
[all …]
/external/python/cpython3/Doc/c-api/
Dlist.rst5 List Objects
8 .. index:: object: list
13 This subtype of :c:type:`PyObject` represents a Python list object.
18 This instance of :c:type:`PyTypeObject` represents the Python list type.
19 This is the same object as :class:`list` in the Python layer.
24 Return true if *p* is a list object or an instance of a subtype of the list
30 Return true if *p* is a list object, but not an instance of a subtype of
31 the list type.
36 Return a new list of length *len* on success, or *NULL* on failure.
40 If *len* is greater than zero, the returned list object's items are
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListSubListTester.java39 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/u-boot/include/linux/
Dlist.h13 * Simple doubly linked list implementation.
31 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument
33 list->next = list; in INIT_LIST_HEAD()
34 list->prev = list; in INIT_LIST_HEAD()
40 * This is only for internal list manipulation where we know
56 * @head: list head to add it after
69 * @head: list head to add it before
80 * Delete a list entry by making the prev/next entries
83 * This is only for internal list manipulation where we know
93 * list_del - deletes entry from list.
[all …]
/external/guava/guava/src/com/google/common/collect/
DSortedLists.java25 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 …]

12345678910>>...573