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.cc27 void ConfigCacheHelper::SetBool(const std::string& section, const std::string& property, bool value… in SetBool()
31 std::optional<bool> ConfigCacheHelper::GetBool(const std::string& section, const std::string& prope… in GetBool()
45 void ConfigCacheHelper::SetUint64(const std::string& section, const std::string& property, uint64_t… in SetUint64()
49 std::optional<uint64_t> ConfigCacheHelper::GetUint64(const std::string& section, const std::string&… in GetUint64()
57 void ConfigCacheHelper::SetUint32(const std::string& section, const std::string& property, uint32_t… in SetUint32()
61 std::optional<uint32_t> ConfigCacheHelper::GetUint32(const std::string& section, const std::string&… in GetUint32()
76 void ConfigCacheHelper::SetInt64(const std::string& section, const std::string& property, int64_t v… in SetInt64()
80 std::optional<int64_t> ConfigCacheHelper::GetInt64(const std::string& section, const std::string& p… in GetInt64()
88 void ConfigCacheHelper::SetInt(const std::string& section, const std::string& property, int value) { in SetInt()
92 std::optional<int> ConfigCacheHelper::GetInt(const std::string& section, const std::string& propert… in GetInt()
[all …]
Dstorage_module.cc298 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetBool(section, property, value); in SetBool()
304 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetBool(section, property); in GetBool()
310 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetUint64(section, property, value); in SetUint64()
316 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetUint64(section, property); in GetUint64()
322 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetUint32(section, property, value); in SetUint32()
328 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetUint32(section, property); in GetUint32()
333 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetInt64(section, property, value); in SetInt64()
338 return ConfigCacheHelper::FromConfigCache(pimpl_->cache_).GetInt64(section, property); in GetInt64()
343 ConfigCacheHelper::FromConfigCache(pimpl_->cache_).SetInt(section, property, value); in SetInt()
349 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.h51 …return ConfigCacheHelper(*config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
71 …return ConfigCacheHelper(*config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
92 …return ConfigCacheHelper(*memory_only_config_).Get<RETURN_TYPE>(section_, PROPERTY_KEY); …
/packages/modules/Bluetooth/system/main/shim/
Dconfig.cc30 using ::bluetooth::storage::ConfigCacheHelper;