/device/google/cuttlefish/host/libs/config/ |
D | cuttlefish_config.h | 63 std::string ToString(VmmMode mode); 80 const std::string& path); 90 bool SaveToFile(const std::string& file) const; 96 std::string root_dir() const; 97 void set_root_dir(const std::string& root_dir); 99 std::string instances_dir() const; 100 std::string InstancesPath(const std::string&) const; 102 std::string assembly_dir() const; 103 std::string AssemblyPath(const std::string&) const; 105 std::string instances_uds_dir() const; [all …]
|
D | cuttlefish_config_instance.cpp | 38 std::string IdToName(const std::string& id) { return kCvdNamePrefix + id; } in IdToName() 65 std::string ToString(VmmMode mode) { in ToString() 98 CuttlefishConfig* config, const std::string& id) in MutableInstanceSpecific() 112 std::string CuttlefishConfig::InstanceSpecific::instance_dir() const { in instance_dir() 116 std::string CuttlefishConfig::InstanceSpecific::instance_internal_dir() const { in instance_internal_dir() 120 std::string CuttlefishConfig::InstanceSpecific::instance_uds_dir() const { in instance_uds_dir() 124 std::string CuttlefishConfig::InstanceSpecific::instance_internal_uds_dir() in instance_internal_uds_dir() 139 std::string CuttlefishConfig::InstanceSpecific::boot_image() const { in boot_image() 143 const std::string& boot_image) { in set_boot_image() 147 std::string CuttlefishConfig::InstanceSpecific::new_boot_image() const { in new_boot_image() [all …]
|
D | known_paths.h | 22 std::string AdbConnectorBinary(); 23 std::string AvbToolBinary(); 24 std::string CasimirControlServerBinary(); 25 std::string ConsoleForwarderBinary(); 26 std::string ControlEnvProxyServerBinary(); 27 std::string EchoServerBinary(); 28 std::string GnssGrpcProxyBinary(); 29 std::string KernelLogMonitorBinary(); 30 std::string LogcatReceiverBinary(); 31 std::string MetricsBinary(); [all …]
|
D | known_paths.cpp | 23 std::string AdbConnectorBinary() { in AdbConnectorBinary() 27 std::string AvbToolBinary() { return HostBinaryPath("avbtool"); } in AvbToolBinary() 29 std::string CasimirControlServerBinary() { in CasimirControlServerBinary() 33 std::string ConsoleForwarderBinary() { in ConsoleForwarderBinary() 37 std::string ControlEnvProxyServerBinary() { in ControlEnvProxyServerBinary() 41 std::string EchoServerBinary() { return HostBinaryPath("echo_server"); } in EchoServerBinary() 43 std::string GnssGrpcProxyBinary() { in GnssGrpcProxyBinary() 47 std::string KernelLogMonitorBinary() { in KernelLogMonitorBinary() 51 std::string LogcatReceiverBinary() { in LogcatReceiverBinary() 55 std::string MetricsBinary() { in MetricsBinary() [all …]
|
D | cuttlefish_config.cpp | 71 std::string DefaultEnvironmentPath(const char* environment_key, in DefaultEnvironmentPath() 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() 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() 130 static SecureHal StringToSecureHal(std::string mode) { in StringToSecureHal() 132 std::unordered_map<std::string, SecureHal> mapping = { in StringToSecureHal() 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() [all …]
|
D | esp.h | 30 AndroidEfiLoaderEspBuilder(std::string image_path) in AndroidEfiLoaderEspBuilder() 33 AndroidEfiLoaderEspBuilder& EfiLoaderPath(std::string efi_loader_path) &; 39 const std::string image_path_; 40 std::string efi_loader_path_; 47 LinuxEspBuilder(std::string image_path): image_path_(std::move(image_path)) {} in LinuxEspBuilder() 49 LinuxEspBuilder& Argument(std::string key, std::string value) &; 50 LinuxEspBuilder& Argument(std::string value) &; 51 LinuxEspBuilder& Root(std::string root) &; 52 LinuxEspBuilder& Kernel(std::string kernel) &; 53 LinuxEspBuilder& Initrd(std::string initrd) &; [all …]
|
/device/google/cuttlefish/common/libs/utils/ |
D | files.h | 29 bool FileExists(const std::string& path, bool follow_symlinks = true); 30 Result<dev_t> FileDeviceId(const std::string& path); 31 Result<bool> CanHardLink(const std::string& source, 32 const std::string& destination); 33 Result<ino_t> FileInodeNumber(const std::string& path); 34 Result<bool> AreHardLinked(const std::string& source, 35 const std::string& destination); 36 Result<std::string> CreateHardLink(const std::string& target, 37 const std::string& hardlink, 39 bool FileHasContent(const std::string& path); [all …]
|
D | files.cpp | 80 bool FileExists(const std::string& path, bool follow_symlinks) { in FileExists() 85 Result<dev_t> FileDeviceId(const std::string& path) { in FileDeviceId() 95 Result<bool> CanHardLink(const std::string& source, in CanHardLink() 96 const std::string& destination) { in CanHardLink() 101 Result<ino_t> FileInodeNumber(const std::string& path) { in FileInodeNumber() 111 Result<bool> AreHardLinked(const std::string& source, in AreHardLinked() 112 const std::string& destination) { in AreHardLinked() 119 Result<std::string> CreateHardLink(const std::string& target, in CreateHardLink() 120 const std::string& hardlink, in CreateHardLink() 145 bool FileHasContent(const std::string& path) { in FileHasContent() [all …]
|
D | subprocess.h | 46 std::vector<std::string> ArgsToVec(char** argv); 47 std::unordered_map<std::string, std::string> EnvpToMap(char** envp); 115 SubprocessOptions& SandboxArguments(std::vector<std::string>) &; 116 SubprocessOptions SandboxArguments(std::vector<std::string>) &&; 121 SubprocessOptions& Strace(std::string strace_output_path) &; 122 SubprocessOptions Strace(std::string strace_output_path) &&; 126 const std::vector<std::string>& SandboxArguments() const { in SandboxArguments() 130 const std::string& Strace() const { return strace_; } in Strace() 135 std::vector<std::string> sandbox_arguments_; 137 std::string strace_; [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/unittest/ |
D | service_test.cpp | 36 static const std::string tmp_test_dir = std::string(fs::temp_directory_path()) + 37 std::string("/cuttlefish_modem_test"); 45 std::string config_file = tmp_test_dir + "/.cuttlefish_config.json"; in SetUpTestSuite() 63 std::string icfilename = in SetUpTestSuite() 66 offile << std::string(myiccfile); in SetUpTestSuite() 101 void SendCommand(std::string command, std::string prefix = "") { in SendCommand() 106 void ReadCommandResponse(std::vector<std::string>& response) { in ReadCommandResponse() 120 std::string& incomplete_command = ril_side_->incomplete_command; in ReadCommandResponse() 123 auto commands = std::string{incomplete_command.data()}; in ReadCommandResponse() 134 while (r_pos != std::string::npos) { in ReadCommandResponse() [all …]
|
/device/google/zuma/dumpstate/ |
D | dump_power.cpp | 36 int getCommandOutput(const char *cmd, std::string *output) { in getCommandOutput() 76 int getFilesInDir(const char *directory, std::vector<std::string> *files) { in getFilesInDir() 77 std::string content; in getFilesInDir() 119 std::vector<std::string> files; in readContentsOfDir() 120 std::string content; in readContentsOfDir() 121 std::string fileLocation; in readContentsOfDir() 130 if (useStrMatch && std::string::npos == std::string(file).find(strMatch)) { in readContentsOfDir() 134 fileLocation = std::string(directory) + std::string(file); in readContentsOfDir() 164 if (std::string::npos != std::string(entry->d_name).find(tcpmPsy)) { in dumpTcpmPsyUevent() 165 std::string fullPath("/sys/class/power_supply/" + (const std::string)entry->d_name + in dumpTcpmPsyUevent() [all …]
|
/device/google/zumapro/dumpstate/ |
D | dump_power.cpp | 38 int getCommandOutput(const char *cmd, std::string *output) { in getCommandOutput() 78 int getFilesInDir(const char *directory, std::vector<std::string> *files) { in getFilesInDir() 79 std::string content; in getFilesInDir() 121 std::vector<std::string> files; in readContentsOfDir() 122 std::string content; in readContentsOfDir() 123 std::string fileLocation; in readContentsOfDir() 132 if (useStrMatch && std::string::npos == std::string(file).find(strMatch)) { in readContentsOfDir() 136 fileLocation = std::string(directory) + std::string(file); in readContentsOfDir() 208 std::string content; in dumpMaxFg() 270 std::vector<std::string> files; in dumpTcpc() [all …]
|
/device/google/cuttlefish/host/libs/web/http_client/ |
D | http_client.cc | 41 std::string TrimWhitespace(const char* data, const size_t size) { in TrimWhitespace() 42 std::string converted(data, size); in TrimWhitespace() 92 Result<std::string> CurlUrlGet(CURLU* url, CURLUPart what, unsigned int flags) { in CurlUrlGet() 95 std::string str(str_ptr); in CurlUrlGet() 104 const std::vector<std::string>& strings) { in SlistFromStrings() 129 Result<HttpResponse<std::string>> GetToString( in GetToString() 130 const std::string& url, in GetToString() 131 const std::vector<std::string>& headers) override { in GetToString() 135 Result<HttpResponse<std::string>> PostToString( in PostToString() 136 const std::string& url, const std::string& data_to_write, in PostToString() [all …]
|
D | http_client.h | 50 std::function<Result<std::vector<std::string>>(const std::string&)>; 52 Result<std::vector<std::string>> GetEntDnsResolve(const std::string& host); 66 virtual Result<HttpResponse<std::string>> GetToString( 67 const std::string& url, const std::vector<std::string>& headers = {}) = 0; 68 virtual Result<HttpResponse<std::string>> PostToString( 69 const std::string& url, const std::string& data, 70 const std::vector<std::string>& headers = {}) = 0; 71 virtual Result<HttpResponse<std::string>> DeleteToString( 72 const std::string& url, const std::vector<std::string>& headers = {}) = 0; 83 const std::string& url, const std::string& data, [all …]
|
/device/google/cuttlefish/host/libs/control_env/ |
D | grpc_service_handler.cc | 53 bool PrintStream(std::stringstream* ss, const std::string& output) { in PrintStream() 64 std::string GetCredentialUsage() const override { return ""; } in GetCredentialUsage() 68 const std::vector<std::string>& arguments, in CombineArgumentsAndOptions() 69 const std::vector<std::string>& options) { in CombineArgumentsAndOptions() 88 Result<void> RunGrpcCommand(const std::vector<std::string>& arguments, in RunGrpcCommand() 89 const std::vector<std::string>& options, in RunGrpcCommand() 104 Result<std::string> RunGrpcCommand(const std::vector<std::string>& arguments, in RunGrpcCommand() 105 const std::vector<std::string>& options) { in RunGrpcCommand() 111 Result<std::string> RunGrpcCommand(const std::vector<std::string>& arguments) { in RunGrpcCommand() 112 std::vector<std::string> options; in RunGrpcCommand() [all …]
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | vendor_dlkm_utils.cc | 74 bool WriteFsConfig(const char* output_path, const std::string& fs_root, in WriteFsConfig() 75 const std::string& mount_point) { in WriteFsConfig() 88 &fs_root](const std::string& file_path) { in WriteFsConfig() 91 std::string fs_context = " 0 0 644 capabilities=0x0\n"; in WriteFsConfig() 105 std::vector<std::string> GetRamdiskModules( in GetRamdiskModules() 106 const std::vector<std::string>& all_modules) { in GetRamdiskModules() 132 std::vector<std::string> ramdisk_modules; in GetRamdiskModules() 142 std::map<std::string, std::vector<std::string>> FilterDependencies( in FilterDependencies() 143 const std::map<std::string, std::vector<std::string>>& deps, in FilterDependencies() argument 144 const std::set<std::string>& allow_list) { in FilterDependencies() [all …]
|
D | graphics_flags.cc | 50 Result<RenderingMode> GetRenderingMode(const std::string& mode) { in GetRenderingMode() 51 if (mode == std::string(kGpuModeDrmVirgl)) { in GetRenderingMode() 54 if (mode == std::string(kGpuModeGfxstream)) { in GetRenderingMode() 57 if (mode == std::string(kGpuModeGfxstreamGuestAngle)) { in GetRenderingMode() 60 if (mode == std::string(kGpuModeGfxstreamGuestAngleHostSwiftShader)) { in GetRenderingMode() 63 if (mode == std::string(kGpuModeGuestSwiftshader)) { in GetRenderingMode() 66 if (mode == std::string(kGpuModeCustom)) { in GetRenderingMode() 69 if (mode == std::string(kGpuModeNone)) { in GetRenderingMode() 120 std::string ToLower(const std::string& v) { in ToLower() 121 std::string result = v; in ToLower() [all …]
|
D | boot_image_utils.cc | 46 std::string ExtractValue(const std::string& dictionary, const std::string& key) { in ExtractValue() 48 if (index != std::string::npos) { in ExtractValue() 50 if (end_index != std::string::npos) { in ExtractValue() 65 bool DeleteTmpFileIfNotChanged(const std::string& tmp_file, const std::string& current_file) { in DeleteTmpFileIfNotChanged() 81 void RepackVendorRamdisk(const std::string& kernel_modules_ramdisk_path, in RepackVendorRamdisk() 82 const std::string& original_ramdisk_path, in RepackVendorRamdisk() 83 const std::string& new_ramdisk_path, in RepackVendorRamdisk() 84 const std::string& build_dir) { in RepackVendorRamdisk() 86 const std::string ramdisk_stage_dir = build_dir + "/" + TMP_RD_DIR; in RepackVendorRamdisk() 93 const std::string stripped_ramdisk_path = build_dir + "/" + STRIPPED_RD; in RepackVendorRamdisk() [all …]
|
D | boot_image_utils.h | 27 const std::string& new_kernel_path, 28 const std::string& boot_image_path, 29 const std::string& new_boot_image_path, 30 const std::string& tmp_artifact_dir); 31 bool RepackVendorBootImage(const std::string& new_ramdisk_path, 32 const std::string& vendor_boot_image_path, 33 const std::string& new_vendor_boot_image_path, 34 const std::string& unpack_dir, 37 const std::string& vendor_boot_image_path, 38 const std::string& new_vendor_boot_image_path, [all …]
|
D | flags.cc | 533 std::pair<uint16_t, uint16_t> ParsePortRange(const std::string& flag) { in ParsePortRange() 546 std::string StrForInstance(const std::string& prefix, int num) { in StrForInstance() 552 Result<std::string> GetAndroidInfoConfig( in GetAndroidInfoConfig() 553 const std::string& android_info_file_path, const std::string& key) { in GetAndroidInfoConfig() 556 std::string android_info_contents = ReadFile(android_info_file_path); in GetAndroidInfoConfig() 580 std::vector<std::string> boot_image = in ReadGuestConfig() 582 std::vector<std::string> kernel_path = in ReadGuestConfig() 584 std::vector<std::string> system_image_dir = in ReadGuestConfig() 586 std::string kernel_image_path = ""; in ReadGuestConfig() 587 std::string cur_boot_image; in ReadGuestConfig() [all …]
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | Var.h | 29 Var(const std::string & name, in Var() 31 const std::string & lenExpression, in Var() 33 const std::string &packExpression, in Var() 34 const std::string &unpackExpression, in Var() 35 const std::string &writeExpression) : in Var() 49 void init(const std::string name, const VarType * vartype, in init() 50 std::string lenExpression, in init() 52 std::string packExpression, in init() 53 std::string unpackExpression, in init() 54 std::string writeExpression) { in init() [all …]
|
/device/amlogic/yukawa/hal/bootctrl/ |
D | bootloader_message.cpp | 38 static std::string get_misc_blk_device(std::string* err) { in get_misc_blk_device() 54 static bool wait_for_device(const std::string& blk_device, std::string* err) { in wait_for_device() 75 static bool read_misc_partition(void* p, size_t size, const std::string& misc_blk_device, in read_misc_partition() 76 size_t offset, std::string* err) { in read_misc_partition() 99 static bool write_misc_partition(const void* p, size_t size, const std::string& misc_blk_device, in write_misc_partition() 100 size_t offset, std::string* err) { in write_misc_partition() 125 std::string get_bootloader_message_blk_device(std::string* err) { in get_bootloader_message_blk_device() 126 std::string misc_blk_device = get_misc_blk_device(err); in get_bootloader_message_blk_device() 132 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() 133 std::string* err) { in read_bootloader_message_from() [all …]
|
/device/generic/goldfish/sepolicy/vendor/ |
D | property_contexts | 2 vendor.qemu.keyboard_layout u:object_r:vendor_qemu_prop:s0 exact string 3 vendor.qemu.logcat_filter u:object_r:vendor_qemu_prop:s0 exact string 4 vendor.qemu.sf.fake_camera u:object_r:vendor_qemu_prop:s0 exact string 5 vendor.qemu.vport.bluetooth u:object_r:vendor_qemu_prop:s0 exact string 6 vendor.qemu.vport.modem u:object_r:vendor_qemu_prop:s0 exact string 7 vendor.qemu.vport.gnss u:object_r:vendor_qemu_prop:s0 exact string 8 vendor.qemu.vport.uwb u:object_r:vendor_qemu_prop:s0 exact string 9 vendor.qemu.timezone u:object_r:vendor_qemu_prop:s0 exact string 10 vendor.qemu.FakeRotatingCamera.frustum u:object_r:vendor_qemu_prop:s0 exact string 11 vendor.qemu.FakeRotatingCamera.eyeCoordinates u:object_r:vendor_qemu_prop:s0 exact string [all …]
|
/device/google/cuttlefish/common/libs/confui/ |
D | protocol_types.h | 49 std::string ToString(const ConfUiCmd& cmd); 50 std::string ToDebugString(const ConfUiCmd& cmd, const bool is_debug); 51 ConfUiCmd ToCmd(const std::string& cmd_str); 54 std::string ToString(const teeui::UIOption ui_opt); 55 std::optional<teeui::UIOption> ToUiOption(const std::string&); 65 using type = std::string; 77 ConfUiMessage(const std::string& session_id) : session_id_{session_id} {} in ConfUiMessage() 79 virtual std::string ToString() const = 0; 80 void SetSessionId(const std::string session_id) { session_id_ = session_id; } in SetSessionId() 81 std::string GetSessionId() const { return session_id_; } in GetSessionId() [all …]
|
/device/google/zumapro/powerstats/ |
D | ZumaProCommonDataProviders.cpp | 61 std::string name) : kType(type), kName(name), mPowerStats(p), mChannelId(-1) { in PlaceholderEnergyConsumer() 72 std::pair<EnergyConsumerType, std::string> getInfo() override { return {kType, kName}; } in getInfo() 94 std::string getConsumerName() override { in getConsumerName() 100 const std::string kName; 115 std::string base = "/sys/devices/platform/17000000.aoc/"; in addAoC() 116 std::string prefix = base + "control/"; in addAoC() 119 std::vector<std::pair<std::string, std::string>> coreIds = { in addAoC() 125 std::vector<std::pair<std::string, std::string>> coreStates = { in addAoC() 131 std::vector<std::pair<std::string, std::string>> voltageIds = { in addAoC() 134 std::vector<std::pair<std::string, std::string>> voltageStates = {{"NOM", "nominal"}, in addAoC() [all …]
|