/system/extras/ext4_utils/ |
H A D | ext4_sb.c | 21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) argument 31 info->block_size = 1024 << sb->s_log_block_size; 32 info->blocks_per_group = sb->s_blocks_per_group; 33 info->inodes_per_group = sb->s_inodes_per_group; 34 info->inode_size = sb->s_inode_size; 35 info->inodes = sb->s_inodes_count; 36 info->feat_ro_compat = sb->s_feature_ro_compat; 37 info->feat_compat = sb->s_feature_compat; 38 info->feat_incompat = sb->s_feature_incompat; 39 info [all...] |
/system/extras/squashfs_utils/ |
H A D | squashfs_utils.c | 30 int squashfs_parse_sb(char *blk_device, struct squashfs_info *info) { argument 53 info->block_size = sb.block_size; 54 info->inodes = sb.inodes; 55 info->bytes_used = sb.bytes_used; 57 info->bytes_used_4K_padded =
|
/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/keymaster/ |
H A D | hkdf.cpp | 31 Rfc5869HmacSha256Kdf::Rfc5869HmacSha256Kdf(Buffer& secret, Buffer& salt, Buffer& info, argument 34 salt.available_read(), info.peek_read(), info.available_read(), 40 const uint8_t* info, size_t info_len, 64 // Step 2. Expand: OUTPUT = HKDF-Expand(PRK, info) 86 memcpy(buf + j, info, info_len); 38 Rfc5869HmacSha256Kdf(const uint8_t* secret, size_t secret_len, const uint8_t* salt, size_t salt_len, const uint8_t* info, size_t info_len, size_t key_bytes_to_generate, keymaster_error_t* error) argument
|
H A D | hkdf_test.cpp | 72 const string info = hex2str(test.info_hex); local 79 reinterpret_cast<const uint8_t*>(info.data()), info.size(),
|
/system/core/libsync/ |
H A D | sync_test.c | 38 struct sync_fence_info_data *info; local 52 info = sync_fence_info(sync_data->fd[i]); 53 if (info) { 55 printf(" fence %s %d\n", info->name, info->status); 57 while ((pt_info = sync_pt_info(info, pt_info))) { 68 sync_fence_info_free(info);
|
H A D | sync.c | 55 struct sync_fence_info_data *info; local 58 info = malloc(4096); 59 if (info == NULL) 62 info->len = 4096; 63 err = ioctl(fd, SYNC_IOC_FENCE_INFO, info); 65 free(info); 69 return info; 72 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, argument 76 itr = (struct sync_pt_info *) info->pt_info; 80 if ((__u8 *)itr - (__u8 *)info > 86 sync_fence_info_free(struct sync_fence_info_data *info) argument [all...] |
/system/core/run-as/ |
H A D | run-as.c | 113 PackageInfo info; local 151 if (get_package_info(pkgname, userId, &info) < 0) { 156 if ((UID_MAX - info.uid) / AID_USER < (uid_t)userId) { 161 userAppId = (AID_USER * userId) + info.uid; 169 if (!info.isDebuggable) { 174 if (check_data_path(info.dataDir, userAppId) < 0) { 192 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) { 197 if (TEMP_FAILURE_RETRY(chdir(info.dataDir)) < 0) {
|
H A D | package.c | 425 get_package_info(const char* pkgName, uid_t userId, PackageInfo *info) argument 433 info->uid = 0; 434 info->isDebuggable = 0; 435 info->dataDir[0] = '\0'; 436 info->seinfo[0] = '\0'; 480 info->uid = (uid_t) uid; 490 info->isDebuggable = 0; 493 info->isDebuggable = 1; 515 p = string_copy(info->dataDir, sizeof info [all...] |
/system/core/adb/ |
H A D | set_verity_enable_state_service.cpp | 49 struct fs_info info; local 51 info.len = 0; /* Only len is set to 0 to ask the device for real size. */ 71 ext4_parse_sb(&sb, &info); 72 *device_size = info.len;
|
H A D | adb_auth_host.cpp | 160 char path[PATH_MAX], info[MAX_PAYLOAD]; local 202 get_user_info(info, sizeof(info)); 205 fwrite(info, strlen(info), 1, outfile) != 1) {
|
H A D | fdevent.cpp | 60 static void dump_fde(fdevent *fde, const char *info) argument 67 info); 71 #define dump_fde(fde, info) do { } while(0)
|
/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 | 279 struct usb_ifc_info info; local 303 info.dev_vendor = device_desc.idVendor; 304 info.dev_product = device_desc.idProduct; 305 info.dev_class = device_desc.bDeviceClass; 306 info.dev_subclass = device_desc.bDeviceSubClass; 307 info.dev_protocol = device_desc.bDeviceProtocol; 308 info.ifc_class = interf_desc.bInterfaceClass; 309 info.ifc_subclass = interf_desc.bInterfaceSubClass; 310 info.ifc_protocol = interf_desc.bInterfaceProtocol; 311 info [all...] |
H A D | usb_linux.c | 122 struct usb_ifc_info info; local 140 info.dev_vendor = dev->idVendor; 141 info.dev_product = dev->idProduct; 142 info.dev_class = dev->bDeviceClass; 143 info.dev_subclass = dev->bDeviceSubClass; 144 info.dev_protocol = dev->bDeviceProtocol; 145 info.writable = writable; 147 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); 155 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 | 72 static void print_type(char *type, struct pid_info_t* info) argument 77 strlcat(info->path, type, sizeof(info->path)); 78 if ((link_dest_size = readlink(info->path, link_dest, sizeof(link_dest)-1)) < 0) { 82 snprintf(link_dest, sizeof(link_dest), "%s (readlink: %s)", info->path, strerror(errno)); 92 info->cmdline, info->pid, info->user, type, 96 info->path[info 100 print_maps(struct pid_info_t* info) argument 132 print_fds(struct pid_info_t* info) argument 167 struct pid_info_t info; local [all...] |
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 177 sync_fence_info_data *info = sync_fence_info(getFd()); local 178 if (!info) { 181 while ((pointInfo = sync_pt_info(info, pointInfo))) { 188 sync_fence_info_free(info); 206 for (auto &info : getInfo()) { 207 if (info.status == status) {
|
/system/core/logd/ |
H A D | LogAudit.cpp | 96 bool info = strstr(str, " permissive=1") || strstr(str, " policy loaded "); local 102 iov[0].iov_base = info ? const_cast<char *>(log_info) 104 iov[0].iov_len = info ? sizeof(log_info) : sizeof(log_warning); 215 *newstr = info ? ANDROID_LOG_INFO : ANDROID_LOG_WARN;
|
H A D | LogStatistics.cpp | 144 const struct android_id_info *info = android_ids; local 147 if (info->aid == uid) { 148 return strdup(info->name); 150 ++info;
|
/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; 196 fprintf(stderr, "warning: could not parse map info line: %s\n", line);
|
/system/media/audio_utils/ |
H A D | tinysndfile.c | 35 SF_INFO info; member in struct:SNDFILE_ 64 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) argument 78 handle->info.format = SF_FORMAT_WAV; 210 handle->info.samplerate = samplerate; 211 handle->info.channels = channels; 214 handle->info.format |= SF_FORMAT_PCM_U8; 217 handle->info.format |= SF_FORMAT_PCM_16; 220 handle->info.format |= SF_FORMAT_PCM_24; 224 handle->info.format |= SF_FORMAT_FLOAT; 226 handle->info 297 sf_open_write(const char *path, SF_INFO *info) argument 378 sf_open(const char *path, int mode, SF_INFO *info) argument [all...] |
/system/bt/stack/rfcomm/ |
H A D | port_api.c | 42 #define info(fmt, ...) LOG_INFO ("%s: " fmt,__FUNCTION__, ## __VA_ARGS__) macro 975 ** p_signal - specify the pointer to control signals info
|
/system/core/init/ |
H A D | util.cpp | 53 const struct android_id_info *info = android_ids; local 57 if (!strcmp(info[n].name, name)) 58 return info[n].aid; 282 struct stat info; local 297 if (stat(buf, &info) != 0) { 368 struct stat info; local 372 while (gettime_ns() < timeout_time_ns && ((ret = stat(filename, &info)) < 0))
|