From f1cf622ecc1a27d95236dd0ec1da0936182ecafd Mon Sep 17 00:00:00 2001 From: Jiakai Zhang Date: Tue, 24 Dec 2024 09:03:35 +0000 Subject: Support loading SDM files at runtime. This is the last piece of platform support for Cloud Compilation. Bug: 377474232 Test: m test-art-host-gtest-art_runtime_tests Test: atest art_standalone_runtime_tests Change-Id: I3a7c1774c75334e55e9c98610745707dfcec35a2 --- libartbase/base/file_utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libartbase/base/file_utils.h') diff --git a/libartbase/base/file_utils.h b/libartbase/base/file_utils.h index e8aa5f663a..89f2420aa4 100644 --- a/libartbase/base/file_utils.h +++ b/libartbase/base/file_utils.h @@ -39,6 +39,7 @@ static constexpr const char* kVdexExtension = ".vdex"; static constexpr const char* kArtExtension = ".art"; static constexpr const char* kDmExtension = ".dm"; static constexpr const char* kSdmExtension = ".sdm"; +static constexpr const char* kSdcExtension = ".sdc"; // These methods return the Android Root, which is the historical location of // the Android "system" directory, containing the built Android artifacts. On @@ -174,6 +175,12 @@ std::string GetVdexFilename(const std::string& oat_filename); // Returns the dm filename for the given dex location. std::string GetDmFilename(const std::string& dex_location); +// Returns the sdm filename for the given dex location. +std::string GetSdmFilename(const std::string& dex_location, InstructionSet isa); + +// Returns the sdc filename for the given oat filename. +std::string GetSdcFilename(const std::string& oat_filename); + // Returns the odex location on /system for a DEX file on /apex. The caller must make sure that // `location` is on /apex. std::string GetSystemOdexFilenameForApex(std::string_view location, InstructionSet isa); -- cgit v1.2.3-59-g8ed1b