/system/core/adb/ |
H A D | file_sync_client.c | 316 zipentry_t entry; local 360 entry = lookup_zipentry(zip, "AndroidManifest.xml"); 362 if (entry == NULL) {
|
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/debuggerd/ |
H A D | tombstone.c | 362 /* 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/core/fastboot/ |
H A D | fastboot.c | 363 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)) {
|
/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/include/cutils/ |
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);
|
/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/init/ |
H A D | bootchart.c | 245 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) {
|
H A D | init.c | 113 char *entry = malloc(len); local 114 snprintf(entry, len, "%s=%s", key, val); 115 ENV[n] = entry;
|
H A D | property_service.c | 533 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);
|
/system/core/libcorkscrew/arch-arm/ |
H A D | backtrace-arm.c | 153 uintptr_t entry = exidx_start + index * 8; local 156 if (!try_get_word(memory, entry, &entry_prel_pc)) { 159 uintptr_t entry_pc = prel_to_absolute(entry, entry_prel_pc); 166 uintptr_t next_entry = entry + 8; 179 uintptr_t entry_handler_ptr = entry + 4; 542 // Add a final entry for the LR if it looks sane and call it good.
|
/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/core/liblog/ |
H A D | fake_log_device.c | 197 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++;
|
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/core/libpixelflinger/codeflinger/ |
H A D | CodeCache.cpp | 172 r = e.entry; 195 mCacheInUse -= e.entry->size();
|
H A D | CodeCache.h | 94 : entry(a), when(w) { } 95 sp<Assembly> entry; member in struct:android::CodeCache::cache_entry_t
|
/system/core/libzipfile/ |
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);
|
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...] |
/system/core/logcat/ |
H A D | logcat.cpp | 38 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/sdcard/ |
H A D | sdcard.c | 256 struct dirent* entry; local 262 while ((entry = readdir(dir))) { 263 if (!strcasecmp(entry->d_name, name)) { 265 memcpy(actual, entry->d_name, namelen);
|
/system/core/sh/ |
H A D | eval.c | 1104 struct cmdentry entry; local 1108 find_command(n->ncmd.args->narg.text, &entry, 0,
|
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/toolbox/ |
H A D | du.c | 243 static struct entry { struct 268 struct entry *ohtable; 308 /* Insert the current entry into hashtable */
|
/system/extras/ext4_utils/ |
H A D | contents.c | 88 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...] |