/system/extras/tests/framebuffer/ |
H A D | refresh.c | 49 struct fb_var_screeninfo info; local 50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) 53 info.reserved[0] = 0; 54 info.reserved[1] = 0; 55 info.reserved[2] = 0; 56 info.xoffset = 0; 57 info.yoffset = 0; 58 info.bits_per_pixel = 16; 59 info.activate = FB_ACTIVATE_NOW; 61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) [all...] |
/system/extras/ext4_utils/ |
H A D | ext4_sb.c | 21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) argument 31 info->block_size = 1024 << sb->s_log_block_size; 32 info->blocks_per_group = sb->s_blocks_per_group; 33 info->inodes_per_group = sb->s_inodes_per_group; 34 info->inode_size = sb->s_inode_size; 35 info->inodes = sb->s_inodes_count; 36 info->feat_ro_compat = sb->s_feature_ro_compat; 37 info->feat_compat = sb->s_feature_compat; 38 info->feat_incompat = sb->s_feature_incompat; 39 info [all...] |
H A D | make_ext4fs.c | 239 dentries[i].link = calloc(info.block_size, 1); 240 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1); 339 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; 349 return info.block_size * 8; 354 return DIV_ROUND_UP(info.len, info.block_size) / 4; 359 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); 360 u32 block_groups = DIV_ROUND_UP(blocks, info [all...] |
H A D | ext4_utils.c | 49 struct fs_info info; variable in typeref:struct:fs_info 127 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) 177 /* Compute the rest of the parameters of the filesystem from the basic info */ 180 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; 181 aux_info.len_blocks = info.len / info.block_size; 182 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, 183 info.block_size); 185 info [all...] |
H A D | ext2simg.c | 42 extern struct fs_info info; 64 block_bitmap = malloc(info.block_size); 70 info.block_size * aux_info.first_data_block, 0); 73 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group; 74 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); 76 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap, 81 ret = read(fd, block_bitmap, info.block_size); 84 if (ret != (int)info.block_size) 95 (u64)info.block_size * start_block, 96 info [all...] |
H A D | indirect.c | 31 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS) 45 len = min(region_len * info.block_size, backing_len); 123 u32 *ind_block_data = calloc(info.block_size, 1); 124 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, 153 u32 *dind_block_data = calloc(info.block_size, 1); 154 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size, 202 u32 *ind_block_data = calloc(info.block_size, 1); 203 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, 234 u32 *dind_block_data = calloc(info.block_size, 1); 235 sparse_file_add_data(ext4_sparse_file, dind_block_data, info [all...] |
H A D | ext4fixup.c | 80 group = (old_inum - 1) / info.inodes_per_group; 81 offset = (old_inum -1) % info.inodes_per_group; 172 bg_num = (inum-1) / info.inodes_per_group; 173 bg_offset = (inum-1) % info.inodes_per_group; 175 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) + 176 (bg_offset * info.inode_size); 195 off = block_num * info.block_size; 201 len=read(fd, block, info.block_size); 202 if (len != info.block_size) { 218 off = block_num * info [all...] |
H A D | make_ext4fs_main.c | 50 extern struct fs_info info; 90 info.len = parse_num(optarg); 93 info.journal_blocks = parse_num(optarg); 96 info.block_size = parse_num(optarg); 99 info.blocks_per_group = parse_num(optarg); 102 info.inodes = parse_num(optarg); 105 info.inode_size = parse_num(optarg); 108 info.label = optarg; 132 info.no_journal = 1;
|
/system/core/toolbox/ |
H A D | lsof.c | 72 static void print_type(char *type, struct pid_info_t* info) argument 77 strlcat(info->path, type, sizeof(info->path)); 78 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) { 82 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno)); 92 info->cmdline, info->pid, info->user, type, 96 info->path[info 100 print_maps(struct pid_info_t* info) argument 132 print_fds(struct pid_info_t* info) argument 167 struct pid_info_t info; local [all...] |
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 127 static void dbg_print_info_struct(struct f2fs_info *info) argument 133 SLOGD("blocks_per_segment: %"PRIu64, info->blocks_per_segment); 134 SLOGD("block_size: %d", info->block_size); 135 SLOGD("sit_bmp loc: %p", info->sit_bmp); 136 SLOGD("sit_bmp_size: %d", info->sit_bmp_size); 137 SLOGD("blocks_per_sit: %"PRIu64, info->blocks_per_sit); 138 SLOGD("sit_blocks loc: %p", info->sit_blocks); 139 SLOGD("sit_sums loc: %p", info->sit_sums); 140 SLOGD("sit_sums num: %d", le16_to_cpu(info->sit_sums->n_sits)); 142 for(i = 0; i < (le16_to_cpu(info 259 get_valid_checkpoint_info(int fd, struct f2fs_super_block *sb, struct f2fs_checkpoint **cp, struct f2fs_info *info) argument 312 gather_sit_info(int fd, struct f2fs_info *info) argument 345 sum_blk_addr(struct f2fs_checkpoint *cp, struct f2fs_info *info, int base, int type) argument 351 get_sit_summary(int fd, struct f2fs_info *info, struct f2fs_checkpoint *cp) argument 383 struct f2fs_info *info; local 455 free_f2fs_info(struct f2fs_info *info) argument 470 get_num_blocks_used(struct f2fs_info *info) argument 485 run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) argument 546 struct f2fs_info *info; member in struct:privdata 612 struct f2fs_info *info = generate_f2fs_info(infd); local [all...] |
H A D | f2fs_sparseblock.h | 64 u64 get_num_blocks_used(struct f2fs_info *info); 66 void free_f2fs_info(struct f2fs_info *info); 68 int run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data);
|
/system/core/fastboot/ |
H A D | usbtest.c | 50 int printifc(usb_ifc_info *info) argument 53 info->dev_class, info->dev_subclass, info->dev_protocol, 54 info->dev_vendor, info->dev_product); 56 info->ifc_class, info->ifc_subclass, info->ifc_protocol, 57 info 62 match_null(usb_ifc_info *info) argument 71 match_zero(usb_ifc_info *info) argument 80 match_loop(usb_ifc_info *info) argument [all...] |
H A D | usb_osx.c | 57 usb_ifc_info info; member in struct:usb_handle 171 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || 172 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || 173 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) 179 handle->info.has_bulk_in = 0; 180 handle->info.has_bulk_out = 0; 201 handle->info.has_bulk_in = 1; 204 handle->info.has_bulk_out = 1; 208 if (handle->info.ifc_protocol == 0x01) { 215 if (handle->info [all...] |
H A D | usb_linux.c | 122 struct usb_ifc_info info; local 140 info.dev_vendor = dev->idVendor; 141 info.dev_product = dev->idProduct; 142 info.dev_class = dev->bDeviceClass; 143 info.dev_subclass = dev->bDeviceSubClass; 144 info.dev_protocol = dev->bDeviceProtocol; 145 info.writable = writable; 147 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); 155 info [all...] |
H A D | usb_windows.c | 279 struct usb_ifc_info info; local 303 info.dev_vendor = device_desc.idVendor; 304 info.dev_product = device_desc.idProduct; 305 info.dev_class = device_desc.bDeviceClass; 306 info.dev_subclass = device_desc.bDeviceSubClass; 307 info.dev_protocol = device_desc.bDeviceProtocol; 308 info.ifc_class = interf_desc.bInterfaceClass; 309 info.ifc_subclass = interf_desc.bInterfaceSubClass; 310 info.ifc_protocol = interf_desc.bInterfaceProtocol; 311 info [all...] |
/system/core/libsync/ |
H A D | sync.c | 55 struct sync_fence_info_data *info; local 58 info = malloc(4096); 59 if (info == NULL) 62 info->len = 4096; 63 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info); 65 free(info); 69 return info; 72 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, argument 76 itr = (struct sync_pt_info *) info->pt_info; 80 if ((__u8 *)itr - (__u8 *)info > 86 sync_fence_info_free(struct sync_fence_info_data *info) argument [all...] |
/system/extras/squashfs_utils/ |
H A D | squashfs_utils.c | 30 int squashfs_parse_sb(char *blk_device, struct squashfs_info *info) { argument 53 info->block_size = sb.block_size; 54 info->inodes = sb.inodes; 55 info->bytes_used = sb.bytes_used; 57 info->bytes_used_4K_padded =
|
H A D | squashfs_utils.h | 33 int squashfs_parse_sb(char *blk_device, struct squashfs_info *info);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 129 static int dhcp_configure(const char *ifname, dhcp_info *info) argument 131 last_good_info = *info; 132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 133 info->dns1, info->dns2); 151 void dump_dhcp_info(dhcp_info *info) argument 155 dhcp_type_to_name(info->type), info 166 decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument 395 dhcp_info info; local [all...] |
/system/media/audio_utils/ |
H A D | tinysndfile.c | 35 SF_INFO info; member in struct:SNDFILE_ 64 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument 78 handle->info.format = SF_FORMAT_WAV; 210 handle->info.samplerate = samplerate; 211 handle->info.channels = channels; 214 handle->info.format |= SF_FORMAT_PCM_U8; 217 handle->info.format |= SF_FORMAT_PCM_16; 220 handle->info.format |= SF_FORMAT_PCM_24; 224 handle->info.format |= SF_FORMAT_FLOAT; 226 handle->info 297 sf_open_write(const char *path, SF_INFO *info) argument 378 sf_open(const char *path, int mode, SF_INFO *info) argument [all...] |
/system/core/libutils/ |
H A D | misc.cpp | 56 sysprop_change_callback_info info; local 57 info.callback = cb; 58 info.priority = priority; 62 gSyspropList->insertAt(info, i); 68 gSyspropList->add(info);
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 48 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, 50 void sync_fence_info_free(struct sync_fence_info_data *info);
|
/system/core/run-as/ |
H A D | run-as.c | 113 PackageInfo info; local 151 if (get_package_info(pkgname, userId, &info) < 0) { 156 if ((UID_MAX - info.uid) / AID_USER < (uid_t)userId) { 161 userAppId = (AID_USER * userId) + info.uid; 169 if (!info.isDebuggable) { 174 if (check_data_path(info.dataDir, userAppId) < 0) { 192 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) { 197 if (TEMP_FAILURE_RETRY(chdir(info.dataDir)) < 0) {
|
H A D | package.h | 40 PackageInfo* info);
|
H A D | package.c | 425 get_package_info(const char* pkgName, uid_t userId, PackageInfo *info) argument 433 info->uid = 0; 434 info->isDebuggable = 0; 435 info->dataDir[0] = '\0'; 436 info->seinfo[0] = '\0'; 480 info->uid = (uid_t) uid; 490 info->isDebuggable = 0; 493 info->isDebuggable = 1; 515 p = string_copy(info->dataDir, sizeof info [all...] |