Loading cmds/installd/InstalldNativeService.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -1955,7 +1955,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> return error("Failed to determine free space for " + data_path); } int64_t cleared = 0; int64_t needed = targetFreeBytes - free; if (!defy_target) { LOG(DEBUG) << "Device " << data_path << " has " << free << " free; requested " Loading Loading @@ -2056,7 +2055,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> // 2. Populate tracker stats and insert into priority queue ATRACE_BEGIN("populate"); int64_t cacheTotal = 0; auto cmp = [](std::shared_ptr<CacheTracker> left, std::shared_ptr<CacheTracker> right) { return (left->getCacheRatio() < right->getCacheRatio()); }; Loading @@ -2065,7 +2063,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> for (const auto& it : trackers) { it.second->loadStats(); queue.push(it.second); cacheTotal += it.second->cacheUsed; } ATRACE_END(); Loading Loading @@ -2111,7 +2108,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> } active->cacheUsed -= item->size; needed -= item->size; cleared += item->size; } if (!defy_target) { Loading cmds/installd/utils.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -523,7 +523,6 @@ int calculate_tree_size(const std::string& path, int64_t* size, */ bool is_valid_package_name(const std::string& packageName) { // This logic is borrowed from PackageParser.java bool hasSep = false; bool front = true; auto it = packageName.begin(); Loading @@ -539,7 +538,6 @@ bool is_valid_package_name(const std::string& packageName) { } } if (c == '.') { hasSep = true; front = true; continue; } Loading Loading
cmds/installd/InstalldNativeService.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -1955,7 +1955,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> return error("Failed to determine free space for " + data_path); } int64_t cleared = 0; int64_t needed = targetFreeBytes - free; if (!defy_target) { LOG(DEBUG) << "Device " << data_path << " has " << free << " free; requested " Loading Loading @@ -2056,7 +2055,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> // 2. Populate tracker stats and insert into priority queue ATRACE_BEGIN("populate"); int64_t cacheTotal = 0; auto cmp = [](std::shared_ptr<CacheTracker> left, std::shared_ptr<CacheTracker> right) { return (left->getCacheRatio() < right->getCacheRatio()); }; Loading @@ -2065,7 +2063,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> for (const auto& it : trackers) { it.second->loadStats(); queue.push(it.second); cacheTotal += it.second->cacheUsed; } ATRACE_END(); Loading Loading @@ -2111,7 +2108,6 @@ binder::Status InstalldNativeService::freeCache(const std::optional<std::string> } active->cacheUsed -= item->size; needed -= item->size; cleared += item->size; } if (!defy_target) { Loading
cmds/installd/utils.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -523,7 +523,6 @@ int calculate_tree_size(const std::string& path, int64_t* size, */ bool is_valid_package_name(const std::string& packageName) { // This logic is borrowed from PackageParser.java bool hasSep = false; bool front = true; auto it = packageName.begin(); Loading @@ -539,7 +538,6 @@ bool is_valid_package_name(const std::string& packageName) { } } if (c == '.') { hasSep = true; front = true; continue; } Loading