Home
last modified time | relevance | path

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

12345678910>>...13

/system/core/libunwindstack/tests/
DMapsTest.cpp28 static void VerifyLine(std::string line, MapInfo* info) { in VerifyLine() argument
31 if (info == nullptr) { in VerifyLine()
37 info->start = element->start; in VerifyLine()
38 info->end = element->end; in VerifyLine()
39 info->offset = element->offset; in VerifyLine()
40 info->flags = element->flags; in VerifyLine()
41 info->name = element->name; in VerifyLine()
42 info->elf_offset = element->elf_offset; in VerifyLine()
54 MapInfo* info = maps.Get(0); in TEST() local
55 ASSERT_EQ(0x1000U, info->start); in TEST()
[all …]
DRegsInfoTest.cpp30 RegsInfo<uint32_t> info(&regs); in TEST() local
33 ASSERT_FALSE(info.IsSaved(1)); in TEST()
34 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
35 ASSERT_EQ(10, info.Total()); in TEST()
37 uint32_t* value = info.Save(1); in TEST()
40 ASSERT_TRUE(info.IsSaved(1)); in TEST()
41 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
47 RegsInfo<uint64_t> info(&regs); in TEST() local
50 ASSERT_FALSE(info.IsSaved(3)); in TEST()
51 ASSERT_EQ(0x300U, info.Get(3)); in TEST()
[all …]
DMapInfoCreateMemoryTest.cpp98 MapInfo info(nullptr, 0x100, 0x100, 0, 0, elf_.path); in TEST_F() local
100 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F()
103 info.end = 0xff; in TEST_F()
104 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
108 info.end = 0x101; in TEST_F()
109 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
111 EXPECT_FALSE(info.memory_backed_elf); in TEST_F()
117 MapInfo info(nullptr, 0x100, 0x200, 0x100, 0, elf_.path); in TEST_F() local
119 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F()
121 EXPECT_FALSE(info.memory_backed_elf); in TEST_F()
[all …]
DMapInfoGetElfTest.cpp71 MapInfo info(nullptr, 0x1000, 0x2000, 0, PROT_READ, ""); in TEST_F() local
74 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
80 MapInfo info(nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F() local
86 Elf* elf = info.GetElf(process_memory_, ARCH_ARM); in TEST_F()
93 info.elf.reset(); in TEST_F()
94 elf = info.GetElf(std::shared_ptr<Memory>(), ARCH_ARM); in TEST_F()
100 MapInfo info(nullptr, 0x8000, 0x9000, 0, PROT_READ, ""); in TEST_F() local
106 Elf* elf = info.GetElf(process_memory_, ARCH_ARM64); in TEST_F()
114 MapInfo info(nullptr, 0x3000, 0x4000, 0, PROT_READ, ""); in TEST_F() local
120 Elf* elf = info.GetElf(process_memory_, ARCH_X86); in TEST_F()
[all …]
/system/extras/tests/framebuffer/
Drefresh.c48 struct fb_var_screeninfo info; in main() local
49 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in main()
52 info.reserved[0] = 0; in main()
53 info.reserved[1] = 0; in main()
54 info.reserved[2] = 0; in main()
55 info.xoffset = 0; in main()
56 info.yoffset = 0; in main()
57 info.bits_per_pixel = 16; in main()
58 info.activate = FB_ACTIVATE_NOW; in main()
60 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) { in main()
[all …]
/system/core/libmemunreachable/tests/
DMemUnreachable_test.cpp82 UnreachableMemoryInfo info; in TEST_F() local
86 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
87 ASSERT_EQ(0U, info.leaks.size()); in TEST_F()
97 UnreachableMemoryInfo info; in TEST_F() local
99 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
100 ASSERT_EQ(0U, info.leaks.size()); in TEST_F()
106 UnreachableMemoryInfo info; in TEST_F() local
108 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
109 ASSERT_EQ(1U, info.leaks.size()); in TEST_F()
115 UnreachableMemoryInfo info; in TEST_F() 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/extras/ext4_utils/
Dext4_sb.cpp21 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.cpp40 struct fs_info info; variable
79 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
110 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
111 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
112 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
113 info.block_size); in ext4_create_fs_aux_info()
115 info.blocks_per_group); in ext4_create_fs_aux_info()
116 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
122 info.block_size); in ext4_create_fs_aux_info()
126 u32 last_group_size = aux_info.len_blocks == info.blocks_per_group in ext4_create_fs_aux_info()
[all …]
/system/core/libsync/
Dsync.c53 struct sync_pt_info* sync_pt_info(struct sync_fence_info_data* info, struct sync_pt_info* itr);
54 void sync_fence_info_free(struct sync_fence_info_data* info);
231 struct sync_file_info *info; in modern_sync_file_info() local
239 info = calloc(1, sizeof(struct sync_file_info) + in modern_sync_file_info()
241 if (!info) in modern_sync_file_info()
244 info->num_fences = local_info.num_fences; in modern_sync_file_info()
245 info->sync_fence_info = (__u64)(uintptr_t)(info + 1); in modern_sync_file_info()
247 err = ioctl(fd, SYNC_IOC_FILE_INFO, info); in modern_sync_file_info()
249 free(info); in modern_sync_file_info()
253 return info; in modern_sync_file_info()
[all …]
/system/extras/boot_control_copy/
Dboot_control_copy.cpp137 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.cpp138 bool boot_info_save(BrilloBootInfo *info) in boot_info_save() argument
151 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); in boot_info_save()
159 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate() argument
161 if (info->magic[0] != 'B' || in boot_info_validate()
162 info->magic[1] != 'C' || in boot_info_validate()
163 info->magic[2] != 'c') in boot_info_validate()
165 if (info->active_slot >= 2) in boot_info_validate()
170 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset() argument
172 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
173 info->magic[0] = 'B'; in boot_info_reset()
[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/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/core/libunwindstack/
DGlobal.cpp42 uint64_t Global::GetVariableOffset(MapInfo* info, const std::string& variable) { in GetVariableOffset() argument
45 const char* lib = basename(info->name.c_str()); in GetVariableOffset()
57 Elf* elf = info->GetElf(memory_, arch()); in GetVariableOffset()
61 return ptr + info->start; in GetVariableOffset()
80 for (const auto& info : *maps) { in FindAndReadVariable()
82 if (map_start->name == info->name) { in FindAndReadVariable()
83 if (info->offset != 0 && in FindAndReadVariable()
84 (info->flags & (PROT_READ | PROT_WRITE)) == (PROT_READ | PROT_WRITE)) { in FindAndReadVariable()
97 if (map_start == nullptr && (info->flags & PROT_READ) && info->offset == 0 && in FindAndReadVariable()
98 !info->name.empty()) { in FindAndReadVariable()
[all …]
DElf.cpp340 void Elf::CacheAdd(MapInfo* info) { in CacheAdd() argument
348 if (info->offset == 0 || info->elf_offset != 0) { in CacheAdd()
349 (*cache_)[info->name] = std::make_pair(info->elf, true); in CacheAdd()
352 if (info->offset != 0) { in CacheAdd()
355 (*cache_)[info->name + ':' + std::to_string(info->offset)] = in CacheAdd()
356 std::make_pair(info->elf, info->elf_offset != 0); in CacheAdd()
360 bool Elf::CacheAfterCreateMemory(MapInfo* info) { in CacheAfterCreateMemory() argument
361 if (info->name.empty() || info->offset == 0 || info->elf_offset == 0) { in CacheAfterCreateMemory()
365 auto entry = cache_->find(info->name); in CacheAfterCreateMemory()
373 info->elf = entry->second.first; in CacheAfterCreateMemory()
[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()
91 const auto *info = static_cast<const chreNanoappInfo *>(eventData); in nanoappHandleEvent() local
92 if (info->appId == kSpammerAppId) { in nanoappHandleEvent()
[all …]
/system/core/libunwindstack/tools/
Dunwind_for_offline.cpp133 bool CreateElfFromMemory(std::shared_ptr<unwindstack::Memory>& memory, map_info_t* info) { in CreateElfFromMemory() argument
135 if (info->name.empty()) { in CreateElfFromMemory()
136 cur_name = android::base::StringPrintf("anonymous_%" PRIx64, info->start); in CreateElfFromMemory()
138 … cur_name = android::base::StringPrintf("%s_%" PRIx64, basename(info->name.c_str()), info->start); in CreateElfFromMemory()
141 std::vector<uint8_t> buffer(info->end - info->start); in CreateElfFromMemory()
144 size_t bytes = memory->Read(info->start, buffer.data(), buffer.size()); in CreateElfFromMemory()
146 printf("Cannot read data from address %" PRIx64 " length %zu\n", info->start, buffer.size()); in CreateElfFromMemory()
163 info->name = cur_name; in CreateElfFromMemory()
168 bool CopyElfFromFile(map_info_t* info, bool* file_copied) { in CopyElfFromFile() argument
169 std::string cur_name = basename(info->name.c_str()); in CopyElfFromFile()
[all …]
/system/netd/resolv/
Dsethostent.cpp66 int _hf_gethtbyname2(const char* name, int af, getnamaddr* info) { in _hf_gethtbyname2() argument
83 if ((ptr = buf = (char*) malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
93 info->hp->h_addrtype = af; in _hf_gethtbyname2()
94 info->hp->h_length = 0; in _hf_gethtbyname2()
97 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()
123 if ((size_t)(ptr - buf) >= info->buflen) goto nospc; in _hf_gethtbyname2()
141 hp = info->hp; in _hf_gethtbyname2()
142 ptr = info->buf; in _hf_gethtbyname2()
143 len = info->buflen; in _hf_gethtbyname2()
177 int _hf_gethtbyaddr(const unsigned char* uaddr, int len, int af, getnamaddr* info) { in _hf_gethtbyaddr() argument
[all …]
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp50 pkg_info* info; member
53 static bool PackageListParseCallback(pkg_info* info, void* userdata) { in PackageListParseCallback() argument
55 if (strcmp(arg->name, info->name) == 0) { in PackageListParseCallback()
56 arg->info = info; in PackageListParseCallback()
59 packagelist_free(info); in PackageListParseCallback()
71 arg.info = nullptr; in ReadPackageInfo()
78 return arg.info; in ReadPackageInfo()
168 pkg_info* info = ReadPackageInfo(pkgname); in main() local
169 if (info == nullptr) { in main()
172 if (info->uid < AID_APP_START || info->uid > AID_APP_END) { in main()
[all …]
/system/core/adb/client/
Dusb_libusb.cpp489 transfer_info* info = static_cast<transfer_info*>(transfer->user_data); in transfer_callback() local
491 LOG(DEBUG) << info->name << " transfer callback entered"; in transfer_callback()
494 std::unique_lock<std::mutex> lock(info->mutex); in transfer_callback()
496 LOG(DEBUG) << info->name << " callback successfully acquired lock"; in transfer_callback()
499 LOG(WARNING) << info->name << " transfer failed: " << libusb_error_name(transfer->status); in transfer_callback()
500 info->Notify(); in transfer_callback()
505 if (info->is_bulk_out && transfer->actual_length != transfer->length) { in transfer_callback()
506 LOG(DEBUG) << info->name << " transfer incomplete, resubmitting"; in transfer_callback()
511 LOG(WARNING) << "failed to submit " << info->name in transfer_callback()
514 info->Notify(); in transfer_callback()
[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 …]
/system/chre/apps/chqts/src/general_test/
Dsensor_info_test.cc35 struct chreSensorInfo info; in setUp() local
37 if (!chreGetSensorInfo(mSensorHandle, &info)) { in setUp()
42 validateSensorInfo(info); in setUp()
47 void SensorInfoTest::validateSensorInfo(const struct chreSensorInfo& info) const { in validateSensorInfo()
48 if ((mApiVersion < CHRE_API_VERSION_1_1) && (info.minInterval != 0)) { in validateSensorInfo()
51 } else if (info.minInterval == 0) { in validateSensorInfo()
56 info.minInterval, in validateSensorInfo()

12345678910>>...13