#include <nvram_config.h>
◆ NvramConfig() [1/3]
cuttlefish::NvramConfig::NvramConfig |
( |
size_t |
num_instances, |
|
|
int |
sim_type |
|
) |
| |
◆ NvramConfig() [2/3]
cuttlefish::NvramConfig::NvramConfig |
( |
NvramConfig && |
| ) |
|
|
default |
◆ ~NvramConfig()
cuttlefish::NvramConfig::~NvramConfig |
( |
| ) |
|
|
default |
◆ NvramConfig() [3/3]
cuttlefish::NvramConfig::NvramConfig |
( |
const NvramConfig & |
| ) |
|
|
privatedelete |
◆ BuildConfigImpl()
NvramConfig * cuttlefish::NvramConfig::BuildConfigImpl |
( |
size_t |
num_instances, |
|
|
int |
sim_type |
|
) |
| |
|
staticprivate |
Creates the (initially empty) config object and populates it with values from the config file "modem_nvram.json" located in the cuttlefish instance path, or uses the default value if the config file not exists, Returns nullptr if there was an error loading from file
Bug: (b/315167296) Fall back to default nvram config if LoadFromFile fails.
◆ ConfigFileLocation()
std::string cuttlefish::NvramConfig::ConfigFileLocation |
( |
| ) |
|
|
static |
◆ ForInstance()
◆ Get()
◆ InitDefaultNvramConfig()
void cuttlefish::NvramConfig::InitDefaultNvramConfig |
( |
| ) |
|
|
private |
◆ InitNvramConfigService()
void cuttlefish::NvramConfig::InitNvramConfigService |
( |
size_t |
num_instances, |
|
|
int |
sim_type |
|
) |
| |
|
static |
◆ Instances()
◆ LoadFromFile()
bool cuttlefish::NvramConfig::LoadFromFile |
( |
const char * |
file | ) |
|
|
private |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SaveToFile() [1/2]
void cuttlefish::NvramConfig::SaveToFile |
( |
| ) |
|
|
static |
◆ SaveToFile() [2/2]
bool cuttlefish::NvramConfig::SaveToFile |
( |
const std::string & |
file | ) |
const |
◆ sim_type()
int cuttlefish::NvramConfig::sim_type |
( |
| ) |
const |
◆ dictionary_
std::unique_ptr<Json::Value> cuttlefish::NvramConfig::dictionary_ |
|
private |
◆ s_nvram_config
std::unique_ptr< NvramConfig > cuttlefish::NvramConfig::s_nvram_config |
|
staticprivate |
◆ sim_type_
int cuttlefish::NvramConfig::sim_type_ |
|
private |
◆ total_instances_
size_t cuttlefish::NvramConfig::total_instances_ |
|
private |
The documentation for this class was generated from the following files: