diff options
author | Yurii Zubrytskyi <zyy@google.com> | 2021-03-18 14:21:54 -0700 |
---|---|---|
committer | Yurii Zubrytskyi <zyy@google.com> | 2021-03-18 14:24:21 -0700 |
commit | 256a1a450402fde4a958c7680600d2c94c7c737e (patch) | |
tree | 97eb9035c7e4c6bf73ca6da717c672dbb229467b /services/incremental/BinderIncrementalService.cpp | |
parent | 463ec227c62975953cd298259b88d640c755d7ca (diff) |
[incfs] Use the new libincfs API for file status checking
libincfs got a new set of functions for checking the file loaded
status, which works more efficiently than getting filled ranges.
Bug: 183067554
Test: atest IncrementalServiceTest
Change-Id: I3b96bf409f1778c5a89e4802e2005197f70ce0cb
Diffstat (limited to 'services/incremental/BinderIncrementalService.cpp')
-rw-r--r-- | services/incremental/BinderIncrementalService.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/incremental/BinderIncrementalService.cpp b/services/incremental/BinderIncrementalService.cpp index 8f12b2e5c132..9869b075b36f 100644 --- a/services/incremental/BinderIncrementalService.cpp +++ b/services/incremental/BinderIncrementalService.cpp @@ -255,13 +255,12 @@ binder::Status BinderIncrementalService::unlink(int32_t storageId, const std::st binder::Status BinderIncrementalService::isFileFullyLoaded(int32_t storageId, const std::string& path, int32_t* _aidl_return) { - *_aidl_return = mImpl.isFileFullyLoaded(storageId, path); + *_aidl_return = (int)mImpl.isFileFullyLoaded(storageId, path); return ok(); } binder::Status BinderIncrementalService::isFullyLoaded(int32_t storageId, int32_t* _aidl_return) { - *_aidl_return = mImpl.getLoadingProgress(storageId, /*stopOnFirstIncomplete=*/true) - .blocksRemainingOrError(); + *_aidl_return = (int)mImpl.isMountFullyLoaded(storageId); return ok(); } |