diff options
| author | 2020-02-21 07:03:09 +0000 | |
|---|---|---|
| committer | 2020-02-21 07:03:09 +0000 | |
| commit | 818ac485917cf803ec72ae27979f06dea26dae4b (patch) | |
| tree | d76b930f20a9f93c1b3e28e7e0e70ded7437a800 /cmds/installd/CacheTracker.cpp | |
| parent | b66c667594dc8f41a8f2478f05f3315066be7e9e (diff) | |
| parent | ad4e7b6bcf256dd578263b1652e0dfd09b2eea27 (diff) | |
Merge "Implement quota calculation for project ID based quota." am: 26b068e97c am: 93f07fb962 am: ad4e7b6bcf
Change-Id: I87d15d081855c5c4c3b24737cd4c239b31a97d2e
Diffstat (limited to 'cmds/installd/CacheTracker.cpp')
| -rw-r--r-- | cmds/installd/CacheTracker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmds/installd/CacheTracker.cpp b/cmds/installd/CacheTracker.cpp index 8b868fb584..a61f6bf87b 100644 --- a/cmds/installd/CacheTracker.cpp +++ b/cmds/installd/CacheTracker.cpp @@ -75,8 +75,7 @@ void CacheTracker::loadStats() { bool CacheTracker::loadQuotaStats() { int cacheGid = multiuser_get_cache_gid(mUserId, mAppId); - int extCacheGid = multiuser_get_ext_cache_gid(mUserId, mAppId); - if (IsQuotaSupported(mUuid) && cacheGid != -1 && extCacheGid != -1) { + if (IsQuotaSupported(mUuid) && cacheGid != -1) { int64_t space; if ((space = GetOccupiedSpaceForGid(mUuid, cacheGid)) != -1) { cacheUsed += space; @@ -84,7 +83,7 @@ bool CacheTracker::loadQuotaStats() { return false; } - if ((space = GetOccupiedSpaceForGid(mUuid, extCacheGid)) != -1) { + if ((space = get_occupied_app_cache_space_external(mUuid, mUserId, mAppId)) != -1) { cacheUsed += space; } else { return false; |