Searched refs:info (Results 1 - 25 of 34) 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.c66 void print_type(char *type, struct pid_info_t* info) argument
71 strncat(info->path, type, sizeof(info->path));
72 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) {
76 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno));
85 printf("%-9s %5d %10s %4s %9s %18s %9s %10s %s\n", info->cmdline, info->pid, "???", type,
89 info->path[info->parent_length] = '\0';
93 void print_maps(struct pid_info_t* info) argument
127 print_fds(struct pid_info_t* info) argument
161 struct pid_info_t info; local
[all...]
H A Dschedtop.c97 struct thread_info *info; local
99 info = get_item(&processes);
101 info = get_item(&threads);
102 info->pid = pid;
103 info->tid = tid;
111 if(sscanf(line, "%llu %llu %u", &info->exec_time, &info->delay_time, &info->run_count) != 3)
114 proc_info->exec_time += info->exec_time;
115 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.c272 struct usb_ifc_info info; local
296 info.dev_vendor = device_desc.idVendor;
297 info.dev_product = device_desc.idProduct;
298 info.dev_class = device_desc.bDeviceClass;
299 info.dev_subclass = device_desc.bDeviceSubClass;
300 info.dev_protocol = device_desc.bDeviceProtocol;
301 info.ifc_class = interf_desc.bInterfaceClass;
302 info.ifc_subclass = interf_desc.bInterfaceSubClass;
303 info.ifc_protocol = interf_desc.bInterfaceProtocol;
304 info
[all...]
H A Dusb_linux.c100 struct usb_ifc_info info; local
118 info.dev_vendor = dev->idVendor;
119 info.dev_product = dev->idProduct;
120 info.dev_class = dev->bDeviceClass;
121 info.dev_subclass = dev->bDeviceSubClass;
122 info.dev_protocol = dev->bDeviceProtocol;
123 info.writable = writable;
126 info.serial_number[0] = 0;
148 info.serial_number[i - 1] = buffer[i];
149 info
[all...]
H A Dfastboot.c89 } else if(!strcmp(item,"info")) {
90 fn = "android-info.txt";
147 int match_fastboot(usb_ifc_info *info) argument
149 if(!(vendor_id && (info->dev_vendor == vendor_id)) &&
150 (info->dev_vendor != 0x18d1) && // Google
151 (info->dev_vendor != 0x0451) &&
152 (info->dev_vendor != 0x0502) &&
153 (info->dev_vendor != 0x0fce) && // Sony Ericsson
154 (info->dev_vendor != 0x05c6) && // Qualcomm
155 (info
169 list_devices_callback(usb_ifc_info *info) argument
[all...]
/system/extras/ext4_utils/
H A Dmake_ext4fs_main.c28 extern struct fs_info info;
53 info.len = parse_num(optarg);
56 info.journal_blocks = parse_num(optarg);
59 info.block_size = parse_num(optarg);
62 info.blocks_per_group = parse_num(optarg);
65 info.inodes = parse_num(optarg);
68 info.inode_size = parse_num(optarg);
71 info.label = optarg;
84 info.no_journal = 1;
H A Dmake_ext4fs.c147 dentries[i].link = calloc(info.block_size, 1);
148 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1);
196 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
206 return info.block_size * 8;
211 return DIV_ROUND_UP(info.len, info.block_size) / 4;
216 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
217 u32 block_groups = DIV_ROUND_UP(blocks, info
[all...]
H A Dext4_utils.c42 struct fs_info info; variable in typeref:struct:fs_info
64 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER))
91 if (info.block_size > 1024) {
94 write_data_block(out, 0, buf, info.block_size);
100 write_data_block(out, (u64)(aux_info.first_data_block + 1) * info.block_size,
102 aux_info.bg_desc_blocks * info.block_size);
106 pad_output_file(out, info.len);
111 /* Compute the rest of the parameters of the filesystem from the basic info */
114 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1;
115 aux_info.len_blocks = info
[all...]
H A Doutput_file.c156 if (skip_len % info.block_size) {
158 skip_len, info.block_size);
165 chunk_header.chunk_sz = skip_len / info.block_size;
176 chunk = (skip_len > info.block_size) ? info.block_size : skip_len;
209 if (off % info.block_size) {
211 off, info.block_size);
221 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1));
227 chunk_header.chunk_sz = rnd_up_len / info
[all...]
H A Dcontents.c37 if (len % info.block_size + dentry_len > info.block_size)
38 len += info.block_size - (len % info.block_size);
53 u32 start_block = *offset / info.block_size;
54 u32 end_block = (*offset + rec_len) / info.block_size;
60 prev->rec_len += end_block * info.block_size - *offset;
61 *offset = end_block * info.block_size;
93 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size);
94 len = blocks * info
[all...]
H A Dindirect.c32 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS)
46 len = min(region_len * info.block_size, backing_len);
124 u32 *ind_block_data = calloc(info.block_size, 1);
125 queue_data_block((u8*)ind_block_data, info.block_size, ind_block);
153 u32 *dind_block_data = calloc(info.block_size, 1);
154 queue_data_block((u8*)dind_block_data, info.block_size, dind_block);
201 u32 *ind_block_data = calloc(info.block_size, 1);
202 queue_data_block((u8*)ind_block_data, info.block_size, ind_block);
232 u32 *dind_block_data = calloc(info.block_size, 1);
233 queue_data_block((u8*)dind_block_data, info
[all...]
H A Dextent.c43 len = min(region_len * info.block_size, backing_len);
65 len = min(region_len * info.block_size, backing_len);
76 u32 block_len = DIV_ROUND_UP(len, info.block_size);
122 u8 *data = calloc(info.block_size, 1);
126 queue_data_block(data, info.block_size, extent_block);
128 if (((int)(info.block_size - sizeof(struct ext4_extent_header) /
138 hdr->eh_max = (info.block_size - sizeof(struct ext4_extent_header)) /
162 blocks = (u64)block_len * info.block_size / 512;
H A Dbacked_block.c113 last_block = db->block + DIV_ROUND_UP(db->len, info.block_size) - 1;
116 file_func(out, (u64)db->block * info.block_size, db->filename, db->offset, db->len);
118 data_func(out, (u64)db->block * info.block_size, db->data, db->len);
H A Dallocate.c114 reg->bg * info.blocks_per_group + reg->block,
115 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
153 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size);
158 * info.block_size, block);
178 for them in the block group free block info. */
263 bg->bitmaps = calloc(info.block_size, 2);
265 bg->inode_bitmap = bg->bitmaps + info.block_size;
268 bg->first_block = aux_info.first_data_block + i * info.blocks_per_group;
273 queue_data_block(bg->bitmaps, 2 * info.block_size, block);
276 bg->free_blocks = info
[all...]
/system/core/libnetutils/
H A Ddhcpclient.c131 static int ifc_configure(const char *ifname, dhcp_info *info) argument
135 if (ifc_set_addr(ifname, info->ipaddr)) {
136 printerr("failed to set ipaddr %s: %s\n", ipaddr(info->ipaddr), strerror(errno));
139 if (ifc_set_mask(ifname, info->netmask)) {
140 printerr("failed to set netmask %s: %s\n", ipaddr(info->netmask), strerror(errno));
143 if (ifc_create_default_route(ifname, info->gateway)) {
144 printerr("failed to set default route %s: %s\n", ipaddr(info->gateway), strerror(errno));
149 property_set(dns_prop_name, info->dns1 ? ipaddr(info->dns1) : "");
151 property_set(dns_prop_name, info
173 dump_dhcp_info(dhcp_info *info) argument
189 decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument
412 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.c372 get_package_info(const char* pkgName, PackageInfo *info) argument
380 info->uid = 0;
381 info->isDebuggable = 0;
382 info->dataDir[0] = '\0';
425 info->uid = (uid_t) uid;
435 info->isDebuggable = 0;
438 info->isDebuggable = 1;
455 string_copy(info->dataDir, sizeof info->dataDir, p, q - p);
/system/core/init/
H A Dutil.c82 struct android_id_info *info = android_ids; local
86 if (!strcmp(info[n].name, name))
87 return info[n].aid;
312 struct stat info; local
327 if (stat(buf, &info) != 0) {
385 struct stat info; local
389 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
H A Dbuiltins.c321 struct loop_info info; local
337 if (ioctl(loop, LOOP_GET_STATUS, &info) < 0 && errno == ENXIO) {
461 struct stat info; local
468 if (stat(args[1], &info) < 0)
477 if (!(buffer = malloc(info.st_size)))
481 brtr = info.st_size;
493 brtw = info.st_size;
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/
H A DWlanDrvWext.c55 struct iw_request_info *info,
165 struct iw_request_info *info,
178 switch (info->cmd)
249 info->cmd,
250 info->flags,
164 wlanDrvWext_Handler(struct net_device *dev, struct iw_request_info *info, void *iw_req, void *extra) argument
/system/core/libpixelflinger/codeflinger/
H A DGGLAssembler.cpp158 component_info_t& info = mInfo[i]; local
163 info.masked = !!(masking & mask);
164 info.inDest = !info.masked && mCbFormat.c[i].h &&
168 info.inDest = false;
170 info.needed = (i==GGLFormat::ALPHA) &&
172 info.replaced = !!(mTextureMachine.replaced & mask);
173 info.iterated = (!info.replaced && (info
[all...]

Completed in 686 milliseconds

12