Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 193) sorted by relevance

12345678

/system/extras/tests/framebuffer/
Drefresh.c49 struct fb_var_screeninfo info; in main() local
50 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main()
53 info.reserved[0] = 0; in main()
54 info.reserved[1] = 0; in main()
55 info.reserved[2] = 0; in main()
56 info.xoffset = 0; in main()
57 info.yoffset = 0; in main()
58 info.bits_per_pixel = 16; in main()
59 info.activate = FB_ACTIVATE_NOW; in main()
61 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) { in main()
[all …]
/system/core/libmemunreachable/tests/
DMemUnreachable_test.cpp49 UnreachableMemoryInfo info; in TEST() local
53 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST()
54 ASSERT_EQ(0U, info.leaks.size()); in TEST()
64 UnreachableMemoryInfo info; in TEST() local
66 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST()
67 ASSERT_EQ(0U, info.leaks.size()); in TEST()
73 UnreachableMemoryInfo info; in TEST() local
75 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST()
76 ASSERT_EQ(1U, info.leaks.size()); in TEST()
82 UnreachableMemoryInfo info; in TEST() local
[all …]
/system/extras/f2fs_utils/
Df2fs_sparseblock.c129 static void dbg_print_info_struct(struct f2fs_info *info) in dbg_print_info_struct() argument
135 SLOGD("blocks_per_segment: %" PRIu64, info->blocks_per_segment); in dbg_print_info_struct()
136 SLOGD("block_size: %d", info->block_size); in dbg_print_info_struct()
137 SLOGD("sit_bmp loc: %p", info->sit_bmp); in dbg_print_info_struct()
138 SLOGD("sit_bmp_size: %d", info->sit_bmp_size); in dbg_print_info_struct()
139 SLOGD("blocks_per_sit: %" PRIu64, info->blocks_per_sit); in dbg_print_info_struct()
140 SLOGD("sit_blocks loc: %p", info->sit_blocks); in dbg_print_info_struct()
141 SLOGD("sit_sums loc: %p", info->sit_sums); in dbg_print_info_struct()
142 SLOGD("sit_sums num: %d", le16_to_cpu(info->sit_sums->journal.n_sits)); in dbg_print_info_struct()
144 for(i = 0; i < (le16_to_cpu(info->sit_sums->journal.n_sits)); i++) { in dbg_print_info_struct()
[all …]
/system/libufdt/utils/src/
Dmkdtimg.c48 const struct command_info *info; in search_command() local
49 for (info = command_infos; info->command != NULL; info++) { in search_command()
50 if (strcmp(command, info->command) == 0) { in search_command()
54 if (info->command == NULL) { in search_command()
58 return info; in search_command()
62 const struct command_info *info; in print_all_commands() local
63 for (info = command_infos; info->command != NULL; info++) { in print_all_commands()
64 if (info != command_infos) { in print_all_commands()
67 fprintf(out_fp, "%s", info->command); in print_all_commands()
78 const struct command_info *info; in output_all_usage() local
[all …]
/system/core/fastboot/
Dusbtest.cpp50 int printifc(usb_ifc_info *info) in printifc() argument
53 info->dev_class, info->dev_subclass, info->dev_protocol, in printifc()
54 info->dev_vendor, info->dev_product); in printifc()
56 info->ifc_class, info->ifc_subclass, info->ifc_protocol, in printifc()
57 info->has_bulk_in ? " in" : "", in printifc()
58 info->has_bulk_out ? " out" : ""); in printifc()
62 int match_null(usb_ifc_info *info) in match_null() argument
64 if(info->dev_vendor != 0x18d1) return -1; in match_null()
65 if(info->ifc_class != 0xff) return -1; in match_null()
66 if(info->ifc_subclass != 0xfe) return -1; in match_null()
[all …]
/system/extras/ext4_utils/
Dext4_sb.c21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) in ext4_parse_sb() argument
28 info->block_size = 1024 << sb->s_log_block_size; in ext4_parse_sb()
29 info->blocks_per_group = sb->s_blocks_per_group; in ext4_parse_sb()
30 info->inodes_per_group = sb->s_inodes_per_group; in ext4_parse_sb()
31 info->inode_size = sb->s_inode_size; in ext4_parse_sb()
32 info->inodes = sb->s_inodes_count; in ext4_parse_sb()
33 info->feat_ro_compat = sb->s_feature_ro_compat; in ext4_parse_sb()
34 info->feat_compat = sb->s_feature_compat; in ext4_parse_sb()
35 info->feat_incompat = sb->s_feature_incompat; in ext4_parse_sb()
36 info->bg_desc_reserve_blocks = sb->s_reserved_gdt_blocks; in ext4_parse_sb()
[all …]
Dext4_utils.c51 struct fs_info info; variable
130 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
182 offset = (unsigned long long)info.block_size * (aux_info.first_data_block in block_device_write_sb()
183 + i * info.blocks_per_group); in block_device_write_sb()
197 if (info.block_device) in write_ext4_image()
204 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
205 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
206 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
207 info.block_size); in ext4_create_fs_aux_info()
209 info.blocks_per_group); in ext4_create_fs_aux_info()
[all …]
Dmake_ext4fs.c264 dentries[i].link = calloc(info.block_size, 1); in build_directory_structure()
265 readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1); in build_directory_structure()
364 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64; in compute_journal_blocks()
374 return info.block_size * 8; in compute_blocks_per_group()
379 return DIV_ROUND_UP(info.len, info.block_size) / 4; in compute_inodes()
384 u32 blocks = DIV_ROUND_UP(info.len, info.block_size); in compute_inodes_per_group()
385 u32 block_groups = DIV_ROUND_UP(blocks, info.blocks_per_group); in compute_inodes_per_group()
386 u32 inodes = DIV_ROUND_UP(info.inodes, block_groups); in compute_inodes_per_group()
387 inodes = EXT4_ALIGN(inodes, (info.block_size / info.inode_size)); in compute_inodes_per_group()
392 info.inodes = inodes * block_groups; in compute_inodes_per_group()
[all …]
Dindirect.c33 if (DIV_ROUND_UP(backing_len, info.block_size) > EXT4_NDIR_BLOCKS) in create_backing()
47 len = min(region_len * info.block_size, backing_len); in create_backing()
125 u32 *ind_block_data = calloc(info.block_size, 1); in fill_dindirect_block()
126 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, in fill_dindirect_block()
155 u32 *dind_block_data = calloc(info.block_size, 1); in fill_tindirect_block()
156 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size, in fill_tindirect_block()
204 u32 *ind_block_data = calloc(info.block_size, 1); in inode_attach_indirect_blocks()
205 sparse_file_add_data(ext4_sparse_file, ind_block_data, info.block_size, in inode_attach_indirect_blocks()
236 u32 *dind_block_data = calloc(info.block_size, 1); in inode_attach_dindirect_blocks()
237 sparse_file_add_data(ext4_sparse_file, dind_block_data, info.block_size, in inode_attach_dindirect_blocks()
[all …]
/system/core/libsync/
Dsync.c208 struct sync_file_info *info; in modern_sync_file_info() local
216 info = calloc(1, sizeof(struct sync_file_info) + in modern_sync_file_info()
218 if (!info) in modern_sync_file_info()
221 info->num_fences = local_info.num_fences; in modern_sync_file_info()
222 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in modern_sync_file_info()
224 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); in modern_sync_file_info()
226 free(info); in modern_sync_file_info()
230 return info; in modern_sync_file_info()
234 const struct sync_file_info *info) in sync_file_info_to_legacy_fence_info() argument
238 const struct sync_fence_info *fence_info = sync_get_fence_info(info); in sync_file_info_to_legacy_fence_info()
[all …]
/system/core/libunwindstack/tests/
DDwarfDebugFrameTest.cpp41 void TestPushFdeInfo(const typename DwarfDebugFrame<TypeParam>::FdeInfo& info) { in TestPushFdeInfo() argument
42 this->fdes_.push_back(info); in TestPushFdeInfo()
48 void TestGetFdeInfo(size_t index, typename DwarfDebugFrame<TypeParam>::FdeInfo* info) { in TestGetFdeInfo() argument
49 *info = this->fdes_[index]; in TestGetFdeInfo()
109 typename DwarfDebugFrame<TypeParam>::FdeInfo info(0, 0, 0); in TYPED_TEST_P() local
111 this->debug_frame_->TestGetFdeInfo(0, &info); in TYPED_TEST_P()
112 EXPECT_EQ(0x5100U, info.offset); in TYPED_TEST_P()
113 EXPECT_EQ(0x1500U, info.start); in TYPED_TEST_P()
114 EXPECT_EQ(0x1700U, info.end); in TYPED_TEST_P()
116 this->debug_frame_->TestGetFdeInfo(1, &info); in TYPED_TEST_P()
[all …]
DMapInfoCreateMemoryTest.cpp67 MapInfo info{.start = 0x100, .end = 0x100, .offset = 0, .name = elf_.path}; in TEST_F() local
70 memory.reset(info.CreateMemory(getpid())); in TEST_F()
73 info.end = 0xff; in TEST_F()
74 memory.reset(info.CreateMemory(getpid())); in TEST_F()
78 info.end = 0x101; in TEST_F()
79 memory.reset(info.CreateMemory(getpid())); in TEST_F()
86 MapInfo info{.start = 0x100, .end = 0x200, .offset = 0x100, .name = elf_.path}; in TEST_F() local
88 std::unique_ptr<Memory> memory(info.CreateMemory(getpid())); in TEST_F()
90 ASSERT_EQ(0x100U, info.elf_offset); in TEST_F()
106 MapInfo info{.start = 0x100, .end = 0x200, .offset = 0x100, .name = elf_at_100_.path}; in TEST_F() local
[all …]
DMapsTest.cpp200 MapInfo* info = maps.Find(0x1000); in TEST() local
201 ASSERT_TRUE(info != nullptr); in TEST()
202 ASSERT_EQ(0x1000U, info->start); in TEST()
203 ASSERT_EQ(0x2000U, info->end); in TEST()
204 ASSERT_EQ(0x10U, info->offset); in TEST()
205 ASSERT_EQ(PROT_READ, info->flags); in TEST()
206 ASSERT_EQ("/system/lib/fake1.so", info->name); in TEST()
208 info = maps.Find(0x3020); in TEST()
209 ASSERT_TRUE(info != nullptr); in TEST()
210 ASSERT_EQ(0x3000U, info->start); in TEST()
[all …]
DDwarfEhFrameTest.cpp46 void TestSetFdeInfo(uint64_t index, const typename DwarfEhFrame<TypeParam>::FdeInfo& info) { in TestSetFdeInfo() argument
47 this->fde_info_[index] = info; in TestSetFdeInfo()
125 auto info = this->eh_frame_->GetFdeInfoFromIndex(2); in TYPED_TEST_P() local
126 ASSERT_TRUE(info != nullptr); in TYPED_TEST_P()
127 EXPECT_EQ(0x1380U, info->pc); in TYPED_TEST_P()
128 EXPECT_EQ(0x1540U, info->offset); in TYPED_TEST_P()
140 auto info = this->eh_frame_->GetFdeInfoFromIndex(2); in TYPED_TEST_P() local
141 ASSERT_TRUE(info != nullptr); in TYPED_TEST_P()
142 EXPECT_EQ(0x3340U, info->pc); in TYPED_TEST_P()
143 EXPECT_EQ(0x3500U, info->offset); in TYPED_TEST_P()
[all …]
/system/extras/boot_control_copy/
Dboot_control_copy.c137 BrilloBootInfo info; in module_setActiveBootSlot() local
145 if (!boot_info_load(&info)) { in module_setActiveBootSlot()
147 boot_info_reset(&info); in module_setActiveBootSlot()
149 if (!boot_info_validate(&info)) { in module_setActiveBootSlot()
151 boot_info_reset(&info); in module_setActiveBootSlot()
155 info.active_slot = slot; in module_setActiveBootSlot()
156 info.slot_info[slot].bootable = true; in module_setActiveBootSlot()
157 snprintf(info.bootctrl_suffix, in module_setActiveBootSlot()
158 sizeof(info.bootctrl_suffix), in module_setActiveBootSlot()
161 if (!boot_info_save(&info)) { in module_setActiveBootSlot()
[all …]
Dbootinfo.c143 bool boot_info_save(BrilloBootInfo *info) in boot_info_save() argument
156 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); in boot_info_save()
164 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate() argument
166 if (info->magic[0] != 'B' || in boot_info_validate()
167 info->magic[1] != 'C' || in boot_info_validate()
168 info->magic[2] != 'c') in boot_info_validate()
170 if (info->active_slot >= 2) in boot_info_validate()
175 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset() argument
177 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
178 info->magic[0] = 'B'; in boot_info_reset()
[all …]
/system/chre/apps/chqts/src/general_test/
Dnanoapp_info.cc40 AppInfo info; in sendToHost() local
41 info.appId = mAppId; in sendToHost()
42 info.instanceId = mInstanceId; in sendToHost()
44 nanoapp_testing::hostToLittleEndian(&info.appId); in sendToHost()
45 nanoapp_testing::hostToLittleEndian(&info.instanceId); in sendToHost()
48 &info, sizeof(info)); in sendToHost()
66 bool NanoappInfo::queryByAppId(struct chreNanoappInfo *info) { in queryByAppId() argument
67 bool result = chreGetNanoappInfoByAppId(mAppId, info); in queryByAppId()
77 bool NanoappInfo::queryByInstanceId(struct chreNanoappInfo *info) { in queryByInstanceId() argument
78 bool result = chreGetNanoappInfoByInstanceId(mInstanceId, info); in queryByInstanceId()
/system/core/libnetutils/
Ddhcpclient.c127 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
129 last_good_info = *info; in dhcp_configure()
130 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
131 info->dns1, info->dns2); in dhcp_configure()
149 void dump_dhcp_info(dhcp_info *info) in dump_dhcp_info() argument
153 dhcp_type_to_name(info->type), info->type); in dump_dhcp_info()
154 strcpy(addr, ipaddr(info->ipaddr)); in dump_dhcp_info()
155 strcpy(gway, ipaddr(info->gateway)); in dump_dhcp_info()
156 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength); in dump_dhcp_info()
157 if (info->dns1) ALOGD("dns1: %s", ipaddr(info->dns1)); in dump_dhcp_info()
[all …]
/system/extras/pagecache/
Ddumpcache.c44 struct file_info *info; in get_file_info() local
54 info = calloc(1, sizeof(*info)); in get_file_info()
55 if (!info) { in get_file_info()
60 info->name = malloc(strlen(fpath) + 1); in get_file_info()
61 if (!info->name) { in get_file_info()
65 strcpy(info->name, fpath); in get_file_info()
67 info->num_cached_pages = 0; in get_file_info()
68 info->file_size = file_size; in get_file_info()
70 g_files[g_num_files++] = info; in get_file_info()
72 return info; in get_file_info()
[all …]
/system/core/libunwindstack/
DDwarfEhFrame.cpp77 const FdeInfo* info = GetFdeInfoFromIndex(index); in GetFdeFromIndex() local
78 if (info == nullptr) { in GetFdeFromIndex()
81 return this->GetFdeFromOffset(info->offset); in GetFdeFromIndex()
91 FdeInfo* info = &fde_info_[index]; in GetFdeInfoFromIndex() local
98 !memory_.template ReadEncodedValue<AddressType>(table_encoding_, &info->offset)) { in GetFdeInfoFromIndex()
103 info->pc = value; in GetFdeInfoFromIndex()
104 return info; in GetFdeInfoFromIndex()
117 const FdeInfo* info = GetFdeInfoFromIndex(current); in GetFdeOffsetBinary() local
118 if (pc == info->pc) { in GetFdeOffsetBinary()
119 *fde_offset = info->offset; in GetFdeOffsetBinary()
[all …]
/system/media/audio_utils/
Dtinysndfile.c36 SF_INFO info; member
65 static SNDFILE *sf_open_read(const char *path, SF_INFO *info) in sf_open_read() argument
79 handle->info.format = SF_FORMAT_WAV; in sf_open_read()
210 handle->info.samplerate = samplerate; in sf_open_read()
211 handle->info.channels = channels; in sf_open_read()
214 handle->info.format |= SF_FORMAT_PCM_U8; in sf_open_read()
217 handle->info.format |= SF_FORMAT_PCM_16; in sf_open_read()
220 handle->info.format |= SF_FORMAT_PCM_24; in sf_open_read()
224 handle->info.format |= SF_FORMAT_FLOAT; in sf_open_read()
226 handle->info.format |= SF_FORMAT_PCM_32; in sf_open_read()
[all …]
/system/chre/apps/unload_tester/
Dunload_tester.cc63 struct chreNanoappInfo info; in nanoappStart() local
64 bool gotInfo = chreGetNanoappInfoByInstanceId(chreGetInstanceId(), &info); in nanoappStart()
66 CHRE_ASSERT(info.appId == chreGetAppId()); in nanoappStart()
67 CHRE_ASSERT(info.appId == kUnloadTesterAppId); in nanoappStart()
68 CHRE_ASSERT(info.version == kAppVersion); in nanoappStart()
69 CHRE_ASSERT(info.instanceId == chreGetInstanceId()); in nanoappStart()
80 struct chreNanoappInfo info; in nanoappHandleEvent() local
81 if (!chreGetNanoappInfoByAppId(kSpammerAppId, &info)) { in nanoappHandleEvent()
93 const auto *info = static_cast<const chreNanoappInfo *>(eventData); in nanoappHandleEvent() local
94 if (info->appId == kSpammerAppId) { in nanoappHandleEvent()
[all …]
/system/core/adb/client/
Dusb_libusb.cpp497 static int perform_usb_transfer(usb_handle* h, transfer_info* info, in perform_usb_transfer() argument
499 libusb_transfer* transfer = info->transfer; in perform_usb_transfer()
501 transfer->user_data = info; in perform_usb_transfer()
503 transfer_info* info = static_cast<transfer_info*>(transfer->user_data); in perform_usb_transfer() local
505 LOG(DEBUG) << info->name << " transfer callback entered"; in perform_usb_transfer()
508 std::unique_lock<std::mutex> lock(info->mutex); in perform_usb_transfer()
510 LOG(DEBUG) << info->name << " callback successfully acquired lock"; in perform_usb_transfer()
513 LOG(WARNING) << info->name in perform_usb_transfer()
515 info->Notify(); in perform_usb_transfer()
520 if (info->is_bulk_out && transfer->actual_length != transfer->length) { in perform_usb_transfer()
[all …]
/system/core/run-as/
Drun-as.cpp156 pkg_info info; in main() local
157 memset(&info, 0, sizeof(info)); in main()
158 info.name = pkgname; in main()
159 if (!packagelist_parse(packagelist_parse_callback, &info)) { in main()
162 if (info.uid == 0) { in main()
168 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main()
173 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main()
181 if (!info.debuggable) { in main()
186 if (!check_data_path(info.data_dir, userAppId)) { in main()
200 if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) { in main()
[all …]
/system/extras/libfec/
Dfec_process.cpp80 process_info info[threads]; in process() local
87 info[i].id = i; in process()
88 info[i].f = f; in process()
89 info[i].buf = &buf[pos - offset]; in process()
90 info[i].count = (size_t)(end - pos); in process()
91 info[i].offset = pos; in process()
92 info[i].func = func; in process()
93 info[i].rc = -1; in process()
94 info[i].errors = 0; in process()
96 if (info[i].count > left) { in process()
[all …]

12345678