Lines Matching refs:space

1549     int64_t space;  in collectQuotaStats()  local
1552 if ((space = GetOccupiedSpaceForUid(uuid, uid)) != -1) { in collectQuotaStats()
1553 stats->dataSize += space; in collectQuotaStats()
1558 if ((space = GetOccupiedSpaceForGid(uuid, cacheGid)) != -1) { in collectQuotaStats()
1559 stats->cacheSize += space; in collectQuotaStats()
1565 if ((space = GetOccupiedSpaceForGid(uuid, sharedGid)) != -1) { in collectQuotaStats()
1566 stats->codeSize += space; in collectQuotaStats()
1573 space = get_occupied_app_space_external(uuid, userId, appId); in collectQuotaStats()
1575 if (space != -1) { in collectQuotaStats()
1576 extStats->dataSize += space; in collectQuotaStats()
1583 stats->dataSize -= space; in collectQuotaStats()
1587 space = get_occupied_app_cache_space_external(uuid, userId, appId); in collectQuotaStats()
1588 if (space != -1) { in collectQuotaStats()
1589 extStats->dataSize += space; // cache counts for "data" in collectQuotaStats()
1590 extStats->cacheSize += space; in collectQuotaStats()
1596 stats->dataSize -= space; in collectQuotaStats()
1874 int64_t space; in getExternalSizesForUserWithQuota() local
1878 if ((space = GetOccupiedSpaceForUid(uuid, uid)) != -1) { in getExternalSizesForUserWithQuota()
1879 sizes.totalSize = space; in getExternalSizesForUserWithQuota()
1883 if ((space = GetOccupiedSpaceForGid(uuid, audioGid)) != -1) { in getExternalSizesForUserWithQuota()
1884 sizes.audioSize = space; in getExternalSizesForUserWithQuota()
1888 if ((space = GetOccupiedSpaceForGid(uuid, videoGid)) != -1) { in getExternalSizesForUserWithQuota()
1889 sizes.videoSize = space; in getExternalSizesForUserWithQuota()
1893 if ((space = GetOccupiedSpaceForGid(uuid, imageGid)) != -1) { in getExternalSizesForUserWithQuota()
1894 sizes.imageSize = space; in getExternalSizesForUserWithQuota()
1897 if ((space = GetOccupiedSpaceForGid(uuid, AID_MEDIA_OBB)) != -1) { in getExternalSizesForUserWithQuota()
1898 sizes.obbSize = space; in getExternalSizesForUserWithQuota()
1903 if ((space = GetOccupiedSpaceForProjectId(uuid, defaultProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1906 totalSize += space; in getExternalSizesForUserWithQuota()
1910 if ((space = GetOccupiedSpaceForProjectId(uuid, audioProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1911 sizes.audioSize = space; in getExternalSizesForUserWithQuota()
1912 totalSize += space; in getExternalSizesForUserWithQuota()
1916 if ((space = GetOccupiedSpaceForProjectId(uuid, videoProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1917 sizes.videoSize = space; in getExternalSizesForUserWithQuota()
1918 totalSize += space; in getExternalSizesForUserWithQuota()
1922 if ((space = GetOccupiedSpaceForProjectId(uuid, imageProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1923 sizes.imageSize = space; in getExternalSizesForUserWithQuota()
1924 totalSize += space; in getExternalSizesForUserWithQuota()