Home
last modified time | relevance | path

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

12345678910>>...764

/external/llvm-project/polly/lib/External/isl/
Disl_list_templ.c25 isl_ctx *FN(LIST(EL),get_ctx)(__isl_keep LIST(EL) *list) in FN()
27 return list ? list->ctx : NULL; in FN()
30 __isl_give LIST(EL) *FN(LIST(EL),alloc)(isl_ctx *ctx, int n) in LIST() function
32 LIST(EL) *list; in LIST()
36 "cannot create list of negative length", in LIST()
38 list = isl_alloc(ctx, LIST(EL), in LIST()
39 sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *)); in LIST()
40 if (!list) in LIST()
43 list->ctx = ctx; in LIST()
45 list->ref = 1; in LIST()
[all …]
/external/pigweed/pw_containers/
Dintrusive_list_test.cc46 IntrusiveList<TestItem> list({}); in TEST() local
47 EXPECT_TRUE(list.empty()); in TEST()
52 IntrusiveList<TestItem> list({&one}); in TEST() local
54 EXPECT_EQ(&one, &list.front()); in TEST()
62 IntrusiveList<TestItem> list({&one, &two, &thr}); in TEST() local
63 auto it = list.begin(); in TEST()
67 EXPECT_EQ(list.end(), it); in TEST()
72 IntrusiveList<TestItem> list(array.begin(), array.end()); in TEST() local
74 EXPECT_TRUE(list.empty()); in TEST()
79 IntrusiveList<TestItem> list(array.begin(), array.end()); in TEST() local
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DListsTest.java45 import java.util.List;
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));
88 private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4");
110 protected List<String> create(String[] elements) { in suite()
128 protected List<String> create(String[] elements) { in suite()
147 protected List<String> create(String[] elements) { in suite()
148 List<String> fromList = Lists.newArrayList(); in suite()
167 protected List<String> create(String[] elements) { in suite()
168 List<String> fromList = Lists.newLinkedList(); in suite()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java45 import java.util.List;
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));
88 private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4");
110 protected List<String> create(String[] elements) { in suite()
128 protected List<String> create(String[] elements) { in suite()
147 protected List<String> create(String[] elements) { in suite()
148 List<String> fromList = Lists.newArrayList(); in suite()
167 protected List<String> create(String[] elements) { in suite()
168 List<String> fromList = Lists.newLinkedList(); in suite()
[all …]
/external/libchrome/base/containers/
Dlinked_list_unittest.cc46 // Checks that when iterating |list| (either from head to tail, or from
49 void ExpectListContentsForDirection(const LinkedList<Node>& list, in ExpectListContentsForDirection() argument
52 for (const LinkNode<Node>* node = (forward ? list.head() : list.tail()); in ExpectListContentsForDirection()
53 node != list.end(); in ExpectListContentsForDirection()
63 void ExpectListContents(const LinkedList<Node>& list, in ExpectListContents() argument
68 ExpectListContentsForDirection(list, num_nodes, node_ids, true); in ExpectListContents()
72 ExpectListContentsForDirection(list, num_nodes, node_ids, false); in ExpectListContents()
77 LinkedList<Node> list; in TEST() local
78 EXPECT_EQ(list.end(), list.head()); in TEST()
79 EXPECT_EQ(list.end(), list.tail()); in TEST()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
38 import java.util.List;
48 private ProtobufArrayList<Integer> list; field in ProtobufArrayListTest
52 list = new ProtobufArrayList<Integer>(); in setUp()
64 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration()
65 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration()
66 assertEquals(4, list.size()); in testModificationWithIteration()
67 assertEquals(1, (int) list.get(0)); in testModificationWithIteration()
70 list.remove(0); in testModificationWithIteration()
[all …]
DLongArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private LongArrayList list; field in LongArrayListTest
55 list = new LongArrayList(); in setUp()
67 list.addLong(3); in testMakeImmutable()
68 list.addLong(4); in testMakeImmutable()
69 list.addLong(5); in testMakeImmutable()
70 list.addLong(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[all …]
DIntArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private IntArrayList list; field in IntArrayListTest
55 list = new IntArrayList(); in setUp()
67 list.addInt(3); in testMakeImmutable()
68 list.addInt(4); in testMakeImmutable()
69 list.addInt(5); in testMakeImmutable()
70 list.addInt(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 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 …]
DLazyStringArrayListTest.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;
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 …]
DDoubleArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private DoubleArrayList list; field in DoubleArrayListTest
55 list = new DoubleArrayList(); in setUp()
67 list.addDouble(3); in testMakeImmutable()
68 list.addDouble(4); in testMakeImmutable()
69 list.addDouble(5); in testMakeImmutable()
70 list.addDouble(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 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
51 private FloatArrayList list; field in FloatArrayListTest
55 list = new FloatArrayList(); in setUp()
67 list.addFloat(3); in testMakeImmutable()
68 list.addFloat(4); in testMakeImmutable()
69 list.addFloat(5); in testMakeImmutable()
70 list.addFloat(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[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/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DVisitorListTest.java30 import java.util.List;
42 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAll() local
43 list.add(parse("class X{}")); in visitorAddAll()
44 list.add(parse("class X{}")); in visitorAddAll()
47 vList.addAll(list); in visitorAddAll()
48 for (int i = 0; i < list.size(); i++) in visitorAddAll()
49 assertEquals(list.get(i), vList.get(i)); in visitorAddAll()
54 List<CompilationUnit> list = new ArrayList<>(); in visitorAddAllAtIndex() local
55 list.add(parse("class X{}")); in visitorAddAllAtIndex()
56 list.add(parse("class Y{}")); in visitorAddAllAtIndex()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DListFieldSchema.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
36 import java.util.List;
39 * Utility class that aids in properly manipulating list fields for either the lite or full runtime.
48 abstract <L> List<L> mutableListAt(Object msg, long offset); in mutableListAt()
69 <L> List<L> mutableListAt(Object message, long offset) { in mutableListAt()
75 List<?> list = (List<?>) UnsafeUtil.getObject(message, offset); in makeImmutableListAt() local
77 if (list instanceof LazyStringList) { in makeImmutableListAt()
78 immutable = ((LazyStringList) list).getUnmodifiableView(); in makeImmutableListAt()
79 } else if (UNMODIFIABLE_LIST_CLASS.isAssignableFrom(list.getClass())) { in makeImmutableListAt()
[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/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/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs11 // notice, this list of conditions and the following disclaimer.
13 // copyright notice, this list of conditions and the following disclaimer
50 var list = new RepeatedField<string>(); in NullValuesRejected()
51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
61 var list = new RepeatedField<string>(); in Add_SingleItem()
62 list.Add("foo"); in Add_SingleItem()
[all …]
/external/adhd/cras/src/server/
Dstream_list.c33 struct stream_list *list = (struct stream_list *)data; in delete_streams() local
36 DL_FOREACH (list->streams_to_delete, to_delete) { in delete_streams()
39 drain_delay = list->stream_removed_cb(to_delete); in delete_streams()
44 DL_DELETE(list->streams_to_delete, to_delete); in delete_streams()
45 list->stream_destroy_cb(to_delete); in delete_streams()
48 list->drain_timer = NULL; in delete_streams()
50 list->drain_timer = in delete_streams()
51 cras_tm_create_timer(list->timer_manager, in delete_streams()
53 delete_streams, list); in delete_streams()
66 struct stream_list *list = calloc(1, sizeof(struct stream_list)); in stream_list_create() local
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListSubListTester.java38 import java.util.List;
43 * A generic JUnit test which tests {@code subList()} operations on a list. Can't be invoked
89 "subList(0, size) should be equal to the original list", in testSubList_entireList()
97 List<E> subList = getList().subList(0, 1); in testSubList_subListRemoveAffectsOriginal()
99 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal()
106 List<E> subList = getList().subList(0, 1); in testSubList_subListClearAffectsOriginal()
108 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListClearAffectsOriginal()
114 List<E> subList = getList().subList(0, 0); in testSubList_subListAddAffectsOriginal()
122 List<E> subList = getList().subList(0, 1); in testSubList_subListSetAffectsOriginal()
124 List<E> expected = Helpers.copyToList(createSamplesArray()); in testSubList_subListSetAffectsOriginal()
[all …]

12345678910>>...764