/system/core/libzipfile/ |
D | zipfile.c | 33 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 …]
|
D | centraldir.c | 64 read_central_directory_entry(Zipfile* file, Zipentry* entry, in read_central_directory_entry() argument 103 entry->compressionMethod = read_le_short(&p[0x0a]); in read_central_directory_entry() 107 entry->compressedSize = read_le_int(&p[0x14]); in read_central_directory_entry() 108 entry->uncompressedSize = read_le_int(&p[0x18]); in read_central_directory_entry() 109 entry->fileNameLength = read_le_short(&p[0x1c]); in read_central_directory_entry() 120 if (entry->fileNameLength != 0) { in read_central_directory_entry() 121 entry->fileName = p; in read_central_directory_entry() 123 entry->fileName = NULL; in read_central_directory_entry() 125 p += entry->fileNameLength; in read_central_directory_entry() 151 + entry->fileNameLength + extraFieldLength; in read_central_directory_entry() [all …]
|
D | test_zipfile.c | 16 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/libcutils/ |
D | hashmap.c | 115 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/core/liblog/ |
D | logprint.c | 351 AndroidLogEntry *entry) in android_log_processLogBuffer() argument 353 entry->tv_sec = buf->sec; in android_log_processLogBuffer() 354 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer() 355 entry->pid = buf->pid; in android_log_processLogBuffer() 356 entry->tid = buf->tid; in android_log_processLogBuffer() 401 entry->priority = buf->msg[0]; in android_log_processLogBuffer() 402 entry->tag = buf->msg + 1; in android_log_processLogBuffer() 403 entry->message = buf->msg + msgStart; in android_log_processLogBuffer() 404 entry->messageLen = msgEnd - msgStart; in android_log_processLogBuffer() 600 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, in android_log_processBinaryLogBuffer() argument [all …]
|
D | fake_log_device.c | 197 int entry = 0; in configureInitialState() local 257 logState->tagSet[entry].minPriority = minPrio; in configureInitialState() 258 strcpy(logState->tagSet[entry].tag, tagName); in configureInitialState() 260 entry, in configureInitialState() 261 logState->tagSet[entry].tag, in configureInitialState() 262 logState->tagSet[entry].minPriority); in configureInitialState() 263 entry++; in configureInitialState()
|
/system/media/camera/src/ |
D | camera_metadata.c | 286 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; in append_camera_metadata() local 287 for (size_t i = 0; i < src->entry_count; i++, entry++) { in append_camera_metadata() 288 if ( calculate_camera_metadata_entry_data_size(entry->type, in append_camera_metadata() 289 entry->count) > 0 ) { in append_camera_metadata() 290 entry->data.offset += dst->data_count; in append_camera_metadata() 349 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; in add_camera_metadata_entry_raw() local 350 entry->tag = tag; in add_camera_metadata_entry_raw() 351 entry->type = type; in add_camera_metadata_entry_raw() 352 entry->count = data_count; in add_camera_metadata_entry_raw() 355 memcpy(entry->data.value, data, in add_camera_metadata_entry_raw() [all …]
|
/system/core/gpttool/ |
D | gpttool.c | 84 struct efi_entry entry[EFI_ENTRIES]; member 121 struct efi_entry *entry = ptbl->entry; in add_ptn() local 133 for (n = 0; n < EFI_ENTRIES; n++, entry++) { in add_ptn() 134 if (entry->type_uuid[0]) in add_ptn() 136 memcpy(entry->type_uuid, partition_type_uuid, 16); in add_ptn() 137 get_uuid(entry->uniq_uuid); in add_ptn() 138 entry->first_lba = first; in add_ptn() 139 entry->last_lba = last; in add_ptn() 141 entry->name[n] = *name++; in add_ptn() 162 struct efi_entry *entry = ptbl->entry; in show() local [all …]
|
/system/core/logcat/ |
D | logcat.cpp | 38 struct logger_entry entry __attribute__((aligned(4))); member 48 int n = a->entry.sec - b->entry.sec; in cmp() 52 return a->entry.nsec - b->entry.nsec; in cmp() 74 void enqueue(queued_entry_t* entry) { in enqueue() 76 this->queue = entry; in enqueue() 79 while (*e && cmp(entry, *e) >= 0) { in enqueue() 82 entry->next = *e; in enqueue() 83 *e = entry; in enqueue() 164 AndroidLogEntry entry; in processBuffer() local 168 err = android_log_processBinaryLogBuffer(buf, &entry, g_eventTagMap, in processBuffer() [all …]
|
/system/core/adb/ |
D | log_service.c | 46 struct logger_entry *entry = (struct logger_entry *) buf; in log_service() local 51 ret = unix_read(logfd, entry, LOGGER_ENTRY_MAX_LEN); in log_service() 65 entry->msg[entry->len] = '\0'; in log_service() 67 write_log_entry(fd, entry); in log_service()
|
/system/core/sh/ |
D | exec.c | 337 struct cmdentry entry; in hashcmd() local 362 find_command(name, &entry, DO_ERR, pathval()); in hashcmd() 364 if (entry.cmdtype != CMDUNKNOWN) { /* if no error msg */ in hashcmd() 427 find_command(char *name, struct cmdentry *entry, int act, const char *path) in find_command() argument 447 entry->cmdtype = CMDUNKNOWN; in find_command() 448 entry->u.index = -1; in find_command() 451 entry->cmdtype = CMDNORMAL; in find_command() 452 entry->u.index = -1; in find_command() 455 entry->cmdtype = CMDNORMAL; in find_command() 456 entry->u.index = 0; in find_command() [all …]
|
/system/core/include/zipfile/ |
D | zipfile.h | 41 size_t get_zipentry_size(zipentry_t entry); 44 char* get_zipentry_name(zipentry_t entry); 48 int decompress_zipentry(zipentry_t entry, void* buf, int bufsize);
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 238 camera_metadata_entry entry; in TEST() local 240 0, &entry); in TEST() 242 EXPECT_EQ(0, (int)entry.index); in TEST() 243 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); in TEST() 244 EXPECT_EQ(TYPE_INT64, entry.type); in TEST() 245 EXPECT_EQ((size_t)1, entry.count); in TEST() 246 EXPECT_EQ(exposure_time, *entry.data.i64); in TEST() 249 1, &entry); in TEST() 251 EXPECT_EQ((size_t)1, entry.index); in TEST() 252 EXPECT_EQ(ANDROID_SENSOR_SENSITIVITY, entry.tag); in TEST() [all …]
|
/system/extras/ext4_utils/ |
D | contents.c | 256 struct ext4_xattr_entry *entry; in inode_set_selinux() local 270 entry = (struct ext4_xattr_entry *) (hdr+1); in inode_set_selinux() 271 memset(entry, 0, EXT4_XATTR_LEN(name_len)); in inode_set_selinux() 272 entry->e_name_index = EXT4_XATTR_INDEX_SECURITY; in inode_set_selinux() 273 entry->e_name_len = name_len; in inode_set_selinux() 274 memcpy(entry->e_name, XATTR_SELINUX_SUFFIX, name_len); in inode_set_selinux() 276 entry->e_value_size = cpu_to_le32(value_len); in inode_set_selinux() 277 min_offs = (char *)inode + info.inode_size - (char*) entry; in inode_set_selinux() 279 val = (char *)entry + min_offs - size; in inode_set_selinux() 280 entry->e_value_offs = cpu_to_le16(min_offs - size); in inode_set_selinux()
|
/system/core/include/cutils/ |
D | logprint.h | 110 AndroidLogEntry *entry); 119 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, 148 const AndroidLogEntry *entry);
|
/system/core/debuggerd/ |
D | tombstone.c | 479 struct logger_entry entry; in dump_log_file() member 509 struct logger_entry* entry = &log_entry.entry; in dump_log_file() local 511 if (entry->pid != (int32_t) pid) { in dump_log_file() 532 unsigned char prio = entry->msg[0]; in dump_log_file() 533 char* tag = entry->msg + 1; in dump_log_file() 545 time_t sec = (time_t) entry->sec; in dump_log_file() 554 timeBuf, entry->nsec / 1000000, entry->pid, entry->tid, in dump_log_file() 560 timeBuf, entry->nsec / 1000000, entry->pid, entry->tid, in dump_log_file()
|
/system/extras/tests/sdcard/ |
D | sysutil.cpp | 414 struct dirent *entry; in resetDirectory() local 417 while((entry = readdir(dir))) in resetDirectory() 419 if (0 == strcmp(entry->d_name, ".") in resetDirectory() 420 || 0 == strcmp(entry->d_name, "..") in resetDirectory() 421 || 0 == strcmp(entry->d_name, "lost+found")) in resetDirectory() 427 strcat(name_buffer, entry->d_name); in resetDirectory()
|
/system/media/camera/include/system/ |
D | camera_metadata.h | 317 camera_metadata_entry_t *entry); 330 camera_metadata_entry_t *entry); 338 camera_metadata_ro_entry_t *entry);
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.h | 94 : entry(a), when(w) { } in cache_entry_t() 95 sp<Assembly> entry; member
|
D | CodeCache.cpp | 172 r = e.entry; in lookup() 195 mCacheInUse -= e.entry->size(); in cache()
|
/system/core/init/ |
D | property_service.c | 533 struct dirent* entry; in load_persistent_properties() local 539 while ((entry = readdir(dir)) != NULL) { in load_persistent_properties() 540 if (strncmp("persist.", entry->d_name, strlen("persist."))) in load_persistent_properties() 543 if (entry->d_type != DT_REG) in load_persistent_properties() 547 snprintf(path, sizeof(path), "%s/%s", PERSISTENT_PROPERTY_DIR, entry->d_name); in load_persistent_properties() 553 property_set(entry->d_name, value); in load_persistent_properties()
|
D | bootchart.c | 245 struct dirent* entry; in do_log_procs() local 249 while ((entry = readdir(dir)) != NULL) { in do_log_procs() 252 int pid = strtol( entry->d_name, &end, 10); in do_log_procs() 253 if (end != NULL && end > entry->d_name && *end == 0) { in do_log_procs()
|
/system/core/libcorkscrew/arch-arm/ |
D | backtrace-arm.c | 153 uintptr_t entry = exidx_start + index * 8; in get_exception_handler() local 156 if (!try_get_word(memory, entry, &entry_prel_pc)) { in get_exception_handler() 159 uintptr_t entry_pc = prel_to_absolute(entry, entry_prel_pc); in get_exception_handler() 166 uintptr_t next_entry = entry + 8; in get_exception_handler() 179 uintptr_t entry_handler_ptr = entry + 4; in get_exception_handler()
|
/system/core/toolbox/ |
D | du.c | 243 static struct entry { in linkchk() struct 268 struct entry *ohtable; in linkchk()
|
/system/core/fastboot/ |
D | fastboot.c | 363 zipentry_t entry; in unzip_file() local 366 entry = lookup_zipentry(zip, name); in unzip_file() 367 if (entry == NULL) { in unzip_file() 372 *sz = get_zipentry_size(entry); in unzip_file() 382 if (decompress_zipentry(entry, data, datasz)) { in unzip_file()
|