Home
last modified time | relevance | path

Searched refs:ConfigCacheHelper (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_helper_test.cc30 using bluetooth::storage::ConfigCacheHelper;
36 ConfigCacheHelper(config).SetBool("A", "B", true); in TEST()
38 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsTrue())); in TEST()
40 ConfigCacheHelper(config).SetBool("A", "B", false); in TEST()
42 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsFalse())); in TEST()
48 ConfigCacheHelper(config).SetUint64("A", "B", 123); in TEST()
50 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(uint64_t(123)))); in TEST()
54 ConfigCacheHelper(config).SetUint64("A", "B", num); in TEST()
56 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(num))); in TEST()
58 ConfigCacheHelper(config).SetUint64("A", "B", 0); in TEST()
[all …]
Dconfig_cache_helper.cc25 void ConfigCacheHelper::SetBool(const std::string& section, const std::string& property, bool value… in SetBool()
29 std::optional<bool> ConfigCacheHelper::GetBool(const std::string& section, const std::string& prope… in GetBool()
43 void ConfigCacheHelper::SetUint64(const std::string& section, const std::string& property, uint64_t… in SetUint64()
47 std::optional<uint64_t> ConfigCacheHelper::GetUint64(const std::string& section, const std::string&… in GetUint64()
55 void ConfigCacheHelper::SetUint32(const std::string& section, const std::string& property, uint32_t… in SetUint32()
59 std::optional<uint32_t> ConfigCacheHelper::GetUint32(const std::string& section, const std::string&… in GetUint32()
74 void ConfigCacheHelper::SetInt64(const std::string& section, const std::string& property, int64_t v… in SetInt64()
78 std::optional<int64_t> ConfigCacheHelper::GetInt64(const std::string& section, const std::string& p… in GetInt64()
86 void ConfigCacheHelper::SetInt(const std::string& section, const std::string& property, int value) { in SetInt()
90 std::optional<int> ConfigCacheHelper::GetInt(const std::string& section, const std::string& propert… in GetInt()
[all …]
Dstorage_module.cc315 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetBool(section, property, value); in SetBool()
321 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetBool(section, property); in GetBool()
327 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetUint64(section, property, value); in SetUint64()
333 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetUint64(section, property); in GetUint64()
339 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetUint32(section, property, value); in SetUint32()
345 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetUint32(section, property); in GetUint32()
350 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetInt64(section, property, value); in SetInt64()
355 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetInt64(section, property); in GetInt64()
360 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetInt(section, property, value); in SetInt()
366 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetInt(section, property); in GetInt()
[all …]
Dconfig_cache_helper.h38 class ConfigCacheHelper {
40 static ConfigCacheHelper FromConfigCache(ConfigCache& config_cache) { in FromConfigCache()
41 return ConfigCacheHelper(config_cache); in FromConfigCache()
43 explicit ConfigCacheHelper(ConfigCache& config_cache) : config_cache_(config_cache) {} in ConfigCacheHelper() function
44 virtual ~ConfigCacheHelper() = default;
Ddevice.h49 …return ConfigCacheHelper(*config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
69 …return ConfigCacheHelper(*config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
90 …return ConfigCacheHelper(*memory_only_config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc31 using ::bluetooth::storage::ConfigCacheHelper;