/system/bt/test/mock/ |
D | mock_btif_config.h | 74 std::function<bool(const std::string& section, const std::string& key)> body{ 75 [](const std::string& section, const std::string& key) { return false; }}; 76 bool operator()(const std::string& section, const std::string& key) { in operator() 77 return body(section, key); in operator() 85 std::function<bool(const std::string& section, const std::string& key, 87 body{[](const std::string& section, const std::string& key, int* value) { 90 bool operator()(const std::string& section, const std::string& key, in operator() 92 return body(section, key, value); in operator() 100 std::function<bool(const std::string& section, const std::string& key, 102 body{[](const std::string& section, const std::string& key, int value) { [all …]
|
D | mock_btif_config.cc | 85 bool btif_config_exist(const std::string& section, const std::string& key) { in btif_config_exist() argument 87 return test::mock::btif_config::btif_config_exist(section, key); in btif_config_exist() 89 bool btif_config_get_int(const std::string& section, const std::string& key, in btif_config_get_int() argument 92 return test::mock::btif_config::btif_config_get_int(section, key, value); in btif_config_get_int() 94 bool btif_config_set_int(const std::string& section, const std::string& key, in btif_config_set_int() argument 97 return test::mock::btif_config::btif_config_set_int(section, key, value); in btif_config_set_int() 99 bool btif_config_get_uint64(const std::string& section, const std::string& key, in btif_config_get_uint64() argument 102 return test::mock::btif_config::btif_config_get_uint64(section, key, value); in btif_config_get_uint64() 104 bool btif_config_set_uint64(const std::string& section, const std::string& key, in btif_config_set_uint64() argument 107 return test::mock::btif_config::btif_config_set_uint64(section, key, value); in btif_config_set_uint64() [all …]
|
D | mock_main_shim_BtifConfigInterface.cc | 22 const std::string& section) { in HasSection() argument 26 const std::string& section, const std::string& property) { in HasProperty() argument 29 bool bluetooth::shim::BtifConfigInterface::GetInt(const std::string& section, in GetInt() argument 34 bool bluetooth::shim::BtifConfigInterface::SetInt(const std::string& section, in SetInt() argument 39 bool bluetooth::shim::BtifConfigInterface::GetUint64(const std::string& section, in GetUint64() argument 44 bool bluetooth::shim::BtifConfigInterface::SetUint64(const std::string& section, in SetUint64() argument 49 bool bluetooth::shim::BtifConfigInterface::GetStr(const std::string& section, in GetStr() argument 56 const std::string& section, const std::string& key) { in GetStr() argument 59 bool bluetooth::shim::BtifConfigInterface::SetStr(const std::string& section, in SetStr() argument 64 bool bluetooth::shim::BtifConfigInterface::GetBin(const std::string& section, in GetBin() argument [all …]
|
/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()
|
/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 | 45 bool btif_config_exist(const std::string& section, const std::string& key); 46 bool btif_config_get_int(const std::string& section, const std::string& key, 48 bool btif_config_set_int(const std::string& section, const std::string& key, 50 bool btif_config_get_uint64(const std::string& section, const std::string& key, 52 bool btif_config_set_uint64(const std::string& section, const std::string& key, 54 bool btif_config_get_str(const std::string& section, const std::string& key, 56 bool btif_config_set_str(const std::string& section, const std::string& key, 58 bool btif_config_get_bin(const std::string& section, const std::string& key, 60 bool btif_config_set_bin(const std::string& section, const std::string& key, 62 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 | 390 bool btif_config_exist(const std::string& section, const std::string& key) { in btif_config_exist() argument 393 return bluetooth::shim::BtifConfigInterface::HasProperty(section, key); in btif_config_exist() 396 return btif_config_cache.HasKey(section, key); in btif_config_exist() 399 bool btif_config_get_int(const std::string& section, const std::string& key, in btif_config_get_int() argument 403 return bluetooth::shim::BtifConfigInterface::GetInt(section, key, value); in btif_config_get_int() 407 auto ret = btif_config_cache.GetInt(section, key); in btif_config_get_int() 415 bool btif_config_set_int(const std::string& section, const std::string& key, in btif_config_set_int() argument 419 return bluetooth::shim::BtifConfigInterface::SetInt(section, key, value); in btif_config_set_int() 422 btif_config_cache.SetInt(section, key, value); in btif_config_set_int() 426 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/unwinding/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 | 58 Section section(std::move(name), std::move(namespaces)); in BuildSection() local 59 if (auto res = section.Resolve(ctx, providers); !res.ok()) { in BuildSection() 63 AddStandardSystemLinks(ctx, §ion); in BuildSection() 64 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 */
|