/system/core/run-as/ |
H A D | run-as.c | 107 PackageInfo info; local 121 if (get_package_info(pkgname, &info) < 0) { 127 if (info.uid < AID_APP) { 133 if (!info.isDebuggable) { 139 if (check_data_path(info.dataDir, info.uid) < 0) { 148 ret = chdir(info.dataDir); 160 uid = gid = info.uid; 166 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) {
|
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/extras/fatblock/ |
H A D | fs.h | 34 struct fat_info_sector info; member in struct:fs
|
H A D | fat.h | 85 struct fat_info_sector info; member in struct:fat_bootinfo
|
/system/core/libsync/ |
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);
|
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...] |
/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_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 | 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...] |
/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 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 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/media/audio_utils/ |
H A D | tinysndfile.c | 28 SF_INFO info; member in struct:SNDFILE_ 57 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument 103 handle->info.frames = handle->remaining; 104 handle->info.samplerate = samplerate; 105 handle->info.channels = channels; 106 handle->info.format = SF_FORMAT_WAV; 108 handle->info.format |= SF_FORMAT_PCM_U8; 110 handle->info.format |= SF_FORMAT_PCM_16; 111 *info = handle->info; 125 sf_open_write(const char *path, SF_INFO *info) argument 165 sf_open(const char *path, int mode, SF_INFO *info) argument [all...] |
/system/core/adb/ |
H A D | adb_auth_host.c | 136 char path[PATH_MAX], info[MAX_PAYLOAD]; local 166 get_user_info(info, sizeof(info)); 167 BIO_write(bfile, info, strlen(info));
|
H A D | fdevent.c | 70 static void dump_fde(fdevent *fde, const char *info) argument 77 info); 82 #define dump_fde(fde, info) do { } while(0)
|
/system/core/libcorkscrew/ |
H A D | backtrace.c | 257 Dl_info info; local 258 if (dladdr((const void*)frame->absolute_pc, &info) && info.dli_sname) { 259 symbol->relative_symbol_addr = (uintptr_t)info.dli_saddr 260 - (uintptr_t)info.dli_fbase; 261 symbol->symbol_name = strdup(info.dli_sname);
|
/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...] |
/system/extras/showmap/ |
H A D | showmap.c | 71 struct mapinfo* info = calloc(1, sizeof(mapinfo) + name_size); local 72 if (info == NULL) { 77 info->start = start; 78 info->end = end; 79 info->is_bss = is_bss; 80 info->count = 1; 81 strlcpy(info->name, name, name_size); 83 *mi = info; 194 fprintf(stderr, "warning: could not parse map info line: %s\n", line);
|
/system/core/init/ |
H A D | util.c | 48 const struct android_id_info *info = android_ids; local 52 if (!strcmp(info[n].name, name)) 53 return info[n].aid; 281 struct stat info; local 296 if (stat(buf, &info) != 0) { 354 struct stat info; local 358 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
|
H A D | builtins.c | 408 struct loop_info info; local 424 if (ioctl(loop, LOOP_GET_STATUS, &info) < 0 && errno == ENXIO) { 657 struct stat info; local 664 if (stat(args[1], &info) < 0) 673 if (!(buffer = malloc(info.st_size))) 677 brtr = info.st_size; 689 brtw = info.st_size;
|
H A D | devices.c | 426 struct stat info; local 882 struct stat info; local 898 if (stat(coldboot_done, &info) < 0) {
|
/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/core/fs_mgr/ |
H A D | fs_mgr.c | 101 struct stat info; local 105 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
|
/system/core/libpixelflinger/codeflinger/ |
H A D | texturing.cpp | 122 component_info_t& info = mInfo[i]; local 123 if ((info.inDest || info.needed) && !info.replaced)
|