Report progress when optimizing packages.

This will be used during boot, to show a dialog "Optimizing app X of Y."

Bug: 260419279
Test: atest ArtServiceTests
Test: -
  1. adb shell setprop pm.dexopt.bg-dexopt.concurrency 4
  2. adb shell pm art optimize-packages bg-dexopt
Ignore-AOSP-First: ART Services.
Change-Id: I3a4250ffeb02d56acc425e0358aad6d0b5725796
10 files changed