Home
last modified time | relevance | path

Searched refs:dictionary_ (Results 1 – 7 of 7) sorted by relevance

/device/google/cuttlefish/host/libs/config/
Dcuttlefish_config.cpp183 return (*dictionary_)[kAssemblyDir].asString(); in assembly_dir()
186 (*dictionary_)[kAssemblyDir] = assembly_dir; in set_assembly_dir()
190 return (*dictionary_)[kVmManager].asString(); in vm_manager()
193 (*dictionary_)[kVmManager] = name; in set_vm_manager()
197 return (*dictionary_)[kGpuMode].asString(); in gpu_mode()
200 (*dictionary_)[kGpuMode] = name; in set_gpu_mode()
203 int CuttlefishConfig::cpus() const { return (*dictionary_)[kCpus].asInt(); } in cpus()
204 void CuttlefishConfig::set_cpus(int cpus) { (*dictionary_)[kCpus] = cpus; } in set_cpus()
207 return (*dictionary_)[kMemoryMb].asInt(); in memory_mb()
210 (*dictionary_)[kMemoryMb] = memory_mb; in set_memory_mb()
[all …]
Dfetcher_config.cpp94 FetcherConfig::FetcherConfig() : dictionary_(new Json::Value()) { in FetcherConfig()
108 ofs << *dictionary_; in SaveToFile()
120 if (!reader.parse(ifs, *dictionary_)) { in LoadFromFile()
144 (*dictionary_)[kFlags] = flags_json; in RecordFlags()
177 if (!dictionary_->isMember(kCvdFiles)) { in add_cvd_file()
179 (*dictionary_)[kCvdFiles] = files_json; in add_cvd_file()
181 if ((*dictionary_)[kCvdFiles].isMember(file.file_path) && !override_entry) { in add_cvd_file()
184 (*dictionary_)[kCvdFiles][file.file_path] = CvdFileToJson(file); in add_cvd_file()
189 if (!dictionary_->isMember(kCvdFiles)) { in get_cvd_files()
193 const auto& json_files = (*dictionary_)[kCvdFiles]; in get_cvd_files()
[all …]
Dfetcher_config.h67 std::unique_ptr<Json::Value> dictionary_; variable
Dcuttlefish_config_instance.cpp64 return &(*config_->dictionary_)[kInstances][id_]; in Dictionary()
68 return &(*config_->dictionary_)[kInstances][id_]; in Dictionary()
Dcuttlefish_config.h475 std::unique_ptr<Json::Value> dictionary_;
/device/google/cuttlefish/host/commands/modem_simulator/
Dnvram_config.cpp90 : total_instances_(num_instances), dictionary_(new Json::Value()) {} in NvramConfig()
116 if (!reader.parse(ifs, *dictionary_)) { in LoadFromFile()
130 ofs << *dictionary_; in SaveToFile()
145 return &(*config_->dictionary_)[kInstances][id_]; in Dictionary()
149 return &(*config_->dictionary_)[kInstances][id_]; in Dictionary()
Dnvram_config.h80 std::unique_ptr<Json::Value> dictionary_; variable