summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorJared Duke <jdduke@google.com>2021-11-18 13:18:21 -0800
committerJared Duke <jdduke@google.com>2021-12-03 12:31:30 -0800
commit4514bdf1b7a1dca90b8389993a641024ce439922 (patch)
tree6fe3e68bddebe7fd8f56f6b9c3f82911b367700a /core/java/android/inputmethodservice/AbstractInputMethodService.java
parentbd0a86f9d716f5a1d307a9723b2c02ce4101c77f (diff)
Allow flag-guarded Java optimizations for services
Introduce a set of optional Java optimization and shrinking settings for system server, based on the Soong variable added in aosp/1896612. Opting in to optimizations can be achieved with either: * Env: export SYSTEM_OPTIMIZE_JAVA=true * Make: $(call add_soong_config_var_value,ANDROID,SYSTEM_OPTIMIZE_JAVA,true) Note that the initial Proguard configuration is extremely conservative. Follow-up work will refine the rules to both allow additional shrinking while avoiding developer friction and overhead when adding services and dynamically loaded jars. As these optimiations can change the resulting stack traces, a parallel effort is working to simplify retracing of stack traces for more accurate debugging and diagnostics. Additional stabiliation and testing will occur before any effort to enable these optimizations by default for specific targets. Also note that there are no plans to enable obfuscation for any of these targets. Preliminary results: * Conservative keep rules (this CL w/ opt-in flag): * services.jar (19MB -> 15MB) * services.odex (52MB -> 54MB) (mostly from increased inlining) * Refined keep rules (follow-up CL): * services.jar (19MB -> 12MB) * services.odex (52MB -> 45MB) Bug: 203088572 Test: SYSTEM_OPTIMIZE_JAVA=true m (validate services.jar/odex change) Change-Id: I4130233310323611f63cd9bfcc0646080cf95875
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions