Home
last modified time | relevance | path

Searched refs:image_filename (Results 1 – 8 of 8) sorted by relevance

/art/runtime/gc/space/
Dimage_space.cc43 ImageSpace::ImageSpace(const std::string& image_filename, const char* image_location, in ImageSpace() argument
45 : MemMapSpace(image_filename, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in ImageSpace()
142 static bool GenerateImage(const std::string& image_filename, InstructionSet image_isa, in GenerateImage() argument
163 image_option_string += image_filename; in GenerateImage()
171 oat_file_option_string += ImageHeader::GetOatLocationFromImageLocation(image_filename); in GenerateImage()
459 const std::string* image_filename; in Create() local
472 image_filename = &cache_filename; in Create()
494 image_filename = &cache_filename; in Create()
510 image_filename = &cache_filename; in Create()
516 image_filename = &cache_filename; in Create()
[all …]
Dimage_space.h131 static ImageSpace* Init(const char* image_filename, const char* image_location,
/art/compiler/
Dimage_test.cc51 std::string image_filename(GetSystemImageFilename(image_location.GetFilename().c_str(), in TEST_F() local
53 size_t pos = image_filename.rfind('/'); in TEST_F()
54 CHECK_NE(pos, std::string::npos) << image_filename; in TEST_F()
55 std::string image_dir(image_filename, 0, pos); in TEST_F()
58 ScratchFile image_file(OS::CreateEmptyFile(image_filename.c_str())); in TEST_F()
60 std::string oat_filename(image_filename, 0, image_filename.size() - 3); in TEST_F()
Dimage_writer.cc75 bool ImageWriter::Write(const std::string& image_filename, in Write() argument
80 CHECK(!image_filename.empty()); in Write()
161 std::unique_ptr<File> image_file(OS::CreateEmptyFile(image_filename.c_str())); in Write()
164 LOG(ERROR) << "Failed to open image file " << image_filename; in Write()
168 PLOG(ERROR) << "Failed to make image file world readable: " << image_filename; in Write()
176 PLOG(ERROR) << "Failed to write image file " << image_filename; in Write()
186 PLOG(ERROR) << "Failed to write image file " << image_filename; in Write()
192 PLOG(ERROR) << "Failed to flush and close image file " << image_filename; in Write()
Dimage_writer.h54 bool Write(const std::string& image_filename,
/art/patchoat/
Dpatchoat.cc122 std::string image_filename; in Patch() local
123 if (!LocationToFilename(image_location, isa, &image_filename)) { in Patch()
127 std::unique_ptr<File> input_image(OS::OpenFileForReading(image_filename.c_str())); in Patch()
129 LOG(ERROR) << "unable to open input image file at " << image_filename in Patch()
219 std::string image_filename; in Patch() local
220 if (!LocationToFilename(image_location, isa, &image_filename)) { in Patch()
224 std::unique_ptr<File> input_image(OS::OpenFileForReading(image_filename.c_str())); in Patch()
226 LOG(ERROR) << "unable to open input image file at " << image_filename in Patch()
/art/dex2oat/
Ddex2oat.cc465 bool CreateImageFile(const std::string& image_filename, in CreateImageFile() argument
475 if (!image_writer.Write(image_filename, image_base, oat_filename, oat_location, in CreateImageFile()
477 LOG(ERROR) << "Failed to create image file " << image_filename; in CreateImageFile()
865 std::string image_filename; in dex2oat() local
963 image_filename = option.substr(strlen("--image=")).data(); in dex2oat()
1128 if (oat_fd != -1 && !image_filename.empty()) { in dex2oat()
1140 bool image = (!image_filename.empty()); in dex2oat()
1626 bool image_creation_success = dex2oat->CreateImageFile(image_filename, in dex2oat()
1635 VLOG(compiler) << "Image written successfully: " << image_filename; in dex2oat()
/art/oatdump/
Doatdump.cc1039 std::string image_filename = image_space_.GetImageFilename(); in Dump() local
1040 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename); in Dump()
1106 std::unique_ptr<File> file(OS::OpenFileForReading(image_filename.c_str())); in Dump()
1108 LOG(WARNING) << "Failed to find image in " << image_filename; in Dump()