/system/bt/osi/src/ |
D | list.c | 20 static list_node_t *list_free_node_(list_t *list, list_node_t *node); 55 for (const list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node)) { in list_contains() local 56 if (list_node(node) == data) in list_contains() 87 list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after() local 88 if (!node) in list_insert_after() 91 node->next = prev_node->next; in list_insert_after() 92 node->data = data; in list_insert_after() 93 prev_node->next = node; in list_insert_after() 95 list->tail = node; in list_insert_after() 104 list_node_t *node = (list_node_t *)list->allocator->alloc(sizeof(list_node_t)); in list_prepend() local [all …]
|
D | config.c | 190 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in config_set_string() local 191 entry_t *entry = list_node(node); in config_set_string() 237 const config_section_node_t *config_section_next(const config_section_node_t *node) { in config_section_next() argument 238 assert(node != NULL); in config_section_next() 239 return (const config_section_node_t *)list_next((const list_node_t *)node); in config_section_next() 242 const char *config_section_name(const config_section_node_t *node) { in config_section_name() argument 243 assert(node != NULL); in config_section_name() 244 const list_node_t *lnode = (const list_node_t *)node; in config_section_name() 269 …for (const list_node_t *node = list_begin(config->sections); node != list_end(config->sections); n… in config_save() local 270 const section_t *section = (const section_t *)list_node(node); in config_save() [all …]
|
D | fixed_queue.c | 78 …for (const list_node_t *node = list_begin(queue->list); node != list_end(queue->list); node = list… in fixed_queue_free() local 79 free_cb(list_node(node)); in fixed_queue_free()
|
D | alarm.c | 277 for (list_node_t *node = list_begin(alarms); node != list_end(alarms); node = list_next(node)) { in schedule_next_instance() local 278 list_node_t *next = list_next(node); in schedule_next_instance() 280 list_insert_after(alarms, node, alarm); in schedule_next_instance()
|
/system/core/libcutils/ |
D | config_utils.c | 28 cnode *node; in config_node() local 30 node = calloc(sizeof(cnode), 1); in config_node() 31 if(node) { in config_node() 32 node->name = name ? name : ""; in config_node() 33 node->value = value ? value : ""; in config_node() 36 return node; in config_node() 41 cnode *node, *match = NULL; in config_find() local 44 for(node = root->first_child; node; node = node->next) in config_find() 45 if(!strcmp(node->name, name)) in config_find() 46 match = node; in config_find() [all …]
|
/system/core/include/cutils/ |
D | list.h | 32 #define node_to_item(node, container, member) \ argument 33 (container *) (((char*) (node)) - offsetof(container, member)) 41 #define list_for_each(node, list) \ argument 42 for (node = (list)->next; node != (list); node = node->next) 44 #define list_for_each_reverse(node, list) \ argument 45 for (node = (list)->prev; node != (list); node = node->prev) 47 #define list_for_each_safe(node, n, list) \ argument 48 for (node = (list)->next, n = node->next; \ 49 node != (list); \ 50 node = n, n = node->next) [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 140 struct node { struct 156 struct node *next; /* per-dir sibling list */ argument 157 struct node *child; /* first contained file by this dir */ argument 158 struct node *parent; /* containing directory */ argument 200 struct node root; 261 static void acquire_node_locked(struct node* node) in acquire_node_locked() argument 263 node->refcount++; in acquire_node_locked() 264 TRACE("ACQUIRE %p (%s) rc=%d\n", node, node->name, node->refcount); in acquire_node_locked() 267 static void remove_node_from_parent_locked(struct node* node); 269 static void release_node_locked(struct node* node) in release_node_locked() argument [all …]
|
/system/bt/btif/src/ |
D | btif_profile_queue.c | 77 …for (const list_node_t *node = list_begin(connect_queue); node != list_end(connect_queue); node = … in queue_int_add() local 78 if (((connect_node_t *)list_node(node))->uuid == p_param->uuid) { in queue_int_add() 121 connect_node_t node; in btif_queue_connect() local 122 memset(&node, 0, sizeof(connect_node_t)); in btif_queue_connect() 123 memcpy(&node.bda, bda, sizeof(bt_bdaddr_t)); in btif_queue_connect() 124 node.uuid = uuid; in btif_queue_connect() 125 node.connect_cb = connect_cb; in btif_queue_connect() 128 (char *)&node, sizeof(connect_node_t), NULL); in btif_queue_connect()
|
D | btif_sock_sco.c | 204 …for (const list_node_t *node = list_begin(sco_sockets); node != list_end(sco_sockets); node = list… in sco_socket_find_locked() local 205 sco_socket_t *sco_socket = (sco_socket_t *)list_node(node); in sco_socket_find_locked()
|
/system/media/camera/docs/ |
D | metadata_helpers.py | 76 def find_unique_entries(node): argument 90 if not isinstance(node, metadata_model.Section) and \ 91 not isinstance(node, metadata_model.InnerNamespace): 97 search_path = isinstance(node, metadata_model.Section) and node.kinds \ 98 or [node] 106 def path_name(node): argument 123 path = node.find_parents(fltr) 126 path.append(node) 130 def has_descendants_with_enums(node): argument 141 return bool(node.find_first(lambda x: isinstance(x, metadata_model.Enum))) [all …]
|
/system/core/liblog/ |
D | log_read_kern.c | 51 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \ 52 logger != node_to_item(&(logger_list)->node, struct logger, node); \ 53 logger = node_to_item((logger)->node.next, struct logger, node)) 137 struct listnode node; member 150 struct listnode node; member 155 struct listnode node; member 173 list_head(&logger->log_list), struct log_list, node); in android_logger_free() 174 list_remove(&entry->node); in android_logger_free() 185 list_remove(&logger->node); in android_logger_free() 301 list_init(&logger_list->node); in android_logger_list_alloc() [all …]
|
D | log_read.c | 200 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \ 201 logger != node_to_item(&(logger_list)->node, struct logger, node); \ 202 logger = node_to_item((logger)->node.next, struct logger, node)) 247 struct listnode node; member 256 struct listnode node; member 269 list_remove(&logger->node); in android_logger_free() 539 list_init(&logger_list->node); in android_logger_list_alloc() 561 list_init(&logger_list->node); in android_logger_list_alloc_time() 596 list_add_tail(&logger_list->node, &logger->node); in android_logger_open() 889 while (!list_empty(&logger_list->node)) { in android_logger_list_free() [all …]
|
/system/core/init/ |
D | init_parser.cpp | 80 struct listnode* node; in dump_parser_state() local 81 list_for_each(node, &service_list) { in dump_parser_state() 82 service* svc = node_to_item(node, struct service, slist); in dump_parser_state() 95 list_for_each(node, &action_list) { in dump_parser_state() 96 action* act = node_to_item(node, struct action, alist); in dump_parser_state() 387 struct listnode *node; in parse_config() local 429 list_for_each(node, &import_list) { in parse_config() 430 struct import *import = node_to_item(node, struct import, list); in parse_config() 472 struct listnode *node; in service_find_by_name() local 474 list_for_each(node, &service_list) { in service_find_by_name() [all …]
|
D | devices.cpp | 102 struct perm_node *node = (perm_node*) calloc(1, sizeof(*node)); in add_dev_perms() local 103 if (!node) in add_dev_perms() 106 node->dp.name = strdup(name); in add_dev_perms() 107 if (!node->dp.name) in add_dev_perms() 111 node->dp.attr = strdup(attr); in add_dev_perms() 112 if (!node->dp.attr) in add_dev_perms() 116 node->dp.perm = perm; in add_dev_perms() 117 node->dp.uid = uid; in add_dev_perms() 118 node->dp.gid = gid; in add_dev_perms() 119 node->dp.prefix = prefix; in add_dev_perms() [all …]
|
D | init.cpp | 545 struct listnode *node; in get_first_command() local 546 node = list_head(&act->commands); in get_first_command() 547 if (!node || list_empty(&act->commands)) in get_first_command() 550 return node_to_item(node, struct command, clist); in get_first_command() 555 struct listnode *node; in get_next_command() local 556 node = cmd->clist.next; in get_next_command() 557 if (!node) in get_next_command() 559 if (node == &act->commands) in get_next_command() 562 return node_to_item(node, struct command, clist); in get_next_command() 572 struct listnode *node; in build_triggers_string() local [all …]
|
D | signal_handler.cpp | 136 struct listnode* node; in wait_for_one_process() local 137 list_for_each(node, &svc->onrestart.commands) { in wait_for_one_process() 138 command* cmd = node_to_item(node, struct command, clist); in wait_for_one_process()
|
D | ueventd_parser.cpp | 86 struct listnode *node; in ueventd_subsystem_find_by_name() local 89 list_for_each(node, &subsystem_list) { in ueventd_subsystem_find_by_name() 90 s = node_to_item(node, struct ueventd_subsystem, slist); in ueventd_subsystem_find_by_name()
|
/system/bt/osi/test/ |
D | list_test.cpp | 116 …for (const list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node), +… in TEST_F() local 117 EXPECT_EQ(list_node(node), &x[i]); in TEST_F() 130 …for (const list_node_t *node = list_begin(list); node != list_end(list); node = list_next(node), -… in TEST_F() local 131 EXPECT_EQ(list_node(node), &x[i]); in TEST_F()
|
/system/core/adb/ |
D | fdevent.cpp | 81 static void fdevent_plist_enqueue(fdevent *node); 82 static void fdevent_plist_remove(fdevent *node); 470 static void fdevent_plist_enqueue(fdevent *node) in fdevent_plist_enqueue() argument 474 node->next = list; in fdevent_plist_enqueue() 475 node->prev = list->prev; in fdevent_plist_enqueue() 476 node->prev->next = node; in fdevent_plist_enqueue() 477 list->prev = node; in fdevent_plist_enqueue() 480 static void fdevent_plist_remove(fdevent *node) in fdevent_plist_remove() argument 482 node->prev->next = node->next; in fdevent_plist_remove() 483 node->next->prev = node->prev; in fdevent_plist_remove() [all …]
|
D | sysdeps_win32.cpp | 1277 static void fdevent_plist_enqueue(fdevent *node); 1278 static void fdevent_plist_remove(fdevent *node); 1376 EventHook node = *pnode; in event_looper_find_p() local 1378 if ( node == NULL || node->fh == fh ) in event_looper_find_p() 1380 pnode = &node->next; in event_looper_find_p() 1381 node = *pnode; in event_looper_find_p() 1391 EventHook node; in event_looper_hook() local 1399 node = *pnode; in event_looper_hook() 1400 if ( node == NULL ) { in event_looper_hook() 1401 node = event_hook_alloc( f ); in event_looper_hook() [all …]
|
D | adb_auth_client.cpp | 36 struct listnode node; member 93 list_add_tail(list, &key->node); in read_keys() 106 free(node_to_item(item, struct adb_public_key, node)); in free_keys() 153 adb_public_key* key = node_to_item(item, struct adb_public_key, node); in adb_auth_verify()
|
D | adb_auth_host.cpp | 63 struct listnode node; member 294 list_add_tail(list, &key->node); in read_key() 371 int adb_auth_sign(void *node, const unsigned char* token, size_t token_size, in adb_auth_sign() argument 375 struct adb_private_key *key = node_to_item(node, struct adb_private_key, node); in adb_auth_sign()
|
/system/bt/test/suite/ |
D | main.c | 149 … config_section_node_t *node = config_section_begin(config); node != config_section_end(config); n… in main() local 150 const char *name = config_section_name(node); in main()
|
/system/bt/stack/l2cap/ |
D | l2cap_client.c | 167 …const list_node_t *node = list_begin(client->outbound_fragments); node != list_end(client->outboun… in l2cap_client_disconnect() local 168 GKI_freebuf(list_node(node)); in l2cap_client_disconnect() 428 …for (const list_node_t *node = list_begin(l2cap_clients); node != list_end(l2cap_clients); node = … in find() local 429 l2cap_client_t *client = (l2cap_client_t *)list_node(node); in find()
|
/system/bt/osi/include/ |
D | list.h | 98 list_node_t *list_next(const list_node_t *node); 102 void *list_node(const list_node_t *node);
|