Change `dexoptPackages` to support multiple passes.

This CL changes `dexoptPackages` so that it can report progress and
results for multiple passes. It enables us to add one more pass for
background dexopt and collect stats of the new pass.

This is generally a no-op change, except for that it changes the outputs
of the `pm art dexopt-packages` command.

Bug: 242170869
Test: atest ArtServiceTests
Test: adb shell pm art dexopt-packages -r bg-dexopt
Test: adb shell pm art dexopt-packages -r first-boot
(cherry picked from https://android-review.googlesource.com/q/commit:03144b13b3489be8e5fcde799d08fcf30bd00b19)
Merged-In: I6197ec92caca0e30a4efbc394faf24c778ba0b8a
Change-Id: I6197ec92caca0e30a4efbc394faf24c778ba0b8a
9 files changed