/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/core/toolbox/ |
H A D | lsof.c | 71 static void print_type(char *type, struct pid_info_t* info) argument 76 strlcat(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 D | schedtop.c | 99 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 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_windows.c | 273 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 D | usb_linux.c | 106 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 D | fastboot.c | 138 } else if(!strcmp(item,"info")) { 139 fn = "android-info.txt"; 212 int match_fastboot_with_serial(usb_ifc_info *info, const char *local_serial) argument 214 if(!(vendor_id && (info->dev_vendor == vendor_id)) && 215 (info->dev_vendor != 0x18d1) && // Google 216 (info->dev_vendor != 0x8087) && // Intel 217 (info->dev_vendor != 0x0451) && 218 (info->dev_vendor != 0x0502) && 219 (info->dev_vendor != 0x0fce) && // Sony Ericsson 220 (info 238 match_fastboot(usb_ifc_info *info) argument 243 list_devices_callback(usb_ifc_info *info) argument [all...] |
/system/core/libsync/ |
H A D | sync.c | 54 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 D | sync_test.c | 37 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 D | ext4_utils.c | 48 struct fs_info info; variable in typeref:struct:fs_info 72 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) 87 sparse_file_write(info.sparse_file, fd, gz, sparse, crc); 90 /* Compute the rest of the parameters of the filesystem from the basic info */ 93 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; 94 aux_info.len_blocks = info.len / info.block_size; 95 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, 96 info [all...] |
H A D | ext2simg.c | 42 extern struct fs_info info; 73 ret = lseek64(fd, info.len, SEEK_SET); 77 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); 81 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); 84 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) 89 printf(" Size: %llu\n", info.len); 90 printf(" Block size: %d\n", info.block_size); 91 printf(" Blocks per group: %d\n", info.blocks_per_group); 92 printf(" Inodes per group: %d\n", info.inodes_per_group); 93 printf(" Inode size: %d\n", info [all...] |
H A D | make_ext4fs.c | 209 dentries[i].link = calloc(info.block_size, 1); 210 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1); 309 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; 319 return info.block_size * 8; 324 return DIV_ROUND_UP(info.len, info.block_size) / 4; 329 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); 330 u32 block_groups = DIV_ROUND_UP(blocks, info [all...] |
H A D | indirect.c | 33 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 D | ext4fixup.c | 80 group = (old_inum - 1) / info.inodes_per_group; 81 offset = (old_inum -1) % info.inodes_per_group; 208 if (info.feat_incompat & EXT4_FEATURE_INCOMPAT_RECOVER) { 222 ret = lseek64(fd, info.len, SEEK_SET); 226 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); 230 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); 233 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) 238 printf(" Size: %llu\n", info.len); 239 printf(" Block size: %d\n", info.block_size); 240 printf(" Blocks per group: %d\n", info [all...] |
H A D | make_ext4fs_main.c | 47 extern struct fs_info info; 82 info.len = parse_num(optarg); 85 info.journal_blocks = parse_num(optarg); 88 info.block_size = parse_num(optarg); 91 info.blocks_per_group = parse_num(optarg); 94 info.inodes = parse_num(optarg); 97 info.inode_size = parse_num(optarg); 100 info.label = optarg; 122 info.no_journal = 1;
|
H A D | extent.c | 44 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 D | contents.c | 51 if (len % info.block_size + dentry_len > info.block_size) 52 len += info.block_size - (len % info.block_size); 67 u32 start_block = *offset / info.block_size; 68 u32 end_block = (*offset + rec_len - 1) / info.block_size; 74 prev->rec_len += end_block * info.block_size - *offset; 75 *offset = end_block * info.block_size; 107 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); 108 len = blocks * info [all...] |
/system/core/run-as/ |
H A D | run-as.c | 112 PackageInfo info; local 126 if (get_package_info(pkgname, &info) < 0) { 132 if (info.uid < AID_APP) { 138 if (!info.isDebuggable) { 144 if (check_data_path(info.dataDir, info.uid) < 0) { 152 uid = gid = info.uid; 158 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) { 167 ret = chdir(info.dataDir);
|
H A D | package.h | 38 extern int get_package_info(const char* packageName, PackageInfo* info);
|
H A D | package.c | 424 get_package_info(const char* pkgName, PackageInfo *info) argument 432 info->uid = 0; 433 info->isDebuggable = 0; 434 info->dataDir[0] = '\0'; 435 info->seinfo[0] = '\0'; 479 info->uid = (uid_t) uid; 489 info->isDebuggable = 0; 492 info->isDebuggable = 1; 509 p = string_copy(info->dataDir, sizeof info [all...] |
/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 393 dhcp_info info; local [all...] |
/system/media/audio_utils/ |
H A D | tinysndfile.c | 33 SF_INFO info; member in struct:SNDFILE_ 62 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument 74 handle->info.format = SF_FORMAT_WAV; 173 handle->info.samplerate = samplerate; 174 handle->info.channels = channels; 177 handle->info.format |= SF_FORMAT_PCM_U8; 180 handle->info.format |= SF_FORMAT_PCM_16; 184 handle->info.format |= SF_FORMAT_FLOAT; 186 handle->info.format |= SF_FORMAT_PCM_32; 200 handle->info 242 sf_open_write(const char *path, SF_INFO *info) argument 307 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/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);
|