Lines Matching refs:string
74 static bool isInStringList(const std::string& target_token, const std::string& str_list,
75 const std::string& deliminator);
77 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata) { in ReadMetadataFromPackage() argument
88 std::string metadata_string(length, '\0'); in ReadMetadataFromPackage()
96 for (const std::string& line : android::base::Split(metadata_string, "\n")) { in ReadMetadataFromPackage()
98 if (eq != std::string::npos) { in ReadMetadataFromPackage()
109 static std::string get_value(const std::map<std::string, std::string>& metadata, in get_value() argument
110 const std::string& key) { in get_value()
115 static std::string OtaTypeToString(OtaType type) { in OtaTypeToString()
127 static void ReadSourceTargetBuild(const std::map<std::string, std::string>& metadata, in ReadSourceTargetBuild() argument
128 std::vector<std::string>* log_buffer) { in ReadSourceTargetBuild()
146 static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& metadata) { in CheckAbSpecificMetadata() argument
191 bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) { in CheckPackageMetadata() argument
238 static std::string ExtractPayloadProperties(ZipArchiveHandle zip) { in ExtractPayloadProperties()
254 std::string payload_properties(properties_entry_length, '\0'); in ExtractPayloadProperties()
265 bool SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd, in SetUpAbUpdateCommands()
266 std::vector<std::string>* cmd) { in SetUpAbUpdateCommands()
287 "--headers=" + std::string(payload_properties.begin(), payload_properties.end()), in SetUpAbUpdateCommands()
293 bool SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count, in SetUpNonAbUpdateCommands()
294 int status_fd, std::vector<std::string>* cmd) { in SetUpNonAbUpdateCommands()
305 const std::string binary_path = Paths::Get().temporary_update_binary(); in SetUpNonAbUpdateCommands()
348 if (payload_properties.find("POWERWASH=1") != std::string::npos) { in PerformPowerwashIfRequired()
357 std::vector<std::string>* log_buffer, int retry_count, in TryUpdateBinary()
360 std::map<std::string, std::string> metadata; in TryUpdateBinary()
437 std::string package_path = package->GetPath(); in TryUpdateBinary()
439 std::vector<std::string> args; in TryUpdateBinary()
480 std::string line(buffer); in TryUpdateBinary()
482 std::string command(line.substr(0, space)); in TryUpdateBinary()
486 std::string args = space == std::string::npos ? "" : android::base::Trim(line.substr(space)); in TryUpdateBinary()
489 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary()
499 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary()
560 std::vector<std::string>* log_buffer, int retry_count, in VerifyAndInstallPackage()
597 std::vector<std::string> log_buffer; in InstallPackage()
627 std::string uncrypt_status; in InstallPackage()
639 std::vector<std::string> log_header = { in InstallPackage()
640 std::string(package_id), in InstallPackage()
658 std::string log_content = in InstallPackage()
660 const std::string& install_file = Paths::Get().temporary_install_file(); in InstallPackage()
700 bool SetupPackageMount(const std::string& package_path, bool* should_use_fuse) { in SetupPackageMount()
733 if (canonical_path.string() != package_path) { in SetupPackageMount()
734 LOG(ERROR) << "Installation aborts. The canonical path " << canonical_path.string() in SetupPackageMount()
750 static bool isInStringList(const std::string& target_token, const std::string& str_list, in isInStringList()
751 const std::string& deliminator) { in isInStringList()