/system/core/libzipfile/ |
H A D | zipfile.c | 33 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 118 Zipentry* entry = (Zipentry*)e; local 135 Zipentry* entry = zip->entries; local 150 Zipentry* entry = (Zipentry*)*cookie; local [all...] |
H A D | centraldir.c | 64 read_central_directory_entry(Zipfile* file, Zipentry* entry,
argument 91 fprintf(stderr, "cde entry not large enough\n");
103 entry->compressionMethod = read_le_short(&p[0x0a]);
107 entry->compressedSize = read_le_int(&p[0x14]);
108 entry->uncompressedSize = read_le_int(&p[0x18]);
109 entry->fileNameLength = read_le_short(&p[0x1c]);
120 if (entry->fileNameLength != 0) {
121 entry->fileName = p;
123 entry->fileName = NULL;
125 p += entry 235 Zipentry* entry = malloc(sizeof(Zipentry)); local [all...] |
H A D | test_zipfile.c | 16 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 D | CameraMetadataEnums.mako | 27 <%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': 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 D | CameraMetadataKeys.mako | 29 <%def name="generate_key(entry)">\ 31 % if entry.description: 32 ${entry.description | javadoc}\ 34 % if entry.notes: 35 ${entry.notes | javadoc}\ 37 % if entry.enum and not (entry.typedef and entry.typedef.languages.get('java')): 38 % for value in entry.enum.values: 39 * @see #${jenum_value(entry, valu [all...] |
H A D | metadata_validate.py | 43 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 55 parents = [i['name'] for i in entry.parents if i.name in filter_tags] 57 name = entry['name'] 80 <entry name="Hello" /> # this is in variable 'Hello' 180 Validate that all <clone> elements point to an existing <entry> element. 191 clone_entry = clone['entry'] 196 find_entry = lambda x: x.name == 'entry' \ [all...] |
H A D | metadata_parser_xml.py | 121 entry_filter = lambda x: x.name == 'entry' or x.name == 'clone' 122 for entry in self.soup.find_all(entry_filter): 123 if entry.name == 'entry': 125 'name': fully_qualified_name(entry), 126 'type': entry['type'], 127 'kind': find_kind(entry), 128 'type_notes': entry.attrs.get('type_notes') 131 d2 = self._parse_entry(entry) 135 'name': entry['entr [all...] |
H A D | camera_metadata_tags.mako | 31 def annotated_type(entry): 32 if entry.enum: 35 type = entry.type 36 if entry.container == 'array': 78 % for idx,entry in enumerate(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...] |
H A D | metadata_helpers.py | 50 def find_parent_section(entry): 55 entry: an Entry or Clone node 60 return entry.find_parent_first(_is_sec_or_ins) 71 A sequence of MergedEntry nodes representing an entry 75 one entry (e.g. if there are multiple entries in different kinds). 87 for entry in i.entries: 88 d[entry.name] = entry 183 Convert an entry name string into an uppercase C symbol. 199 Convert an entry nam [all...] |
H A D | CameraCaptureResultTest.mako | 26 % 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 D | camera_metadata_tag_info.mako | 50 % for entry in 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(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/netd/ |
H A D | UidMarkMap.cpp | 32 UidMarkEntry *entry = *it; local 33 if (entry->uid_start <= uid_end && uid_start <= entry->uid_end) { 47 UidMarkEntry *entry = *it; local 48 if (entry->uid_start == uid_start && entry->uid_end == uid_end && entry->mark == mark) { 50 delete entry; 61 UidMarkEntry *entry = *it; local 62 if (entry 73 UidMarkEntry *entry = *it; local [all...] |
/system/core/include/zipfile/ |
H A D | zipfile.h | 35 // 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/libcutils/ |
H A D | hashmap.c | 115 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 D | kexec.h | 19 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 D | xattr.h | 38 #define EXT4_XATTR_NEXT(entry) \ 40 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len))) 43 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0)
|
H A D | contents.c | 92 of each directory entry into dentries[i].inode, to be filled in later 93 when the inode for the entry is allocated. Returns the inode number of the 258 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end) argument 260 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) { 261 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size)); 262 entry = EXT4_XATTR_NEXT(entry); 265 if (((char *) entry) > end) { 270 return end - ((char *) entry); 277 xattr_get_last(struct ext4_xattr_entry *entry) argument 303 xattr_assert_sane(struct ext4_xattr_entry *entry) argument 330 ext4_xattr_hash_entry(struct ext4_xattr_header *header, struct ext4_xattr_entry *entry) argument [all...] |
/system/core/include/utils/ |
H A D | LruCache.h | 92 void attachToCache(Entry& entry); 93 void detachFromCache(Entry& entry); 128 Entry& entry = mTable->editEntryAt(index); local 129 detachFromCache(entry); 130 attachToCache(entry); 131 return entry.value; 149 // Would it be better to initialize a blank entry and assign key, value? 152 Entry& entry = mTable->editEntryAt(index); local 153 attachToCache(entry); 164 Entry& entry local 195 attachToCache(Entry& entry) argument 206 detachFromCache(Entry& entry) argument [all...] |
/system/core/liblog/ |
H A D | logprint.c | 345 * entry allocated by caller. Pointers will point directly into buf 347 * Returns 0 on success and -1 on invalid wire format (entry will be 351 AndroidLogEntry *entry) 353 entry->tv_sec = buf->sec; 354 entry->tv_nsec = buf->nsec; 355 entry->pid = buf->pid; 356 entry->tid = buf->tid; 370 // An well-formed entry must consist of at least a priority 372 fprintf(stderr, "+++ LOG: entry too small\n"); 401 entry 350 android_log_processLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry) argument 599 android_log_processBinaryLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, int messageBufLen) argument 700 android_log_formatLogLine( AndroidLogFormat *p_format, char *defaultBuffer, size_t defaultBufferSize, const AndroidLogEntry *entry, size_t *p_outLength) argument 893 android_log_printLogLine( AndroidLogFormat *p_format, int fd, const AndroidLogEntry *entry) argument [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 33 // Align entry buffers as the compiler would 44 * A single metadata entry, storing an array of values of a given type. If the 233 // Start entry list at aligned boundary 345 ALOGE("%s: Entry count (%u) should be <= entry capacity (%u)", 372 // Validate each entry 385 camera_metadata_buffer_entry_t entry = entries[i]; local 387 if (entry.type >= NUM_TYPES) { 389 __FUNCTION__, i, entry.type); 395 uint32_t tag_section = entry.tag >> 16; 396 int tag_type = get_camera_metadata_tag_type(entry 456 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local 519 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local 577 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument 598 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument 631 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument 842 camera_metadata_buffer_entry_t *entry = get_entries(metadata); local [all...] |
/system/core/adb/ |
H A D | log_service.c | 46 struct logger_entry *entry = (struct logger_entry *) buf; local 51 ret = unix_read(logfd, entry, LOGGER_ENTRY_MAX_LEN); 63 /* NOTE: driver guarantees we read exactly one full entry */ 65 entry->msg[entry->len] = '\0'; 67 write_log_entry(fd, entry); 86 /* prints one log entry into the file descriptor fd */
|
/system/core/gpttool/ |
H A D | gpttool.c | 84 struct efi_entry entry[EFI_ENTRIES]; member in struct:ptable 121 struct efi_entry *entry = ptbl->entry; local 133 for (n = 0; n < EFI_ENTRIES; n++, entry++) { 134 if (entry->type_uuid[0]) 136 memcpy(entry->type_uuid, partition_type_uuid, 16); 137 get_uuid(entry->uniq_uuid); 138 entry->first_lba = first; 139 entry->last_lba = last; 141 entry 162 struct efi_entry *entry = ptbl->entry; local 183 struct efi_entry *entry = ptbl->entry; local 255 struct efi_entry *entry; local [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 38 struct logger_entry entry __attribute__((aligned(4))); member in union:queued_entry_t::__anon237 48 int n = a->entry.sec - b->entry.sec; 52 return a->entry.nsec - b->entry.nsec; 74 void enqueue(queued_entry_t* entry) { argument 76 this->queue = entry; 79 while (*e && cmp(entry, *e) >= 0) { 82 entry->next = *e; 83 *e = entry; 164 AndroidLogEntry entry; local 235 queued_entry_t* entry = dev->queue; local 280 queued_entry_t* entry = new queued_entry_t(); local [all...] |
/system/core/sh/ |
H A D | exec.c | 90 struct tblentry *next; /* next entry in hash chain */ 93 char rehash; /* if set, cd done since entry created */ 284 * a percent sign) appears in the path entry then the global variable 337 struct cmdentry entry; local 362 find_command(name, &entry, DO_ERR, pathval()); 364 if (entry.cmdtype != CMDUNKNOWN) { /* if no error msg */ 427 find_command(char *name, struct cmdentry *entry, int act, const char *path) argument 447 entry->cmdtype = CMDUNKNOWN; 448 entry->u.index = -1; 451 entry 869 getcmdentry(char *name, struct cmdentry *entry) argument 890 addcmdentry(char *name, struct cmdentry *entry) argument 914 struct cmdentry entry; local 950 struct cmdentry entry; local [all...] |
/system/core/include/log/ |
H A D | logprint.h | 104 * entry allocated by caller. Pointers will point directly into buf 106 * Returns 0 on success and -1 on invalid wire format (entry will be 110 AndroidLogEntry *entry); 119 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, 148 const AndroidLogEntry *entry);
|