/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/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 */
|
H A D | file_sync_client.c | 316 zipentry_t entry; local 360 entry = lookup_zipentry(zip, "AndroidManifest.xml"); 362 if (entry == NULL) {
|
/system/core/libzipfile/ |
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 | 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 | 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/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/libpixelflinger/codeflinger/ |
H A D | CodeCache.h | 96 : entry(a), when(w) { } 97 sp<Assembly> entry; member in struct:android::CodeCache::cache_entry_t
|
/system/core/healthd/ |
H A D | BatteryMonitor.cpp | 283 struct dirent* entry; local 285 while ((entry = readdir(dir))) { 286 const char* name = entry->d_name;
|
/system/core/include/utils/ |
H A D | BasicHashtable.h | 33 // may need to seek further along the chain to find the entry. 36 // The present flag indicates that the bucket contains an initialized entry value. 41 // hash code of the entry's key. 48 // Storage for the entry begins here. 49 char entry[0]; member in struct:android::BasicHashtableImpl::Bucket 70 size_t add(hash_t hash, const void* __restrict__ entry); 74 const size_t mBucketSize; // number of bytes per bucket including the entry 75 const bool mHasTrivialDestructor; // true if the entry type does not require destruction 93 virtual void initializeBucketEntry(Bucket& bucket, const void* __restrict__ entry) const = 0; 157 * TEntry: The entry typ 293 add(hash_t hash, const TEntry& entry) argument 389 memcpy(&entryFor(bucket), entry, sizeof(TEntry)); local [all...] |
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/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/libutils/ |
H A D | BasicHashtable.cpp | 152 size_t BasicHashtableImpl::add(hash_t hash, const void* entry) { argument 183 initializeBucketEntry(*bucket, entry); 229 initializeBucketEntry(*toBucket, fromBucket.entry); 284 initializeBucketEntry(toBucket, fromBucket.entry);
|
H A D | ProcessCallStack.cpp | 129 struct dirent entry; local 157 while ((code = readdir_r(dp, &entry, &ep)) == 0 && ep != NULL) {
|
/system/core/libutils/tests/ |
H A D | BasicHashtable_test.cpp | 145 static void getKeyValue(const TEntry& entry, int* key, int* value); 147 template <> void getKeyValue(const SimpleEntry& entry, int* key, int* value) { argument 148 *key = entry.key; 149 *value = entry.value; 152 template <> void getKeyValue(const ComplexEntry& entry, int* key, int* value) { argument 153 *key = entry.key.k; 154 *value = entry.value.v; 397 const SimpleEntry& entry = h.entryAt(index); local 398 ASSERT_GE(entry.key, 0); 399 ASSERT_LT(entry [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/fatblock/ |
H A D | fs.c | 102 static void fs_set_fat(struct fs *fs, cluster_t cluster, fat_entry_t entry) argument 106 fs->fat[cluster] = htole32(entry);
|
/system/media/camera/tests/ |
H A D | camera_metadata_tests.cpp | 257 camera_metadata_entry entry; local 259 0, &entry); 261 EXPECT_EQ(0, (int)entry.index); 262 EXPECT_EQ(ANDROID_SENSOR_EXPOSURE_TIME, entry.tag); 263 EXPECT_EQ(TYPE_INT64, entry.type); 264 EXPECT_EQ((size_t)1, entry.count); 265 EXPECT_EQ(exposure_time, *entry.data.i64); 268 1, &entry); 270 EXPECT_EQ((size_t)1, entry.index); 271 EXPECT_EQ(ANDROID_SENSOR_SENSITIVITY, entry 350 camera_metadata_entry entry; local 811 camera_metadata_ro_entry_t entry; local 946 camera_metadata_entry_t entry; local [all...] |
/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/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 | property_service.c | 484 struct dirent* entry; local 491 while ((entry = readdir(dir)) != NULL) { 492 if (strncmp("persist.", entry->d_name, strlen("persist."))) 495 if (entry->d_type != DT_REG) 499 fd = openat(dir_fd, entry->d_name, O_RDONLY | O_NOFOLLOW); 502 entry->d_name, errno); 506 ERROR("fstat on property file \"%s\" failed errno: %d\n", entry->d_name, errno); 518 entry->d_name, sb.st_uid, sb.st_gid, sb.st_nlink, sb.st_mode); 526 property_set(entry->d_name, value); 529 entry [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/extras/ext4_utils/ |
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/extras/tests/sdcard/ |
H A D | sysutil.cpp | 414 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/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.
|