Lines Matching refs:section
390 bool btif_config_exist(const std::string& section, const std::string& key) { in btif_config_exist() argument
393 return bluetooth::shim::BtifConfigInterface::HasProperty(section, key); in btif_config_exist()
396 return btif_config_cache.HasKey(section, key); in btif_config_exist()
399 bool btif_config_get_int(const std::string& section, const std::string& key, in btif_config_get_int() argument
403 return bluetooth::shim::BtifConfigInterface::GetInt(section, key, value); in btif_config_get_int()
407 auto ret = btif_config_cache.GetInt(section, key); in btif_config_get_int()
415 bool btif_config_set_int(const std::string& section, const std::string& key, in btif_config_set_int() argument
419 return bluetooth::shim::BtifConfigInterface::SetInt(section, key, value); in btif_config_set_int()
422 btif_config_cache.SetInt(section, key, value); in btif_config_set_int()
426 bool btif_config_get_uint64(const std::string& section, const std::string& key, in btif_config_get_uint64() argument
430 return bluetooth::shim::BtifConfigInterface::GetUint64(section, key, value); in btif_config_get_uint64()
434 auto ret = btif_config_cache.GetUint64(section, key); in btif_config_get_uint64()
442 bool btif_config_set_uint64(const std::string& section, const std::string& key, in btif_config_set_uint64() argument
446 return bluetooth::shim::BtifConfigInterface::SetUint64(section, key, value); in btif_config_set_uint64()
449 btif_config_cache.SetUint64(section, key, value); in btif_config_set_uint64()
472 bool btif_config_get_str(const std::string& section, const std::string& key, in btif_config_get_str() argument
476 return bluetooth::shim::BtifConfigInterface::GetStr(section, key, value, in btif_config_get_str()
484 auto stored_value = btif_config_cache.GetString(section, key); in btif_config_get_str()
492 bool btif_config_set_str(const std::string& section, const std::string& key, in btif_config_set_str() argument
496 return bluetooth::shim::BtifConfigInterface::SetStr(section, key, value); in btif_config_set_str()
499 btif_config_cache.SetString(section, key, value); in btif_config_set_str()
509 bool btif_config_get_bin(const std::string& section, const std::string& key, in btif_config_get_bin() argument
513 return bluetooth::shim::BtifConfigInterface::GetBin(section, key, value, in btif_config_get_bin()
521 auto value_str_from_config = btif_config_cache.GetString(section, key); in btif_config_get_bin()
524 VLOG(1) << __func__ << ": cannot find string for section " << section in btif_config_get_bin()
535 string = get_bluetooth_keystore_interface()->get_key(section + "-" + key); in btif_config_get_bin()
562 section + "-" + key, *value_str_from_config); in btif_config_get_bin()
563 btif_config_cache.SetString(section, key, ENCRYPTED_STR); in btif_config_get_bin()
567 btif_config_cache.SetString(section, key, *value_str); in btif_config_get_bin()
574 size_t btif_config_get_bin_length(const std::string& section, in btif_config_get_bin_length() argument
578 return bluetooth::shim::BtifConfigInterface::GetBinLength(section, key); in btif_config_get_bin_length()
581 auto value_str = btif_config_cache.GetString(section, key); in btif_config_get_bin_length()
587 bool btif_config_set_bin(const std::string& section, const std::string& key, in btif_config_set_bin() argument
591 return bluetooth::shim::BtifConfigInterface::SetBin(section, key, value, in btif_config_set_bin()
614 section + "-" + key, str); in btif_config_set_bin()
622 btif_config_cache.SetString(section, key, value_str); in btif_config_set_bin()
650 bool btif_config_remove(const std::string& section, const std::string& key) { in btif_config_remove() argument
653 return bluetooth::shim::BtifConfigInterface::RemoveProperty(section, key); in btif_config_remove()
657 section + "-" + key, ""); in btif_config_remove()
660 return btif_config_cache.RemoveKey(section, key); in btif_config_remove()