Searched refs:entry (Results 1 - 25 of 70) sorted by relevance

123

/system/core/libzipfile/
H A Dzipfile.c33 Zipentry* entry = file->entries; local
34 while (entry) {
35 Zipentry* next = entry->next;
36 free(entry);
37 entry = next;
46 Zipentry* entry = file->entries; local
47 while (entry) {
48 if (0 == memcmp(entryName, entry->fileName, entry->fileNameLength)) {
49 return entry;
57 get_zipentry_size(zipentry_t entry) argument
63 get_zipentry_name(zipentry_t entry) argument
117 Zipentry* entry = (Zipentry*)e; local
134 Zipentry* entry = zip->entries; local
149 Zipentry* entry = (Zipentry*)*cookie; local
[all...]
H A Dcentraldir.c66 read_central_directory_entry(Zipfile* file, Zipentry* entry, argument
79 fprintf(stderr, "cde entry not large enough\n");
88 entry->compressionMethod = read_le_short(&p[0x0a]);
89 entry->compressedSize = read_le_int(&p[0x14]);
90 entry->uncompressedSize = read_le_int(&p[0x18]);
91 entry->fileNameLength = read_le_short(&p[0x1c]);
99 if (entry->fileNameLength != 0) {
100 entry->fileName = p;
102 entry->fileName = NULL;
104 p += entry
204 Zipentry* entry = malloc(sizeof(Zipentry)); local
[all...]
H A Dtest_zipfile.c16 zipentry_t entry; local
64 entry = lookup_zipentry(zip, argv[3]);
65 if (entry == NULL) {
75 unsize = get_zipentry_size(entry);
79 err = decompress_zipentry(entry, scratch, size);
/system/media/camera/docs/
H A 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
[all...]
H A 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
[all...]
H A Dmetadata_validate.py43 def fully_qualified_name(entry):
45 Calculates the fully qualified name for an entry by walking the path
49 entry: a BeautifulSoup Tag corresponding to an <entry ...> XML node,
53 ValueError: if entry does not correspond to one of the above XML nodes
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
[all...]
H A Dmetadata_parser_xml.py138 entry_filter = lambda x: x.name == 'entry' or x.name == 'clone'
139 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['entr
[all...]
H A Dmetadata_helpers.py63 def find_parent_section(entry):
68 entry: an Entry or Clone node
73 return entry.find_parent_first(_is_sec_or_ins)
84 A sequence of MergedEntry nodes representing an entry
88 one entry (e.g. if there are multiple entries in different kinds).
100 for entry in i.entries:
101 d[entry.name] = entry
196 Convert an entry name string into an uppercase C symbol.
212 Convert an entry nam
[all...]
H A DCaptureResultTest.mako26 % for entry in find_unique_entries(sec):
27 % if entry.kind == 'dynamic' and entry.visibility == "public":
28 resultKeys.add(CaptureResult.${jkey_identifier(entry.name)});
H A 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_visibility}
81 ${path_name(find_parent_section(entry)) | csym}_START,
83 ${entry
[all...]
/system/core/libbacktrace/
H A DBacktraceThread.cpp58 ThreadEntry* entry = list_; local
59 while (entry != NULL) {
60 if (entry->Match(pid, tid)) {
63 entry = entry->next_;
66 if (!entry) {
68 entry = new ThreadEntry(pid, tid);
71 entry->ref_count_++;
75 return entry;
78 void ThreadEntry::Remove(ThreadEntry* entry) { argument
132 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); local
171 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); local
[all...]
/system/core/logd/
H A DLogBufferElement.cpp48 struct logger_entry_v3 entry; local
49 memset(&entry, 0, sizeof(struct logger_entry_v3));
50 entry.hdr_size = sizeof(struct logger_entry_v3);
51 entry.len = mMsgLen;
52 entry.lid = mLogId;
53 entry.pid = mPid;
54 entry.tid = mTid;
55 entry.sec = mRealTime.tv_sec;
56 entry.nsec = mRealTime.tv_nsec;
59 iovec[0].iov_base = &entry;
[all...]
H A DFlushCommand.cpp49 LogTimeEntry *entry = NULL; local
55 entry = (*it);
56 if (entry->mClient == client) {
57 entry->triggerReader_Locked();
58 if (entry->runningReader_Locked()) {
62 entry->incRef_Locked();
74 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart);
75 times.push_back(entry);
80 // release client and entry reference counts once done
81 entry
[all...]
/system/core/include/log/
H A Dlogger.h33 char msg[0]; /* the entry's payload */
49 char msg[0]; /* the entry's payload */
60 char msg[0]; /* the entry's payload */
64 * The maximum size of the log entry payload that can be
66 * this amount will result in a truncated log entry.
71 * The maximum size of a log entry which can be read from the
82 struct logger_entry_v3 entry; member in union:log_msg::__anon40
91 return (entry.sec == T.entry.sec) && (entry
[all...]
/system/core/include/zipfile/
H A Dzipfile.h35 // Get a named entry object. Returns NULL if it doesn't exist
40 // Return the size of the entry.
41 size_t get_zipentry_size(zipentry_t entry);
43 // return the filename of this entry, you own the memory returned
44 char* get_zipentry_name(zipentry_t entry);
48 int decompress_zipentry(zipentry_t entry, void* buf, int bufsize);
/system/core/liblog/
H A Dlog_read_kern.c35 #define LOGGER_GET_NEXT_ENTRY_LEN _IO(__LOGGERIO, 3) /* next entry len */
145 struct log_msg entry; member in struct:logger_list
150 struct log_msg entry; /* Truncated to event->len() + 1 to save space */ member in struct:log_list
171 struct log_list *entry = node_to_item( local
173 list_remove(&entry->node);
174 free(entry);
422 struct log_list *entry = node_to_item(node, local
425 || (entry->entry.entry
606 struct log_list *entry; local
[all...]
H A Dlogprint.c319 * entry allocated by caller. Pointers will point directly into buf
321 * Returns 0 on success and -1 on invalid wire format (entry will be
325 AndroidLogEntry *entry)
327 entry->tv_sec = buf->sec;
328 entry->tv_nsec = buf->nsec;
329 entry->pid = buf->pid;
330 entry->tid = buf->tid;
344 // An well-formed entry must consist of at least a priority
346 fprintf(stderr, "+++ LOG: entry too small\n");
380 entry
324 android_log_processLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry) argument
578 android_log_processBinaryLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, int messageBufLen) argument
683 android_log_formatLogLine( AndroidLogFormat *p_format, char *defaultBuffer, size_t defaultBufferSize, const AndroidLogEntry *entry, size_t *p_outLength) argument
874 android_log_printLogLine( AndroidLogFormat *p_format, int fd, const AndroidLogEntry *entry) argument
[all...]
/system/core/libcutils/
H A Dhashmap.c115 Entry* entry = map->buckets[i]; local
116 while (entry != NULL) {
117 Entry* next = entry->next;
118 size_t index = calculateIndex(newBucketCount, entry->hash);
119 entry->next = newBuckets[index];
120 newBuckets[index] = entry;
121 entry = next;
143 Entry* entry = map->buckets[i]; local
144 while (entry != NULL) {
145 Entry* next = entry
167 Entry* entry = malloc(sizeof(Entry)); local
225 Entry* entry = map->buckets[index]; local
240 Entry* entry = map->buckets[index]; local
311 Entry* entry = map->buckets[i]; local
331 Entry* entry = map->buckets[i]; local
[all...]
/system/extras/kexec_tools/
H A Dkexec.h19 static inline long kexec_load(unsigned int entry, unsigned long nr_segments, argument
21 return syscall(__NR_kexec_load, entry, nr_segments, segment, flags);
/system/extras/ext4_utils/
H A Dxattr.h38 #define EXT4_XATTR_NEXT(entry) \
40 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len)))
43 #define IS_LAST_ENTRY(entry) (*(uint32_t *)(entry) == 0)
H A Dcontents.c96 of each directory entry into dentries[i].inode, to be filled in later
97 when the inode for the entry is allocated. Returns the inode number of the
268 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end) argument
270 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) {
271 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size));
272 entry = EXT4_XATTR_NEXT(entry);
275 if (((char *) entry) > end) {
280 return end - ((char *) entry);
287 xattr_get_last(struct ext4_xattr_entry *entry) argument
313 xattr_assert_sane(struct ext4_xattr_entry *entry) argument
340 ext4_xattr_hash_entry(struct ext4_xattr_header *header, struct ext4_xattr_entry *entry) argument
[all...]
/system/core/include/utils/
H A DLruCache.h93 void attachToCache(Entry& entry);
94 void detachFromCache(Entry& entry);
133 Entry& entry = mTable->editEntryAt(index); local
134 detachFromCache(entry);
135 attachToCache(entry);
136 return entry.value;
154 // Would it be better to initialize a blank entry and assign key, value?
157 Entry& entry = mTable->editEntryAt(index); local
158 attachToCache(entry);
169 Entry& entry local
208 attachToCache(Entry& entry) argument
219 detachFromCache(Entry& entry) argument
[all...]
/system/core/fastbootd/other/
H A Dgptedit.c175 struct GPT_entry_raw *entry = table->entries; local
182 for (n = 0; n < table->header->entries_count; n++, entry++) {
183 if (entry->type_guid[0] == 0)
186 name[m] = entry->name[m] & 127;
190 n + 1, entry->first_lba, entry->last_lba, name);
195 struct GPT_entry_raw *entry = table->entries; local
211 for (n = 0; n < table->header->entries_count; n++, entry++) {
212 uint64_t size = entry->last_lba - entry
288 struct GPT_entry_raw *entry; local
[all...]
/system/media/camera/src/
H A Dcamera_metadata.c36 * A single metadata entry, storing an array of values of a given type. If the
241 // Start entry list at aligned boundary
354 ALOGE("%s: Entry count (%" PRIu32 ") should be <= entry capacity "
386 // Validate each entry
399 camera_metadata_buffer_entry_t entry = entries[i]; local
401 if (entry.type >= NUM_TYPES) {
403 __FUNCTION__, i, entry.type);
409 uint32_t tag_section = entry.tag >> 16;
410 int tag_type = get_camera_metadata_tag_type(entry.tag);
411 if (tag_type != (int)entry
470 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local
535 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local
595 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument
616 get_camera_metadata_ro_entry(const camera_metadata_t *src, size_t index, camera_metadata_ro_entry_t *entry) argument
623 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument
656 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument
864 camera_metadata_buffer_entry_t *entry = get_entries(metadata); local
[all...]
/system/core/gpttool/
H A Dgpttool.c83 struct efi_entry entry[EFI_ENTRIES]; member in struct:ptable
120 struct efi_entry *entry = ptbl->entry; local
132 for (n = 0; n < EFI_ENTRIES; n++, entry++) {
133 if (entry->type_uuid[0])
135 memcpy(entry->type_uuid, partition_type_uuid, 16);
136 get_uuid(entry->uniq_uuid);
137 entry->first_lba = first;
138 entry->last_lba = last;
140 entry
161 struct efi_entry *entry = ptbl->entry; local
182 struct efi_entry *entry = ptbl->entry; local
[all...]

Completed in 686 milliseconds

123