Home
last modified time | relevance | path

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

12345678910>>...15

/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.cpp92 MapInfo info(nullptr, nullptr, 0x100, 0x100, 0, 0, elf_.path); in TEST_F() local
94 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F()
97 info.end = 0xff; in TEST_F()
98 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
102 info.end = 0x101; in TEST_F()
103 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
105 EXPECT_FALSE(info.memory_backed_elf); in TEST_F()
111 MapInfo info(nullptr, nullptr, 0x100, 0x200, 0x100, 0, elf_.path); in TEST_F() local
113 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F()
115 EXPECT_FALSE(info.memory_backed_elf); in TEST_F()
[all …]
DMapInfoGetElfTest.cpp71 MapInfo info(nullptr, 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, 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, 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, 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/memory/libmemunreachable/tests/
DMemUnreachable_test.cpp83 UnreachableMemoryInfo info; in TEST_F() local
87 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
88 ASSERT_EQ(0U, info.leaks.size()); in TEST_F()
98 UnreachableMemoryInfo info; in TEST_F() local
100 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
101 ASSERT_EQ(0U, info.leaks.size()); in TEST_F()
107 UnreachableMemoryInfo info; in TEST_F() local
109 ASSERT_TRUE(GetUnreachableMemory(info)); in TEST_F()
110 ASSERT_EQ(1U, info.leaks.size()); in TEST_F()
116 UnreachableMemoryInfo info; in TEST_F() local
[all …]
/system/core/libpackagelistparser/
Dpackagelistparser.cpp31 static bool parse_gids(const char* path, size_t line_number, const char* gids, pkg_info* info) { in parse_gids() argument
36 info->gids.cnt = 1; in parse_gids()
38 if (*p == ',') ++info->gids.cnt; in parse_gids()
42 info->gids.gids = new gid_t[info->gids.cnt]; in parse_gids()
43 if (!info->gids.gids) return false; in parse_gids()
55 if (i >= info->gids.cnt) return false; in parse_gids()
56 info->gids.gids[i++] = gid; in parse_gids()
65 static bool parse_line(const char* path, size_t line_number, const char* line, pkg_info* info) { in parse_line() argument
72 sscanf(line, "%ms %lu %d %ms %ms %ms %d %ld", &info->name, &uid, &debuggable, &info->data_dir, in parse_line()
73 &info->seinfo, &gid_list, &profileable_from_shell, &info->version_code); in parse_line()
[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.cpp42 struct fs_info info; variable
81 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
112 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
113 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
114 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
115 info.block_size); in ext4_create_fs_aux_info()
117 info.blocks_per_group); in ext4_create_fs_aux_info()
118 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
124 info.block_size); in ext4_create_fs_aux_info()
128 u32 last_group_size = aux_info.len_blocks == info.blocks_per_group in ext4_create_fs_aux_info()
[all …]
/system/core/libunwindstack/
DGlobal.cpp79 for (const auto& info : *maps) { in FindAndReadVariable()
80 if (info->offset != 0 && (info->flags & (PROT_READ | PROT_WRITE)) == (PROT_READ | PROT_WRITE) && in FindAndReadVariable()
81 map_zero != nullptr && Searchable(info->name) && info->name == map_zero->name) { in FindAndReadVariable()
85 uint64_t offset_end = info->offset + info->end - info->start; in FindAndReadVariable()
86 if (ptr >= info->offset && ptr < offset_end) { in FindAndReadVariable()
87 ptr = info->start + ptr - info->offset; in FindAndReadVariable()
93 } else if (info->offset == 0 && !info->name.empty()) { in FindAndReadVariable()
94 map_zero = info.get(); in FindAndReadVariable()
/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.cpp146 bool boot_info_save(BrilloBootInfo *info) in boot_info_save() argument
159 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); in boot_info_save()
167 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate() argument
169 if (info->magic[0] != 'B' || in boot_info_validate()
170 info->magic[1] != 'C' || in boot_info_validate()
171 info->magic[2] != 'c') in boot_info_validate()
173 if (info->active_slot >= 2) in boot_info_validate()
178 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset() argument
180 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
181 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/tools/aidl/metadata/
Dtest.cpp27 for (const AidlInterfaceMetadata& info : AidlInterfaceMetadata::all()) { in metadataForModule() local
28 if (name == info.name) return info; in metadataForModule()
34 const auto& info = metadataForModule("test-piece-1"); in TEST() local
35 ASSERT_NE(info, std::nullopt); in TEST()
36 EXPECT_EQ(info->stability, ""); in TEST()
37 EXPECT_THAT(info->types, in TEST()
40 EXPECT_THAT(info->hashes, ElementsAre("13e24b2fac6a979971819fba2ab0d6d7c4182122", in TEST()
/system/tools/hidl/metadata/
Dtest.cpp27 for (const HidlInterfaceMetadata& info : HidlInterfaceMetadata::all()) { in metadataForModule() local
28 if (name == info.name) return info; in metadataForModule()
34 const auto& info = metadataForModule("android.hardware.tests.bar@1.0::IBar"); in TEST() local
35 ASSERT_NE(info, std::nullopt); in TEST()
36 EXPECT_THAT(info->inherited, ElementsAre("android.hardware.tests.foo@1.0::IFoo")); in TEST()
42 const auto& info = metadataForModule(iface); in TEST() local
43 ASSERT_NE(info, std::nullopt) << iface; in TEST()
/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/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.cpp163 WakeLockInfo info; in createNativeEntry() local
165 info.name = name; in createNativeEntry()
167 info.activeCount = 1; in createNativeEntry()
168 info.lastChange = timeNow; in createNativeEntry()
169 info.maxTime = 0; in createNativeEntry()
170 info.totalTime = 0; in createNativeEntry()
171 info.isActive = true; in createNativeEntry()
172 info.activeTime = 0; in createNativeEntry()
173 info.isKernelWakelock = false; in createNativeEntry()
175 info.pid = pid; in createNativeEntry()
[all …]
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp60 pkg_info* info; member
63 static bool PackageListParseCallback(pkg_info* info, void* userdata) { in PackageListParseCallback() argument
65 if (strcmp(arg->name, info->name) == 0) { in PackageListParseCallback()
66 arg->info = info; in PackageListParseCallback()
69 packagelist_free(info); in PackageListParseCallback()
81 arg.info = nullptr; in ReadPackageInfo()
88 return arg.info; in ReadPackageInfo()
178 pkg_info* info = ReadPackageInfo(pkgname); in main() local
179 if (info == nullptr) { in main()
182 if (info->uid < AID_APP_START || info->uid > AID_APP_END) { in main()
[all …]
/system/core/adb/client/
Dusb_libusb.cpp488 transfer_info* info = static_cast<transfer_info*>(transfer->user_data); in transfer_callback() local
490 LOG(DEBUG) << info->name << " transfer callback entered"; in transfer_callback()
493 std::unique_lock<std::mutex> lock(info->mutex); in transfer_callback()
495 LOG(DEBUG) << info->name << " callback successfully acquired lock"; in transfer_callback()
498 LOG(WARNING) << info->name << " transfer failed: " << libusb_error_name(transfer->status); in transfer_callback()
499 info->Notify(); in transfer_callback()
504 if (info->is_bulk_out && transfer->actual_length != transfer->length) { in transfer_callback()
505 LOG(DEBUG) << info->name << " transfer incomplete, resubmitting"; in transfer_callback()
510 LOG(WARNING) << "failed to submit " << info->name in transfer_callback()
513 info->Notify(); in transfer_callback()
[all …]

12345678910>>...15