diff options
| author | 2021-03-19 14:06:40 +0000 | |
|---|---|---|
| committer | 2021-03-19 14:06:40 +0000 | |
| commit | 47714e9c238c7908d5f2dacc61d5226c9ad1b467 (patch) | |
| tree | 2a828af72c52c69ccc303794a27fae156f9713af /services/incremental/BinderIncrementalService.cpp | |
| parent | 1509818c07e68aec19e898e529de476f38e2c743 (diff) | |
| parent | f4769e2f5b5266b9c809ad3026f0d2ef6ac3c693 (diff) | |
Merge "Untangle listeners mess in IncrementalService" into sc-dev
Diffstat (limited to 'services/incremental/BinderIncrementalService.cpp')
| -rw-r--r-- | services/incremental/BinderIncrementalService.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/services/incremental/BinderIncrementalService.cpp b/services/incremental/BinderIncrementalService.cpp index 052b4dd7118c..63488f995865 100644 --- a/services/incremental/BinderIncrementalService.cpp +++ b/services/incremental/BinderIncrementalService.cpp @@ -118,9 +118,10 @@ binder::Status BinderIncrementalService::openStorage(const std::string& path, binder::Status BinderIncrementalService::createStorage( const ::std::string& path, const ::android::content::pm::DataLoaderParamsParcel& params, int32_t createMode, int32_t* _aidl_return) { - *_aidl_return = mImpl.createStorage(path, params, - android::incremental::IncrementalService::CreateOptions( - createMode)); + *_aidl_return = + mImpl.createStorage(path, const_cast<content::pm::DataLoaderParamsParcel&&>(params), + android::incremental::IncrementalService::CreateOptions( + createMode)); return ok(); } @@ -144,9 +145,8 @@ binder::Status BinderIncrementalService::startLoading( bool* _aidl_return) { *_aidl_return = mImpl.startLoading(storageId, const_cast<content::pm::DataLoaderParamsParcel&&>(params), - statusListener, - const_cast<StorageHealthCheckParams&&>(healthCheckParams), - healthListener, perUidReadTimeouts); + statusListener, healthCheckParams, healthListener, + perUidReadTimeouts); return ok(); } @@ -334,10 +334,8 @@ binder::Status BinderIncrementalService::registerStorageHealthListener( int32_t storageId, const ::android::os::incremental::StorageHealthCheckParams& healthCheckParams, const ::android::sp<IStorageHealthListener>& healthListener, bool* _aidl_return) { - *_aidl_return = mImpl.registerStorageHealthListener(storageId, - const_cast<StorageHealthCheckParams&&>( - healthCheckParams), - healthListener); + *_aidl_return = + mImpl.registerStorageHealthListener(storageId, healthCheckParams, healthListener); return ok(); } |