diff options
author | 2020-12-14 21:50:04 -0800 | |
---|---|---|
committer | 2021-01-12 05:19:38 +0000 | |
commit | aa8e95ea33275756b59b61e867c18a881a634729 (patch) | |
tree | f94dc0f624ba71d0d8dc1419d133ff66c5255bc6 /services/incremental/BinderIncrementalService.cpp | |
parent | 55b6a818e0cbddb7152601a3a2c666d025b7b2f0 (diff) |
Per package read timeouts.
Bug: 162345970
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest
Change-Id: I2599db1ed8827fff16387c11254a5d607f27ea46
Diffstat (limited to 'services/incremental/BinderIncrementalService.cpp')
-rw-r--r-- | services/incremental/BinderIncrementalService.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/incremental/BinderIncrementalService.cpp b/services/incremental/BinderIncrementalService.cpp index a31aac96eb48..d2244286450b 100644 --- a/services/incremental/BinderIncrementalService.cpp +++ b/services/incremental/BinderIncrementalService.cpp @@ -122,13 +122,14 @@ binder::Status BinderIncrementalService::createStorage( const ::android::sp<::android::content::pm::IDataLoaderStatusListener>& statusListener, const ::android::os::incremental::StorageHealthCheckParams& healthCheckParams, const ::android::sp<::android::os::incremental::IStorageHealthListener>& healthListener, + const ::std::vector<::android::os::incremental::PerUidReadTimeouts>& perUidReadTimeouts, int32_t* _aidl_return) { *_aidl_return = mImpl.createStorage(path, const_cast<content::pm::DataLoaderParamsParcel&&>(params), android::incremental::IncrementalService::CreateOptions(createMode), statusListener, const_cast<StorageHealthCheckParams&&>(healthCheckParams), - healthListener); + healthListener, perUidReadTimeouts); return ok(); } @@ -164,8 +165,8 @@ binder::Status BinderIncrementalService::deleteStorage(int32_t storageId) { return ok(); } -binder::Status BinderIncrementalService::disableReadLogs(int32_t storageId) { - mImpl.disableReadLogs(storageId); +binder::Status BinderIncrementalService::disallowReadLogs(int32_t storageId) { + mImpl.disallowReadLogs(storageId); return ok(); } @@ -254,7 +255,7 @@ binder::Status BinderIncrementalService::isFileFullyLoaded(int32_t storageId, binder::Status BinderIncrementalService::getLoadingProgress(int32_t storageId, float* _aidl_return) { - *_aidl_return = mImpl.getLoadingProgress(storageId); + *_aidl_return = mImpl.getLoadingProgress(storageId).getProgress(); return ok(); } |