diff options
Diffstat (limited to 'runtime/oat/oat_file_assistant.cc')
-rw-r--r-- | runtime/oat/oat_file_assistant.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/oat/oat_file_assistant.cc b/runtime/oat/oat_file_assistant.cc index 0006ae8146..151c3a6ca9 100644 --- a/runtime/oat/oat_file_assistant.cc +++ b/runtime/oat/oat_file_assistant.cc @@ -61,8 +61,6 @@ using ::android::base::ConsumePrefix; using ::android::base::StringPrintf; static constexpr const char* kAnonymousDexPrefix = "Anonymous-DexFile@"; -static constexpr const char* kVdexExtension = ".vdex"; -static constexpr const char* kDmExtension = ".dm"; std::ostream& operator<<(std::ostream& stream, const OatFileAssistant::OatStatus status) { switch (status) { @@ -643,7 +641,7 @@ bool OatFileAssistant::DexLocationToOdexFilename(const std::string& location, pos = file.rfind('.'); std::string base = pos != std::string::npos ? file.substr(0, pos) : file; - *odex_filename = dir + "/" + base + ".odex"; + *odex_filename = dir + "/" + base + kOdexExtension; return true; } @@ -946,7 +944,7 @@ OatFileAssistant::OatFileInfo& OatFileAssistant::GetBestInfo() { std::unique_ptr<gc::space::ImageSpace> OatFileAssistant::OpenImageSpace(const OatFile* oat_file) { DCHECK(oat_file != nullptr); - std::string art_file = ReplaceFileExtension(oat_file->GetLocation(), "art"); + std::string art_file = ReplaceFileExtension(oat_file->GetLocation(), kArtExtension); if (art_file.empty()) { return nullptr; } |