Squashed commit of the following:
commit b11f60fd9b601caa10f8caec5c9f3a10c5082d68
Author: Jared Duke <jdduke@google.com>
Date: Wed Feb 16 15:43:55 2022 -0800
Enable R8 code shrinking for system_server on Pixel
Opt in to whole-program Java optimizations via R8 for Pixel devices.
This can be explicitly disabled during builds via
`SYSTEM_OPTIMIZE_JAVA=false m`.
Note that this change only enables code shrinking for system_server,
and should not impact stack traces. Additional R8 optimizations
will be enabled after broader improvements to retracing infrastructure.
See go/aperf-system-r8-faq for additional details and guidance. Also
note that R8 shrinking optimizations are implicitly disabled in ENG builds.
Enabling for non-Pixel devices will proceed in stages as we flesh
out infrastructure and validate with test populations.
Results: services.jar (20MB -> 17MB)
Bug: 210510433
Test: m + atest FrameworksServicesTests + manual testing on Raven
Change-Id: I13c0674105aa2cab7722f52344486e86e3bde26b
commit ecc5901ee57253edb0fdde5d5099c4e1078f7b6f
Author: Jared Duke <jdduke@google.com>
Date: Tue Jan 4 15:21:39 2022 -0800
Enable SystemUI R8 optimizations for Pixel
Opt in to whole-program Java optimizations via R8 for Pixel devices.
This can be explicitly disabled during builds via
`SYSTEMUI_OPTIMIZE_JAVA=false m`.
Note that this change does introduce changes to stack traces that
may require retracing for fully accurate debugging and diagonstics.
See go/aperf-system-r8-faq for additional details and guidance. Also
note that optimizations are implicitly disabled in ENG builds.
Enabling for non-Pixel devices will proceed in stages as we flesh
out infrastructure and validate with test populations.
Results:
* SystemUIGoogle.apk (40MB -> 35MB)
* SystemUIGoogle.odex (32MB -> 25MB)
Test: m + atest SystemUITests + presubmit + manual testing on Raven
Bug: 203472868
Change-Id: I67ff2c06885b21164a3034e9922163337e8787f3
Change-Id: Ib89500d70780fdf8485aaf04976d4cc607b4ccf7