summaryrefslogtreecommitdiff
path: root/aosp/apex_handler_android.h
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2021-02-26 14:04:17 +0000
committerMohammad Islam <samiul@google.com>2021-03-17 12:50:13 +0000
commitb0ab865e4a4a7981b8dc316738ca002f9bbe4a46 (patch)
tree2d5efc8796f00d5744cf0390841c6ebdf8eefbf8 /aosp/apex_handler_android.h
parentebd115e8bd045dfd05889e3574d5a02e7b53b2be (diff)
Make update_engine reserve space for decompression via apexd
Bug: 172911822 Test: atest ApexHandlerAndroidTest (checked that file was created) Change-Id: I8024695ebba1a9c1796c05b27a0eec3da3b3d1bc
Diffstat (limited to 'aosp/apex_handler_android.h')
-rw-r--r--aosp/apex_handler_android.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/aosp/apex_handler_android.h b/aosp/apex_handler_android.h
index aac1cd9c..00f3a80b 100644
--- a/aosp/apex_handler_android.h
+++ b/aosp/apex_handler_android.h
@@ -30,17 +30,12 @@ namespace chromeos_update_engine {
class ApexHandlerAndroid : virtual public ApexHandlerInterface {
public:
- uint64_t CalculateSize(const std::vector<ApexInfo>& apex_infos) const;
- bool AllocateSpace(const uint64_t size_required) const;
+ android::base::Result<uint64_t> CalculateSize(
+ const std::vector<ApexInfo>& apex_infos) const;
+ bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const;
private:
- friend class ApexHandlerAndroidTest;
android::sp<android::apex::IApexService> GetApexService() const;
- uint64_t CalculateSize(
- const std::vector<ApexInfo>& apex_infos,
- android::sp<android::apex::IApexService> apex_service) const;
- bool AllocateSpace(const uint64_t size_required,
- const std::string& dir_path) const;
};
} // namespace chromeos_update_engine