Lines Matching refs:string
21 #include <string>
40 const std::string& dir,
41 const std::string& suffix,
42 std::vector<std::string>* filenames,
43 std::string* error_msg) {
60 std::string basename(e->d_name);
61 std::string filename = dir + "/" + basename;
77 static void AddRuntimeArg(std::vector<std::string>& args, const std::string& arg) {
82 bool CompileBootImage(const std::vector<std::string>& extra_args,
83 const std::string& image_file_name_prefix,
85 std::string* error_msg) {
87 std::vector<std::string> argv;
91 std::vector<std::string> dex_files = GetLibCoreDexFileNames();
92 for (const std::string& dex_file : dex_files) {
115 std::vector<std::string> compiler_options = runtime->GetCompilerOptions();
121 argv.push_back("--android-root=" + std::string(android_root));
127 static std::vector<std::string> BasePatchoatCommand(const std::string& input_image_location,
130 std::vector<std::string> argv;
139 bool RelocateBootImage(const std::string& input_image_location,
140 const std::string& output_image_directory,
142 std::string* error_msg) {
143 std::vector<std::string> argv = BasePatchoatCommand(input_image_location, base_offset_delta);
149 bool VerifyBootImage(const std::string& input_image_location,
150 const std::string& output_image_directory,
152 std::string* error_msg) {
153 std::vector<std::string> argv = BasePatchoatCommand(input_image_location, base_offset_delta);
160 bool GenerateBootImageRelFile(const std::string& input_image_location,
161 const std::string& output_rel_directory,
163 std::string* error_msg) {
164 std::vector<std::string> argv = BasePatchoatCommand(input_image_location, base_offset_delta);
170 bool RunDex2OatOrPatchoat(const std::vector<std::string>& args, std::string* error_msg) {
189 for (const std::string& str : args) {
203 *error_msg += std::string(buffer, bytes_read);
215 const std::string& output_dir,
216 const std::vector<std::string>& dex2oat_extra_args,
218 std::string* error_msg) {
223 const std::string& src_image_filename,
224 const std::string& dest_image_filename,
226 std::string* error_msg) {
275 const std::string& filename, std::vector<uint8_t>* contents, std::string* error_msg) {
296 const std::string& filename1, const std::string& filename2, std::string* error_msg) {
297 std::string read_error_msg;
341 std::string dex2oat_orig_dir = dex2oat_orig_scratch.GetFilename();
346 std::vector<std::string> dex2oat_extra_args;
349 std::string error_msg;
358 std::string dex2oat_reloc_dir = dex2oat_reloc_scratch.GetFilename();
370 std::string patchoat_dir = patchoat_scratch.GetFilename();
372 std::string dex2oat_orig_with_arch_dir =
385 std::vector<std::string> dex2oat_image_basenames;
386 std::vector<std::string> patchoat_image_basenames;
398 std::vector<std::string> patchoat_image_shortened_basenames(patchoat_image_basenames.size());
407 for (const std::string& image_basename : dex2oat_image_basenames) {
419 const std::string& dex2oat_image_basename = dex2oat_image_basenames[i];
420 const std::string& dex2oat_image_filename = dex2oat_reloc_dir + "/" + dex2oat_image_basename;
421 const std::string& patchoat_image_filename = patchoat_dir + "/" + patchoat_image_basenames[i];
456 std::vector<std::string> dex2oat_extra_args;
457 std::string error_msg;
463 std::string dex2oat_orig_with_arch_dir =
493 std::vector<std::string> rel_basenames;
494 std::vector<std::string> relocated_image_basenames;
508 std::vector<std::string> rel_shortened_basenames(rel_basenames.size());
509 std::vector<std::string> relocated_image_shortened_basenames(relocated_image_basenames.size());
537 std::string dex2oat_orig_dir_;
538 std::string relocated_dir_;
547 std::string error_msg;
562 std::string error_msg;
563 std::string relocated_image_filename;
587 std::string error_msg;
588 std::string art_filename = dex2oat_orig_dir_ + "/boot.art";
589 std::string rel_filename = dex2oat_orig_dir_ + "/boot.art.rel";