Home
last modified time | relevance | path

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

12345678910>>...350

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDoubleArrayListTest.java52 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()
77 list.addAll(asList(1D, 2D, 3D, 4D)); in testModificationWithIteration()
78 Iterator<Double> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DLongArrayListTest.java52 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()
77 list.addAll(asList(1L, 2L, 3L, 4L)); in testModificationWithIteration()
78 Iterator<Long> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DIntArrayListTest.java52 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()
77 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration()
78 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DFloatArrayListTest.java52 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()
77 list.addAll(asList(1F, 2F, 3F, 4F)); in testModificationWithIteration()
78 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, false, true)); in testModificationWithIteration()
78 Iterator<Boolean> iterator = list.iterator(); in testModificationWithIteration()
[all …]
DProtobufArrayListTest.java51 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()
81 iterator = list.iterator(); in testModificationWithIteration()
82 list.set(0, 1); in testModificationWithIteration()
90 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/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/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/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.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/mesa3d/src/gallium/state_trackers/nine/
Dnine_shader.h130 nine_shader_variant_get(struct nine_shader_variant *list, uint64_t key) in nine_shader_variant_get() argument
132 while (list->key != key && list->next) in nine_shader_variant_get()
133 list = list->next; in nine_shader_variant_get()
134 if (list->key == key) in nine_shader_variant_get()
135 return list->cso; in nine_shader_variant_get()
140 nine_shader_variant_add(struct nine_shader_variant *list, in nine_shader_variant_add() argument
143 while (list->next) { in nine_shader_variant_add()
144 assert(list->key != key); in nine_shader_variant_add()
145 list = list->next; in nine_shader_variant_add()
147 list->next = MALLOC_STRUCT(nine_shader_variant); in nine_shader_variant_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/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DVisitorListTest.java43 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()
62 vList.addAll(2, list); 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()
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 …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DListsTest.java106 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
128 assertEquals(Collections.emptyList(), list); in testNewArrayListWithExpectedSize() local
143 ArrayList<Integer> list = Lists.newArrayList(0, 1, 1); in testNewArrayListVarArgs() local
144 assertEquals(SOME_COLLECTION, list); in testNewArrayListVarArgs()
157 ArrayList<Integer> list = Lists.newArrayList(SOME_COLLECTION); in testNewArrayListFromCollection() local
158 assertEquals(SOME_COLLECTION, list); in testNewArrayListFromCollection()
[all …]
/external/wayland/tests/
Dlist-test.c34 struct wl_list list; in TEST() local
36 wl_list_init(&list); in TEST()
37 assert(list.next == &list); in TEST()
38 assert(list.prev == &list); in TEST()
39 assert(wl_list_empty(&list)); in TEST()
49 struct wl_list list; in TEST() local
52 wl_list_init(&list); in TEST()
53 wl_list_insert(&list, &e.link); in TEST()
54 assert(list.next == &e.link); in TEST()
55 assert(list.prev == &e.link); in TEST()
[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/e2fsprogs/lib/support/
Dprofile_helpers.c45 char **list; member
53 static errcode_t init_list(struct profile_string_list *list) in init_list() argument
55 list->num = 0; in init_list()
56 list->max = 10; in init_list()
57 list->list = malloc(list->max * sizeof(char *)); in init_list()
58 if (list->list == 0) in init_list()
60 list->list[0] = 0; in init_list()
68 static void end_list(struct profile_string_list *list, char ***ret_list) in end_list() argument
72 if (list == 0) in end_list()
76 *ret_list = list->list; in end_list()
[all …]
/external/freetype/src/cache/
Dftcmru.c169 FTC_MruList_Init( FTC_MruList list, in FTC_MruList_Init() argument
175 list->num_nodes = 0; in FTC_MruList_Init()
176 list->max_nodes = max_nodes; in FTC_MruList_Init()
177 list->nodes = NULL; in FTC_MruList_Init()
178 list->clazz = *clazz; in FTC_MruList_Init()
179 list->data = data; in FTC_MruList_Init()
180 list->memory = memory; in FTC_MruList_Init()
185 FTC_MruList_Reset( FTC_MruList list ) in FTC_MruList_Reset() argument
187 while ( list->nodes ) in FTC_MruList_Reset()
188 FTC_MruList_Remove( list, list->nodes ); in FTC_MruList_Reset()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Feature/
Drecursivetype.ll6 ; 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 …]
/external/llvm/test/Feature/
Drecursivetype.ll6 ; 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 …]
/external/skia/src/core/
DSkTMultiMap.h45 ValueList* list = fHash.find(key); in insert() local
46 if (list) { in insert()
49 ValueList* newEntry = new ValueList(list->fValue); in insert()
50 newEntry->fNext = list->fNext; in insert()
53 list->fNext = newEntry; in insert()
54 list->fValue = value; in insert()
63 ValueList* list = fHash.find(key); in remove() local
69 SkASSERT(list); in remove()
71 while (list->fValue != value) { in remove()
72 prev = list; in remove()
[all …]
/external/skqp/src/core/
DSkTMultiMap.h45 ValueList* list = fHash.find(key); in insert() local
46 if (list) { in insert()
49 ValueList* newEntry = new ValueList(list->fValue); in insert()
50 newEntry->fNext = list->fNext; in insert()
53 list->fNext = newEntry; in insert()
54 list->fValue = value; in insert()
63 ValueList* list = fHash.find(key); in remove() local
69 SkASSERT(list); in remove()
71 while (list->fValue != value) { in remove()
72 prev = list; in remove()
[all …]

12345678910>>...350