Android-cuttlefish cvd tool
|
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
#include <android-base/strings.h>
#include <android-base/logging.h>
#include <fmt/core.h>
#include <json/reader.h>
#include <json/value.h>
#include "cuttlefish/common/libs/utils/environment.h"
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/host/libs/config/config_fragment.h"
#include "cuttlefish/host/libs/config/config_constants.h"
#include "cuttlefish/host/libs/config/config_utils.h"
#include "cuttlefish/host/libs/config/secure_hals.h"
#include "cuttlefish/host/libs/config/vmm_mode.h"
Namespaces | |
namespace | cuttlefish |
namespace | cuttlefish::anonymous_namespace{cuttlefish_config.cpp} |
Functions | |
bool | cuttlefish::IsRestoring (const CuttlefishConfig &config) |
bool | cuttlefish::IsValidMetricsConfigs (int value) |
Variables | |
const char * | cuttlefish::anonymous_namespace{cuttlefish_config.cpp}::kInstances = "instances" |
static constexpr char | cuttlefish::kFragments [] = "fragments" |
static constexpr char | cuttlefish::kRootDir [] = "root_dir" |
static constexpr char | cuttlefish::kVmManager [] = "vm_manager" |
static constexpr char | cuttlefish::kApVmManager [] = "ap_vm_manager" |
static constexpr char | cuttlefish::kSecureHals [] = "secure_hals" |
static constexpr char | cuttlefish::kCrosvmBinary [] = "crosvm_binary" |
static constexpr char | cuttlefish::kGem5DebugFlags [] = "gem5_debug_flags" |
static constexpr char | cuttlefish::kSigServerPort [] = "webrtc_sig_server_port" |
static constexpr char | cuttlefish::kSigServerAddress [] = "webrtc_sig_server_addr" |
static constexpr char | cuttlefish::kHostToolsVersion [] = "host_tools_version" |
static constexpr char | cuttlefish::kEnableHostUwb [] = "enable_host_uwb" |
static constexpr char | cuttlefish::kEnableHostUwbConnector [] = "enable_host_uwb_connector" |
static constexpr char | cuttlefish::kPicaUciPort [] = "pica_uci_port" |
static constexpr char | cuttlefish::kEnableHostBluetooth [] = "enable_host_bluetooth" |
static constexpr char | cuttlefish::kEnableHostBluetoothConnector [] |
static constexpr char | cuttlefish::kEnableAutomotiveProxy [] = "enable_automotive_proxy" |
static constexpr char | cuttlefish::kVhalProxyServerPort [] = "vhal_proxy_server_port" |
static constexpr char | cuttlefish::kEnableHostNfc [] = "enable_host_nfc" |
static constexpr char | cuttlefish::kEnableHostNfcConnector [] = "enable_host_nfc_connector" |
static constexpr char | cuttlefish::kCasimirInstanceNum [] = "casimir_instance_num" |
static constexpr char | cuttlefish::kCasimirArgs [] = "casimir_args" |
static constexpr char | cuttlefish::kCasimirNciPort [] = "casimir_nci_port" |
static constexpr char | cuttlefish::kCasimirRfPort [] = "casimir_rf_port" |
static constexpr char | cuttlefish::kNetsimRadios [] = "netsim_radios" |
static constexpr char | cuttlefish::kNetsimInstanceNum [] = "netsim_instance_num" |
static constexpr char | cuttlefish::kNetsimConnectorInstanceNum [] |
static constexpr char | cuttlefish::kNetsimArgs [] = "netsim_args" |
static constexpr char | cuttlefish::kEnableMetrics [] = "enable_metrics" |
static constexpr char | cuttlefish::kMetricsBinary [] = "metrics_binary" |
static constexpr char | cuttlefish::kExtraKernelCmdline [] = "extra_kernel_cmdline" |
static constexpr char | cuttlefish::kVirtioMac80211Hwsim [] = "virtio_mac80211_hwsim" |
static constexpr char | cuttlefish::kApRootfsImage [] = "ap_rootfs_image" |
static constexpr char | cuttlefish::kApKernelImage [] = "ap_kernel_image" |
static constexpr char | cuttlefish::kRootcanalArgs [] = "rootcanal_args" |
static constexpr char | cuttlefish::kRootcanalHciPort [] = "rootcanal_hci_port" |
static constexpr char | cuttlefish::kRootcanalLinkPort [] = "rootcanal_link_port" |
static constexpr char | cuttlefish::kRootcanalLinkBlePort [] = "rootcanal_link_ble_port" |
static constexpr char | cuttlefish::kRootcanalTestPort [] = "rootcanal_test_port" |
static constexpr char | cuttlefish::kSnapshotPath [] = "snapshot_path" |
static constexpr char | cuttlefish::kKvmPath [] = "kvm_path" |
static constexpr char | cuttlefish::kVhostVsockPath [] = "vhost_vsock_path" |
static constexpr char | cuttlefish::kStracedExecutables [] = "straced_host_executables" |
static constexpr char | cuttlefish::kInstancesUdsDir [] = "instances_uds_dir" |
static constexpr char | cuttlefish::kEnvironmentsUdsDir [] = "environments_uds_dir" |
static constexpr char | cuttlefish::kInstanceNames [] = "instance_names" |