/device/google/cuttlefish/host/libs/config/ |
D | cuttlefish_config.h | 69 bool SaveToFile(const std::string& file) const; 71 std::string assembly_dir() const; 72 void set_assembly_dir(const std::string& assembly_dir); 74 std::string AssemblyPath(const std::string&) const; 76 std::string composite_disk_path() const; 78 std::string vm_manager() const; 79 void set_vm_manager(const std::string& name); 81 std::string gpu_mode() const; 82 void set_gpu_mode(const std::string& name); 106 std::string kernel_image_path() const; [all …]
|
D | cuttlefish_config.cpp | 176 std::string DefaultEnvironmentPath(const char* environment_key, in DefaultEnvironmentPath() 182 std::string CuttlefishConfig::assembly_dir() const { in assembly_dir() 185 void CuttlefishConfig::set_assembly_dir(const std::string& assembly_dir) { in set_assembly_dir() 189 std::string CuttlefishConfig::vm_manager() const { in vm_manager() 192 void CuttlefishConfig::set_vm_manager(const std::string& name) { in set_vm_manager() 196 std::string CuttlefishConfig::gpu_mode() const { in gpu_mode() 199 void CuttlefishConfig::set_gpu_mode(const std::string& name) { in set_gpu_mode() 229 std::string CuttlefishConfig::kernel_image_path() const { in kernel_image_path() 233 void CuttlefishConfig::SetPath(const std::string& key, in SetPath() 234 const std::string& path) { in SetPath() [all …]
|
D | cuttlefish_config_instance.cpp | 71 std::string CuttlefishConfig::InstanceSpecific::instance_dir() const { in instance_dir() 75 const std::string& instance_dir) { in set_instance_dir() 79 std::string CuttlefishConfig::InstanceSpecific::instance_internal_dir() const { in instance_internal_dir() 83 std::string CuttlefishConfig::InstanceSpecific::serial_number() const { in serial_number() 87 const std::string& serial_number) { in set_serial_number() 91 std::vector<std::string> CuttlefishConfig::InstanceSpecific::virtual_disk_paths() const { in virtual_disk_paths() 92 std::vector<std::string> virtual_disks; in virtual_disk_paths() 100 const std::vector<std::string>& virtual_disk_paths) { in set_virtual_disk_paths() 108 std::string CuttlefishConfig::InstanceSpecific::kernel_log_pipe_name() const { in kernel_log_pipe_name() 112 std::string CuttlefishConfig::InstanceSpecific::console_in_pipe_name() const { in console_in_pipe_name() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | modem_service.h | 42 using p_func = std::function<void(const Client&, std::string&)>; // Partial match 46 CommandHandler(const std::string& command, f_func handler); 47 CommandHandler(const std::string& command, p_func handler); 51 int Compare(const std::string& command) const; 52 void HandleCommand(const Client& client, std::string& command) const; 57 std::string command_prefix; 72 bool HandleModemCommand(const Client& client, std::string command); 74 static const std::string kCmeErrorOperationNotAllowed; 75 static const std::string kCmeErrorOperationNotSupported; 76 static const std::string kCmeErrorSimNotInserted; [all …]
|
D | pdu_parser.h | 24 explicit PDUParser(std::string &pdu); 29 std::string CreatePDU(); 30 std::string CreateRemotePDU(std::string& host_port); 31 std::string CreateStatuReport(int message_reference); 32 std::string GetPhoneNumberFromAddress(); 34 static std::string BCDToString(std::string& data); 37 bool DecodePDU(std::string& pdu); 38 int Hex2ToByte(const std::string& hex); 40 std::string IntToHexString(int value); 41 std::string GetCurrentTimeStamp(); [all …]
|
D | modem_service.cpp | 24 const std::string ModemService::kCmeErrorOperationNotAllowed = "+CME ERROR: 3"; 25 const std::string ModemService::kCmeErrorOperationNotSupported = "+CME ERROR: 4"; 26 const std::string ModemService::kCmeErrorSimNotInserted = "+CME ERROR: 10"; 27 const std::string ModemService::kCmeErrorSimPinRequired = "+CME ERROR: 11"; 28 const std::string ModemService::kCmeErrorSimPukRequired = "+CME ERROR: 12"; 29 const std::string ModemService::kCmeErrorSimBusy = "+CME ERROR: 14"; 30 const std::string ModemService::kCmeErrorIncorrectPassword = "+CME ERROR: 16"; 31 const std::string ModemService::kCmeErrorMemoryFull = "+CME ERROR: 20"; 32 const std::string ModemService::kCmeErrorInvalidIndex = "+CME ERROR: 21"; 33 const std::string ModemService::kCmeErrorNotFound = "+CME ERROR: 22"; [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 …]
|
D | Parser.cpp | 29 static bool parseTypeTokens(const std::string& input, in parseTypeTokens() 30 std::vector<std::string>* out, in parseTypeTokens() 31 std::string* error) { in parseTypeTokens() 40 if (pos == std::string::npos) { in parseTypeTokens() 47 out->push_back(std::string("*")); in parseTypeTokens() 54 if (end == std::string::npos) { in parseTypeTokens() 58 std::string str = input.substr(pos, end - pos); in parseTypeTokens() 80 std::string& token = (*out)[n]; in parseTypeTokens() 95 static std::string buildTypeString(const std::vector<std::string>& tokens, in buildTypeString() 97 std::string result; in buildTypeString() [all …]
|
D | ApiGen.h | 27 typedef std::vector<std::string> StringVec; 30 ApiGen(const std::string & basename) : in ApiGen() 36 int readSpec(const std::string & filename); 37 int readAttributes(const std::string & attribFilename); 68 EntryPoint * findEntryByName(const std::string & name); 69 int genOpcodes(const std::string &filename); 70 int genAttributesTemplate(const std::string &filename); 71 int genProcTypes(const std::string &filename, SideType side); 72 int genFuncTable(const std::string &filename, SideType side); 74 int genContext(const std::string &filename, SideType side); [all …]
|
D | strUtils.cpp | 21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken() 26 if (pos == std::string::npos) return ""; in getNextToken() 29 if (*last == std::string::npos) *last = str.size(); in getNextToken() 30 std::string retval = str.substr(pos, *last - pos); in getNextToken() 36 std::string trim(const string & str) in trim() 38 string result; in trim() 39 string::size_type start = str.find_first_not_of(WHITESPACE, 0); in trim() 40 string::size_type end = str.find_last_not_of(WHITESPACE); in trim() 41 if (start == string::npos || end == string::npos) { in trim() 42 result = string(""); in trim()
|
D | EntryPoint.h | 33 bool parse(unsigned int lc, const std::string & str); 36 const std::string & name_suffix = std::string(""), 37 const std::string & name_prefix = std::string(""), 38 const std::string & ctx_param = std::string("")) const; 39 const std::string & name() const { return m_name; } in name() 42 Var * var(const std::string & name); 43 const Var * var(const std::string & name) const; 53 int validateVarAttr(const std::string& varname, size_t lc) const; 54 int setAttribute(const std::string &line, size_t lc); 57 std::string m_name;
|
/device/google/cuttlefish/host/commands/fetcher/ |
D | build_api.h | 31 std::string name; 34 std::string md5; 35 std::string content_type; 36 std::string revision; 41 Artifact(const std::string& name) : name(name) {} in Artifact() 43 const std::string& Name() const { return name; } in Name() 46 const std::string& Md5() const { return md5; } in Md5() 47 const std::string& ContentType() const { return content_type; } in ContentType() 48 const std::string& Revision() const { return revision; } in Revision() 54 DeviceBuild(const std::string& id, const std::string& target) { in DeviceBuild() [all …]
|
D | curl_wrapper.h | 34 bool DownloadToFile(const std::string& url, const std::string& path); 35 bool DownloadToFile(const std::string& url, const std::string& path, 36 const std::vector<std::string>& headers); 37 std::string DownloadToString(const std::string& url); 38 std::string DownloadToString(const std::string& url, 39 const std::vector<std::string>& headers); 40 Json::Value DownloadToJson(const std::string& url); 41 Json::Value DownloadToJson(const std::string& url, 42 const std::vector<std::string>& headers);
|
D | build_api.cc | 34 const std::string BUILD_API = 37 bool StatusIsTerminal(const std::string& status) { in StatusIsTerminal() 38 const static std::set<std::string> terminal_statuses = { in StatusIsTerminal() 76 DirectoryBuild::DirectoryBuild(const std::vector<std::string>& paths, in DirectoryBuild() 77 const std::string& target) in DirectoryBuild() 85 std::vector<std::string> BuildApi::Headers() { in Headers() 86 std::vector<std::string> headers; in Headers() 93 std::string BuildApi::LatestBuildId(const std::string& branch, in LatestBuildId() 94 const std::string& target) { in LatestBuildId() 95 std::string url = BUILD_API + "/builds?branch=" + branch in LatestBuildId() [all …]
|
D | fetch_cvd.cc | 39 const std::string DEFAULT_BRANCH = "aosp-master"; 40 const std::string DEFAULT_BUILD_TARGET = "aosp_cf_x86_phone-userdebug"; 66 const std::string HOST_TOOLS = "cvd-host_package.tar.gz"; 67 const std::string OTA_TOOLS = "otatools.zip"; 68 const std::string OTA_TOOLS_DIR = "/otatools/"; 75 std::string TargetBuildZipFromArtifacts( in TargetBuildZipFromArtifacts() 76 const Build& build, const std::string& name, in TargetBuildZipFromArtifacts() 78 std::string product = std::visit([](auto&& arg) { return arg.product; }, build); in TargetBuildZipFromArtifacts() 82 if (artifact.Name().find(match) != std::string::npos) { in TargetBuildZipFromArtifacts() 89 std::vector<std::string> download_images(BuildApi* build_api, in download_images() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/unittest/ |
D | service_test.cpp | 34 static const std::string tmp_test_dir = std::string(fs::temp_directory_path()) + 35 std::string("/cuttlefish_modem_test"); 43 std::string config_file = tmp_test_dir + "/.cuttlefish_config.json"; in SetUpTestSuite() 44 std::string instance_dir = tmp_test_dir + "/cuttlefish_runtime.1"; in SetUpTestSuite() 65 std::string icfilename = instance_dir + "/iccprofile_for_sim0.xml"; in SetUpTestSuite() 67 offile << std::string(myiccfile); in SetUpTestSuite() 99 void SendCommand(std::string command, std::string prefix = "") { in SendCommand() 104 void ReadCommandResponse(std::vector<std::string>& response) { in ReadCommandResponse() 116 std::string& incomplete_command = ril_side_->incomplete_command; in ReadCommandResponse() 119 auto commands = std::string{incomplete_command.data()}; in ReadCommandResponse() [all …]
|
D | command_parser_test.cpp | 21 std::string command = "AT+SPUSATENVECMD=\"D3078202018190014E\""; in TEST() 25 std::string result(*cmd); in TEST() 30 std::string command = "AT+SPUSATENVECMD=\"D3078202018190014E\""; in TEST() 34 std::string result(*cmd); in TEST() 39 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() 43 std::string result(*cmd); in TEST() 48 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() 53 std::string result(*cmd); in TEST() 58 std::string command = "+COPS: 0,1,\"CMCC\",7"; in TEST() 61 std::string result(cmd.GetNextStr()); in TEST() [all …]
|
/device/amlogic/yukawa/hal/bootctrl/ |
D | bootloader_message.h | 190 std::string get_bootloader_message_blk_device(std::string* err); 193 bool read_bootloader_message(bootloader_message* boot, std::string* err); 196 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, 197 std::string* err); 200 bool read_bootloader_control_from(bootloader_control* boot_ctrl, const std::string& misc_blk_device, 201 std::string* err); 204 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 208 const std::string& misc_blk_device, std::string* err); 212 bool write_bootloader_message(const std::vector<std::string>& options, std::string* err); 215 bool write_bootloader_control_to(const bootloader_control* boot_ctrl, const std::string& misc_blk_d… [all …]
|
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/google/cuttlefish/host/frontend/gcastv2/https/include/https/ |
D | HTTPRequestResponse.h | 34 bool getHeaderField(std::string_view key, std::string *value) const; 39 virtual bool parseRequestResponseLine(const std::string &line) = 0; 43 bool operator()(const std::string &a, const std::string &b) const { in operator() 52 std::map<std::string, std::string, CaseInsensitiveCompare> mHeaders; 56 std::string getMethod() const; 57 std::string getPath() const; 58 std::string getVersion() const; 61 bool parseRequestResponseLine(const std::string &line) override; 64 std::string mMethod; 65 std::string mPath; [all …]
|
D | HTTPServer.h | 39 const std::optional<std::string> &certificate_pem_path = 41 const std::optional<std::string> &private_key_pem_path = 58 std::optional<std::string> mimeType = std::nullopt); 64 std::optional<std::string> mimeType = std::nullopt); 72 std::optional<std::string> certificate_pem_path() const; 73 std::optional<std::string> private_key_pem_path() const; 77 std::variant<std::string, std::vector<uint8_t>> mPathOrContent; 78 std::optional<std::string> mMimeType; 89 std::unordered_map<std::string, StaticFileInfo> mStaticFiles; 91 std::unordered_map<std::string, WebSocketHandlerFactory> [all …]
|
/device/google/cuttlefish/common/libs/utils/ |
D | files.h | 24 bool FileExists(const std::string& path); 25 bool FileHasContent(const std::string& path); 26 bool DirectoryExists(const std::string& path); 27 bool IsDirectoryEmpty(const std::string& path); 28 off_t FileSize(const std::string& path); 29 bool RemoveFile(const std::string& file); 30 bool RenameFile(const std::string& old_name, const std::string& new_name); 31 std::string ReadFile(const std::string& file); 32 std::chrono::system_clock::time_point FileModificationTime(const std::string& path); 37 std::string AbsolutePath(const std::string& path); [all …]
|
/device/google/cuttlefish/host/libs/vm_manager/ |
D | vm_manager.h | 37 static VmManager* Get(const std::string& vm_manager_name, 39 static bool IsValidName(const std::string& name); 40 static std::vector<std::string> ConfigureGpuMode( 41 const std::string& vmm_name, const std::string& gpu_mode); 42 static std::vector<std::string> ConfigureBootDevices( 43 const std::string& vmm_name); 44 static bool IsVmManagerSupported(const std::string& name); 45 static std::vector<std::string> GetValidNames(); 50 virtual void WithKernelCommandLine(const std::string&); 59 std::vector<std::string>* config_commands) const; [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/ |
D | StringFormat.cpp | 22 std::string StringFormatRaw(const char* format, ...) { in StringFormatRaw() 30 std::string StringFormatWithArgs(const char* format, va_list args) { in StringFormatWithArgs() 31 std::string result; in StringFormatWithArgs() 36 void StringAppendFormatRaw(std::string* string, const char* format, ...) { in StringAppendFormatRaw() argument 39 StringAppendFormatWithArgs(string, format, args); in StringAppendFormatRaw() 43 void StringAppendFormatWithArgs(std::string* string, in StringAppendFormatWithArgs() argument 46 size_t cur_size = string->size(); in StringAppendFormatWithArgs() 51 int ret = vsnprintf(&(*string)[cur_size], extra, format, args2); in StringAppendFormatWithArgs() 64 string->resize(cur_size + extra); in StringAppendFormatWithArgs() 69 string->resize(cur_size + ret_sz); in StringAppendFormatWithArgs() [all …]
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | HTTPServer.cpp | 43 const std::optional<std::string> &certificate_pem_path, in HTTPServer() 44 const std::optional<std::string> &private_key_pem_path) in HTTPServer() 73 static const std::unordered_map<int32_t, std::string> kStatusMessage { in handleSingleRequest() 87 std::string body; in handleSingleRequest() 88 std::unordered_map<std::string, std::string> responseHeaders; in handleSingleRequest() 101 std::string query; in handleSingleRequest() 104 if (separatorPos != std::string::npos) { in handleSingleRequest() 165 const std::string status = in handleSingleRequest() 181 std::string value; in handleSingleRequest() 193 std::string response; in handleSingleRequest() [all …]
|