// Returns all existing files that are managed by artd.
std::vector<std::string> ListManagedFiles(const std::string& android_data, const std::string& android_expand);
// Returns the absolute paths to files built from the `ArtifactsPath`.
android::base::Result<RawArtifactsPath> BuildArtifactsPath( const aidl::com::android::server::art::ArtifactsPath& artifacts_path);
// Takes an argument of type `WritableProfilePath`. Returns the pre-reboot flag by value if the // argument is const, or by reference otherwise. template <typename T, typename = std::enable_if_t<
std::is_same_v<std::remove_cv_t<T>,
aidl::com::android::server::art::ProfilePath::WritableProfilePath>>>
std::conditional_t<std::is_const_v<T>, bool, bool&> PreRebootFlag(T& profile_path) { switch (profile_path.getTag()) { case T::forPrimary: return profile_path.template get<T::forPrimary>().isPreReboot; case T::forSecondary: return profile_path.template get<T::forSecondary>().isPreReboot; // No default. All cases should be explicitly handled, or the compilation will fail.
} // This should never happen. Just in case we get a non-enumerator value.
LOG(FATAL) << ART_FORMAT("Unexpected writable profile path type {}",
fmt::underlying(profile_path.getTag()));
}
// Sets the root dir for `ListManagedFiles` and `ListRuntimeImageFiles`. // The passed string must be alive until the test ends. // For testing use only. void TestOnlySetListRootDir(std::string_view root_dir);
} // namespace artd
} // namespace art
#endif// ART_ARTD_PATH_UTILS_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.