Home
last modified time | relevance | path

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

12345678910>>...137

/external/bluetooth/glib/glib/
Dglist.c42 #define _g_list_free1(list) g_slice_free (GList, list) argument
63 g_list_free (GList *list) in g_list_free() argument
65 g_slice_free_chain (GList, list, next); in g_list_free()
76 g_list_free_1 (GList *list) in g_list_free_1() argument
78 _g_list_free1 (list); in g_list_free_1()
116 g_list_append (GList *list, in g_list_append() argument
126 if (list) in g_list_append()
128 last = g_list_last (list); in g_list_append()
133 return list; in g_list_append()
164 g_list_prepend (GList *list, in g_list_prepend() argument
[all …]
Dgslist.c58 g_slist_free (GSList *list) in g_slist_free() argument
60 g_slice_free_chain (GSList, list, next); in g_slist_free()
71 g_slist_free_1 (GSList *list) in g_slist_free_1() argument
73 _g_slist_free1 (list); in g_slist_free_1()
111 g_slist_append (GSList *list, in g_slist_append() argument
121 if (list) in g_slist_append()
123 last = g_slist_last (list); in g_slist_append()
127 return list; in g_slist_append()
155 g_slist_prepend (GSList *list, in g_slist_prepend() argument
162 new_list->next = list; in g_slist_prepend()
[all …]
Dglist.h50 void g_list_free (GList *list);
51 void g_list_free_1 (GList *list);
53 GList* g_list_append (GList *list,
55 GList* g_list_prepend (GList *list,
57 GList* g_list_insert (GList *list,
60 GList* g_list_insert_sorted (GList *list,
63 GList* g_list_insert_sorted_with_data (GList *list,
67 GList* g_list_insert_before (GList *list,
72 GList* g_list_remove (GList *list,
74 GList* g_list_remove_all (GList *list,
[all …]
Dgdataset.c103 register GData *list; in g_datalist_clear_i() local
107 list = G_DATALIST_GET_POINTER (datalist); in g_datalist_clear_i()
110 while (list) in g_datalist_clear_i()
114 prev = list; in g_datalist_clear_i()
115 list = prev->next; in g_datalist_clear_i()
206 register GData *list; in g_data_set_internal() local
208 list = G_DATALIST_GET_POINTER (datalist); in g_data_set_internal()
214 while (list) in g_data_set_internal()
216 if (list->id == key_id) in g_data_set_internal()
221 prev->next = list->next; in g_data_set_internal()
[all …]
/external/chromium/base/
Dlinked_list_unittest.cc37 void ExpectListContentsForDirection(const LinkedList<Node>& list, in ExpectListContentsForDirection() argument
40 for (const LinkNode<Node>* node = (forward ? list.head() : list.tail()); in ExpectListContentsForDirection()
41 node != list.end(); in ExpectListContentsForDirection()
51 void ExpectListContents(const LinkedList<Node>& list, in ExpectListContents() argument
56 ExpectListContentsForDirection(list, num_nodes, node_ids, true); in ExpectListContents()
60 ExpectListContentsForDirection(list, num_nodes, node_ids, false); in ExpectListContents()
65 LinkedList<Node> list; in TEST() local
66 EXPECT_EQ(list.end(), list.head()); in TEST()
67 EXPECT_EQ(list.end(), list.tail()); in TEST()
68 ExpectListContents(list, 0, NULL); in TEST()
[all …]
/external/v8/test/cctest/
Dtest-list.cc58 List<int, ZeroingAllocationPolicy> list(4); in TEST() local
59 list.Add(1); in TEST()
60 list.Add(2); in TEST()
61 list.Add(3); in TEST()
62 list.Add(4); in TEST()
65 list.Add(list[0]); in TEST()
66 CHECK_EQ(1, list[4]); in TEST()
71 List<int, ZeroingAllocationPolicy> list(4); in TEST() local
72 list.Add(0); in TEST()
73 list.Add(1); in TEST()
[all …]
/external/dbus/bus/
Dexpirelist.c57 BusExpireList *list; in bus_expire_list_new() local
59 list = dbus_new0 (BusExpireList, 1); in bus_expire_list_new()
60 if (list == NULL) in bus_expire_list_new()
63 list->expire_func = expire_func; in bus_expire_list_new()
64 list->data = data; in bus_expire_list_new()
65 list->loop = loop; in bus_expire_list_new()
66 list->expire_after = expire_after; in bus_expire_list_new()
68 list->timeout = _dbus_timeout_new (100, /* irrelevant */ in bus_expire_list_new()
70 list, NULL); in bus_expire_list_new()
71 if (list->timeout == NULL) in bus_expire_list_new()
[all …]
/external/bluetooth/glib/gio/xdgmime/
Dxdgmimeicon.c64 XdgIconList *list; in _xdg_mime_icon_list_new() local
66 list = malloc (sizeof (XdgIconList)); in _xdg_mime_icon_list_new()
68 list->icons = NULL; in _xdg_mime_icon_list_new()
69 list->n_icons = 0; in _xdg_mime_icon_list_new()
71 return list; in _xdg_mime_icon_list_new()
75 _xdg_mime_icon_list_free (XdgIconList *list) in _xdg_mime_icon_list_free() argument
79 if (list->icons) in _xdg_mime_icon_list_free()
81 for (i = 0; i < list->n_icons; i++) in _xdg_mime_icon_list_free()
83 free (list->icons[i].mime_type); in _xdg_mime_icon_list_free()
84 free (list->icons[i].icon_name); in _xdg_mime_icon_list_free()
[all …]
Dxdgmimealias.c65 XdgAliasList *list; in _xdg_mime_alias_list_new() local
67 list = malloc (sizeof (XdgAliasList)); in _xdg_mime_alias_list_new()
69 list->aliases = NULL; in _xdg_mime_alias_list_new()
70 list->n_aliases = 0; in _xdg_mime_alias_list_new()
72 return list; in _xdg_mime_alias_list_new()
76 _xdg_mime_alias_list_free (XdgAliasList *list) in _xdg_mime_alias_list_free() argument
80 if (list->aliases) in _xdg_mime_alias_list_free()
82 for (i = 0; i < list->n_aliases; i++) in _xdg_mime_alias_list_free()
84 free (list->aliases[i].alias); in _xdg_mime_alias_list_free()
85 free (list->aliases[i].mime_type); in _xdg_mime_alias_list_free()
[all …]
Dxdgmimeparent.c66 XdgParentList *list; in _xdg_mime_parent_list_new() local
68 list = malloc (sizeof (XdgParentList)); in _xdg_mime_parent_list_new()
70 list->parents = NULL; in _xdg_mime_parent_list_new()
71 list->n_mimes = 0; in _xdg_mime_parent_list_new()
73 return list; in _xdg_mime_parent_list_new()
77 _xdg_mime_parent_list_free (XdgParentList *list) in _xdg_mime_parent_list_free() argument
82 if (list->parents) in _xdg_mime_parent_list_free()
84 for (i = 0; i < list->n_mimes; i++) in _xdg_mime_parent_list_free()
86 for (p = list->parents[i].parents; *p; p++) in _xdg_mime_parent_list_free()
89 free (list->parents[i].parents); in _xdg_mime_parent_list_free()
[all …]
/external/srec/seti/sltsEngine/src/
Dlinklist_impl.c123 LListResult Insert(LList *list, void *data) in Insert() argument
131 if(list->head == NULL){ in Insert()
133 list->head = newnode; in Insert()
134 (list->head)->next = NULL; in Insert()
135 (list->head)->prev = NULL; in Insert()
138 list->curr = list->head; in Insert()
139 list->tail = list->head; in Insert()
144 if(list->curr == NULL){ in Insert()
145 list->curr = list->tail; in Insert()
149 if(list->curr == list->tail){ in Insert()
[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/mesa3d/src/mesa/main/
Dsimple_list.h62 #define insert_at_head(list, elem) \ argument
64 (elem)->prev = list; \
65 (elem)->next = (list)->next; \
66 (list)->next->prev = elem; \
67 (list)->next = elem; \
76 #define insert_at_tail(list, elem) \ argument
78 (elem)->next = list; \
79 (elem)->prev = (list)->prev; \
80 (list)->prev->next = elem; \
81 (list)->prev = elem; \
[all …]
/external/wpa_supplicant_8/src/utils/
Dlist.h26 static inline void dl_list_init(struct dl_list *list) in dl_list_init() argument
28 list->next = list; in dl_list_init()
29 list->prev = list; in dl_list_init()
32 static inline void dl_list_add(struct dl_list *list, struct dl_list *item) in dl_list_add() argument
34 item->next = list->next; in dl_list_add()
35 item->prev = list; in dl_list_add()
36 list->next->prev = item; in dl_list_add()
37 list->next = item; in dl_list_add()
40 static inline void dl_list_add_tail(struct dl_list *list, struct dl_list *item) in dl_list_add_tail() argument
42 dl_list_add(list->prev, item); in dl_list_add_tail()
[all …]
/external/dbus/dbus/
Ddbus-list.h40 dbus_bool_t _dbus_list_append (DBusList **list,
42 dbus_bool_t _dbus_list_prepend (DBusList **list,
44 dbus_bool_t _dbus_list_insert_before (DBusList **list,
47 dbus_bool_t _dbus_list_insert_after (DBusList **list,
50 void _dbus_list_insert_before_link (DBusList **list,
53 void _dbus_list_insert_after_link (DBusList **list,
56 dbus_bool_t _dbus_list_remove (DBusList **list,
58 dbus_bool_t _dbus_list_remove_last (DBusList **list,
60 void _dbus_list_remove_link (DBusList **list,
62 DBusList* _dbus_list_find_last (DBusList **list,
[all …]
Ddbus-list.c39 _DBUS_DEFINE_GLOBAL_LOCK (list);
59 _DBUS_LOCK (list); in alloc_link()
67 _DBUS_UNLOCK (list); in alloc_link()
76 _DBUS_UNLOCK (list); in alloc_link()
88 _DBUS_UNLOCK (list); in alloc_link()
96 _DBUS_LOCK (list); in free_link()
103 _DBUS_UNLOCK (list); in free_link()
107 link_before (DBusList **list, in link_before() argument
111 if (*list == NULL) in link_before()
115 *list = link; in link_before()
[all …]
/external/icu4c/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/bluetooth/glib/tests/
Dlist-test.c36 GList *list = NULL; in test_list_sort() local
42 list = g_list_append (list, GINT_TO_POINTER (array[i])); in test_list_sort()
45 list = g_list_sort (list, sort); in test_list_sort()
49 p1 = g_list_nth_data (list, i); in test_list_sort()
50 p2 = g_list_nth_data (list, i+1); in test_list_sort()
56 g_list_free (list); in test_list_sort()
62 GList *list = NULL; in test_list_sort_with_data() local
68 list = g_list_append (list, GINT_TO_POINTER (array[i])); in test_list_sort_with_data()
71 list = g_list_sort_with_data (list, (GCompareDataFunc)sort, NULL); in test_list_sort_with_data()
75 p1 = g_list_nth_data (list, i); in test_list_sort_with_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/chromium/chrome/browser/metrics/
Dmetrics_service_unittest.cc38 ListValue list; in TEST() local
41 MetricsService::StoreUnsentLogsHelper(local_list, kMaxLocalListSize, &list); in TEST()
42 EXPECT_EQ(0U, list.GetSize()); in TEST()
46 MetricsService::RecallUnsentLogsHelper(list, &local_list)); in TEST()
52 ListValue list; in TEST() local
58 MetricsService::StoreUnsentLogsHelper(local_list, kMaxLocalListSize, &list); in TEST()
62 EXPECT_EQ(3U, list.GetSize()); in TEST()
65 ListValue::const_iterator it = list.begin(); in TEST()
82 EXPECT_TRUE(it == list.end()); // Reached end of list. in TEST()
86 MetricsService::RecallUnsentLogsHelper(list, &local_list)); in TEST()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DCookieStoreTest.java66 List<HttpCookie> list = cookieStore.get(uri); in test_add_LURI_LHttpCookie() local
67 assertEquals(1, list.size()); in test_add_LURI_LHttpCookie()
68 assertTrue(list.contains(cookie)); in test_add_LURI_LHttpCookie()
72 list = cookieStore.get(uri); in test_add_LURI_LHttpCookie()
73 assertEquals(1, list.size()); in test_add_LURI_LHttpCookie()
74 assertEquals(" TESTVALUE1 ", list.get(0).getValue()); in test_add_LURI_LHttpCookie()
75 assertTrue(list.contains(cookie2)); in test_add_LURI_LHttpCookie()
82 list = cookieStore.get(uri); in test_add_LURI_LHttpCookie()
83 assertEquals(2, list.size()); in test_add_LURI_LHttpCookie()
84 assertNull(list.get(0).getDomain()); in test_add_LURI_LHttpCookie()
[all …]
DHttpCookieTest.java588 List<HttpCookie> list = HttpCookie in test_Parse_locale() local
590 HttpCookie cookie = list.get(0); in test_Parse_locale()
595 list = HttpCookie in test_Parse_locale()
597 cookie = list.get(0); in test_Parse_locale()
602 list = HttpCookie in test_Parse_locale()
604 cookie = list.get(0); in test_Parse_locale()
610 list = HttpCookie in test_Parse_locale()
612 cookie = list.get(0); in test_Parse_locale()
618 list = HttpCookie.parse("Set-Cookie2:name=test;max-age=1000"); in test_Parse_locale()
619 cookie = list.get(0); in test_Parse_locale()
[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/llvm/test/FrontendC/
D2002-07-14-MiscListTests.c8 struct list;
10 struct list *PassThroughList(struct list *L) { in PassThroughList()
17 typedef struct list { struct
19 struct list *Next; argument
20 } list; typedef
22 list *Data;
28 Data = (list*)malloc(12); // This is not a proper list allocation in foo()
31 extern list ListNode1;
32 list ListNode3 = { 4, 0 };
33 list ListNode2 = { 3, &ListNode3 };
[all …]
/external/javassist/src/main/javassist/compiler/ast/
DASTList.java77 ASTList list = this; in toString() local
78 while (list != null) { in toString()
80 ASTree a = list.left; in toString()
82 list = list.right; in toString()
96 public static int length(ASTList list) { in length() argument
97 if (list == null) in length()
101 while (list != null) { in length()
102 list = list.right; in length()
116 ASTList list = this; in sublist() local
118 list = list.right; in sublist()
[all …]

12345678910>>...137