Remove DexoptOptions.
DexoptOptions used to be a proxy to bridge the legacy dexopt options and
ART Service options (DexoptParams), for seamless migration. Now the
migration has been done, and we can use ART Service options
(DexoptParams) directly.
This CL includes the following behavior changes, which has no effect in
practice:
- When install reason is not backup or restore, the code no longer
explicitly sets priority class to PRIORITY_INTERACTIVE. Instead, it
relies on ART Service's defaults. In practice, this makes no
difference because:
- For "install", the default is PRIORITY_INTERACTIVE.
- For "install-fast", the default is REASON_INSTALL_FAST, but the
default compiler filter is "skip", so the priority class is not
applicable.
- For "install-bulk-*", the default is PRIORITY_BACKGROUND, but nobody
currently uses them.
- When the install request doesn't explicitly specify a compiler filter
(only specifiable through the `adb install` command), the code no
longer sets the compiler filter based on "pm.dexopt.*" properties.
Instead, it relies on ART Service's default. In practice, this makes
no difference because ART Service's default is to apply the compiler
filter based on "pm.dexopt.*" properties.
- The code no longer explicitly sets FLAG_FOR_PRIMARY_DEX. Instead, it
relies on ART Service's default. In practice, this makes
no difference because ART Service's default flag for "install-*"
reasons is FLAG_FOR_PRIMARY_DEX.
Bug: 258223472
Bug: 6527146
Test: Presubmit
Flag: EXEMPT cleanup
Change-Id: I2e5eca824bdd0ef6c1498306d2946c76be6188c1
9 files changed