Searched refs:ConfigCacheHelper (Results 1 – 5 of 5) sorted by relevance
/system/bt/gd/storage/ |
D | config_cache_helper_test.cc | 30 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 …]
|
D | config_cache_helper.cc | 25 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 …]
|
D | config_cache_helper.h | 38 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;
|
D | device.h | 49 …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); …
|
/system/bt/main/shim/ |
D | config.cc | 31 using ::bluetooth::storage::ConfigCacheHelper; 48 auto ret = ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in GetInt() 58 ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in SetInt() 67 auto ret = ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in GetUint64() 78 ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in SetUint64() 122 ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in GetBin() 134 ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in GetBinLength() 146 ConfigCacheHelper::FromConfigCache(*GetStorage()->GetConfigCache()) in SetBin()
|