diff options
author | 2020-08-20 08:40:29 -0700 | |
---|---|---|
committer | 2020-08-22 04:17:02 +0000 | |
commit | 374f7654dfb00692f6b3c2f6c68997e3ca54092a (patch) | |
tree | 209eec3efa43e43f1795f95905ae61eec575e3a7 /services/incremental/BinderIncrementalService.cpp | |
parent | 1581527cbd46ac3411fdf0c7068f40c04a9926fd (diff) |
[IncrementalService] getLoadingProgress (v1)
This is to unblock Launcher's work on progress ring. Currently it uses
incfs getFilledBlocks(). Will switch to the new incfs progress reporting
API once it is ready.
Test: unit test
Test: adb shell dumpsys incremental
BUG: 165799231
Change-Id: Icd68124806454f888826294da36f109bca9771ac
Diffstat (limited to 'services/incremental/BinderIncrementalService.cpp')
-rw-r--r-- | services/incremental/BinderIncrementalService.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/incremental/BinderIncrementalService.cpp b/services/incremental/BinderIncrementalService.cpp index 0ae10b6dc3b5..41945a276fde 100644 --- a/services/incremental/BinderIncrementalService.cpp +++ b/services/incremental/BinderIncrementalService.cpp @@ -237,11 +237,9 @@ binder::Status BinderIncrementalService::unlink(int32_t storageId, const std::st return ok(); } -binder::Status BinderIncrementalService::isFileRangeLoaded(int32_t storageId, - const std::string& path, int64_t start, - int64_t end, bool* _aidl_return) { - // TODO: implement - *_aidl_return = false; +binder::Status BinderIncrementalService::getLoadingProgress(int32_t storageId, + float* _aidl_return) { + *_aidl_return = mImpl.getLoadingProgress(storageId); return ok(); } |