ART services: optimize package - Implement PrimaryDexOptimizer.

This CL contains the basic implementation of app compilation.

Bug: 229268202
Test: atest ArtServiceTests
Ignore-AOSP-First: ART Services.
Change-Id: Ib5940b16c8f6b7f650584d2b770e7fbd40cb75ca
17 files changed