Searched refs:list (Results 1 - 25 of 35) sorted by path

12

/system/bluetooth/data/
H A Dauto_pairing.conf6 // The following companies are included in the list below:
/system/core/adb/
H A DAndroid.mk36 EXTRA_SRCS := get_my_path_windows.c ../libcutils/list.c
H A Dadb_auth_client.c20 #include <cutils/list.h>
49 static void read_keys(const char *file, struct listnode *list) argument
88 list_add_tail(list, &key->node);
94 static void free_keys(struct listnode *list) argument
98 while (!list_empty(list)) {
99 item = list_head(list);
H A Dadb_auth_host.c40 #include <cutils/list.h>
226 static int read_key(const char *file, struct listnode *list) argument
256 list_add_tail(list, &key->node);
296 static int get_user_key(struct listnode *list) argument
317 return read_key(path, list);
320 static void get_vendor_keys(struct listnode *list) argument
339 else if (!read_key(path, list))
H A Dfdevent.c476 fdevent *list = &list_pending; local
478 node->next = list;
479 node->prev = list->prev;
481 list->prev = node;
494 fdevent *list = &list_pending; local
495 fdevent *node = list->next;
497 if(node == list) return 0;
499 list->next = node->next;
500 list->next->prev = list;
[all...]
H A Dsockets.c53 /* the the list of currently closing local sockets.
80 insert_local_socket(asocket* s, asocket* list) argument
82 s->next = list;
117 ** the list out from under you, your options are limited.
198 // be sure to hold the socket list lock when calling this
253 /* otherwise, put on the closing list
359 ** socket will be placed on the closing socket list.
H A Dsysdeps_win32.c1463 * about the whole list of handles that were signaled. */
1798 fdevent *list = &list_pending; local
1800 node->next = list;
1801 node->prev = list->prev;
1803 list->prev = node;
1816 fdevent *list = &list_pending; local
1817 fdevent *node = list->next;
1819 if(node == list) return 0;
1821 list->next = node->next;
1822 list
[all...]
/system/core/charger/
H A Dcharger.c40 #include <cutils/list.h>
79 struct listnode list; member in struct:power_supply
318 supply = node_to_item(node, struct power_supply, list);
340 list_add_tail(&charger->supplies, &supply->list);
350 list_remove(&supply->list);
467 /* allow battery to be managed in the supply list but make it not
/system/core/include/cutils/
H A Dlist.h41 #define list_for_each(node, list) \
42 for (node = (list)->next; node != (list); node = node->next)
44 #define list_for_each_reverse(node, list) \
45 for (node = (list)->prev; node != (list); node = node->prev)
47 void list_init(struct listnode *list);
48 void list_add_tail(struct listnode *list, struct listnode *item);
51 #define list_empty(list) ((list)
[all...]
/system/core/init/
H A Ddevices.c44 #include <cutils/list.h>
91 struct listnode list; member in struct:platform_node
134 /* upaths omit the "/sys" that paths in this list
164 /* search the perms list in reverse so that ueventd.$hardware can
232 bus = node_to_item(node, struct platform_node, list);
245 list_add_tail(&platform_names, &bus->list);
260 bus = node_to_item(node, struct platform_node, list);
276 bus = node_to_item(node, struct platform_node, list);
H A Dinit.c44 #include <cutils/list.h>
H A Dinit.h20 #include <cutils/list.h>
28 /* list of commands in an action */
37 /* node in list of all actions */
41 /* node in list of actions for a trigger */
81 /* list of all services */
H A Dinit_parser.c34 #include <cutils/list.h>
44 struct listnode list; member in struct:import
312 list_add_tail(import_list, &import->list);
313 INFO("found import '%s', adding to import list", import->filename);
389 struct import *import = node_to_item(node, struct import, list);
H A Dsignal_handler.c27 #include <cutils/list.h>
/system/core/libcutils/
H A DAndroid.mk42 list.c \
H A Ddir_hash.c117 struct list { struct
119 struct list *next;
123 struct list *const *ra = a;
124 struct list *const *rb = b;
130 struct list **out) {
131 struct list *list = NULL; local
132 struct list *f;
150 struct list *node = malloc(sizeof(struct list));
269 struct list **list; local
[all...]
H A Dlist.c17 #include <cutils/list.h>
/system/core/sh/
H A Deval.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
358 arglist.lastp = &arglist.list;
367 for (sp = arglist.list ; sp ; sp = sp->next) {
399 arglist.lastp = &arglist.list;
403 if (casematch(patp, arglist.list->text)) {
448 * Compute the names of the files in a redirection list.
458 fn.lastp = &fn.list;
466 redir->nfile.expfname = fn.list->text;
472 fixredir(redir, fn.list
[all...]
H A Dexpand.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
81 struct ifsregion *next; /* next region in list */
89 struct nodelist *argbackq; /* list of back quote expressions */
90 struct ifsregion ifsfirst; /* first struct in list of ifs regions */
91 struct ifsregion *ifslastp; /* last struct in list */
92 struct arglist exparg; /* holds expanded arg list */
128 * placing the resulting list of arguments in arglist. If EXP_FULL is true,
149 exparg.lastp = &exparg.list;
156 exparg.lastp = &exparg.list;
1285 msort(struct strlist *list, int len) argument
[all...]
H A Dexpand.h14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
44 struct strlist *list; member in struct:arglist
H A Dparser.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
80 struct heredoc *next; /* next here document in list */
89 struct heredoc *heredoclist; /* list of here documents to read */
104 STATIC union node *list(int);
145 return list(1);
150 list(int nlflag) function
319 n1->nif.test = list(0);
322 n1->nif.ifpart = list(0);
328 n2->nif.test = list(
[all...]
H A Dvar.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
316 * Process a linked list of variable assignments.
320 listsetvar(struct strlist *list, int flags) argument
325 for (lp = list ; lp ; lp = lp->next) {
332 listmklocal(struct strlist *list, int flags) argument
336 for (lp = list ; lp ; lp = lp->next)
385 * Generate a list of exported variables. This routine is used to construct
458 * Command to list all variables which are set. Currently this command
513 static struct var **list; /* stati local
[all...]
/system/core/toolbox/
H A Ddynarray.c64 void strlist_init( strlist_t *list )
66 dynarray_init(list);
69 void strlist_append_b( strlist_t *list, const void* str, size_t slen ) argument
74 dynarray_append(list, copy);
77 void strlist_append_dup( strlist_t *list, const char *str) argument
79 strlist_append_b(list, str, strlen(str));
82 void strlist_done( strlist_t *list )
84 STRLIST_FOREACH(list, string, free(string));
85 dynarray_done(list);
95 void strlist_sort( strlist_t *list )
[all...]
H A Ddynarray.h59 * to/from the list during iteration.
64 void strlist_init( strlist_t *list );
66 /* note: strlist_done will free all the strings owned by the list */
67 void strlist_done( strlist_t *list );
72 void strlist_append_b( strlist_t *list, const void* str, size_t slen );
75 void strlist_append_dup( strlist_t *list, const char *str);
77 /* sort the strings in a given list (using strcmp) */
78 void strlist_sort( strlist_t *list );
H A Dgetprop.c11 strlist_t* list = opaque; local
14 strlist_append_dup(list, temp);
19 strlist_t list[1] = { STRLIST_INITIALIZER }; local
21 /* Record properties in the string list */
22 (void)property_list(record_prop, list);
25 strlist_sort(list);
28 STRLIST_FOREACH(list, str, printf("%s\n", str));
31 strlist_done(list);

Completed in 113 milliseconds

12