Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 9959) sorted by relevance

12345678910>>...399

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDoubleArrayListTest.java51 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()
76 list.addAll(asList(1D, 2D, 3D, 4D)); in testModificationWithIteration()
77 Iterator<Double> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DLongArrayListTest.java51 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()
76 list.addAll(asList(1L, 2L, 3L, 4L)); in testModificationWithIteration()
77 Iterator<Long> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DIntArrayListTest.java51 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()
76 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration()
77 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DFloatArrayListTest.java51 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()
76 list.addAll(asList(1F, 2F, 3F, 4F)); in testModificationWithIteration()
77 Iterator<Float> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DBooleanArrayListTest.java52 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()
77 list.addAll(asList(true, false, true, false)); in testModificationWithIteration()
78 Iterator<Boolean> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DProtobufArrayListTest.java48 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()
78 iterator = list.iterator(); in testModificationWithIteration()
79 list.set(0, 1); in testModificationWithIteration()
87 iterator = list.iterator(); in testModificationWithIteration()
[all …]
DLazyStringArrayListTest.java58 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()
66 assertSame(STRING_C, list.get(2)); in testJustStrings()
68 list.set(1, STRING_C); in testJustStrings()
69 assertSame(STRING_C, list.get(1)); in testJustStrings()
[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/smali/util/src/test/java/org/jf/util/
DLinearSearchTest.java44 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()
53 doTest(list, 4, 10); in testLinearSearch()
54 doTest(list, 4, 4); in testLinearSearch()
55 doTest(list, 4, 3); in testLinearSearch()
[all …]
/external/libchrome/base/containers/
Dlinked_list_unittest.cc49 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()
80 ExpectListContents(list, 0, nullptr); in TEST()
[all …]
/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()
32 LIST(EL) *list; in LIST()
38 list = isl_alloc(ctx, LIST(EL), in LIST()
40 if (!list) in LIST()
43 list->ctx = ctx; in LIST()
45 list->ref = 1; in LIST()
46 list->size = n; in LIST()
47 list->n = 0; in LIST()
48 return list; in LIST()
[all …]
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DListExtensions.cs47 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()
67 public static void add( this IList list, int index, object value ) in add() argument
69 list.Insert( index, value ); in add()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs50 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()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dnine_shader.h133 nine_shader_variant_get(struct nine_shader_variant *list, in nine_shader_variant_get() argument
138 while (list->key != key && list->next) in nine_shader_variant_get()
139 list = list->next; in nine_shader_variant_get()
140 if (list->key == key) { in nine_shader_variant_get()
141 *const_ranges = list->const_ranges; in nine_shader_variant_get()
142 *const_used_size = list->const_used_size; in nine_shader_variant_get()
143 return list->cso; in nine_shader_variant_get()
149 nine_shader_variant_add(struct nine_shader_variant *list, in nine_shader_variant_add() argument
154 while (list->next) { in nine_shader_variant_add()
155 assert(list->key != key); in nine_shader_variant_add()
[all …]
/external/llvm-project/clang/test/Analysis/
Dkmalloc-linux.c20 struct test **list, *t; in test_zeroed() local
23 list = kmalloc(sizeof(*list) * 10, __GFP_ZERO); in test_zeroed()
24 if (list == NULL) in test_zeroed()
28 t = list[i]; in test_zeroed()
31 kfree(list); // no-warning in test_zeroed()
35 struct test **list, *t; in test_nonzero() local
38 list = kmalloc(sizeof(*list) * 10, 0); in test_nonzero()
39 if (list == NULL) in test_nonzero()
43 t = list[i]; // expected-warning{{undefined}} in test_nonzero()
46 kfree(list); in test_nonzero()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs50 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()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); 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/tensorflow/tensorflow/core/grappler/optimizers/
Dauto_mixed_precision_lists.h53 static void UpdateList(const string& list_name, gtl::FlatSet<string>* list) { in UpdateList() argument
67 list->insert(x); in UpdateList()
70 list->erase(x); in UpdateList()
75 static void AddTensorListOps(gtl::FlatSet<string>* list) { in AddTensorListOps() argument
90 list->insert(op); in AddTensorListOps()
111 auto list = gtl::FlatSet<string>{ in AllowList()
134 list.insert("BatchMatMul"); in AllowList()
135 list.insert("BatchMatMulV2"); in AllowList()
139 list.insert("Conv3D"); in AllowList()
140 list.insert("Conv3DBackpropFilter"); in AllowList()
[all …]
/external/libxkbcommon/src/
Dutil-list.c35 list_init(struct list *list) in list_init() argument
37 list->prev = list; in list_init()
38 list->next = list; in list_init()
42 list_insert(struct list *list, struct list *elm) in list_insert() argument
44 assert((list->next != NULL && list->prev != NULL) || in list_insert()
49 elm->prev = list; in list_insert()
50 elm->next = list->next; in list_insert()
51 list->next = elm; in list_insert()
56 list_append(struct list *list, struct list *elm) in list_append() argument
58 assert((list->next != NULL && list->prev != NULL) || in list_append()
[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/openscreen/osp/impl/
Dreceiver_list_unittest.cc14 ReceiverList list; in TEST() local
16 EXPECT_TRUE(list.receivers().empty()); in TEST()
20 list.OnReceiverAdded(receiver1); in TEST()
22 ASSERT_EQ(1u, list.receivers().size()); in TEST()
23 EXPECT_EQ(receiver1, list.receivers()[0]); in TEST()
27 list.OnReceiverAdded(receiver2); in TEST()
29 ASSERT_EQ(2u, list.receivers().size()); in TEST()
30 EXPECT_EQ(receiver1, list.receivers()[0]); in TEST()
31 EXPECT_EQ(receiver2, list.receivers()[1]); in TEST()
33 list.OnReceiverAdded(receiver1); in TEST()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/
DVisitorListTest.java42 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()
61 vList.addAll(2, list); in visitorAddAllAtIndex()
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dproxy_mapper_registry.cc32 grpc_proxy_mapper** list; member
36 static void grpc_proxy_mapper_list_register(grpc_proxy_mapper_list* list, in grpc_proxy_mapper_list_register() argument
39 list->list = static_cast<grpc_proxy_mapper**>(gpr_realloc( in grpc_proxy_mapper_list_register()
40 list->list, (list->num_mappers + 1) * sizeof(grpc_proxy_mapper*))); in grpc_proxy_mapper_list_register()
42 memmove(list->list + 1, list->list, in grpc_proxy_mapper_list_register()
43 sizeof(grpc_proxy_mapper*) * list->num_mappers); in grpc_proxy_mapper_list_register()
44 list->list[0] = mapper; in grpc_proxy_mapper_list_register()
46 list->list[list->num_mappers] = mapper; in grpc_proxy_mapper_list_register()
48 ++list->num_mappers; in grpc_proxy_mapper_list_register()
51 static bool grpc_proxy_mapper_list_map_name(grpc_proxy_mapper_list* list, in grpc_proxy_mapper_list_map_name() argument
[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()
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()
70 l = kmod_list_prev(list, list); in test_list_prev()
[all …]
/external/kmod/libkmod/
Dlibkmod-list.c38 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()
71 node->prev = list; in list_node_insert_after()
72 node->next = list->next; in list_node_insert_after()
[all …]

12345678910>>...399