/system/unwinding/libunwindstack/tests/ |
D | MapsTest.cpp | 28 static void VerifyLine(std::string line, MapInfo* info) { in VerifyLine() argument 31 if (info == nullptr) { in VerifyLine() 37 info->set_start(element->start()); in VerifyLine() 38 info->set_end(element->end()); in VerifyLine() 39 info->set_offset(element->offset()); in VerifyLine() 40 info->set_flags(element->flags()); in VerifyLine() 41 info->set_name(element->name()); in VerifyLine() 42 info->set_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 …]
|
D | RegsInfoTest.cpp | 31 RegsInfo<uint32_t> info(®s); in TEST() local 34 ASSERT_FALSE(info.IsSaved(1)); in TEST() 35 ASSERT_EQ(0x100U, info.Get(1)); in TEST() 36 ASSERT_EQ(10, info.Total()); in TEST() 38 uint32_t* value = info.Save(1); in TEST() 41 ASSERT_TRUE(info.IsSaved(1)); in TEST() 42 ASSERT_EQ(0x100U, info.Get(1)); in TEST() 48 RegsInfo<uint64_t> info(®s); in TEST() local 51 ASSERT_FALSE(info.IsSaved(3)); in TEST() 52 ASSERT_EQ(0x300U, info.Get(3)); in TEST() [all …]
|
D | MapInfoCreateMemoryTest.cpp | 92 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.set_end(0xff); in TEST_F() 98 memory.reset(info.CreateMemory(process_memory_)); in TEST_F() 102 info.set_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 …]
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 48 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/ |
D | MemUnreachable_test.cpp | 83 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/ |
D | packagelistparser.cpp | 31 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/ |
D | f2fs_sparseblock.c | 128 static void dbg_print_info_struct(struct f2fs_info* info) { in dbg_print_info_struct() argument 133 SLOGV("blocks_per_segment: %" PRIu64, info->blocks_per_segment); in dbg_print_info_struct() 134 SLOGV("block_size: %d", info->block_size); in dbg_print_info_struct() 135 SLOGV("sit_bmp loc: %p", info->sit_bmp); in dbg_print_info_struct() 136 SLOGV("sit_bmp_size: %d", info->sit_bmp_size); in dbg_print_info_struct() 137 SLOGV("blocks_per_sit: %" PRIu64, info->blocks_per_sit); in dbg_print_info_struct() 138 SLOGV("sit_blocks loc: %p", info->sit_blocks); in dbg_print_info_struct() 139 SLOGV("sit_sums loc: %p", info->sit_sums); in dbg_print_info_struct() 140 SLOGV("sit_sums num: %d", le16_to_cpu(info->sit_sums->journal.n_sits)); in dbg_print_info_struct() 142 for (i = 0; i < (le16_to_cpu(info->sit_sums->journal.n_sits)); i++) { in dbg_print_info_struct() [all …]
|
/system/libufdt/utils/src/ |
D | mkdtimg.c | 48 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/ |
D | ext4_sb.cpp | 21 int ext4_parse_sb(struct ext4_super_block* sb, struct fs_info* info) { in ext4_parse_sb() argument 26 info->block_size = 1024 << sb->s_log_block_size; in ext4_parse_sb() 27 info->blocks_per_group = sb->s_blocks_per_group; in ext4_parse_sb() 28 info->inodes_per_group = sb->s_inodes_per_group; in ext4_parse_sb() 29 info->inode_size = sb->s_inode_size; in ext4_parse_sb() 30 info->inodes = sb->s_inodes_count; in ext4_parse_sb() 31 info->feat_ro_compat = sb->s_feature_ro_compat; in ext4_parse_sb() 32 info->feat_compat = sb->s_feature_compat; in ext4_parse_sb() 33 info->feat_incompat = sb->s_feature_incompat; in ext4_parse_sb() 34 info->bg_desc_reserve_blocks = sb->s_reserved_gdt_blocks; in ext4_parse_sb() [all …]
|
D | ext4_utils.cpp | 42 struct fs_info info; variable 75 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) return 1; in ext4_bg_has_super_block() 98 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info() 99 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info() 101 DIV_ROUND_UP(info.inodes_per_group * info.inode_size, info.block_size); in ext4_create_fs_aux_info() 103 DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, info.blocks_per_group); in ext4_create_fs_aux_info() 104 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info() 109 DIV_ROUND_UP(aux_info.groups * (size_t)info.bg_desc_size, info.block_size); in ext4_create_fs_aux_info() 113 u32 last_group_size = aux_info.len_blocks == info.blocks_per_group in ext4_create_fs_aux_info() 115 : aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info() [all …]
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 180 info = BootImageInfoFormatter() 181 info.boot_magic = unpack('8s', args.boot_img.read(8))[0].decode() 185 info.header_version = kernel_ramdisk_second_info[8] 187 if info.header_version < 3: 188 info.kernel_size = kernel_ramdisk_second_info[0] 189 info.kernel_load_address = kernel_ramdisk_second_info[1] 190 info.ramdisk_size = kernel_ramdisk_second_info[2] 191 info.ramdisk_load_address = kernel_ramdisk_second_info[3] 192 info.second_size = kernel_ramdisk_second_info[4] 193 info.second_load_address = kernel_ramdisk_second_info[5] [all …]
|
/system/bt/gd/cert/ |
D | gd_base_test_lib.py | 38 info = {} 39 info['dut_module'] = dut_module 40 info['cert_module'] = cert_module 41 info['controller_configs'] = controller_configs 44 info['rootcanal_running'] = False 45 if 'rootcanal' in info['controller_configs']: 46 info['rootcanal_running'] = True 49 info['rootcanal'] = rootcanal 50 info['rootcanal_exist'] = os.path.isfile(rootcanal) 52 return info [all …]
|
/system/unwinding/libunwindstack/ |
D | Global.cpp | 79 for (const auto& info : *maps) { in FindAndReadVariable() 80 if (info->offset() != 0 && in FindAndReadVariable() 81 (info->flags() & (PROT_READ | PROT_WRITE)) == (PROT_READ | PROT_WRITE) && in FindAndReadVariable() 82 map_zero != nullptr && Searchable(info->name()) && info->name() == map_zero->name()) { in FindAndReadVariable() 86 uint64_t offset_end = info->offset() + info->end() - info->start(); in FindAndReadVariable() 87 if (ptr >= info->offset() && ptr < offset_end) { in FindAndReadVariable() 88 ptr = info->start() + ptr - info->offset(); in FindAndReadVariable() 94 } else if (info->offset() == 0 && !info->name().empty()) { in FindAndReadVariable() 95 map_zero = info.get(); in FindAndReadVariable()
|
/system/core/libsync/ |
D | sync.c | 53 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/ |
D | boot_control_copy.cpp | 126 BrilloBootInfo info; in module_setActiveBootSlot() local 133 if (!boot_info_load(&info)) { in module_setActiveBootSlot() 135 boot_info_reset(&info); in module_setActiveBootSlot() 137 if (!boot_info_validate(&info)) { in module_setActiveBootSlot() 139 boot_info_reset(&info); in module_setActiveBootSlot() 143 info.active_slot = slot; in module_setActiveBootSlot() 144 info.slot_info[slot].bootable = true; in module_setActiveBootSlot() 145 snprintf(info.bootctrl_suffix, sizeof(info.bootctrl_suffix), "_%c", slot + 'a'); in module_setActiveBootSlot() 147 if (!boot_info_save(&info)) { in module_setActiveBootSlot() 195 BrilloBootInfo info; in module_setSlotAsUnbootable() local [all …]
|
/system/tools/aidl/metadata/ |
D | test.cpp | 27 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/extras/pagecache/ |
D | dumpcache.c | 44 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/ |
D | dhcpclient.c | 127 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/hidl/metadata/ |
D | test.cpp | 27 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/ |
D | tinysndfile.c | 36 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/ |
D | unload_tester.cc | 66 struct chreNanoappInfo info; in nanoappStart() local 67 bool gotInfo = chreGetNanoappInfoByInstanceId(chreGetInstanceId(), &info); in nanoappStart() 69 CHRE_ASSERT(info.appId == chreGetAppId()); in nanoappStart() 70 CHRE_ASSERT(info.appId == kUnloadTesterAppId); in nanoappStart() 71 CHRE_ASSERT(info.version == kAppVersion); in nanoappStart() 72 CHRE_ASSERT(info.instanceId == chreGetInstanceId()); in nanoappStart() 82 struct chreNanoappInfo info; in nanoappHandleEvent() local 83 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/extras/simpleperf/simpleperf_app_runner/ |
D | simpleperf_app_runner.cpp | 63 pkg_info* info; member 66 static bool PackageListParseCallback(pkg_info* info, void* userdata) { in PackageListParseCallback() argument 68 if (strcmp(arg->name, info->name) == 0) { in PackageListParseCallback() 69 arg->info = info; in PackageListParseCallback() 72 packagelist_free(info); in PackageListParseCallback() 84 arg.info = nullptr; in ReadPackageInfo() 91 return arg.info; in ReadPackageInfo() 188 pkg_info* info = ReadPackageInfo(pkgname); in main() local 189 if (info == nullptr) { in main() 192 if (info->debuggable) { in main() [all …]
|
/system/tools/aidl/build/ |
D | aidl_interface_metadata_singleton.go | 95 info := moduleInfos[t.ModuleBase.Name()] 96 info.Stability = proptools.StringDefault(t.properties.Stability, "") 97 info.ComputedTypes = t.computedTypes 98 moduleInfos[t.ModuleBase.Name()] = info 100 info := moduleInfos[t.properties.BaseName] 102 info.HashFiles = append(info.HashFiles, t.hashFile.String()) 104 moduleInfos[t.properties.BaseName] = info 111 info := moduleInfos[name] 118 info.HashFiles = android.FirstUniqueStrings(info.HashFiles) 120 implicits := android.PathsForSource(ctx, info.HashFiles) [all …]
|
/system/unwinding/libunwindstack/tools/ |
D | unwind_for_offline.cpp | 133 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/ |
D | WakeLockEntryList.cpp | 163 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 …]
|