/system/extras/tests/framebuffer/ |
H A D | refresh.c | 48 struct fb_var_screeninfo info; local 49 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) 52 info.reserved[0] = 0; 53 info.reserved[1] = 0; 54 info.reserved[2] = 0; 55 info.xoffset = 0; 56 info.yoffset = 0; 57 info.bits_per_pixel = 16; 58 info.activate = FB_ACTIVATE_NOW; 60 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) [all...] |
/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 28 info->block_size = 1024 << sb->s_log_block_size; 29 info->blocks_per_group = sb->s_blocks_per_group; 30 info->inodes_per_group = sb->s_inodes_per_group; 31 info->inode_size = sb->s_inode_size; 32 info->inodes = sb->s_inodes_count; 33 info->feat_ro_compat = sb->s_feature_ro_compat; 34 info->feat_compat = sb->s_feature_compat; 35 info->feat_incompat = sb->s_feature_incompat; 36 info [all...] |
H A D | ext4_utils.c | 40 struct fs_info info; variable in typeref:struct:fs_info 79 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) 107 /* Compute the rest of the parameters of the filesystem from the basic info */ 110 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; 111 aux_info.len_blocks = info.len / info.block_size; 112 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, 113 info.block_size); 115 info [all...] |
/system/core/libmemunreachable/tests/ |
H A D | MemUnreachable_test.cpp | 82 UnreachableMemoryInfo info; local 86 ASSERT_TRUE(GetUnreachableMemory(info)); 87 ASSERT_EQ(0U, info.leaks.size()); 97 UnreachableMemoryInfo info; local 99 ASSERT_TRUE(GetUnreachableMemory(info)); 100 ASSERT_EQ(0U, info.leaks.size()); 106 UnreachableMemoryInfo info; local 108 ASSERT_TRUE(GetUnreachableMemory(info)); 109 ASSERT_EQ(1U, info.leaks.size()); 115 UnreachableMemoryInfo info; local 130 UnreachableMemoryInfo info; local 139 UnreachableMemoryInfo info; local 148 UnreachableMemoryInfo info; local 163 UnreachableMemoryInfo info; local 172 UnreachableMemoryInfo info; local 181 UnreachableMemoryInfo info; local 197 UnreachableMemoryInfo info; local 206 UnreachableMemoryInfo info; local 213 UnreachableMemoryInfo info; local 222 UnreachableMemoryInfo info; local 237 UnreachableMemoryInfo info; local [all...] |
/system/core/libunwindstack/tests/ |
H A D | MapsTest.cpp | 29 static void VerifyLine(std::string line, MapInfo* info) { argument 32 if (info == nullptr) { 38 info->start = element->start; 39 info->end = element->end; 40 info->offset = element->offset; 41 info->flags = element->flags; 42 info->name = element->name; 43 info->elf_offset = element->elf_offset; 55 MapInfo* info = maps.Get(0); local 56 ASSERT_EQ(0x1000U, info 66 MapInfo info; local 139 MapInfo info; local 166 MapInfo* info = maps.Get(0); local 218 MapInfo* info = maps.Get(0); local 253 MapInfo* info = maps.Get(0); local 318 MapInfo* info = maps.Get(0); local 351 MapInfo* info = maps.Get(0); local 393 MapInfo* info = maps.Get(0); local 485 MapInfo* info = maps.Get(i); local 533 MapInfo* info = maps.Get(i); local 558 MapInfo* info = maps.Find(0x1000); local [all...] |
H A D | MapInfoCreateMemoryTest.cpp | 97 MapInfo info(0x100, 0x100, 0, 0, elf_.path); 99 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); 102 info.end = 0xff; 103 memory.reset(info.CreateMemory(process_memory_)); 107 info.end = 0x101; 108 memory.reset(info.CreateMemory(process_memory_)); 115 MapInfo info(0x100, 0x200, 0x100, 0, elf_.path); 117 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); 119 ASSERT_EQ(0x100U, info.elf_offset); 136 MapInfo info( 195 MapInfo info; local 207 MapInfo info; local [all...] |
/system/libufdt/utils/src/ |
H A D | mkdtimg.c | 48 const struct command_info *info; local 49 for (info = command_infos; info->command != NULL; info++) { 50 if (strcmp(command, info->command) == 0) { 54 if (info->command == NULL) { 58 return info; 62 const struct command_info *info; local 63 for (info = command_infos; info 78 const struct command_info *info; local 105 const struct command_info *info = search_command(argv[arg_start]); local 123 const struct command_info *info = search_command(command); local [all...] |
/system/chre/apps/unload_tester/ |
H A D | unload_tester.cc | 63 struct chreNanoappInfo info; local 64 bool gotInfo = chreGetNanoappInfoByInstanceId(chreGetInstanceId(), &info); 66 CHRE_ASSERT(info.appId == chreGetAppId()); 67 CHRE_ASSERT(info.appId == kUnloadTesterAppId); 68 CHRE_ASSERT(info.version == kAppVersion); 69 CHRE_ASSERT(info.instanceId == chreGetInstanceId()); 80 struct chreNanoappInfo info; local 81 if (!chreGetNanoappInfoByAppId(kSpammerAppId, &info)) { 82 LOGW("Couldn't get spammer's app info - not running?"); 91 const auto *info local [all...] |
/system/chre/apps/chqts/src/general_test/ |
H A D | sensor_info_test.cc | 35 struct chreSensorInfo info; local 37 if (!chreGetSensorInfo(mSensorHandle, &info)) { 39 "Failed to gather sensor info"); 42 validateSensorInfo(info); 47 void SensorInfoTest::validateSensorInfo(const struct chreSensorInfo& info) const { 48 if ((mApiVersion < CHRE_API_VERSION_1_1) && (info.minInterval != 0)) { 51 } else if (info.minInterval == 0) { 56 info.minInterval,
|
H A D | nanoapp_info.h | 47 * @param info The chreNanoappInfo to populate with query results 50 bool queryByAppId(struct chreNanoappInfo *info); 55 * @param info The chreNanoappInfo to populate with query results 58 bool queryByInstanceId(struct chreNanoappInfo *info);
|
H A D | nanoapp_info_events_test_performer.cc | 31 NanoappInfo info; local 32 info.sendToHost();
|
H A D | nanoapp_info.cc | 40 AppInfo info = { local 46 &info, sizeof(info)); 64 bool NanoappInfo::queryByAppId(struct chreNanoappInfo *info) { argument 65 bool result = chreGetNanoappInfoByAppId(mAppId, info); 69 "Unable to get nanoapp info by app ID"); 75 bool NanoappInfo::queryByInstanceId(struct chreNanoappInfo *info) { argument 76 bool result = chreGetNanoappInfoByInstanceId(mInstanceId, info); 80 "Unable to get nanoapp info by instance ID");
|
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 129 static void dbg_print_info_struct(struct f2fs_info *info) argument 135 SLOGD("blocks_per_segment: %" PRIu64, info->blocks_per_segment); 136 SLOGD("block_size: %d", info->block_size); 137 SLOGD("sit_bmp loc: %p", info->sit_bmp); 138 SLOGD("sit_bmp_size: %d", info->sit_bmp_size); 139 SLOGD("blocks_per_sit: %" PRIu64, info->blocks_per_sit); 140 SLOGD("sit_blocks loc: %p", info->sit_blocks); 141 SLOGD("sit_sums loc: %p", info->sit_sums); 142 SLOGD("sit_sums num: %d", le16_to_cpu(info->sit_sums->journal.n_sits)); 144 for(i = 0; i < (le16_to_cpu(info 262 get_valid_checkpoint_info(int fd, struct f2fs_super_block *sb, struct f2fs_checkpoint **cp, struct f2fs_info *info) argument 315 gather_sit_info(int fd, struct f2fs_info *info) argument 348 sum_blk_addr(struct f2fs_checkpoint *cp, struct f2fs_info *info, int base, int type) argument 354 get_sit_summary(int fd, struct f2fs_info *info, struct f2fs_checkpoint *cp) argument 386 struct f2fs_info *info; local 458 free_f2fs_info(struct f2fs_info *info) argument 473 get_num_blocks_used(struct f2fs_info *info) argument 488 run_on_used_blocks(u64 startblock, struct f2fs_info *info, int (*func)(u64 pos, void *data), void *data) argument 549 struct f2fs_info *info; member in struct:privdata 615 struct f2fs_info *info = generate_f2fs_info(infd); local [all...] |
/system/core/fastboot/ |
H A D | usbtest.cpp | 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...] |
/system/extras/squashfs_utils/ |
H A D | squashfs_utils.h | 35 int squashfs_parse_sb_buffer(const void *data, struct squashfs_info *info); 36 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info);
|
H A D | squashfs_utils.c | 41 int squashfs_parse_sb_buffer(const void *buf, struct squashfs_info *info) argument 50 info->block_size = sb->block_size; 51 info->inodes = sb->inodes; 52 info->bytes_used = sb->bytes_used; 54 info->bytes_used_4K_padded = 60 int squashfs_parse_sb(const char *blk_device, struct squashfs_info *info) argument 79 if (squashfs_parse_sb_buffer(&sb, info) == -1) {
|
/system/core/libsync/ |
H A D | sync.c | 208 struct sync_file_info *info; local 216 info = calloc(1, sizeof(struct sync_file_info) + 218 if (!info) 221 info->num_fences = local_info.num_fences; 222 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); 224 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); 226 free(info); 230 return info; 234 const struct sync_file_info *info) 233 sync_file_info_to_legacy_fence_info( const struct sync_file_info *info) argument 266 struct sync_file_info *info; local 335 struct sync_file_info *info; local 364 sync_pt_info(struct sync_fence_info_data *info, struct sync_pt_info *itr) argument 378 sync_fence_info_free(struct sync_fence_info_data *info) argument 383 sync_file_info_free(struct sync_file_info *info) argument [all...] |
/system/extras/pagecache/ |
H A D | dumpcache.c | 44 struct file_info *info; local 54 info = calloc(1, sizeof(*info)); 55 if (!info) { 60 info->name = malloc(strlen(fpath) + 1); 61 if (!info->name) { 65 strcpy(info->name, fpath); 67 info->num_cached_pages = 0; 68 info->file_size = file_size; 70 g_files[g_num_files++] = info; 98 struct file_info *info = get_file_info(fpath, sb->st_size); local 159 struct file_info *info = g_files[i]; local [all...] |
/system/chre/platform/slpi/ |
H A D | nanoapp_load_manager.cc | 72 const FragmentedLoadInfo& info = mCurrentLoadInfo; local 73 valid = (info.hostClientId == hostClientId 74 && info.transactionId == transactionId 75 && info.nextFragmentId == fragmentId); 80 info.hostClientId, info.transactionId, info.nextFragmentId,
|
/system/core/libsync/include/ndk/ |
H A D | sync.h | 67 * Get the array of fence infos from the sync file's info. 69 * The returned array is owned by the parent sync file info, and has 70 * info->num_fences entries. 72 static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file_info* info) { argument 77 return (struct sync_fence_info *)(uintptr_t)(info->sync_fence_info); 82 void sync_file_info_free(struct sync_file_info *info);
|
/system/extras/boot_control_copy/ |
H A D | bootinfo.cpp | 143 bool boot_info_save(BrilloBootInfo *info) argument 156 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); 164 bool boot_info_validate(BrilloBootInfo* info) argument 166 if (info->magic[0] != 'B' || 167 info->magic[1] != 'C' || 168 info->magic[2] != 'c') 170 if (info->active_slot >= 2) 175 void boot_info_reset(BrilloBootInfo* info) argument 177 memset(info, '\0', sizeof(BrilloBootInfo)); 178 info [all...] |
H A D | bootinfo.h | 50 bool boot_info_save(BrilloBootInfo *info); 53 bool boot_info_validate(BrilloBootInfo* info); 54 void boot_info_reset(BrilloBootInfo* info);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 127 static int dhcp_configure(const char *ifname, dhcp_info *info) argument 129 last_good_info = *info; 130 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 131 info->dns1, info->dns2); 149 void dump_dhcp_info(dhcp_info *info) argument 153 dhcp_type_to_name(info->type), info 164 decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument 393 dhcp_info info; local [all...] |
/system/core/libsync/include/android/ |
H A D | sync.h | 63 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, 65 void sync_fence_info_free(struct sync_fence_info_data *info);
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 63 struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info, 65 void sync_fence_info_free(struct sync_fence_info_data *info);
|