ART services: get optimization status.

- Implements the functionality of getting the optimization status of
  primary dex'es (except the real artd implementation).
- Defines an artd internal API for getting the optimization status.
- Adds a shell command (`get-optimization-status`).

Bug: 233383589
Test: atest ArtServiceTests
Test: adb shell pm art get-optimization-status com.google.android.youtube
Ignore-AOSP-First: ART Services
Change-Id: I4128a2c8a618c348954a81b22c21f0bd0944496d
9 files changed