Lines Matching refs:section
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()
121 if (entry_iter == section->entries.end()) { in RemoveKey()
124 section->entries.erase(entry_iter); in RemoveKey()
125 if (section->entries.empty()) { in RemoveKey()
154 for (const auto& section : paired_devices_list_.sections) { in GetPersistentSectionNames() local
155 result.emplace_back(section.name); in GetPersistentSectionNames()
182 section_t section = {}; in SetString() local
184 if (!unpaired_devices_cache_.Get(section_name, §ion)) { in SetString()
186 section.name = section_name; in SetString()
190 section.Set(key, value); in SetString()
200 paired_devices_list_.sections.emplace_back(std::move(section)); in SetString()
203 unpaired_devices_cache_.Put(section_name, section); in SetString()
228 section_t section = {}; in GetString() local
229 if (!unpaired_devices_cache_.Get(section_name, §ion)) { in GetString()
232 auto entry_iter = section.Find(key); in GetString()
233 if (entry_iter == section.entries.end()) { in GetString()