/system/bt/gd/storage/ |
D | config_cache_helper.cc | 25 void ConfigCacheHelper::SetBool(const std::string& section, const std::string& property, bool value… in SetBool() argument 26 config_cache_.SetProperty(section, property, value ? "true" : "false"); in SetBool() 29 std::optional<bool> ConfigCacheHelper::GetBool(const std::string& section, const std::string& prope… in GetBool() argument 30 auto value_str = config_cache_.GetProperty(section, property); in GetBool() 43 void ConfigCacheHelper::SetUint64(const std::string& section, const std::string& property, uint64_t… in SetUint64() argument 44 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint64() 47 std::optional<uint64_t> ConfigCacheHelper::GetUint64(const std::string& section, const std::string&… in GetUint64() argument 48 auto value_str = config_cache_.GetProperty(section, property); in GetUint64() 55 void ConfigCacheHelper::SetUint32(const std::string& section, const std::string& property, uint32_t… in SetUint32() argument 56 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint32() [all …]
|
D | config_cache_helper.h | 45 virtual void SetBool(const std::string& section, const std::string& property, bool value); 46 …virtual std::optional<bool> GetBool(const std::string& section, const std::string& property) const; 47 virtual void SetUint64(const std::string& section, const std::string& property, uint64_t value); 48 …virtual std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property)… 49 virtual void SetUint32(const std::string& section, const std::string& property, uint32_t value); 50 …virtual std::optional<uint32_t> GetUint32(const std::string& section, const std::string& property)… 51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value); 52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c… 53 virtual void SetInt(const std::string& section, const std::string& property, int value); 54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const; [all …]
|
D | config_cache.cc | 114 bool ConfigCache::HasSection(const std::string& section) const { in HasSection() 116 return information_sections_.contains(section) || persistent_devices_.contains(section) || in HasSection() 117 temporary_devices_.contains(section); in HasSection() 120 bool ConfigCache::HasProperty(const std::string& section, const std::string& property) const { in HasProperty() argument 122 auto section_iter = information_sections_.find(section); in HasProperty() 126 section_iter = persistent_devices_.find(section); in HasProperty() 130 section_iter = temporary_devices_.find(section); in HasProperty() 137 std::optional<std::string> ConfigCache::GetProperty(const std::string& section, const std::string& … in GetProperty() argument 139 auto section_iter = information_sections_.find(section); in GetProperty() 146 section_iter = persistent_devices_.find(section); in GetProperty() [all …]
|
D | config_cache.h | 69 virtual bool HasSection(const std::string& section) const; 70 virtual bool HasProperty(const std::string& section, const std::string& property) const; 72 …virtual std::optional<std::string> GetProperty(const std::string& section, const std::string& prop… 76 virtual bool IsPersistentSection(const std::string& section) const; 79 const std::string& section, const std::unordered_set<std::string_view>& property_names) const; 86 std::string section; member 89 return section == rhs.section && property == rhs.property; 100 virtual void SetProperty(std::string section, std::string property, std::string value); 101 virtual bool RemoveSection(const std::string& section); 102 virtual bool RemoveProperty(const std::string& section, const std::string& property); [all …]
|
D | mutation_entry.cc | 32 section(std::move(section_param)), in MutationEntry() 37 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::SET"); in MutationEntry() 42 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::REMOVE_PROPERTY"); in MutationEntry() 46 ASSERT_LOG(!section.empty(), "section cannot be empty for EntryType::REMOVE_SECTION"); in MutationEntry()
|
D | adapter_config.cc | 22 …terConfig::AdapterConfig(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in AdapterConfig() argument 23 : config_(config), memory_only_config_(memory_only_config), section_(std::move(section)) {} in AdapterConfig()
|
D | device.cc | 50 return section_and_property.section; in GetConfigSection() 57 return section_and_property.section; in GetConfigSection() 80 Device::Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in Device() argument 81 : config_(config), memory_only_config_(memory_only_config), section_(std::move(section)) {} in Device()
|
/system/linkerconfig/contents/tests/configuration/include/ |
D | configurationtest.h | 37 inline void ValidateAllNamespacesAreVisible(const Section& section) { in ValidateAllNamespacesAreVisible() argument 39 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible() 45 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible() 47 << "Namespace " << ns.name << " is not visible from section " << section.name; in ValidateAllNamespacesAreVisible() 59 inline void ValidateSection(const Section& section) { in ValidateSection() argument 60 EXPECT_FALSE(section.name.empty()) << "Section name should not be empty"; in ValidateSection() 61 EXPECT_NE(0u, section.namespaces.size()) in ValidateSection() 62 << "Section " << section.name << " should contain at least one namespace"; in ValidateSection() 63 EXPECT_NE(0u, section.dirs.size()) in ValidateSection() 64 << "Section " << section.name << "does not contain any directory as executable path"; in ValidateSection() [all …]
|
/system/bt/main/shim/ |
D | config.cc | 36 bool BtifConfigInterface::HasSection(const std::string& section) { in HasSection() argument 37 return GetStorage()->GetConfigCache()->HasSection(section); in HasSection() 40 bool BtifConfigInterface::HasProperty(const std::string& section, in HasProperty() argument 42 return GetStorage()->GetConfigCache()->HasProperty(section, property); in HasProperty() 45 bool BtifConfigInterface::GetInt(const std::string& section, in GetInt() argument 49 .GetInt(section, property); in GetInt() 56 bool BtifConfigInterface::SetInt(const std::string& section, in SetInt() argument 59 .SetInt(section, property, value); in SetInt() 63 bool BtifConfigInterface::GetUint64(const std::string& section, in GetUint64() argument 68 .GetUint64(section, property); in GetUint64() [all …]
|
D | config.h | 30 static bool HasSection(const std::string& section); 31 static bool HasProperty(const std::string& section, 33 static bool GetInt(const std::string& section, const std::string& key, 35 static bool SetInt(const std::string& section, const std::string& key, 37 static bool GetUint64(const std::string& section, const std::string& key, 39 static bool SetUint64(const std::string& section, const std::string& key, 41 static bool GetStr(const std::string& section, const std::string& key, 43 static std::optional<std::string> GetStr(const std::string& section, 45 static bool SetStr(const std::string& section, const std::string& key, 47 static bool GetBin(const std::string& section, const std::string& key, [all …]
|
/system/linkerconfig/modules/ |
D | configuration.cc | 30 for (const auto& [dir, section] : dir_to_section_list_) { in WriteConfig() 34 << it->second << ". Path from " << section in WriteConfig() 37 resolved_dirs[dir] = section; in WriteConfig() 38 writer.WriteLine("dir." + section + " = " + dir); in WriteConfig() 42 for (auto& section : sections_) { in WriteConfig() local 43 section.WriteConfig(writer); in WriteConfig() 48 for (auto& section : sections_) { in GetSection() local 49 if (section.GetName() == name) { in GetSection() 50 return §ion; in GetSection()
|
/system/linkerconfig/modules/tests/ |
D | section_test.cc | 105 Section section("test_section", std::move(namespaces)); in TEST() local 107 section.WriteConfig(writer); in TEST() 118 Section section("test_section", std::move(namespaces)); in TEST() local 119 section.WriteConfig(writer); in TEST() 135 Section section("section", std::move(namespaces)); in TEST() local 136 section.Resolve(ctx); in TEST() 139 section.WriteConfig(writer); in TEST() 164 Section section("section", std::move(namespaces)); in TEST() local 165 auto result = section.Resolve(ctx); in TEST() 178 Section section("section", std::move(namespaces)); in TEST() local [all …]
|
/system/bt/osi/include/ |
D | config.h | 43 std::list<section_t>::iterator Find(const std::string& section); 44 bool Has(const std::string& section); 69 bool config_has_section(const config_t& config, const std::string& section); 73 bool config_has_key(const config_t& config, const std::string& section, 79 int config_get_int(const config_t& config, const std::string& section, 85 uint64_t config_get_uint64(const config_t& config, const std::string& section, 91 bool config_get_bool(const config_t& config, const std::string& section, 99 const std::string& section, 105 void config_set_int(config_t* config, const std::string& section, 110 void config_set_uint64(config_t* config, const std::string& section, [all …]
|
/system/bt/btif/include/ |
D | btif_config.h | 44 bool btif_config_exist(const std::string& section, const std::string& key); 45 bool btif_config_get_int(const std::string& section, const std::string& key, 47 bool btif_config_set_int(const std::string& section, const std::string& key, 49 bool btif_config_get_uint64(const std::string& section, const std::string& key, 51 bool btif_config_set_uint64(const std::string& section, const std::string& key, 53 bool btif_config_get_str(const std::string& section, const std::string& key, 55 bool btif_config_set_str(const std::string& section, const std::string& key, 57 bool btif_config_get_bin(const std::string& section, const std::string& key, 59 bool btif_config_set_bin(const std::string& section, const std::string& key, 61 bool btif_config_remove(const std::string& section, const std::string& key); [all …]
|
/system/bt/osi/src/ |
D | config.cc | 59 std::list<section_t>::iterator config_t::Find(const std::string& section) { in Find() argument 62 [§ion](const section_t& sec) { return sec.name == section; }); in Find() 74 static auto section_find(T& config, const std::string& section) { in section_find() argument 77 [§ion](const section_t& sec) { return sec.name == section; }); in section_find() 81 const std::string& section, in entry_find() argument 83 auto sec = section_find(config, section); in entry_find() 142 bool config_has_section(const config_t& config, const std::string& section) { in config_has_section() argument 143 return (section_find(config, section) != config.sections.end()); in config_has_section() 146 bool config_has_key(const config_t& config, const std::string& section, in config_has_key() argument 148 return (entry_find(config, section, key) != nullptr); in config_has_key() [all …]
|
/system/bt/btif/src/ |
D | btif_config_cache.cc | 34 bool has_link_key_in_section(const section_t& section) { in has_link_key_in_section() argument 35 for (const auto& entry : section.entries) { in has_link_key_in_section() 43 bool is_local_section_info(const std::string& section) { in is_local_section_info() argument 44 return kLocalSectionNames.find(section) != kLocalSectionNames.end(); in is_local_section_info() 96 section_t* section = unpaired_devices_cache_.Find(section_name); in HasKey() local 97 if (section == nullptr) { in HasKey() 100 return section->Has(key); in HasKey() 118 section_t* section = unpaired_devices_cache_.Find(section_name); in RemoveKey() local 119 if (section != nullptr) { in RemoveKey() 120 auto entry_iter = section->Find(key); in RemoveKey() [all …]
|
D | btif_config.cc | 392 bool btif_config_exist(const std::string& section, const std::string& key) { in btif_config_exist() argument 395 return bluetooth::shim::BtifConfigInterface::HasProperty(section, key); in btif_config_exist() 398 return btif_config_cache.HasKey(section, key); in btif_config_exist() 401 bool btif_config_get_int(const std::string& section, const std::string& key, in btif_config_get_int() argument 405 return bluetooth::shim::BtifConfigInterface::GetInt(section, key, value); in btif_config_get_int() 409 auto ret = btif_config_cache.GetInt(section, key); in btif_config_get_int() 417 bool btif_config_set_int(const std::string& section, const std::string& key, in btif_config_set_int() argument 421 return bluetooth::shim::BtifConfigInterface::SetInt(section, key, value); in btif_config_set_int() 424 btif_config_cache.SetInt(section, key, value); in btif_config_set_int() 428 bool btif_config_get_uint64(const std::string& section, const std::string& key, in btif_config_get_uint64() argument [all …]
|
D | btif_config_transcode.cc | 50 const char* section = j->Attribute("Tag"); in btif_config_transcode() local 55 if (section && key && value) in btif_config_transcode() 56 config_set_string(config.get(), section, key, value); in btif_config_transcode()
|
/system/media/camera/tests/ |
D | camera_metadata_tests_fake_vendor.h | 163 int section; in get_fakevendor_tag_count() local 168 for (section = 0; section < FAKEVENDOR_SECTION_COUNT; section++) { in get_fakevendor_tag_count() 169 start = fakevendor_section_bounds[section][0]; in get_fakevendor_tag_count() 170 end = fakevendor_section_bounds[section][1]; in get_fakevendor_tag_count() 177 int section; in get_fakevendor_tags() local 181 for (section = 0; section < FAKEVENDOR_SECTION_COUNT; section++) { in get_fakevendor_tags() 182 start = fakevendor_section_bounds[section][0]; in get_fakevendor_tags() 183 end = fakevendor_section_bounds[section][1]; in get_fakevendor_tags()
|
/system/core/libunwindstack/tools/ |
D | unwind_reg_info.cpp | 67 void PrintRegInformation(DwarfSection* section, Memory* memory, uint64_t pc, uint8_t class_type, in PrintRegInformation() argument 69 const DwarfFde* fde = section->GetFdeFromPc(pc); in PrintRegInformation() 76 if (!section->GetCfaLocationInfo(pc, fde, ®s, arch)) { in PrintRegInformation() 205 DwarfSection* section = interface->eh_frame(); in GetInfo() local 206 if (section != nullptr) { in GetInfo() 208 PrintRegInformation(section, elf.memory(), pc, elf.class_type(), elf.arch()); in GetInfo() 213 section = interface->debug_frame(); in GetInfo() 214 if (section != nullptr) { in GetInfo() 216 PrintRegInformation(section, elf.memory(), pc, elf.class_type(), elf.arch()); in GetInfo() 225 section = gnu_debugdata_interface->eh_frame(); in GetInfo() [all …]
|
/system/media/camera/docs/ |
D | metadata_model_test.py | 55 section = Section("some_section", parent=None) 56 kind_static = Kind("static", parent=section) 57 kind_dynamic = Kind("dynamic", parent=section) 58 section._kinds = [kind_static, kind_dynamic] 76 combined_kind = section.combine_kinds_into_single_node() 78 self.assertEquals(section, combined_kind.parent) 90 section = Section("some_section", parent=None) 91 kind_static = Kind("static", parent=section) 92 section._kinds = [kind_static] 118 self.assertEquals(section, combined_children_kind.parent)
|
/system/linkerconfig/contents/section/ |
D | sectionbuilder.cc | 45 Section section(std::move(name), std::move(namespaces)); in BuildSection() local 46 if (auto res = section.Resolve(ctx, providers); !res.ok()) { in BuildSection() 50 AddStandardSystemLinks(ctx, §ion); in BuildSection() 51 return section; in BuildSection()
|
/system/teeui/libteeui/include/teeui/ |
D | incfont.h | 23 .section .rodata 28 .section .rodata 31 .section .rodata
|
/system/chre/build/sys_support/qcom/ |
D | uimage_v2.lcs | 47 /* SysV hash section */ 50 /* GNU hash section */ 53 /* Dynamic Symbol Table section */ 56 /* Dynamic string table section */ 74 /* Text section */ 80 /* Finalizer section */ 116 /* GOT section */ 119 /* GOT slots for PLT section */
|
/system/core/libunwindstack/tests/ |
D | VerifyBionicTerminationTest.cpp | 48 static DwarfLocationEnum GetReturnAddressLocation(uint64_t rel_pc, DwarfSection* section) { in GetReturnAddressLocation() argument 49 if (section == nullptr) { in GetReturnAddressLocation() 53 const DwarfFde* fde = section->GetFdeFromPc(rel_pc); in GetReturnAddressLocation() 58 if (!section->GetCfaLocationInfo(rel_pc, fde, ®s, ARCH_UNKNOWN)) { in GetReturnAddressLocation()
|