Lines Matching refs:CuttlefishConfig

77 bool IsRestoring(const CuttlefishConfig& config) {  in IsRestoring()
83 bool CuttlefishConfig::LoadFragment(ConfigFragment& fragment) const { in LoadFragment()
95 bool CuttlefishConfig::SaveFragment(const ConfigFragment& fragment) { in SaveFragment()
106 std::string CuttlefishConfig::root_dir() const { in root_dir()
109 void CuttlefishConfig::set_root_dir(const std::string& root_dir) { in set_root_dir()
114 VmmMode CuttlefishConfig::vm_manager() const { in vm_manager()
118 void CuttlefishConfig::set_vm_manager(VmmMode vmm) { in set_vm_manager()
123 std::string CuttlefishConfig::ap_vm_manager() const { in ap_vm_manager()
126 void CuttlefishConfig::set_ap_vm_manager(const std::string& name) { in set_ap_vm_manager()
154 std::set<SecureHal> CuttlefishConfig::secure_hals() const { in secure_hals()
161 void CuttlefishConfig::set_secure_hals(const std::set<std::string>& hals) { in set_secure_hals()
170 std::string CuttlefishConfig::crosvm_binary() const { in crosvm_binary()
173 void CuttlefishConfig::set_crosvm_binary(const std::string& crosvm_binary) { in set_crosvm_binary()
177 bool CuttlefishConfig::IsCrosvm() const { in IsCrosvm()
182 std::string CuttlefishConfig::gem5_debug_flags() const { in gem5_debug_flags()
185 void CuttlefishConfig::set_gem5_debug_flags(const std::string& gem5_debug_flags) { in set_gem5_debug_flags()
190 void CuttlefishConfig::set_webrtc_certs_dir(const std::string& certs_dir) { in set_webrtc_certs_dir()
193 std::string CuttlefishConfig::webrtc_certs_dir() const { in webrtc_certs_dir()
198 void CuttlefishConfig::set_sig_server_port(int port) { in set_sig_server_port()
201 int CuttlefishConfig::sig_server_port() const { in sig_server_port()
206 void CuttlefishConfig::set_sig_server_address(const std::string& addr) { in set_sig_server_address()
209 std::string CuttlefishConfig::sig_server_address() const { in sig_server_address()
214 void CuttlefishConfig::set_sig_server_path(const std::string& path) { in set_sig_server_path()
218 std::string CuttlefishConfig::sig_server_path() const { in sig_server_path()
223 void CuttlefishConfig::set_sig_server_secure(bool secure) { in set_sig_server_secure()
226 bool CuttlefishConfig::sig_server_secure() const { in sig_server_secure()
231 void CuttlefishConfig::set_sig_server_strict(bool strict) { in set_sig_server_strict()
234 bool CuttlefishConfig::sig_server_strict() const { in sig_server_strict()
239 void CuttlefishConfig::set_host_tools_version( in set_host_tools_version()
247 std::map<std::string, uint32_t> CuttlefishConfig::host_tools_version() const { in host_tools_version()
260 void CuttlefishConfig::set_enable_host_uwb(bool enable_host_uwb) { in set_enable_host_uwb()
263 bool CuttlefishConfig::enable_host_uwb() const { in enable_host_uwb()
268 void CuttlefishConfig::set_enable_host_uwb_connector(bool enable_host_uwb) { in set_enable_host_uwb_connector()
271 bool CuttlefishConfig::enable_host_uwb_connector() const { in enable_host_uwb_connector()
276 int CuttlefishConfig::pica_uci_port() const { in pica_uci_port()
279 void CuttlefishConfig::set_pica_uci_port(int pica_uci_port) { in set_pica_uci_port()
284 void CuttlefishConfig::set_enable_host_bluetooth(bool enable_host_bluetooth) { in set_enable_host_bluetooth()
287 bool CuttlefishConfig::enable_host_bluetooth() const { in enable_host_bluetooth()
293 void CuttlefishConfig::set_enable_host_bluetooth_connector(bool enable_host_bluetooth) { in set_enable_host_bluetooth_connector()
296 bool CuttlefishConfig::enable_host_bluetooth_connector() const { in enable_host_bluetooth_connector()
301 void CuttlefishConfig::set_enable_automotive_proxy( in set_enable_automotive_proxy()
305 bool CuttlefishConfig::enable_automotive_proxy() const { in enable_automotive_proxy()
310 void CuttlefishConfig::set_vhal_proxy_server_port(int port) { in set_vhal_proxy_server_port()
313 int CuttlefishConfig::vhal_proxy_server_port() const { in vhal_proxy_server_port()
318 void CuttlefishConfig::set_enable_host_nfc(bool enable_host_nfc) { in set_enable_host_nfc()
321 bool CuttlefishConfig::enable_host_nfc() const { in enable_host_nfc()
326 void CuttlefishConfig::set_enable_host_nfc_connector(bool enable_host_nfc) { in set_enable_host_nfc_connector()
329 bool CuttlefishConfig::enable_host_nfc_connector() const { in enable_host_nfc_connector()
334 void CuttlefishConfig::set_casimir_instance_num(int casimir_instance_num) { in set_casimir_instance_num()
337 int CuttlefishConfig::casimir_instance_num() const { in casimir_instance_num()
342 void CuttlefishConfig::set_casimir_args(const std::string& casimir_args) { in set_casimir_args()
351 std::vector<std::string> CuttlefishConfig::casimir_args() const { in casimir_args()
360 void CuttlefishConfig::set_casimir_nci_port(int port) { in set_casimir_nci_port()
363 int CuttlefishConfig::casimir_nci_port() const { in casimir_nci_port()
368 void CuttlefishConfig::set_casimir_rf_port(int port) { in set_casimir_rf_port()
371 int CuttlefishConfig::casimir_rf_port() const { in casimir_rf_port()
377 void CuttlefishConfig::netsim_radio_enable(NetsimRadio flag) { in netsim_radio_enable()
386 bool CuttlefishConfig::netsim_radio_enabled(NetsimRadio flag) const { in netsim_radio_enabled()
391 int CuttlefishConfig::netsim_instance_num() const { in netsim_instance_num()
394 void CuttlefishConfig::set_netsim_instance_num(int netsim_instance_num) { in set_netsim_instance_num()
400 int CuttlefishConfig::netsim_connector_instance_num() const { in netsim_connector_instance_num()
403 void CuttlefishConfig::set_netsim_connector_instance_num( in set_netsim_connector_instance_num()
409 void CuttlefishConfig::set_netsim_args(const std::string& netsim_args) { in set_netsim_args()
416 std::vector<std::string> CuttlefishConfig::netsim_args() const { in netsim_args()
425 void CuttlefishConfig::set_enable_metrics(std::string enable_metrics) { in set_enable_metrics()
427 static_cast<int>(cuttlefish::CuttlefishConfig::Answer::kUnknown); in set_enable_metrics()
433 static_cast<int>(cuttlefish::CuttlefishConfig::Answer::kYes); in set_enable_metrics()
438 static_cast<int>(cuttlefish::CuttlefishConfig::Answer::kNo); in set_enable_metrics()
447 return value == static_cast<int>(CuttlefishConfig::Answer::kUnknown) || in IsValidMetricsConfigs()
448 value == static_cast<int>(CuttlefishConfig::Answer::kNo) || in IsValidMetricsConfigs()
449 value == static_cast<int>(CuttlefishConfig::Answer::kYes); in IsValidMetricsConfigs()
452 CuttlefishConfig::Answer CuttlefishConfig::enable_metrics() const { in enable_metrics()
456 return static_cast<Answer>(CuttlefishConfig::Answer::kUnknown); in enable_metrics()
462 void CuttlefishConfig::set_metrics_binary(const std::string& metrics_binary) { in set_metrics_binary()
465 std::string CuttlefishConfig::metrics_binary() const { in metrics_binary()
470 void CuttlefishConfig::set_extra_kernel_cmdline( in set_extra_kernel_cmdline()
478 std::vector<std::string> CuttlefishConfig::extra_kernel_cmdline() const { in extra_kernel_cmdline()
487 void CuttlefishConfig::set_virtio_mac80211_hwsim(bool virtio_mac80211_hwsim) { in set_virtio_mac80211_hwsim()
490 bool CuttlefishConfig::virtio_mac80211_hwsim() const { in virtio_mac80211_hwsim()
495 std::string CuttlefishConfig::ap_rootfs_image() const { in ap_rootfs_image()
498 void CuttlefishConfig::set_ap_rootfs_image(const std::string& ap_rootfs_image) { in set_ap_rootfs_image()
503 std::string CuttlefishConfig::ap_kernel_image() const { in ap_kernel_image()
506 void CuttlefishConfig::set_ap_kernel_image(const std::string& ap_kernel_image) { in set_ap_kernel_image()
511 void CuttlefishConfig::set_rootcanal_args(const std::string& rootcanal_args) { in set_rootcanal_args()
518 std::vector<std::string> CuttlefishConfig::rootcanal_args() const { in rootcanal_args()
527 int CuttlefishConfig::rootcanal_hci_port() const { in rootcanal_hci_port()
530 void CuttlefishConfig::set_rootcanal_hci_port(int rootcanal_hci_port) { in set_rootcanal_hci_port()
535 int CuttlefishConfig::rootcanal_link_port() const { in rootcanal_link_port()
538 void CuttlefishConfig::set_rootcanal_link_port(int rootcanal_link_port) { in set_rootcanal_link_port()
543 int CuttlefishConfig::rootcanal_link_ble_port() const { in rootcanal_link_ble_port()
546 void CuttlefishConfig::set_rootcanal_link_ble_port( in set_rootcanal_link_ble_port()
552 int CuttlefishConfig::rootcanal_test_port() const { in rootcanal_test_port()
555 void CuttlefishConfig::set_rootcanal_test_port(int rootcanal_test_port) { in set_rootcanal_test_port()
560 std::string CuttlefishConfig::snapshot_path() const { in snapshot_path()
563 void CuttlefishConfig::set_snapshot_path(const std::string& snapshot_path) { in set_snapshot_path()
568 void CuttlefishConfig::set_straced_host_executables( in set_straced_host_executables()
576 std::set<std::string> CuttlefishConfig::straced_host_executables() const { in straced_host_executables()
585 bool CuttlefishConfig::host_sandbox() const { in host_sandbox()
588 void CuttlefishConfig::set_host_sandbox(bool host_sandbox) { in set_host_sandbox()
592 /*static*/ CuttlefishConfig* CuttlefishConfig::BuildConfigImpl( in BuildConfigImpl()
594 auto ret = new CuttlefishConfig(); in BuildConfigImpl()
605 /*static*/ std::unique_ptr<const CuttlefishConfig>
606 CuttlefishConfig::GetFromFile(const std::string& path) { in GetFromFile()
607 return std::unique_ptr<const CuttlefishConfig>(BuildConfigImpl(path)); in GetFromFile()
613 /*static*/ const CuttlefishConfig* CuttlefishConfig::Get() { in Get()
616 static std::shared_ptr<CuttlefishConfig> config( in Get()
621 /*static*/ bool CuttlefishConfig::ConfigExists() { in ConfigExists()
628 CuttlefishConfig::CuttlefishConfig() : dictionary_(new Json::Value()) {} in CuttlefishConfig() function in cuttlefish::CuttlefishConfig
631 CuttlefishConfig::~CuttlefishConfig() = default;
633 CuttlefishConfig::CuttlefishConfig(CuttlefishConfig&&) = default;
634 CuttlefishConfig& CuttlefishConfig::operator=(CuttlefishConfig&&) = default;
636 bool CuttlefishConfig::LoadFromFile(const char* file) { in LoadFromFile()
651 bool CuttlefishConfig::SaveToFile(const std::string& file) const { in SaveToFile()
661 std::string CuttlefishConfig::instances_dir() const { in instances_dir()
665 std::string CuttlefishConfig::InstancesPath( in InstancesPath()
670 std::string CuttlefishConfig::assembly_dir() const { in assembly_dir()
674 std::string CuttlefishConfig::AssemblyPath( in AssemblyPath()
679 std::string CuttlefishConfig::instances_uds_dir() const { in instances_uds_dir()
693 std::string CuttlefishConfig::InstancesUdsPath( in InstancesUdsPath()
698 std::string CuttlefishConfig::environments_dir() const { in environments_dir()
702 std::string CuttlefishConfig::EnvironmentsPath( in EnvironmentsPath()
707 std::string CuttlefishConfig::environments_uds_dir() const { in environments_uds_dir()
721 std::string CuttlefishConfig::EnvironmentsUdsPath( in EnvironmentsUdsPath()
726 CuttlefishConfig::MutableInstanceSpecific CuttlefishConfig::ForInstance(int num) { in ForInstance()
730 CuttlefishConfig::InstanceSpecific CuttlefishConfig::ForInstance(int num) const { in ForInstance()
734 CuttlefishConfig::InstanceSpecific CuttlefishConfig::ForInstanceName( in ForInstanceName()
739 CuttlefishConfig::InstanceSpecific CuttlefishConfig::ForDefaultInstance() const { in ForDefaultInstance()
743 std::vector<CuttlefishConfig::InstanceSpecific> CuttlefishConfig::Instances() const { in Instances()
745 std::vector<CuttlefishConfig::InstanceSpecific> instances; in Instances()
747 instances.push_back(CuttlefishConfig::InstanceSpecific(this, name)); in Instances()
752 std::vector<std::string> CuttlefishConfig::instance_dirs() const { in instance_dirs()
762 void CuttlefishConfig::set_instance_names( in set_instance_names()
770 std::vector<std::string> CuttlefishConfig::instance_names() const { in instance_names()
786 CuttlefishConfig::MutableEnvironmentSpecific CuttlefishConfig::ForEnvironment( in ForEnvironment()
791 CuttlefishConfig::EnvironmentSpecific CuttlefishConfig::ForEnvironment( in ForEnvironment()
796 CuttlefishConfig::MutableEnvironmentSpecific
797 CuttlefishConfig::ForDefaultEnvironment() { in ForDefaultEnvironment()
802 CuttlefishConfig::EnvironmentSpecific CuttlefishConfig::ForDefaultEnvironment() in ForDefaultEnvironment()
807 std::vector<std::string> CuttlefishConfig::environment_dirs() const { in environment_dirs()