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

12

/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
118 Zipentry* entry = (Zipentry*)e; local
135 Zipentry* entry = zip->entries; local
150 Zipentry* entry = (Zipentry*)*cookie; local
[all...]
H A Dcentraldir.c64 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 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/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/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/media/camera/src/
H A Dcamera_metadata.c27 * A single metadata entry, storing an array of values of a given type. If the
264 camera_metadata_buffer_entry_t *entry = dst->entries + i; local
265 if ( camera_metadata_type_size[entry->type] * entry->count > 4 ) {
266 entry->data.offset += dst->data_count;
322 camera_metadata_buffer_entry_t *entry = dst->entries + dst->entry_count; local
323 entry->tag = tag;
324 entry->type = type;
325 entry->count = data_count;
328 memcpy(entry
378 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument
399 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument
431 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument
639 camera_metadata_buffer_entry_t *entry = metadata->entries + i; local
[all...]
/system/core/liblog/
H A Dlogprint.c345 * 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...]
H A Dfake_log_device.c197 int entry = 0; local
257 logState->tagSet[entry].minPriority = minPrio;
258 strcpy(logState->tagSet[entry].tag, tagName);
259 TRACE("+++ entry %d: %s:%d\n",
260 entry,
261 logState->tagSet[entry].tag,
262 logState->tagSet[entry].minPriority);
263 entry++;
/system/core/adb/
H A Dlog_service.c46 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 Dgpttool.c84 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 Dlogcat.cpp38 struct logger_entry entry __attribute__((aligned(4))); member in union:queued_entry_t::__anon469
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 Dexec.c90 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/cutils/
H A Dlogprint.h104 * 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);
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp233 camera_metadata_entry entry; local
235 0, &entry);
237 EXPECT_EQ(0, (int)entry.index);
238 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag);
239 EXPECT_EQ(TYPE_INT64, entry.type);
240 EXPECT_EQ((size_t)1, entry.count);
241 EXPECT_EQ(exposure_time, *entry.data.i64);
244 1, &entry);
246 EXPECT_EQ((size_t)1, entry.index);
247 EXPECT_EQ(ANDROID_SENSOR_SENSITIVITY, entry
326 camera_metadata_entry entry; local
882 camera_metadata_entry_t entry; local
[all...]
/system/extras/ext4_utils/
H A Dcontents.c88 of each directory entry into dentries[i].inode, to be filled in later
89 when the inode for the entry is allocated. Returns the inode number of the
264 struct ext4_xattr_entry *entry; local
278 entry = (struct ext4_xattr_entry *) (hdr+1);
279 memset(entry, 0, EXT4_XATTR_LEN(name_len));
280 entry->e_name_index = EXT4_XATTR_INDEX_SECURITY;
281 entry->e_name_len = name_len;
282 memcpy(entry->e_name, XATTR_SELINUX_SUFFIX, name_len);
284 entry->e_value_size = cpu_to_le32(value_len);
285 min_offs = (char *)inode + info.inode_size - (char*) entry;
[all...]
/system/core/debuggerd/
H A Dtombstone.c362 /* map would be between "prev" and this entry */
479 struct logger_entry entry; member in union:__anon289
509 struct logger_entry* entry = &log_entry.entry; local
511 if (entry->pid != (int32_t) pid) {
532 unsigned char prio = entry->msg[0];
533 char* tag = entry->msg + 1;
545 time_t sec = (time_t) entry->sec;
554 timeBuf, entry->nsec / 1000000, entry
[all...]
/system/media/camera/include/system/
H A Dcamera_metadata.h74 * A reference to a metadata entry in a buffer.
78 * number of entries in data of the entry's type, not a count of bytes.
96 * A read-only reference to a metadata entry in a buffer. Identical to
115 * Size in bytes of each entry type
121 * Human-readable name of each entry type
127 * Main definitions for the metadata entry and array structures
135 * has a fixed capacity for entries and for extra data. A new entry uses up one
136 * entry slot, and possibly some amount of data capacity; the function
138 * capacity that would be used up by an entry.
159 * and extra data. The entry_capacity is measured in entry count
[all...]
/system/extras/tests/sdcard/
H A Dsysutil.cpp414 struct dirent *entry; local
417 while((entry = readdir(dir)))
419 if (0 == strcmp(entry->d_name, ".")
420 || 0 == strcmp(entry->d_name, "..")
421 || 0 == strcmp(entry->d_name, "lost+found"))
427 strcat(name_buffer, entry->d_name);
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.h94 : entry(a), when(w) { }
95 sp<Assembly> entry; member in struct:android::CodeCache::cache_entry_t
H A DCodeCache.cpp172 r = e.entry;
195 mCacheInUse -= e.entry->size();
/system/core/init/
H A Dproperty_service.c533 struct dirent* entry; local
539 while ((entry = readdir(dir)) != NULL) {
540 if (strncmp("persist.", entry->d_name, strlen("persist.")))
543 if (entry->d_type != DT_REG)
547 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, entry->d_name);
553 property_set(entry->d_name, value);
H A Dbootchart.c245 struct dirent* entry; local
249 while ((entry = readdir(dir)) != NULL) {
252 int pid = strtol( entry->d_name, &end, 10);
253 if (end != NULL && end > entry->d_name && *end == 0) {
/system/core/toolbox/
H A Ddu.c243 static struct entry { struct
268 struct entry *ohtable;
308 /* Insert the current entry into hashtable */
/system/extras/fatblock/
H A Dfs.c102 static void fs_set_fat(struct fs *fs, cluster_t cluster, fat_entry_t entry) argument
106 fs->fat[cluster] = htole32(entry);
/system/core/fastboot/
H A Dfastboot.c363 zipentry_t entry; local
366 entry = lookup_zipentry(zip, name);
367 if (entry == NULL) {
372 *sz = get_zipentry_size(entry);
382 if (decompress_zipentry(entry, data, datasz)) {

Completed in 143 milliseconds

12