Home
last modified time | relevance | path

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

12345678910>>...173

/external/v8/test/cctest/
Dtest-list.cc59 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()
67 CHECK_EQ(1, list[4]); in TEST()
73 List<int, ZeroingAllocationPolicy> list(4); in TEST() local
74 list.Add(0); in TEST()
75 list.Add(1); in TEST()
[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/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/test/fixtures/
Dformatting_element_list_test.js12 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/antlr/antlr-3.4/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/jetty/src/java/org/eclipse/jetty/util/
DLazyList.java77 public static Object add(Object list, Object item) in add() argument
79 if (list==null) in add()
91 if (list instanceof List) in add()
93 ((List<Object>)list).add(item); in add()
94 return list; in add()
98 l.add(list); in add()
111 public static Object add(Object list, int index, Object item) in add() argument
113 if (list==null) in add()
124 if (list instanceof List) in add()
126 ((List<Object>)list).add(index,item); in add()
[all …]
/external/linux-tools-perf/src/tools/perf/util/
Dparse-events.y25 #define ALLOC_LIST(list) \ argument
27 list = malloc(sizeof(*list)); \
28 ABORT_ON(!list); \
29 INIT_LIST_HEAD(list); \
32 static inc_group_count(struct list_head *list, in inc_group_count() argument
36 if (!list_is_last(list->next, list)) in inc_group_count()
98 parse_events_update_lists($1, &data->list);
104 struct list_head *list = $1; variable
107 parse_events_update_lists(group, list);
108 $$ = list;
[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/libdrm/
Dxf86drmSL.c134 SkipListPtr list; in drmSLCreate() local
137 list = SL_ALLOC(sizeof(*list)); in drmSLCreate()
138 if (!list) return NULL; in drmSLCreate()
139 list->magic = SL_LIST_MAGIC; in drmSLCreate()
140 list->level = 0; in drmSLCreate()
141 list->head = SLCreateEntry(SL_MAX_LEVEL, 0, NULL); in drmSLCreate()
142 list->count = 0; in drmSLCreate()
144 for (i = 0; i <= SL_MAX_LEVEL; i++) list->head->forward[i] = NULL; in drmSLCreate()
146 return list; in drmSLCreate()
151 SkipListPtr list = (SkipListPtr)l; in drmSLDestroy() local
[all …]
/external/selinux/libsepol/cil/src/
Dcil_list.c47 void cil_list_init(struct cil_list **list, enum cil_flavor flavor) in cil_list_init() argument
53 *list = new_list; in cil_list_init()
56 void cil_list_destroy(struct cil_list **list, unsigned destroy_data) in cil_list_destroy() argument
58 if (*list == NULL) { in cil_list_destroy()
62 struct cil_list_item *item = (*list)->head; in cil_list_destroy()
75 free(*list); in cil_list_destroy()
76 *list = NULL; in cil_list_destroy()
98 void cil_list_append(struct cil_list *list, enum cil_flavor flavor, void *data) in cil_list_append() argument
102 if (list == NULL) { in cil_list_append()
110 if (list->tail == NULL) { in cil_list_append()
[all …]
/external/e2fsprogs/e2fsck/
Dprofile_helpers.c43 char **list; member
51 static errcode_t init_list(struct profile_string_list *list) in init_list() argument
53 list->num = 0; in init_list()
54 list->max = 10; in init_list()
55 list->list = malloc(list->max * sizeof(char *)); in init_list()
56 if (list->list == 0) in init_list()
58 list->list[0] = 0; in init_list()
66 static void end_list(struct profile_string_list *list, char ***ret_list) in end_list() argument
70 if (list == 0) in end_list()
74 *ret_list = list->list; in end_list()
[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/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/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/mesa3d/src/gallium/auxiliary/util/
Du_simple_list.h59 #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; \
73 #define insert_at_tail(list, elem) \ argument
75 (elem)->next = list; \
76 (elem)->prev = (list)->prev; \
77 (list)->prev->next = elem; \
78 (list)->prev = elem; \
[all …]
Du_caps.c40 util_check_caps_out(struct pipe_screen *screen, const unsigned *list, int *out) in util_check_caps_out() argument
45 for (i = 0; list[i];) { in util_check_caps_out()
46 switch(list[i++]) { in util_check_caps_out()
48 if (!screen->get_param(screen, list[i++])) { in util_check_caps_out()
54 tmpi = screen->get_param(screen, list[i++]); in util_check_caps_out()
55 if (tmpi < (int)list[i++]) { in util_check_caps_out()
61 tmpf = screen->get_paramf(screen, list[i++]); in util_check_caps_out()
62 if (tmpf < (float)list[i++]) { in util_check_caps_out()
69 list[i++], in util_check_caps_out()
78 tmpi = screen->get_shader_param(screen, list[i] >> 24, list[i] & ((1 << 24) - 1)); in util_check_caps_out()
[all …]
/external/mesa3d/src/mesa/main/
Dsimple_list.h66 #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; \
80 #define insert_at_tail(list, elem) \ argument
82 (elem)->next = list; \
83 (elem)->prev = (list)->prev; \
84 (list)->prev->next = elem; \
85 (list)->prev = elem; \
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DLazyStringArrayListTest.java54 LazyStringArrayList list = new LazyStringArrayList(); in testJustStrings() local
55 list.add(STRING_A); in testJustStrings()
56 list.add(STRING_B); in testJustStrings()
57 list.add(STRING_C); in testJustStrings()
59 assertEquals(3, list.size()); in testJustStrings()
60 assertSame(STRING_A, list.get(0)); in testJustStrings()
61 assertSame(STRING_B, list.get(1)); in testJustStrings()
62 assertSame(STRING_C, list.get(2)); in testJustStrings()
64 list.set(1, STRING_C); in testJustStrings()
65 assertSame(STRING_C, list.get(1)); in testJustStrings()
[all …]
/external/wpa_supplicant_8/src/utils/
Dlist.h22 static inline void dl_list_init(struct dl_list *list) in dl_list_init() argument
24 list->next = list; in dl_list_init()
25 list->prev = list; in dl_list_init()
28 static inline void dl_list_add(struct dl_list *list, struct dl_list *item) in dl_list_add() argument
30 item->next = list->next; in dl_list_add()
31 item->prev = list; in dl_list_add()
32 list->next->prev = item; in dl_list_add()
33 list->next = item; in dl_list_add()
36 static inline void dl_list_add_tail(struct dl_list *list, struct dl_list *item) in dl_list_add_tail() argument
38 dl_list_add(list->prev, item); in dl_list_add_tail()
[all …]
/external/skia/src/core/
DSkTMultiMap.h39 ValueList* list = fHash.find(key); in insert() local
40 if (list) { in insert()
43 ValueList* newEntry = SkNEW_ARGS(ValueList, (list->fValue)); in insert()
44 newEntry->fNext = list->fNext; in insert()
47 list->fNext = newEntry; in insert()
48 list->fValue = value; in insert()
57 ValueList* list = fHash.find(key); in remove() local
60 SkASSERT(list); in remove()
62 while (list->fValue != value) { in remove()
63 prev = list; in remove()
[all …]
/external/icu/icu4c/source/common/
Dulist.c33 static void ulist_addFirstItem(UList *list, UListNode *newItem);
61 static void ulist_addFirstItem(UList *list, UListNode *newItem) { in ulist_addFirstItem() argument
64 list->head = newItem; in ulist_addFirstItem()
65 list->tail = newItem; in ulist_addFirstItem()
66 list->currentIndex = 0; in ulist_addFirstItem()
69 U_CAPI void U_EXPORT2 ulist_addItemEndList(UList *list, const void *data, UBool forceDelete, UError… in ulist_addItemEndList() argument
72 if (U_FAILURE(*status) || list == NULL || data == NULL) { in ulist_addItemEndList()
84 if (list->size == 0) { in ulist_addItemEndList()
85 ulist_addFirstItem(list, newItem); in ulist_addItemEndList()
88 newItem->previous = list->tail; in ulist_addItemEndList()
[all …]
/external/slf4j/log4j-over-slf4j/compatibility/src/main/java/test/
DLoggerTest.java57 event = appender.list.get(0); in testLogWithObjectMessages()
59 appender.list.clear(); in testLogWithObjectMessages()
62 event = appender.list.get(0); in testLogWithObjectMessages()
64 appender.list.clear(); in testLogWithObjectMessages()
68 event = appender.list.get(0); in testLogWithObjectMessages()
70 appender.list.clear(); in testLogWithObjectMessages()
85 assertEquals(1, appender.list.size()); in testPrintAPI()
86 appender.list.clear(); in testPrintAPI()
89 assertEquals(1, appender.list.size()); in testPrintAPI()
90 appender.list.clear(); in testPrintAPI()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DListsTest.java205 List<String> list = Lists.newArrayList(); in suite()
207 list.add(elements[i]); in suite()
208 return Lists.reverse(list); in suite()
227 List<String> list = Lists.newLinkedList(); in suite()
229 list.add(elements[i]); in suite()
230 return Lists.reverse(list); in suite()
275 ArrayList<Integer> list = Lists.newArrayList(); in testNewArrayListEmpty() local
276 assertEquals(Collections.emptyList(), list); in testNewArrayListEmpty() local
280 ArrayList<Integer> list = Lists.newArrayListWithCapacity(0); in testNewArrayListWithCapacity() local
281 assertEquals(Collections.emptyList(), list); in testNewArrayListWithCapacity() local
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DLazyStringArrayList.java71 private final List<Object> list; field in LazyStringArrayList
74 list = new ArrayList<Object>(); in LazyStringArrayList()
78 list = new ArrayList<Object>(from.size()); in LazyStringArrayList()
83 list = new ArrayList<Object>(from); in LazyStringArrayList()
88 Object o = list.get(index); in get()
95 list.set(index, s); in get()
102 list.set(index, s); in get()
110 return list.size(); in size()
115 Object o = list.set(index, s); in set()
121 list.add(index, element); in add()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_ListTest.java27 List<Integer> list; // must contain the Integers 0 to 99 in order field 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()
60 list.set(50, new Integer(2000)); in runTest()
61 assertTrue("ListTest - a) set failed--did not set", list.get(50) in runTest()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DListOrganizer.java26 private List<ElementType> list; field in ListOrganizer
28 public ListOrganizer(List<ElementType> list) { in ListOrganizer() argument
29 this.list = list; in ListOrganizer()
34 if(list.remove(element)) { in moveToTop()
35 list.add(list.size(), element); in moveToTop()
48 list.remove(objectToMove); in moveAbove()
49 int refIndex = list.indexOf(reference); in moveAbove()
50 list.add(refIndex + 1, objectToMove); in moveAbove()
61 list.remove(objectToMove); in moveBeneath()
62 int refIndex = list.indexOf(reference); in moveBeneath()
[all …]

12345678910>>...173