Home
last modified time | relevance | path

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

12

/system/bt/gd/storage/
Dadapter_config_test.cc27 using bluetooth::storage::ConfigCache;
34 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
35 ConfigCache memory_only_config(10, {}); in TEST()
41 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
42 ConfigCache memory_only_config(10, {}); in TEST()
53 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
54 ConfigCache memory_only_config(10, {}); in TEST()
59 ConfigCache memory_only_config_2(10, {}); in TEST()
Dmutation.h29 Mutation(ConfigCache* config, ConfigCache* memory_only_config);
32 friend ConfigCache; variable
35 ConfigCache* config_;
36 ConfigCache* memory_only_config_;
Dconfig_cache.h52 class ConfigCache {
54ConfigCache(size_t temp_device_capacity, std::unordered_set<std::string_view> persistent_property_…
55 virtual ~ConfigCache() = default;
58 DISALLOW_COPY_AND_ASSIGN(ConfigCache);
61 ConfigCache(ConfigCache&& other) noexcept;
62 ConfigCache& operator=(ConfigCache&& other) noexcept;
65 bool operator==(const ConfigCache& rhs) const;
66 bool operator!=(const ConfigCache& rhs) const;
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()
Dconfig_cache_test.cc38 using bluetooth::storage::ConfigCache;
40 using SectionAndPropertyValue = bluetooth::storage::ConfigCache::SectionAndPropertyValue;
43 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
51 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
62 ConfigCache config(2, Device::kLinkKeyProperties); in TEST()
71 ConfigCache config_1(2, Device::kLinkKeyProperties); in TEST()
76 ConfigCache config_2(2, Device::kLinkKeyProperties); in TEST()
94 ConfigCache config_3(3, Device::kLinkKeyProperties); in TEST()
102 ConfigCache config_4(2, Device::kLinkKeyProperties); in TEST()
105 ConfigCache config_5(2, Device::kLinkKeyProperties); in TEST()
[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()
Dconfig_cache.cc49 const std::string ConfigCache::kDefaultSectionName = "Global";
51 ConfigCache::ConfigCache(size_t temp_device_capacity, std::unordered_set<std::string_view> persiste… in ConfigCache() function in bluetooth::storage::ConfigCache
57 void ConfigCache::SetPersistentConfigChangedCallback(std::function<void()> persistent_config_change… in SetPersistentConfigChangedCallback()
62 ConfigCache::ConfigCache(ConfigCache&& other) noexcept in ConfigCache() function in bluetooth::storage::ConfigCache
72 ConfigCache& ConfigCache::operator=(ConfigCache&& other) noexcept { in operator =()
87 bool ConfigCache::operator==(const ConfigCache& rhs) const { in operator ==()
95 bool ConfigCache::operator!=(const ConfigCache& rhs) const { in operator !=()
99 void ConfigCache::Clear() { in Clear()
114 bool ConfigCache::HasSection(const std::string& section) const { in HasSection()
120 bool ConfigCache::HasProperty(const std::string& section, const std::string& property) const { in HasProperty()
[all …]
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 …]
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()
Dle_device.h33 LeDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
76 ConfigCache* config_;
77 ConfigCache* memory_only_config_;
101 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
102 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Dclassic_device.h34 ClassicDevice(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
80 ConfigCache* config_;
81 ConfigCache* memory_only_config_;
102 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
103 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Dadapter_config.h30 AdapterConfig(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
61 ConfigCache* config_;
62 ConfigCache* memory_only_config_;
Ddevice.h113 ConfigCache* config,
114 ConfigCache* memory_only_config,
117 Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
173 ConfigCache* config_;
174 ConfigCache* memory_only_config_;
209 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
210 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
Ddevice.cc38ConfigCache* config, const hci::Address& key_address, Device::ConfigKeyAddressType key_address_typ… in GetConfigSection()
74 ConfigCache* config, in Device()
75 ConfigCache* memory_only_config, in Device()
80 Device::Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in Device()
Dlegacy_config_file.cc35 std::optional<ConfigCache> LegacyConfigFile::Read(size_t temp_devices_capacity) { in Read()
43 ConfigCache cache(temp_devices_capacity, Device::kLinkKeyProperties); in Read()
45 std::string section(ConfigCache::kDefaultSectionName); in Read()
73 bool LegacyConfigFile::Write(const ConfigCache& cache) { in Write()
Dadapter_config.cc22 AdapterConfig::AdapterConfig(ConfigCache* config, ConfigCache* memory_only_config, std::string sect… in AdapterConfig()
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()
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()
Dlegacy_config_file_test.cc31 using bluetooth::storage::ConfigCache;
39 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
114 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
178 …EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), Optional(StrE… in TEST()
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()
Dstorage_module.h116 ConfigCache* GetConfigCache();
118 ConfigCache* GetMemoryOnlyConfigCache();
Dstorage_module.cc90 explicit impl(Handler* handler, ConfigCache cache, size_t in_memory_cache_size_limit) in impl()
93 ConfigCache cache_;
94 ConfigCache memory_only_cache_;
103 ConfigCache* StorageModule::GetConfigCache() { in GetConfigCache()
108 ConfigCache* StorageModule::GetMemoryOnlyConfigCache() { in GetMemoryOnlyConfigCache()
/system/bt/gd/security/test/
Dfake_storage_module.h32 storage::ConfigCache* GetConfigCachePublic() { in GetConfigCachePublic()

12