Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 72) sorted by relevance

123

/system/core/libzipfile/
Dzipfile.c33 Zipentry* entry = file->entries; in release_zipfile() local
34 while (entry) { in release_zipfile()
35 Zipentry* next = entry->next; in release_zipfile()
36 free(entry); in release_zipfile()
37 entry = next; in release_zipfile()
46 Zipentry* entry = file->entries; in lookup_zipentry() local
47 while (entry) { in lookup_zipentry()
48 if (0 == memcmp(entryName, entry->fileName, entry->fileNameLength)) { in lookup_zipentry()
49 return entry; in lookup_zipentry()
51 entry = entry->next; in lookup_zipentry()
[all …]
Dcentraldir.c66 read_central_directory_entry(Zipfile* file, Zipentry* entry, in read_central_directory_entry() argument
88 entry->compressionMethod = read_le_short(&p[0x0a]); in read_central_directory_entry()
89 entry->compressedSize = read_le_int(&p[0x14]); in read_central_directory_entry()
90 entry->uncompressedSize = read_le_int(&p[0x18]); in read_central_directory_entry()
91 entry->fileNameLength = read_le_short(&p[0x1c]); in read_central_directory_entry()
99 if (entry->fileNameLength != 0) { in read_central_directory_entry()
100 entry->fileName = p; in read_central_directory_entry()
102 entry->fileName = NULL; in read_central_directory_entry()
104 p += entry->fileNameLength; in read_central_directory_entry()
120 + entry->fileNameLength + extraFieldLength; in read_central_directory_entry()
[all …]
Dtest_zipfile.c16 zipentry_t entry; in main() local
64 entry = lookup_zipentry(zip, argv[3]); in main()
65 if (entry == NULL) { in main()
75 unsize = get_zipentry_size(entry); in main()
79 err = decompress_zipentry(entry, scratch, size); in main()
/system/core/liblog/
Dlog_read_kern.c145 struct log_msg entry; member
150 struct log_msg entry; /* Truncated to event->len() + 1 to save space */ member
171 struct log_list *entry = node_to_item( in android_logger_free() local
173 list_remove(&entry->node); in android_logger_free()
174 free(entry); in android_logger_free()
422 struct log_list *entry = node_to_item(node, in android_logger_list_flush() local
425 || (entry->entry.entry.sec < oldest->entry.entry.sec) in android_logger_list_flush()
426 || ((entry->entry.entry.sec == oldest->entry.entry.sec) in android_logger_list_flush()
427 && (entry->entry.entry.nsec < oldest->entry.entry.nsec))) { in android_logger_list_flush()
428 oldest = entry; in android_logger_list_flush()
[all …]
Dlogprint.c325 AndroidLogEntry *entry) in android_log_processLogBuffer() argument
327 entry->tv_sec = buf->sec; in android_log_processLogBuffer()
328 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer()
329 entry->pid = buf->pid; in android_log_processLogBuffer()
330 entry->tid = buf->tid; in android_log_processLogBuffer()
380 entry->priority = msg[0]; in android_log_processLogBuffer()
381 entry->tag = msg + 1; in android_log_processLogBuffer()
382 entry->message = msg + msgStart; in android_log_processLogBuffer()
383 entry->messageLen = msgEnd - msgStart; in android_log_processLogBuffer()
579 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, in android_log_processBinaryLogBuffer() argument
[all …]
/system/core/libbacktrace/
DBacktraceThread.cpp58 ThreadEntry* entry = list_; in Get() local
59 while (entry != NULL) { in Get()
60 if (entry->Match(pid, tid)) { in Get()
63 entry = entry->next_; in Get()
66 if (!entry) { in Get()
68 entry = new ThreadEntry(pid, tid); in Get()
71 entry->ref_count_++; in Get()
75 return entry; in Get()
78 void ThreadEntry::Remove(ThreadEntry* entry) { in Remove() argument
79 pthread_mutex_unlock(&entry->mutex_); in Remove()
[all …]
/system/core/include/log/
Dlogger.h82 struct logger_entry_v3 entry; member
91 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec);
99 return (entry.sec < T.entry.sec)
100 || ((entry.sec == T.entry.sec)
101 && (entry.nsec < T.entry.nsec));
109 return (entry.sec > T.entry.sec)
110 || ((entry.sec == T.entry.sec)
111 && (entry.nsec > T.entry.nsec));
119 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
125 return (log_id_t) entry.lid; in id()
[all …]
/system/core/libcutils/
Dhashmap.c115 Entry* entry = map->buckets[i]; in expandIfNecessary() local
116 while (entry != NULL) { in expandIfNecessary()
117 Entry* next = entry->next; in expandIfNecessary()
118 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary()
119 entry->next = newBuckets[index]; in expandIfNecessary()
120 newBuckets[index] = entry; in expandIfNecessary()
121 entry = next; in expandIfNecessary()
143 Entry* entry = map->buckets[i]; in hashmapFree() local
144 while (entry != NULL) { in hashmapFree()
145 Entry* next = entry->next; in hashmapFree()
[all …]
/system/media/camera/docs/
Dmetadata_validate.py43 def fully_qualified_name(entry): argument
60 parents = [i['name'] for i in entry.parents if i.name in filter_tags]
62 if entry.name == 'entry':
63 name = entry['name']
64 elif entry.name == 'clone':
65 name = entry['entry'].split(".")[-1] # "a.b.c" => "c"
68 %(entry.name, entry))
244 for entry in soup.find_all("entry"):
245 entry_container = entry.attrs.get('container')
248 container_tag = entry.find(entry_container)
[all …]
Dmetadata_parser_xml.py139 for entry in self.soup.find_all(entry_filter):
140 if entry.name == 'entry':
142 'name': fully_qualified_name(entry),
143 'type': entry['type'],
144 'kind': find_kind(entry),
145 'type_notes': entry.attrs.get('type_notes')
148 d2 = self._parse_entry(entry)
152 'name': entry['entry'],
153 'kind': find_kind(entry),
154 'target_kind': entry['kind'],
[all …]
Dmetadata_helpers.py63 def find_parent_section(entry): argument
73 return entry.find_parent_first(_is_sec_or_ins)
100 for entry in i.entries:
101 d[entry.name] = entry
320 def _jtypedef_type(entry): argument
321 typedef = entry.typedef
328 if entry.container == 'array':
330 for size in entry.container_sizes:
359 def jtype_unboxed(entry): argument
372 if not isinstance(entry, metadata_model.Entry):
[all …]
DCameraMetadataKeys.mako29 <%def name="generate_key(entry)">\
34 if entry.description:
35 description = dedent(entry.description) + "\n\n"
37 if entry.details:
38 details = dedent(entry.details)
40 extra_detail = generate_extra_javadoc_detail(entry)("")
46 % if entry.enum and not (entry.typedef and entry.typedef.languages.get('java')):
47 % for value in entry.enum.values:
49 * @see #${jenum_value(entry, value)}
53 % if entry.deprecated:
[all …]
Dcamera_metadata_tags.mako31 def annotated_type(entry):
32 if entry.enum:
35 type = entry.type
36 if entry.container == 'array':
78 % for idx,entry in enumerate(remove_synthetic(find_unique_entries(sec))):
80 …${entry.name + " = " | csym,ljust(50)}// ${annotated_type(entry) | ljust(12)} | ${entry.applied_vi…
81 ${path_name(find_parent_section(entry)) | csym}_START,
83 …${entry.name + "," | csym,ljust(50)}// ${annotated_type(entry) | ljust(12)} | ${entry.applied_visi…
96 % for entry in remove_synthetic(find_unique_entries(sec)):
97 % if entry.enum:
[all …]
DCameraMetadataEnums.mako27 <%def name="generate_enum(entry, target_class)">\
29 // Enumeration values for ${target_class}#${entry.name | jkey_identifier}
32 % for value in entry.enum.values:
37 * @see ${target_class}#${entry.name | jkey_identifier}
38 % if entry.applied_visibility == 'hidden' or value.hidden:
42 public static final int ${jenum_value(entry, value)} = ${enum_calculate_value_string(value)};
56 % for entry in filter_visibility(inner_namespace.entries, ('hidden','public')):
57 % if entry.enum \
58 and not (entry.typedef and entry.typedef.languages.get('java')) \
59 and not entry.is_clone():
[all …]
Dcamera_metadata_tag_info.mako50 % for entry in remove_synthetic(find_unique_entries(sec)):
51 [ ${entry.name | csym} - ${path_name(sec) | csym}_START ] =
52 { ${'"%s",' %(entry.name_short) | pad(40)} ${entry.type | ctype_enum,ljust(11)} },
73 % for idx,entry in enumerate(remove_synthetic(find_unique_entries(sec))):
74 case ${entry.name | csym}: {
75 % if entry.enum:
77 % for val in entry.enum.values:
78 case ${entry.name | csym}_${val.name}:
/system/core/logd/
DLogBufferElement.cpp48 struct logger_entry_v3 entry; in flushTo() local
49 memset(&entry, 0, sizeof(struct logger_entry_v3)); in flushTo()
50 entry.hdr_size = sizeof(struct logger_entry_v3); in flushTo()
51 entry.len = mMsgLen; in flushTo()
52 entry.lid = mLogId; in flushTo()
53 entry.pid = mPid; in flushTo()
54 entry.tid = mTid; in flushTo()
55 entry.sec = mRealTime.tv_sec; in flushTo()
56 entry.nsec = mRealTime.tv_nsec; in flushTo()
59 iovec[0].iov_base = &entry; in flushTo()
DFlushCommand.cpp49 LogTimeEntry *entry = NULL; in runSocketCommand() local
55 entry = (*it); in runSocketCommand()
56 if (entry->mClient == client) { in runSocketCommand()
57 entry->triggerReader_Locked(); in runSocketCommand()
58 if (entry->runningReader_Locked()) { in runSocketCommand()
62 entry->incRef_Locked(); in runSocketCommand()
74 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart); in runSocketCommand()
75 times.push_back(entry); in runSocketCommand()
81 entry->startReader_Locked(); in runSocketCommand()
/system/media/camera/src/
Dcamera_metadata.c399 camera_metadata_buffer_entry_t entry = entries[i]; in validate_camera_metadata_structure() local
401 if (entry.type >= NUM_TYPES) { in validate_camera_metadata_structure()
403 __FUNCTION__, i, entry.type); in validate_camera_metadata_structure()
409 uint32_t tag_section = entry.tag >> 16; in validate_camera_metadata_structure()
410 int tag_type = get_camera_metadata_tag_type(entry.tag); in validate_camera_metadata_structure()
411 if (tag_type != (int)entry.type && tag_section < VENDOR_SECTION) { in validate_camera_metadata_structure()
413 __FUNCTION__, i, tag_type, entry.type); in validate_camera_metadata_structure()
418 calculate_camera_metadata_entry_data_size(entry.type, in validate_camera_metadata_structure()
419 entry.count); in validate_camera_metadata_structure()
424 entry.data.offset); in validate_camera_metadata_structure()
[all …]
/system/core/include/utils/
DLruCache.h93 void attachToCache(Entry& entry);
94 void detachFromCache(Entry& entry);
133 Entry& entry = mTable->editEntryAt(index); in get() local
134 detachFromCache(entry); in get()
135 attachToCache(entry); in get()
136 return entry.value; in get()
157 Entry& entry = mTable->editEntryAt(index); in put() local
158 attachToCache(entry); in put()
169 Entry& entry = mTable->editEntryAt(index); in remove() local
171 (*mListener)(entry.key, entry.value); in remove()
[all …]
/system/core/fastbootd/other/
Dgptedit.c175 struct GPT_entry_raw *entry = table->entries; in printGPT() local
182 for (n = 0; n < table->header->entries_count; n++, entry++) { in printGPT()
183 if (entry->type_guid[0] == 0) in printGPT()
186 name[m] = entry->name[m] & 127; in printGPT()
190 n + 1, entry->first_lba, entry->last_lba, name); in printGPT()
195 struct GPT_entry_raw *entry = table->entries; in configPrintGPT() local
211 for (n = 0; n < table->header->entries_count; n++, entry++) { in configPrintGPT()
212 uint64_t size = entry->last_lba - entry->first_lba + 1; in configPrintGPT()
214 if (entry->type_guid[0] == 0) in configPrintGPT()
217 name[m] = entry->name[m] & 127; in configPrintGPT()
[all …]
/system/core/gpttool/
Dgpttool.c83 struct efi_entry entry[EFI_ENTRIES]; member
120 struct efi_entry *entry = ptbl->entry; in add_ptn() local
132 for (n = 0; n < EFI_ENTRIES; n++, entry++) { in add_ptn()
133 if (entry->type_uuid[0]) in add_ptn()
135 memcpy(entry->type_uuid, partition_type_uuid, 16); in add_ptn()
136 get_uuid(entry->uniq_uuid); in add_ptn()
137 entry->first_lba = first; in add_ptn()
138 entry->last_lba = last; in add_ptn()
140 entry->name[n] = *name++; in add_ptn()
161 struct efi_entry *entry = ptbl->entry; in show() local
[all …]
/system/extras/ext4_utils/
Dcontents.c268 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end) in xattr_free_space() argument
270 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) { in xattr_free_space()
271 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size)); in xattr_free_space()
272 entry = EXT4_XATTR_NEXT(entry); in xattr_free_space()
275 if (((char *) entry) > end) { in xattr_free_space()
280 return end - ((char *) entry); in xattr_free_space()
287 static struct ext4_xattr_entry* xattr_get_last(struct ext4_xattr_entry *entry) in xattr_get_last() argument
289 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) { in xattr_get_last()
292 return entry; in xattr_get_last()
313 static void xattr_assert_sane(struct ext4_xattr_entry *entry) in xattr_assert_sane() argument
[all …]
Dxattr.h38 #define EXT4_XATTR_NEXT(entry) \ argument
40 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len)))
43 #define IS_LAST_ENTRY(entry) (*(uint32_t *)(entry) == 0) argument
/system/core/fastbootd/commands/
Dpartitions.c67 static void GPT_entry_clear(struct GPT_entry_raw *entry) in GPT_entry_clear() argument
69 memset(entry, 0, sizeof(*entry)); in GPT_entry_clear()
262 static int GPT_check_overlap(struct GPT_entry_table *table, struct GPT_entry_raw *entry);
264 struct GPT_entry_raw *entry,
286 int GPT_delete_entry(struct GPT_entry_table *table, struct GPT_entry_raw *entry) in GPT_delete_entry() argument
288 struct GPT_entry_raw *raw = GPT_get_pointer(table, entry); in GPT_delete_entry()
302 void GPT_add_entry(struct GPT_entry_table *table, struct GPT_entry_raw *entry) in GPT_add_entry() argument
306 if (GPT_check_overlap(table, entry)) { in GPT_add_entry()
311 if (GPT_get_pointer(table, entry) != NULL) { in GPT_add_entry()
322 memcpy(&entries[i], entry, sizeof(entries[i])); in GPT_add_entry()
[all …]
/system/keymaster/
Dgoogle_keymaster.cpp213 OpTableEntry* entry = FindOperation(request.op_handle); in UpdateOperation() local
214 if (entry == NULL) { in UpdateOperation()
219 response->error = entry->operation->Update(request.input, &response->output); in UpdateOperation()
222 DeleteOperation(entry); in UpdateOperation()
228 OpTableEntry* entry = FindOperation(request.op_handle); in FinishOperation() local
229 if (entry == NULL) { in FinishOperation()
234 response->error = entry->operation->Finish(request.signature, &response->output); in FinishOperation()
235 DeleteOperation(entry); in FinishOperation()
239 OpTableEntry* entry = FindOperation(op_handle); in AbortOperation() local
240 if (entry == NULL) in AbortOperation()
[all …]

123