diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-04-08 00:48:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-08 00:48:58 +0000 |
commit | 9f16f2665a878a0f08fb73bd56ba1f703c35db4f (patch) | |
tree | c57785ea748685f79158d0dc917e4d31953ad912 /services/incremental/IncrementalService.h | |
parent | 99c0b6d118a2e86a93d258099912586260a5facd (diff) | |
parent | f41567922839d9e84fad0333788301b6c2b330de (diff) |
Merge "Change the way how we call setStorageParams." into rvc-dev
Diffstat (limited to 'services/incremental/IncrementalService.h')
-rw-r--r-- | services/incremental/IncrementalService.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/services/incremental/IncrementalService.h b/services/incremental/IncrementalService.h index 9b156464f480..46f813299d55 100644 --- a/services/incremental/IncrementalService.h +++ b/services/incremental/IncrementalService.h @@ -39,6 +39,7 @@ #include "ServiceWrappers.h" #include "android/content/pm/BnDataLoaderStatusListener.h" +#include "android/os/incremental/BnIncrementalServiceConnector.h" #include "incfs.h" #include "path.h" @@ -139,7 +140,7 @@ public: DataLoaderStatusListener externalListener) : incrementalService(incrementalService), externalListener(externalListener) {} // Callbacks interface - binder::Status onStatusChanged(MountId mount, int newStatus) override; + binder::Status onStatusChanged(MountId mount, int newStatus) final; private: IncrementalService& incrementalService; @@ -149,13 +150,24 @@ public: class AppOpsListener : public android::BnAppOpsCallback { public: AppOpsListener(IncrementalService& incrementalService, std::string packageName) : incrementalService(incrementalService), packageName(std::move(packageName)) {} - void opChanged(int32_t op, const String16& packageName) override; + void opChanged(int32_t op, const String16& packageName) final; private: IncrementalService& incrementalService; const std::string packageName; }; + class IncrementalServiceConnector : public BnIncrementalServiceConnector { + public: + IncrementalServiceConnector(IncrementalService& incrementalService, int32_t storage) + : incrementalService(incrementalService) {} + binder::Status setStorageParams(bool enableReadLogs, int32_t* _aidl_return) final; + + private: + IncrementalService& incrementalService; + int32_t storage; + }; + private: static const bool sEnablePerfLogging; |