Home
last modified time | relevance | path

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

12345678910>>...12

/system/core/libcutils/include_outside_system/cutils/
Dlist.h40 #define list_for_each_reverse(node, list) \ argument
41 for ((node) = (list)->prev; (node) != (list); (node) = (node)->prev)
43 #define list_for_each_safe(node, n, list) \ argument
44 for ((node) = (list)->next, (n) = (node)->next; \
45 (node) != (list); \
48 #define list_for_each(node, list) \ argument
49 for (struct listnode* __n = ((node) = (list)->next)->next; (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/cutils/
Dlist.h40 #define list_for_each_reverse(node, list) \ argument
41 for ((node) = (list)->prev; (node) != (list); (node) = (node)->prev)
43 #define list_for_each_safe(node, n, list) \ argument
44 for ((node) = (list)->next, (n) = (node)->next; \
45 (node) != (list); \
48 #define list_for_each(node, list) \ argument
49 for (struct listnode* __n = ((node) = (list)->next)->next; (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/timezone/input_tools/android/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/main/java/com/android/xsdc/java/
DJavaSimpleType.java24 final private boolean list; field in JavaSimpleType
29 String rawWritingExpression, boolean list) { in JavaSimpleType() argument
34 this.list = list; in JavaSimpleType()
35 fullName = list ? String.format("java.util.List<%s>", nullableName) : name; in JavaSimpleType()
36 nullableFullName = list ? String.format("java.util.List<%s>", nullableName) : nullableName; in JavaSimpleType()
39 JavaSimpleType(String name, String nullableName, String rawParsingExpression, boolean list) { in JavaSimpleType() argument
40 this(name, nullableName, rawParsingExpression, "%s", list); in JavaSimpleType()
43 JavaSimpleType(String name, String rawParsingExpression, boolean list) { in JavaSimpleType() argument
44 this(name, name, rawParsingExpression, list); in JavaSimpleType()
48 return list; in isList()
[all …]
/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/tools/xsdc/src/main/java/com/android/xsdc/cpp/
DCppSimpleType.java23 final private boolean list; field in CppSimpleType
26 CppSimpleType(String name, String rawParsingExpression, boolean list, boolean isEnum) { in CppSimpleType() argument
28 this.list = list; in CppSimpleType()
30 this.fullName = list ? String.format("std::vector<%s>", name) : name; in CppSimpleType()
34 CppSimpleType(String name, String rawParsingExpression, boolean list) { in CppSimpleType() argument
35 this(name, rawParsingExpression, list, false); in CppSimpleType()
39 return list; in isList()
47 if (list) throw new CppCodeGeneratorException("list of list is not supported"); in newListType()
63 if (list) { in getParsingExpression()
85 if (list) { in getWritingExpression()
/system/apex/apexd/
Dapexservice_test.cpp142 std::vector<ApexInfo> list; in GetAllPackages() local
143 android::binder::Status status = service_->getAllPackages(&list); in GetAllPackages()
145 return list; in GetAllPackages()
152 std::vector<ApexInfo> list; in GetActivePackages() local
153 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackages()
155 return list; in GetActivePackages()
162 std::vector<ApexInfo> list; in GetInactivePackages() local
163 android::binder::Status status = service_->getAllPackages(&list); in GetInactivePackages()
164 list.erase(std::remove_if( in GetInactivePackages()
165 list.begin(), list.end(), in GetInactivePackages()
[all …]
/system/linkerconfig/modules/include/linkerconfig/
Dsection.h43 std::vector<std::string> list; member
44 SharedLibs(std::vector<std::string> list) : list(std::move(list)) { in SharedLibs()
47 link.AddSharedLib(list); in Apply()
Dnamespace.h98 void AddProvides(const Vec& list) { in AddProvides() argument
99 provides_.insert(list.begin(), list.end()); in AddProvides()
102 void AddRequires(const Vec& list) { in AddRequires() argument
103 requires_.insert(list.begin(), list.end()); in AddRequires()
/system/logging/liblog/
Dlogprint.cpp1198 } * list, *next; in convertMonotonic() local
1280 list = static_cast<conversionList*>(calloc(1, sizeof(conversionList))); in convertMonotonic()
1281 list_init(&list->node); in convertMonotonic()
1282 list->time = time; in convertMonotonic()
1283 subTimespec(&list->convert, &time, &monotonic); in convertMonotonic()
1284 list_add_tail(&convertHead, &list->node); in convertMonotonic()
1287 list = node_to_item(list_tail(&convertHead), struct conversionList, node); in convertMonotonic()
1288 if (subTimespec(&time, subTimespec(&time, &list->time, &list->convert), in convertMonotonic()
1292 subTimespec(&convert, &list->convert, &suspended_diff); in convertMonotonic()
1295 convert = list->convert; in convertMonotonic()
[all …]
/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,
52 static struct latency_entry* read_latency_file(FILE* f, struct latency_entry* list);
174 static struct latency_entry* read_global_stats(struct latency_entry* list, int erase) { in read_global_stats() argument
194 e = read_latency_file(f, list); in read_global_stats()
201 static struct latency_entry* read_process_stats(struct latency_entry* list, int erase, int pid) { in read_process_stats() argument
216 e = list; in read_process_stats()
230 static struct latency_entry* read_thread_stats(struct latency_entry* list, int erase, int pid, in read_thread_stats() argument
246 return list; in read_thread_stats()
[all …]
/system/logging/logd/
DSimpleLogBuffer.h57 std::list<LogBufferElement>::iterator GetOldest(log_id_t log_id) REQUIRES(logd_lock);
58 std::list<LogBufferElement>::iterator Erase(std::list<LogBufferElement>::iterator it)
66 std::list<LogBufferElement>& logs() { return logs_; } in logs()
79 std::list<LogBufferElement> logs_ GUARDED_BY(logd_lock);
82 std::optional<std::list<LogBufferElement>::iterator> oldest_[LOG_ID_MAX] GUARDED_BY(logd_lock);
DSerializedLogBufferTest.cpp91 void VerifyChunks(const std::list<SerializedLogChunk>& expected, in VerifyChunks()
92 const std::list<SerializedLogChunk>& chunks) { in VerifyChunks()
130 std::list<SerializedLogChunk> chunks; in TEST()
131 std::list<SerializedLogChunk> expected_chunks; in TEST()
155 std::list<SerializedLogChunk> chunks; in TEST()
159 std::list<SerializedLogChunk> expected_chunks; in TEST()
189 std::list<SerializedLogChunk> chunks; in TEST()
206 std::list<SerializedLogChunk> expected_chunks; in TEST()
220 std::list<SerializedLogChunk> chunks; in TEST()
237 std::list<SerializedLogChunk> expected_chunks; in TEST()
[all …]
DPruneList.cpp90 std::list<Prune>* list; in Init() local
124 list = &high_priority_prune_; in Init()
126 list = &low_priority_prune_; in Init()
158 list->emplace_back(uid, pid); in Init()
DSerializedFlushToState.h29 std::list<SerializedLogChunk>::iterator buffer_it;
48 SerializedFlushToState(uint64_t start, LogMask log_mask, std::list<SerializedLogChunk>* logs)
79 std::list<SerializedLogChunk>* logs_ GUARDED_BY(logd_lock) = nullptr;
/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/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/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.h53 friend std::ostream& operator<<(std::ostream& out, const WakeLockEntryList& list);
58 void deleteEntry(std::list<WakeLockInfo>::iterator entry) REQUIRES(mStatsLock);
78 std::list<WakeLockInfo> mStats GUARDED_BY(mStatsLock);
79 std::unordered_map<std::pair<std::string, int>, std::list<WakeLockInfo>::iterator, LockHash>
DWakeupList.h45 void erase(std::list<WakeupInfo>::iterator entry) REQUIRES(mLock);
49 std::list<WakeupInfo> mWakeups GUARDED_BY(mLock);
50 std::unordered_map<std::string, std::list<WakeupInfo>::iterator> mLookupTable GUARDED_BY(mLock);
/system/tools/aidl/tests/java/src/android/aidl/sdkversion/tests/
DAidlJavaVersionTests.java70 List<TypedObject> list = new ArrayList<>(); in testTypedObject() local
71 list.add(token); in testTypedObject()
72 assertEquals(mService.RepeatTypedList(list), list); in testTypedObject() local
/system/vold/
DVolumeManager.h103 void listVolumes(android::vold::VolumeBase::Type type, std::list<std::string>& list) const;
223 std::list<std::shared_ptr<DiskSource>> mDiskSources;
224 std::list<std::shared_ptr<android::vold::Disk>> mDisks;
225 std::list<std::shared_ptr<android::vold::Disk>> mPendingDisks;
226 std::list<std::shared_ptr<android::vold::VolumeBase>> mObbVolumes;
227 std::list<std::shared_ptr<android::vold::VolumeBase>> mInternalEmulatedVolumes;
/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/tools/aidl/tests/java/src/android/aidl/tests/
DJavaOnlyImmutableAnnotationTests.java44 List<Bar> list = new ArrayList<Bar>(); in testReadWriteJavaOnlyImmutableParcelable() local
45 list.add(new Bar("aa")); in testReadWriteJavaOnlyImmutableParcelable()
53 Foo foo = new Foo(7, new Bar("my"), list, map, array, Union.num(42)); in testReadWriteJavaOnlyImmutableParcelable()
109 List<Bar> list = new ArrayList<Bar>(); in testBuilder() local
110 list.add(new Bar("aa")); in testBuilder()
118 Foo foo = new Foo(7, b, list, map, array, Union.num(42)); in testBuilder()
122 .setC(list) in testBuilder()
/system/extras/perf_tools/
Dsbtpull.py80 self.list = []
84 self.list.clear()
87 self.list.append(item)
95 for item in self.list:
111 for item in self.list:
124 for item in self.list:
143 for item in self.list:
160 for item in self.list:
169 …print("FindCommon {} {} {} {}".format(len(self.list), len(otherList.list), numFoundItems, numNotFo…
175 for item in self.list:
[all …]
/system/sepolicy/tools/
Dcheck_seapp.c48 #define list_for_each(list, var) \ argument
49 for(var = (list)->head; var != NULL; var = var->next) /*NOLINT*/
62 typedef struct list list; typedef
91 struct list { struct
129 list violations;
181 static list input_file_list = list_init(input_file_list_freefn);
183 static list coredomain_violation_list = list_init(coredomain_violation_list_freefn);
201 static list line_order_list = list_init(line_order_list_freefn);
206 static list nallow_list = list_init(line_order_list_freefn);
246 void list_append(list *list, list_element *e) { in list_append() argument
[all …]

12345678910>>...12