Searched refs:info (Results 1 - 25 of 43) sorted by relevance

12

/system/extras/tests/framebuffer/
H A Drefresh.c49 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/core/toolbox/
H A Dlsof.c71 void print_type(char *type, struct pid_info_t* info) argument
76 strncat(info->path, type, sizeof(info->path));
77 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) {
81 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno));
91 info->cmdline, info->pid, info->user, type,
95 info->path[info
99 print_maps(struct pid_info_t* info) argument
134 print_fds(struct pid_info_t* info) argument
169 struct pid_info_t info; local
[all...]
H A Dschedtop.c99 struct thread_info *info; local
101 info = get_item(&processes);
103 info = get_item(&threads);
104 info->pid = pid;
105 info->tid = tid;
113 if(sscanf(line, "%llu %llu %u", &info->exec_time, &info->delay_time, &info->run_count) != 3)
116 proc_info->exec_time += info->exec_time;
117 proc_info->delay_time += info
[all...]
/system/core/fastboot/
H A Dusbtest.c50 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 Dusb_osx.c57 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 Dusb_windows.c273 struct usb_ifc_info info; local
297 info.dev_vendor = device_desc.idVendor;
298 info.dev_product = device_desc.idProduct;
299 info.dev_class = device_desc.bDeviceClass;
300 info.dev_subclass = device_desc.bDeviceSubClass;
301 info.dev_protocol = device_desc.bDeviceProtocol;
302 info.ifc_class = interf_desc.bInterfaceClass;
303 info.ifc_subclass = interf_desc.bInterfaceSubClass;
304 info.ifc_protocol = interf_desc.bInterfaceProtocol;
305 info
[all...]
H A Dusb_linux.c106 struct usb_ifc_info info; local
127 info.dev_vendor = dev->idVendor;
128 info.dev_product = dev->idProduct;
129 info.dev_class = dev->bDeviceClass;
130 info.dev_subclass = dev->bDeviceSubClass;
131 info.dev_protocol = dev->bDeviceProtocol;
132 info.writable = writable;
135 info.serial_number[0] = 0;
159 info.serial_number[i - 1] = buffer[i];
160 info
[all...]
H A Dfastboot.c108 } else if(!strcmp(item,"info")) {
109 fn = "android-info.txt";
189 int match_fastboot(usb_ifc_info *info) argument
191 return match_fastboot_with_serial(info, serial);
194 int match_fastboot_with_serial(usb_ifc_info *info, const char *local_serial) argument
196 if(!(vendor_id && (info->dev_vendor == vendor_id)) &&
197 (info->dev_vendor != 0x18d1) && // Google
198 (info->dev_vendor != 0x8087) && // Intel
199 (info->dev_vendor != 0x0451) &&
200 (info
220 list_devices_callback(usb_ifc_info *info) argument
[all...]
/system/core/libsync/
H A Dsync.c54 struct sync_fence_info_data *info; local
57 info = malloc(4096);
58 if (info == NULL)
61 info->len = 4096;
62 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info);
64 free(info);
68 return info;
71 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, argument
75 itr = (struct sync_pt_info *) info->pt_info;
79 if ((__u8 *)itr - (__u8 *)info >
85 sync_fence_info_free(struct sync_fence_info_data *info) argument
[all...]
H A Dsync_test.c37 struct sync_fence_info_data *info; local
51 info = sync_fence_info(sync_data->fd[i]);
52 if (info) {
54 printf(" fence %s %d\n", info->name, info->status);
56 while ((pt_info = sync_pt_info(info, pt_info))) {
67 sync_fence_info_free(info);
/system/extras/ext4_utils/
H A Dmake_ext4fs.c188 dentries[i].link = calloc(info.block_size, 1);
189 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1);
242 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
252 return info.block_size * 8;
257 return DIV_ROUND_UP(info.len, info.block_size) / 4;
262 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
263 u32 block_groups = DIV_ROUND_UP(blocks, info
[all...]
H A Dext4_utils.c47 struct fs_info info; variable in typeref:struct:fs_info
71 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER))
86 sparse_file_write(info.sparse_file, fd, gz, sparse, crc);
89 /* Compute the rest of the parameters of the filesystem from the basic info */
92 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1;
93 aux_info.len_blocks = info.len / info.block_size;
94 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size,
95 info
[all...]
H A Dext2simg.c42 extern struct fs_info info;
74 ret = lseek64(fd, info.len, SEEK_SET);
78 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
82 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks);
85 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks)
90 printf(" Size: %llu\n", info.len);
91 printf(" Block size: %d\n", info.block_size);
92 printf(" Blocks per group: %d\n", info.blocks_per_group);
93 printf(" Inodes per group: %d\n", info.inodes_per_group);
94 printf(" Inode size: %d\n", info
[all...]
H A Dindirect.c33 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS)
47 len = min(region_len * info.block_size, backing_len);
49 sparse_file_add_data(info.sparse_file, ptr, len, region_block);
125 u32 *ind_block_data = calloc(info.block_size, 1);
126 sparse_file_add_data(info.sparse_file, ind_block_data, info.block_size,
155 u32 *dind_block_data = calloc(info.block_size, 1);
156 sparse_file_add_data(info.sparse_file, dind_block_data, info.block_size,
204 u32 *ind_block_data = calloc(info
[all...]
H A Dmake_ext4fs_main.c37 extern struct fs_info info;
72 info.len = parse_num(optarg);
75 info.journal_blocks = parse_num(optarg);
78 info.block_size = parse_num(optarg);
81 info.blocks_per_group = parse_num(optarg);
84 info.inodes = parse_num(optarg);
87 info.inode_size = parse_num(optarg);
90 info.label = optarg;
112 info.no_journal = 1;
H A Dext4fixup.c80 group = (old_inum - 1) / info.inodes_per_group;
81 offset = (old_inum -1) % info.inodes_per_group;
209 if (info.feat_incompat & EXT4_FEATURE_INCOMPAT_RECOVER) {
223 ret = lseek64(fd, info.len, SEEK_SET);
227 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
231 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks);
234 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks)
239 printf(" Size: %llu\n", info.len);
240 printf(" Block size: %d\n", info.block_size);
241 printf(" Blocks per group: %d\n", info
[all...]
H A Dcontents.c42 if (len % info.block_size + dentry_len > info.block_size)
43 len += info.block_size - (len % info.block_size);
48 if (len % info.block_size + 8 > info.block_size)
49 len += info.block_size - (len % info.block_size);
63 u32 start_block = *offset / info.block_size;
64 u32 end_block = (*offset + rec_len - 1) / info
[all...]
H A Dextent.c44 len = min(region_len * info.block_size, backing_len);
46 sparse_file_add_data(info.sparse_file, ptr, len, region_block);
66 len = min(region_len * info.block_size, backing_len);
68 sparse_file_add_file(info.sparse_file, filename, offset, len,
78 u32 block_len = DIV_ROUND_UP(len, info.block_size);
124 u8 *data = calloc(info.block_size, 1);
128 sparse_file_add_data(info.sparse_file, data, info.block_size,
131 if (((int)(info.block_size - sizeof(struct ext4_extent_header) /
141 hdr->eh_max = (info
[all...]
H A Dallocate.c115 reg->bg * info.blocks_per_group + reg->block,
116 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
152 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1;
154 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size);
158 sparse_file_add_data(info.sparse_file, bg->inode_table,
159 aux_info.inode_table_blocks * info.block_size, block);
173 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1;
174 sparse_file_add_fill(info.sparse_file, 0,
175 aux_info.inode_table_blocks * info.block_size, block);
197 for them in the block group free block info
[all...]
/system/core/libnetutils/
H A Ddhcpclient.c129 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
393 dhcp_info info; local
[all...]
/system/core/run-as/
H A Drun-as.c106 PackageInfo info; local
120 if (get_package_info(pkgname, &info) < 0) {
126 if (info.uid < AID_APP) {
132 if (!info.isDebuggable) {
138 if (check_data_path(info.dataDir, info.uid) < 0) {
147 ret = chdir(info.dataDir);
159 uid = gid = info.uid;
H A Dpackage.h37 extern int get_package_info(const char* packageName, PackageInfo* info);
H A Dpackage.c403 get_package_info(const char* pkgName, PackageInfo *info) argument
411 info->uid = 0;
412 info->isDebuggable = 0;
413 info->dataDir[0] = '\0';
456 info->uid = (uid_t) uid;
466 info->isDebuggable = 0;
469 info->isDebuggable = 1;
486 string_copy(info->dataDir, sizeof info->dataDir, p, q - p);
/system/core/include/sync/
H A Dsync.h48 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/extras/fatblock/
H A Dfs.h34 struct fat_info_sector info; member in struct:fs

Completed in 149 milliseconds

12