Cache artd reference to avoid repetitive waitForService calls.
Bug: 317221732
Test: atest ArtServiceTests
Test: adb shell pm delete-dexopt com.android.settings
Test: adb shell pm delete-dexopt com.android.settings && sleep 4 && adb shell pm delete-dexopt com.android.settings
Test: adb shell pm compile -m speed-profile -f com.android.settings
Test: adb shell pm compile -a -m verify -f
Test: adb shell pm compile -a -m verify -f & adb shell pm compile -a -m verify -f & adb shell pm compile -a -m verify -f & adb shell pm compile -a -m verify -f
Test: adb shell pm art dump
Test: adb shell pm art dump & adb shell pm art dump & adb shell pm art dump & adb shell pm art dump
Test: adb shell pm art dump com.android.settings
Test: adb shell pm art dexopt-packages -r first-boot
Test: adb shell pm art clear-app-profiles com.android.settings
Test: adb shell pm art cleanup
Test: adb shell pm snapshot-profile com.android.settings
Test: adb shell pm snapshot-profile android
Test: adb shell pm dump-profiles com.android.settings
Change-Id: I48c3bd4fd2cda39a1fd47b3e0f9774ee3f3cd03e
8 files changed