Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 59) sorted by relevance

123

/system/extras/tests/framebuffer/
Drefresh.c49 struct fb_var_screeninfo info; in main() local
50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main()
53 info.reserved[0] = 0; in main()
54 info.reserved[1] = 0; in main()
55 info.reserved[2] = 0; in main()
56 info.xoffset = 0; in main()
57 info.yoffset = 0; in main()
58 info.bits_per_pixel = 16; in main()
59 info.activate = FB_ACTIVATE_NOW; in main()
61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) { in main()
[all …]
/system/core/toolbox/
Dlsof.c71 static void print_type(char *type, struct pid_info_t* info) in print_type() argument
76 strlcat(info->path, type, sizeof(info->path)); in print_type()
77 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) { in print_type()
81 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno)); in print_type()
91 info->cmdline, info->pid, info->user, type, in print_type()
95 info->path[info->parent_length] = '\0'; in print_type()
99 static void print_maps(struct pid_info_t* info) in print_maps() argument
107 strlcat(info->path, "maps", sizeof(info->path)); in print_maps()
109 maps = fopen(info->path, "r"); in print_maps()
120 info->cmdline, info->pid, info->user, "mem", in print_maps()
[all …]
Dschedtop.c96 struct thread_info *info; in add_thread() local
98 info = get_item(&processes); in add_thread()
100 info = get_item(&threads); in add_thread()
101 info->pid = pid; in add_thread()
102 info->tid = tid; in add_thread()
111 &info->exec_time, &info->delay_time, &info->run_count) != 3) in add_thread()
114 proc_info->exec_time += info->exec_time; in add_thread()
115 proc_info->delay_time += info->delay_time; in add_thread()
116 proc_info->run_count += info->run_count; in add_thread()
143 if (name_len >= sizeof(info->name)) in add_thread()
[all …]
/system/extras/f2fs_utils/
Df2fs_sparseblock.c124 static void dbg_print_info_struct(struct f2fs_info *info) in dbg_print_info_struct() argument
130 SLOGD("blocks_per_segment: %"PRIu64, info->blocks_per_segment); in dbg_print_info_struct()
131 SLOGD("block_size: %d", info->block_size); in dbg_print_info_struct()
132 SLOGD("sit_bmp loc: %p", info->sit_bmp); in dbg_print_info_struct()
133 SLOGD("sit_bmp_size: %d", info->sit_bmp_size); in dbg_print_info_struct()
134 SLOGD("blocks_per_sit: %"PRIu64, info->blocks_per_sit); in dbg_print_info_struct()
135 SLOGD("sit_blocks loc: %p", info->sit_blocks); in dbg_print_info_struct()
136 SLOGD("sit_sums loc: %p", info->sit_sums); in dbg_print_info_struct()
137 SLOGD("sit_sums num: %d", le16_to_cpu(info->sit_sums->n_sits)); in dbg_print_info_struct()
139 for(i = 0; i < (le16_to_cpu(info->sit_sums->n_sits)); i++) { in dbg_print_info_struct()
[all …]
/system/core/fastboot/
Dusbtest.c50 int printifc(usb_ifc_info *info) in printifc() argument
53 info->dev_class, info->dev_subclass, info->dev_protocol, in printifc()
54 info->dev_vendor, info->dev_product); in printifc()
56 info->ifc_class, info->ifc_subclass, info->ifc_protocol, in printifc()
57 info->has_bulk_in ? " in" : "", in printifc()
58 info->has_bulk_out ? " out" : ""); in printifc()
62 int match_null(usb_ifc_info *info) in match_null() argument
64 if(info->dev_vendor != 0x18d1) return -1; in match_null()
65 if(info->ifc_class != 0xff) return -1; in match_null()
66 if(info->ifc_subclass != 0xfe) return -1; in match_null()
[all …]
Dusb_osx.c57 usb_ifc_info info; member
171 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || in try_interfaces()
172 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || in try_interfaces()
173 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) in try_interfaces()
179 handle->info.has_bulk_in = 0; in try_interfaces()
180 handle->info.has_bulk_out = 0; in try_interfaces()
201 handle->info.has_bulk_in = 1; in try_interfaces()
204 handle->info.has_bulk_out = 1; in try_interfaces()
208 if (handle->info.ifc_protocol == 0x01) { in try_interfaces()
215 if (handle->info.has_bulk_in && handle->info.has_bulk_out) { in try_interfaces()
[all …]
Dusb_linux.c122 struct usb_ifc_info info; in filter_usb_device() local
140 info.dev_vendor = dev->idVendor; in filter_usb_device()
141 info.dev_product = dev->idProduct; in filter_usb_device()
142 info.dev_class = dev->bDeviceClass; in filter_usb_device()
143 info.dev_subclass = dev->bDeviceSubClass; in filter_usb_device()
144 info.dev_protocol = dev->bDeviceProtocol; in filter_usb_device()
145 info.writable = writable; in filter_usb_device()
147 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
155 info.serial_number[0] = '\0'; in filter_usb_device()
166 int chars_read = read(fd, info.serial_number, in filter_usb_device()
[all …]
Dusb_windows.c278 struct usb_ifc_info info; in recognized_device() local
302 info.dev_vendor = device_desc.idVendor; in recognized_device()
303 info.dev_product = device_desc.idProduct; in recognized_device()
304 info.dev_class = device_desc.bDeviceClass; in recognized_device()
305 info.dev_subclass = device_desc.bDeviceSubClass; in recognized_device()
306 info.dev_protocol = device_desc.bDeviceProtocol; in recognized_device()
307 info.ifc_class = interf_desc.bInterfaceClass; in recognized_device()
308 info.ifc_subclass = interf_desc.bInterfaceSubClass; in recognized_device()
309 info.ifc_protocol = interf_desc.bInterfaceProtocol; in recognized_device()
310 info.writable = 1; in recognized_device()
[all …]
/system/extras/ext4_utils/
Dext4_sb.c21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) in ext4_parse_sb() argument
31 info->block_size = 1024 << sb->s_log_block_size; in ext4_parse_sb()
32 info->blocks_per_group = sb->s_blocks_per_group; in ext4_parse_sb()
33 info->inodes_per_group = sb->s_inodes_per_group; in ext4_parse_sb()
34 info->inode_size = sb->s_inode_size; in ext4_parse_sb()
35 info->inodes = sb->s_inodes_count; in ext4_parse_sb()
36 info->feat_ro_compat = sb->s_feature_ro_compat; in ext4_parse_sb()
37 info->feat_compat = sb->s_feature_compat; in ext4_parse_sb()
38 info->feat_incompat = sb->s_feature_incompat; in ext4_parse_sb()
39 info->bg_desc_reserve_blocks = sb->s_reserved_gdt_blocks; in ext4_parse_sb()
[all …]
Dext4_utils.c46 struct fs_info info; variable
86 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
139 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
140 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
141 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
142 info.block_size); in ext4_create_fs_aux_info()
144 info.blocks_per_group); in ext4_create_fs_aux_info()
145 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
151 info.block_size); in ext4_create_fs_aux_info()
155 u32 last_group_size = aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info()
[all …]
Dmake_ext4fs.c231 dentries[i].link = calloc(info.block_size, 1); in build_directory_structure()
232 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1); in build_directory_structure()
331 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; in compute_journal_blocks()
341 return info.block_size * 8; in compute_blocks_per_group()
346 return DIV_ROUND_UP(info.len, info.block_size) / 4; in compute_inodes()
351 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); in compute_inodes_per_group()
352 u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group); in compute_inodes_per_group()
353 u32 inodes = DIV_ROUND_UP(info.inodes, block_groups); in compute_inodes_per_group()
354 inodes = EXT4_ALIGN(inodes, (info.block_size / info.inode_size)); in compute_inodes_per_group()
359 info.inodes = inodes * block_groups; in compute_inodes_per_group()
[all …]
Dext2simg.c42 extern struct fs_info info;
64 block_bitmap = malloc(info.block_size); in build_sparse_ext()
70 info.block_size * aux_info.first_data_block, 0); in build_sparse_ext()
73 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group; in build_sparse_ext()
74 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); in build_sparse_ext()
76 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap, in build_sparse_ext()
81 ret = read(fd, block_bitmap, info.block_size); in build_sparse_ext()
84 if (ret != (int)info.block_size) in build_sparse_ext()
95 (u64)info.block_size * start_block, in build_sparse_ext()
96 info.block_size * len_blocks, start_block); in build_sparse_ext()
[all …]
Dindirect.c31 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS) in create_backing()
45 len = min(region_len * info.block_size, backing_len); in create_backing()
123 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
124 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, in fill_dindirect_block()
153 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
154 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size, in fill_tindirect_block()
202 u32 *ind_block_data = calloc(info.block_size, 1); in inode_attach_indirect_blocks()
203 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, in inode_attach_indirect_blocks()
234 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_dindirect_blocks()
235 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size, in inode_attach_dindirect_blocks()
[all …]
Dext4fixup.c80 group = (old_inum - 1) / info.inodes_per_group; in compute_new_inum()
81 offset = (old_inum -1) % info.inodes_per_group; in compute_new_inum()
172 bg_num = (inum-1) / info.inodes_per_group; in read_inode()
173 bg_offset = (inum-1) % info.inodes_per_group; in read_inode()
175 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) + in read_inode()
176 (bg_offset * info.inode_size); in read_inode()
195 off = block_num * info.block_size; in read_block()
201 len=read(fd, block, info.block_size); in read_block()
202 if (len != info.block_size) { in read_block()
218 off = block_num * info.block_size; in write_block()
[all …]
Dmake_ext4fs_main.c48 extern struct fs_info info;
86 info.len = parse_num(optarg); in main()
89 info.journal_blocks = parse_num(optarg); in main()
92 info.block_size = parse_num(optarg); in main()
95 info.blocks_per_group = parse_num(optarg); in main()
98 info.inodes = parse_num(optarg); in main()
101 info.inode_size = parse_num(optarg); in main()
104 info.label = optarg; in main()
125 info.no_journal = 1; in main()
Dcontents.c55 if (len % info.block_size + dentry_len > info.block_size) in dentry_size()
56 len += info.block_size - (len % info.block_size); in dentry_size()
71 u32 start_block = *offset / info.block_size; in add_dentry()
72 u32 end_block = (*offset + rec_len - 1) / info.block_size; in add_dentry()
78 prev->rec_len += end_block * info.block_size - *offset; in add_dentry()
79 *offset = end_block * info.block_size; in add_dentry()
111 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory()
112 len = blocks * info.block_size; in make_directory()
115 inode_num = allocate_inode(info); in make_directory()
183 inode_num = allocate_inode(info); in make_file()
[all …]
Dextent.c43 len = min(region_len * info.block_size, backing_len); in extent_create_backing()
65 len = min(region_len * info.block_size, backing_len); in extent_create_backing_file()
77 u32 block_len = DIV_ROUND_UP(len, info.block_size); in do_inode_allocate_extents()
123 u8 *data = calloc(info.block_size, 1); in do_inode_allocate_extents()
127 sparse_file_add_data(ext4_sparse_file, data, info.block_size, in do_inode_allocate_extents()
130 if (((int)(info.block_size - sizeof(struct ext4_extent_header) / in do_inode_allocate_extents()
140 hdr->eh_max = (info.block_size - sizeof(struct ext4_extent_header)) / in do_inode_allocate_extents()
164 blocks = (u64)block_len * info.block_size / 512; in do_inode_allocate_extents()
/system/core/libsync/
Dsync.c54 struct sync_fence_info_data *info; in sync_fence_info() local
57 info = malloc(4096); in sync_fence_info()
58 if (info == NULL) in sync_fence_info()
61 info->len = 4096; in sync_fence_info()
62 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info); in sync_fence_info()
64 free(info); in sync_fence_info()
68 return info; in sync_fence_info()
71 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, in sync_pt_info() argument
75 itr = (struct sync_pt_info *) info->pt_info; in sync_pt_info()
79 if ((__u8 *)itr - (__u8 *)info >= (int)info->len) in sync_pt_info()
[all …]
Dsync_test.c38 struct sync_fence_info_data *info; in sync_thread() local
52 info = sync_fence_info(sync_data->fd[i]); in sync_thread()
53 if (info) { in sync_thread()
55 printf(" fence %s %d\n", info->name, info->status); in sync_thread()
57 while ((pt_info = sync_pt_info(info, pt_info))) { in sync_thread()
68 sync_fence_info_free(info); in sync_thread()
/system/core/libnetutils/
Ddhcpclient.c129 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
131 last_good_info = *info; in dhcp_configure()
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
133 info->dns1, info->dns2); in dhcp_configure()
151 void dump_dhcp_info(dhcp_info *info) in dump_dhcp_info() argument
155 dhcp_type_to_name(info->type), info->type); in dump_dhcp_info()
156 strcpy(addr, ipaddr(info->ipaddr)); in dump_dhcp_info()
157 strcpy(gway, ipaddr(info->gateway)); in dump_dhcp_info()
158 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength); in dump_dhcp_info()
159 if (info->dns1) ALOGD("dns1: %s", ipaddr(info->dns1)); in dump_dhcp_info()
[all …]
/system/media/audio_utils/
Dtinysndfile.c33 SF_INFO info; member
62 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) in sf_open_read() argument
74 handle->info.format = SF_FORMAT_WAV; in sf_open_read()
173 handle->info.samplerate = samplerate; in sf_open_read()
174 handle->info.channels = channels; in sf_open_read()
177 handle->info.format |= SF_FORMAT_PCM_U8; in sf_open_read()
180 handle->info.format |= SF_FORMAT_PCM_16; in sf_open_read()
184 handle->info.format |= SF_FORMAT_FLOAT; in sf_open_read()
186 handle->info.format |= SF_FORMAT_PCM_32; in sf_open_read()
200 handle->info.frames = handle->remaining; in sf_open_read()
[all …]
/system/core/run-as/
Drun-as.c112 PackageInfo info; in main() local
126 if (get_package_info(pkgname, &info) < 0) { in main()
132 if (info.uid < AID_APP) { in main()
138 if (!info.isDebuggable) { in main()
144 if (check_data_path(info.dataDir, info.uid) < 0) { in main()
152 uid = gid = info.uid; in main()
158 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) { in main()
167 ret = chdir(info.dataDir); in main()
Dpackage.c422 get_package_info(const char* pkgName, PackageInfo *info) in get_package_info() argument
430 info->uid = 0; in get_package_info()
431 info->isDebuggable = 0; in get_package_info()
432 info->dataDir[0] = '\0'; in get_package_info()
433 info->seinfo[0] = '\0'; in get_package_info()
477 info->uid = (uid_t) uid; in get_package_info()
487 info->isDebuggable = 0; in get_package_info()
490 info->isDebuggable = 1; in get_package_info()
507 p = string_copy(info->dataDir, sizeof info->dataDir, p, q - p); in get_package_info()
518 string_copy(info->seinfo, sizeof info->seinfo, p, q - p); in get_package_info()
/system/core/libutils/
Dmisc.cpp56 sysprop_change_callback_info info; in add_sysprop_change_callback() local
57 info.callback = cb; in add_sysprop_change_callback()
58 info.priority = priority; in add_sysprop_change_callback()
62 gSyspropList->insertAt(info, i); in add_sysprop_change_callback()
68 gSyspropList->add(info); in add_sysprop_change_callback()
/system/core/fastbootd/commands/
Dboot.c74 struct atag_info info; member
160 while (current_tag->info.type != ATAG_NONE_TYPE) { in create_atags()
161 switch (current_tag->info.type) { in create_atags()
166 …memcpy((void *)natags_raw_buff, (void *)current_tag_raw, current_tag->info.size * sizeof(unsigned)… in create_atags()
167 natags_raw_buff += current_tag->info.size; in create_atags()
168 new_atags_size += current_tag->info.size; in create_atags()
171 current_tag_raw += current_tag->info.size; in create_atags()
184 .info = { in create_atags()
205 .info = { in create_atags()
221 .info = { in create_atags()

123