Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5b5f954 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[conflict] Merge "Include SDK sandbox while calculating app and user...

Merge "[conflict] Merge "Include SDK sandbox while calculating app and user size" into tm-dev am: 3b7c2c61 am: df6b7bd3"
parents 83edb892 df0996f5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2211,6 +2211,12 @@ static void collectQuotaStats(const std::string& uuid, int32_t userId,
                stats->dataSize += space;
            }
            deductDoubleSpaceIfNeeded(stats, doubleSpaceToBeDeleted, uid, uuid);
            int sdkSandboxUid = multiuser_get_sdk_sandbox_uid(userId, appId);
            if (sdkSandboxUid != -1) {
                if ((space = GetOccupiedSpaceForUid(uuid, sdkSandboxUid)) != -1) {
                    stats->dataSize += space;
                }
            }
            int cacheGid = multiuser_get_cache_gid(userId, appId);
            if (cacheGid != -1) {
                if ((space = GetOccupiedSpaceForGid(uuid, cacheGid)) != -1) {