resource_sizes.py: Relax assertion for padding fraction.

The assert triggered for M84's TrichromeChromeGoogleSystemStable.apk
because it contains a lot of small .so files (for all the DFMs).

Bug: None
Change-Id: I8855dda1190b063d4b860bb13272527c35d6e1cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214905
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#771589}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 279c5f1e9840305f73138bc29b39bbed61fc3b00
This commit is contained in:
Andrew Grieve 2020-05-25 16:50:59 +00:00 коммит произвёл Commit Bot
Родитель 9871af3c7f
Коммит 78f932bf05
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -471,7 +471,7 @@ def _DoApkAnalysis(apk_filename, apks_path, tool_prefix, out_dir, report_func):
padding_fraction = -_PercentageDifference(
native_code.ComputeUncompressedSize(), native_code_unaligned_size)
# Ignore this check for small / no native code
if native_code.ComputeUncompressedSize() > 100000:
if native_code.ComputeUncompressedSize() > 1000000:
assert 0 <= padding_fraction < .02, (
'Padding was: {} (file_size={}, sections_sum={})'.format(
padding_fraction, native_code.ComputeUncompressedSize(),