ART services: optimize package - add profile-related artd methods.
This change adds a few artd methods that will be used for profile-guided
compilation.
Bug: 229268202
Test: m test-art-host-gtest-art_artd_tests
Ignore-AOSP-First: ART Services.
Change-Id: Ic80ecd3f77185041376e0744c021cd88feb88a4a
diff --git a/artd/path_utils.h b/artd/path_utils.h
index 4151387..f3a6359 100644
--- a/artd/path_utils.h
+++ b/artd/path_utils.h
@@ -42,12 +42,24 @@
return ReplaceFileExtension(oat_path, "art");
}
+android::base::Result<std::string> BuildRefProfilePath(
+ const aidl::com::android::server::art::ProfilePath::RefProfilePath& ref_profile_path);
+
+android::base::Result<std::string> BuildTmpRefProfilePath(
+ const aidl::com::android::server::art::ProfilePath::TmpRefProfilePath& tmp_ref_profile_path);
+
+android::base::Result<std::string> BuildPrebuiltProfilePath(
+ const aidl::com::android::server::art::ProfilePath::PrebuiltProfilePath& prebuilt_profile_path);
+
android::base::Result<std::string> BuildDexMetadataPath(
const aidl::com::android::server::art::DexMetadataPath& dex_metadata_path);
android::base::Result<std::string> BuildDexMetadataPath(
const aidl::com::android::server::art::VdexPath& vdex_path);
+android::base::Result<std::string> BuildProfileOrDmPath(
+ const aidl::com::android::server::art::ProfilePath& profile_path);
+
android::base::Result<std::string> BuildVdexPath(
const aidl::com::android::server::art::VdexPath& vdex_path);