Home
last modified time | relevance | path

Searched refs:ConfigCache (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Bluetooth/system/gd/storage/
Ddevice_test.cc29 using bluetooth::storage::ConfigCache;
38 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
39 ConfigCache memory_only_config(10, {}); in TEST()
63 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
64 ConfigCache memory_only_config(10, {}); in TEST()
88 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
89 ConfigCache memory_only_config(10, {}); in TEST()
110 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
111 ConfigCache memory_only_config(10, {}); in TEST()
124 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
[all …]
Dconfig_cache_test.cc39 using bluetooth::storage::ConfigCache;
41 using SectionAndPropertyValue = bluetooth::storage::ConfigCache::SectionAndPropertyValue;
44 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
52 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
63 ConfigCache config(2, Device::kLinkKeyProperties); in TEST()
72 ConfigCache config_1(2, Device::kLinkKeyProperties); in TEST()
77 ConfigCache config_2(2, Device::kLinkKeyProperties); in TEST()
95 ConfigCache config_3(3, Device::kLinkKeyProperties); in TEST()
103 ConfigCache config_4(2, Device::kLinkKeyProperties); in TEST()
106 ConfigCache config_5(2, Device::kLinkKeyProperties); in TEST()
[all …]
Dconfig_cache.h52 class ConfigCache {
54ConfigCache(size_t temp_device_capacity, std::unordered_set<std::string_view> persistent_property_…
56 ConfigCache(const ConfigCache&) = delete;
57 ConfigCache& operator=(const ConfigCache&) = delete;
59 virtual ~ConfigCache() = default;
64 ConfigCache(ConfigCache&& other) noexcept;
65 ConfigCache& operator=(ConfigCache&& other) noexcept;
68 bool operator==(const ConfigCache& rhs) const;
69 bool operator!=(const ConfigCache& rhs) const;
Dconfig_cache.cc59 const std::string ConfigCache::kDefaultSectionName = "Global";
63 ConfigCache::ConfigCache(size_t temp_device_capacity, std::unordered_set<std::string_view> persiste… in ConfigCache() function in bluetooth::storage::ConfigCache
69 void ConfigCache::SetPersistentConfigChangedCallback(std::function<void()> persistent_config_change… in SetPersistentConfigChangedCallback()
74 ConfigCache::ConfigCache(ConfigCache&& other) noexcept in ConfigCache() function in bluetooth::storage::ConfigCache
85 ConfigCache& ConfigCache::operator=(ConfigCache&& other) noexcept { in operator =()
102 bool ConfigCache::operator==(const ConfigCache& rhs) const { in operator ==()
110 bool ConfigCache::operator!=(const ConfigCache& rhs) const { in operator !=()
114 void ConfigCache::Clear() { in Clear()
129 bool ConfigCache::HasSection(const std::string& section) const { in HasSection()
135 bool ConfigCache::HasProperty(const std::string& section, const std::string& property) const { in HasProperty()
[all …]
Dclassic_device_test.cc30 using bluetooth::storage::ConfigCache;
37 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
38 ConfigCache memory_only_config(10, {}); in TEST()
45 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
46 ConfigCache memory_only_config(10, {}); in TEST()
57 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
58 ConfigCache memory_only_config(10, {}); in TEST()
69 ConfigCache config1(10, Device::kLinkKeyProperties); in TEST()
70 ConfigCache config2(10, Device::kLinkKeyProperties); in TEST()
72 ConfigCache* smaller_config_ptr = &config1; in TEST()
[all …]
Dle_device_test.cc29 using bluetooth::storage::ConfigCache;
37 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
38 ConfigCache memory_only_config(10, {}); in TEST()
45 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
46 ConfigCache memory_only_config(10, {}); in TEST()
57 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
58 ConfigCache memory_only_config(10, {}); in TEST()
69 ConfigCache config1(10, Device::kLinkKeyProperties); in TEST()
70 ConfigCache config2(10, Device::kLinkKeyProperties); in TEST()
72 ConfigCache* smaller_config_ptr = &config1; in TEST()
[all …]
Dmutation_test.cc27 using bluetooth::storage::ConfigCache;
33 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
34 ConfigCache memory_only_config(100, {}); in TEST()
51 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
52 ConfigCache memory_only_config(100, {}); in TEST()
99 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
100 ConfigCache memory_only_config(100, {}); in TEST()
110 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
111 ConfigCache memory_only_config(100, {}); in TEST()
Dmutation.h29 Mutation(ConfigCache* config, ConfigCache* memory_only_config);
32 friend ConfigCache; variable
35 ConfigCache* config_;
36 ConfigCache* memory_only_config_;
Dle_device.h31 LeDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
80 ConfigCache* config_;
81 ConfigCache* memory_only_config_;
108 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
109 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Dclassic_device.h33 ClassicDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
85 ConfigCache* config_;
86 ConfigCache* memory_only_config_;
106 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
107 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Ddevice.h115 ConfigCache* config,
116 ConfigCache* memory_only_config,
119 Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
181 ConfigCache* config_;
182 ConfigCache* memory_only_config_;
222 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
223 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Dconfig_cache_helper_test.cc29 using bluetooth::storage::ConfigCache;
34 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
46 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
64 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
83 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
102 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
123 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
Ddevice.cc40ConfigCache* config, const hci::Address& key_address, Device::ConfigKeyAddressType key_address_typ… in GetConfigSection()
76 ConfigCache* config, in Device()
77 ConfigCache* memory_only_config, in Device()
82 Device::Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in Device()
Dlegacy_config_file.cc37 std::optional<ConfigCache> LegacyConfigFile::Read(size_t temp_devices_capacity) { in Read()
45 ConfigCache cache(temp_devices_capacity, Device::kLinkKeyProperties); in Read()
47 std::string section(ConfigCache::kDefaultSectionName); in Read()
79 bool LegacyConfigFile::Write(const ConfigCache& cache) { in Write()
Dlegacy_config_file_test.cc32 using bluetooth::storage::ConfigCache;
40 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
115 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
180 …EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), Optional(StrE… in TEST()
Dlegacy_config_file.h33 std::optional<ConfigCache> Read(size_t temp_devices_capacity);
34 bool Write(const ConfigCache& cache);
Dle_device.cc36 LeDevice::LeDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in LeDevice()
Dmutation.cc24 Mutation::Mutation(ConfigCache* config, ConfigCache* memory_only_config) in Mutation()
Dclassic_device.cc28 ClassicDevice::ClassicDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string sect… in ClassicDevice()
Dconfig_cache_helper.h40 static ConfigCacheHelper FromConfigCache(ConfigCache& config_cache) { in FromConfigCache()
43 explicit ConfigCacheHelper(ConfigCache& config_cache) : config_cache_(config_cache) {} in ConfigCacheHelper()
140 ConfigCache& config_cache_;
Dstorage_module.cc94 explicit impl(Handler* handler, ConfigCache cache, size_t in_memory_cache_size_limit) in impl()
97 ConfigCache cache_;
98 ConfigCache memory_only_cache_;
Dstorage_module_test.cc44 using bluetooth::storage::ConfigCache;
66 ConfigCache* GetMemoryOnlyConfigCachePublic() { in GetMemoryOnlyConfigCachePublic()
Dstorage_module.h126 ConfigCache* GetMemoryOnlyConfigCache();
Dmutation_entry.h106 friend class ConfigCache;