Home
last modified time | relevance | path

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

12345678910>>...13

/system/bt/osi/src/
Dlist.cc20 static list_node_t* list_free_node_(list_t* list, list_node_t* node);
27 list_t* list = (list_t*)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal() local
28 if (!list) return NULL; in list_new_internal()
30 list->free_cb = callback; in list_new_internal()
31 list->allocator = zeroed_allocator; in list_new_internal()
32 return list; in list_new_internal()
39 void list_free(list_t* list) { in list_free() argument
40 if (!list) return; in list_free()
42 list_clear(list); in list_free()
43 list->allocator->free(list); in list_free()
[all …]
Dfixed_queue.cc32 list_t* list; member
52 ret->list = list_new(NULL); in fixed_queue_new()
53 if (!ret->list) goto error; in fixed_queue_new()
74 for (const list_node_t* node = list_begin(queue->list); in fixed_queue_free()
75 node != list_end(queue->list); node = list_next(node)) in fixed_queue_free()
78 list_free(queue->list); in fixed_queue_free()
100 return list_is_empty(queue->list); in fixed_queue_is_empty()
107 return list_length(queue->list); in fixed_queue_length()
124 list_append(queue->list, data); in fixed_queue_enqueue()
138 ret = list_front(queue->list); in fixed_queue_dequeue()
[all …]
/system/bt/osi/test/
Dlist_test.cc13 list_t* list = list_new(NULL); in TEST_F() local
14 ASSERT_TRUE(list != NULL); in TEST_F()
15 list_free(list); in TEST_F()
24 list_t* list = list_new(NULL); in TEST_F() local
25 EXPECT_TRUE(list_is_empty(list)); in TEST_F()
26 list_free(list); in TEST_F()
30 list_t* list = list_new(NULL); in TEST_F() local
31 EXPECT_EQ(list_length(list), 0U); in TEST_F()
32 list_free(list); in TEST_F()
36 list_t* list = list_new(NULL); in TEST_F() local
[all …]
/system/bt/osi/include/
Dlist.h48 void list_free(list_t* list);
52 bool list_is_empty(const list_t* list);
56 bool list_contains(const list_t* list, const void* data);
59 size_t list_length(const list_t* list);
63 void* list_front(const list_t* list);
67 void* list_back(const list_t* list);
71 list_node_t* list_back_node(const list_t* list);
78 bool list_insert_after(list_t* list, list_node_t* prev_node, void* data);
86 bool list_prepend(list_t* list, void* data);
93 bool list_append(list_t* list, void* data);
[all …]
/system/core/libcutils/include/cutils/
Dlist.h41 #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); \
80 #define list_empty(list) ((list) == (list)->next) argument
81 #define list_head(list) ((list)->next) argument
82 #define list_tail(list) ((list)->prev) argument
/system/core/libcutils/include_vndk/cutils/
Dlist.h41 #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); \
80 #define list_empty(list) ((list) == (list)->next) argument
81 #define list_head(list) ((list)->next) argument
82 #define list_tail(list) ((list)->prev) argument
/system/tools/xsdc/src/com/android/xsdc/java/
DJavaSimpleType.java23 final private boolean list; field in JavaSimpleType
27 JavaSimpleType(String name, String nullableName, String rawParsingExpression, boolean list) { in JavaSimpleType() argument
31 this.list = list; in JavaSimpleType()
32 fullName = list ? String.format("java.util.List<%s>", nullableName) : name; in JavaSimpleType()
33 nullableFullName = list ? String.format("java.util.List<%s>", nullableName) : nullableName; in JavaSimpleType()
36 JavaSimpleType(String name, String rawParsingExpression, boolean list) { in JavaSimpleType() argument
37 this(name, name, rawParsingExpression, list); in JavaSimpleType()
41 return list; in isList()
45 if (list) throw new JavaCodeGeneratorException("list of list is not supported"); in newListType()
62 if (list) { in getParsingExpression()
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DUtilsTest.java51 assertEquals(list("ONE", "TWO", "THREE"), Utils.toUpperCase(list("one", "Two", "THREE"))); in toUpperCase()
52 assertEquals(list(), Utils.toUpperCase(list())); in toUpperCase()
57 assertTrue(Utils.allLowerCaseAscii(list("one", "a", "z"))); in allLowerCaseAscii()
58 assertFalse(Utils.allLowerCaseAscii(list("one", "a", "Z"))); in allLowerCaseAscii()
59 assertFalse(Utils.allLowerCaseAscii(list("one", "A", "z"))); in allLowerCaseAscii()
60 assertFalse(Utils.allLowerCaseAscii(list("onE", "a", "z"))); in allLowerCaseAscii()
117 assertTrue(Utils.allUnique(list())); in allUnique()
118 assertTrue(Utils.allUnique(list("One"))); in allUnique()
119 assertTrue(Utils.allUnique(list("One", "Two"))); in allUnique()
120 assertFalse(Utils.allUnique(list("One", "Two", "One"))); in allUnique()
[all …]
/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppSimpleType.java23 final private boolean list; field in CppSimpleType
25 CppSimpleType(String name, String rawParsingExpression, boolean list) { in CppSimpleType() argument
27 this.list = list; in CppSimpleType()
29 this.fullName = list ? String.format("std::vector<%s>", name) : name; in CppSimpleType()
33 return list; in isList()
37 if (list) throw new CppCodeGeneratorException("list of list is not supported"); in newListType()
53 if (list) { in getParsingExpression()
/system/extras/showslab/
Dshowslab.c160 static void free_slablist(struct slab_info *list) in free_slablist() argument
162 while (list) { in free_slablist()
163 struct slab_info *temp = list->next; in free_slablist()
164 free(list); in free_slablist()
165 list = temp; in free_slablist()
171 struct slab_info list; in merge_objs() local
172 struct slab_info *p = &list; in merge_objs()
187 return list.next; in merge_objs()
193 static struct slab_info *slabsort(struct slab_info *list) in slabsort() argument
197 if (!list || !list->next) in slabsort()
[all …]
/system/core/liblog/
Dconfig_read.cpp27 static void __android_log_add_transport(struct listnode* list, in __android_log_add_transport() argument
35 if (list_empty(list)) { in __android_log_add_transport()
37 list_add_tail(list, &transport->node); in __android_log_add_transport()
41 read_transport_for_each(transp, list) { in __android_log_add_transport()
47 list_add_tail(list, &transport->node); in __android_log_add_transport()
Dconfig_write.cpp27 static void __android_log_add_transport(struct listnode* list, in __android_log_add_transport() argument
35 if (list_empty(list)) { in __android_log_add_transport()
37 list_add_tail(list, &transport->node); in __android_log_add_transport()
41 write_transport_for_each(transp, list) { in __android_log_add_transport()
47 list_add_tail(list, &transport->node); in __android_log_add_transport()
Dlogprint.cpp1293 } * list, *next; in convertMonotonic() local
1390 list = static_cast<conversionList*>(calloc(1, sizeof(conversionList))); in convertMonotonic()
1391 list_init(&list->node); in convertMonotonic()
1392 list->time = time; in convertMonotonic()
1393 subTimespec(&list->convert, &time, &monotonic); in convertMonotonic()
1394 list_add_tail(&convertHead, &list->node); in convertMonotonic()
1397 list = node_to_item(list_tail(&convertHead), struct conversionList, node); in convertMonotonic()
1398 if (subTimespec(&time, subTimespec(&time, &list->time, &list->convert), in convertMonotonic()
1402 subTimespec(&convert, &list->convert, &suspended_diff); in convertMonotonic()
1405 convert = list->convert; in convertMonotonic()
[all …]
/system/core/debuggerd/libdebuggerd/test/
Dopen_files_list_test.cpp35 OpenFilesList list; in TEST() local
36 populate_open_files_list(&list, getpid()); in TEST()
40 for (auto& file : list) { in TEST()
/system/netd/resolv/
DDnsTlsDispatcher.cpp37 std::list<DnsTlsServer> DnsTlsDispatcher::getOrderedServerList( in getOrderedServerList()
38 const std::list<DnsTlsServer> &tlsServers, unsigned mark) const { in getOrderedServerList()
44 std::list<DnsTlsServer> existing6; in getOrderedServerList()
45 std::list<DnsTlsServer> existing4; in getOrderedServerList()
46 std::list<DnsTlsServer> new6; in getOrderedServerList()
47 std::list<DnsTlsServer> new4; in getOrderedServerList()
86 const std::list<DnsTlsServer> &tlsServers, unsigned mark, in query()
88 const std::list<DnsTlsServer> orderedServers(getOrderedServerList(tlsServers, mark)); in query()
/system/core/logd/
DLogWhiteBlackList.cpp121 PruneCollection* list; in init() local
152 list = &mNaughty; in init()
154 list = &mNice; in init()
185 PruneCollection::iterator it = list->begin(); in init()
186 while (it != list->end()) { in init()
194 it = list->erase(it); in init()
201 list->insert(it, Prune(uid, pid)); in init()
207 if (it == list->end()) { in init()
208 list->push_back(Prune(uid, pid)); in init()
/system/extras/latencytop/
Dlatencytop.c44 static struct latency_entry *read_global_stats(struct latency_entry *list, int erase);
45 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid);
46 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int …
51 static struct latency_entry *read_latency_file(FILE *f, struct latency_entry *list);
173 static struct latency_entry *read_global_stats(struct latency_entry *list, int erase) { in read_global_stats() argument
193 e = read_latency_file(f, list); in read_global_stats()
200 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid) { in read_process_stats() argument
215 e = list; in read_process_stats()
230 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int … in read_thread_stats() argument
245 return list; in read_thread_stats()
[all …]
/system/core/base/
Dstrings_test.cpp115 std::vector<std::string> list = {}; in TEST() local
116 ASSERT_EQ("", android::base::Join(list, ',')); in TEST()
120 std::vector<std::string> list = {"foo"}; in TEST() local
121 ASSERT_EQ("foo", android::base::Join(list, ',')); in TEST()
125 std::vector<std::string> list = {"foo", "bar", "baz"}; in TEST() local
126 ASSERT_EQ("foo,bar,baz", android::base::Join(list, ',')); in TEST()
130 std::vector<std::string> list = {",", ","}; in TEST() local
131 ASSERT_EQ(",,,", android::base::Join(list, ',')); in TEST()
135 std::set<int> list = {1, 2, 3}; in TEST() local
136 ASSERT_EQ("1,2,3", android::base::Join(list, ',')); in TEST()
[all …]
/system/core/debuggerd/libdebuggerd/
Dopen_files_list.cpp41 void populate_open_files_list(OpenFilesList* list, pid_t pid) { in populate_open_files_list() argument
59 (*list)[fd].path = target; in populate_open_files_list()
61 (*list)[fd].path = "???"; in populate_open_files_list()
67 void populate_fdsan_table(OpenFilesList* list, std::shared_ptr<unwindstack::Memory> memory, in populate_fdsan_table() argument
80 (*list)[i].fdsan_owner = entry.close_tag.load(); in populate_fdsan_table()
115 (*list)[fd].fdsan_owner = entry.close_tag; in populate_fdsan_table()
/system/vold/
DVolumeManager.h85 void listVolumes(android::vold::VolumeBase::Type type, std::list<std::string>& list) const;
149 std::list<std::shared_ptr<DiskSource>> mDiskSources;
150 std::list<std::shared_ptr<android::vold::Disk>> mDisks;
151 std::list<std::shared_ptr<android::vold::Disk>> mPendingDisks;
152 std::list<std::shared_ptr<android::vold::VolumeBase>> mObbVolumes;
153 std::list<std::shared_ptr<android::vold::VolumeBase>> mStubVolumes;
/system/apex/apexd/
Dapexservice_test.cpp122 std::vector<ApexInfo> list; in IsActive() local
123 android::binder::Status status = service_->getActivePackages(&list); in IsActive()
125 for (const ApexInfo& p : list) { in IsActive()
136 std::vector<ApexInfo> list; in GetAllPackages() local
137 android::binder::Status status = service_->getAllPackages(&list); in GetAllPackages()
139 return StatusOr<std::vector<ApexInfo>>(list); in GetAllPackages()
147 std::vector<ApexInfo> list; in GetActivePackages() local
148 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackages()
150 return StatusOr<std::vector<ApexInfo>>(list); in GetActivePackages()
158 std::vector<ApexInfo> list; in GetInactivePackages() local
[all …]
/system/bt/bta/gatt/
Ddatabase.h105 void Clear() { std::list<Service>().swap(services); } in Clear()
108 const std::list<Service>& Services() const { return services; } in Services()
120 std::list<Service> services;
125 Service* FindService(std::list<Service>& services, uint16_t handle);
/system/sepolicy/tools/sepolicy-analyze/
Dattribute.c76 int list = 0; in attribute_func() local
89 list = 1; in attribute_func()
100 if ((argc != 2 && !(reverse && argc == 3)) || (list && reverse)) { in attribute_func()
104 if (list) in attribute_func()
/system/core/adb/
Dbenchmark_device.py65 speeds = list()
84 speeds = list()
106 speeds = list()
124 speeds = list()
137 speeds = list()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dqueue.c50 STAILQ_ENTRY(qentry) list;
72 STAILQ_INSERT_TAIL(&queue, item, list); in enqueue()
90 STAILQ_REMOVE_HEAD(&queue, list); in dequeue()

12345678910>>...13