summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2021-10-25 20:23:50 -0700
committerKevin Han <kevhan@google.com>2021-10-28 15:36:30 -0700
commit633d8e12c15128fde3b41d6139273fdfd7625716 (patch)
tree04060880fd8c3010c17e4b81392faf7d6bf32496 /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent11d1f6035db05f4e3aab28f3198bb88bf51950a0 (diff)
Exempt hibernating apps from dex optimization
We previously only checked whether an app could be optimized in PackageManagerService#getOptimizablePackages. This missed edge cases where the app would still generate vdex/odex such as when the app is updated. We fix this by considering any hibernating app as not optimizable in all cases. To support unit testing, we also change canOptimizePackage to a non-static method and enumerate PackageDexOptimizer's dependencies clearly with an injector. Bug: 203693378 Test: Reproduce steps in bug, confirm app does not have vdex/odex Test: atest PackageManagerServiceHibernationTests Change-Id: I16e76619e15351659a4f7121fc17cc46937f3591
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions