diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2021-06-09 05:18:08 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2021-06-09 05:18:08 -0700 |
commit | f476d74eefab00e5b40d54513a2621e664c70ddf (patch) | |
tree | 01ec931931503ed80f181b2d85efb5df0079e4ba /aosp/apex_handler_android.h | |
parent | 0482fa15f58c1de5ead9e0e3e2aa1d593d18e6c2 (diff) | |
parent | ac7fc8e1debff1f57afe79f144d8d16a1a0ec470 (diff) |
Merge ac7fc8e1debff1f57afe79f144d8d16a1a0ec470 on remote branch
Change-Id: I2cd41cefedfd492f9e20617ad9929ebf1cdde79e
Diffstat (limited to 'aosp/apex_handler_android.h')
-rw-r--r-- | aosp/apex_handler_android.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/aosp/apex_handler_android.h b/aosp/apex_handler_android.h index 00f3a80b..767f5618 100644 --- a/aosp/apex_handler_android.h +++ b/aosp/apex_handler_android.h @@ -17,6 +17,7 @@ #ifndef SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_ANDROID_H_ #define SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_ANDROID_H_ +#include <memory> #include <string> #include <vector> @@ -28,6 +29,8 @@ namespace chromeos_update_engine { +std::unique_ptr<ApexHandlerInterface> CreateApexHandler(); + class ApexHandlerAndroid : virtual public ApexHandlerInterface { public: android::base::Result<uint64_t> CalculateSize( @@ -38,6 +41,13 @@ class ApexHandlerAndroid : virtual public ApexHandlerInterface { android::sp<android::apex::IApexService> GetApexService() const; }; +class FlattenedApexHandlerAndroid : virtual public ApexHandlerInterface { + public: + android::base::Result<uint64_t> CalculateSize( + const std::vector<ApexInfo>& apex_infos) const; + bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const; +}; + } // namespace chromeos_update_engine #endif // SYSTEM_UPDATE_ENGINE_AOSP_APEX_HANDLER_ANDROID_H_ |