Implement shell command "dump-profiles".

This change does not add any new API because the functionality is only
used by the shell command.

This change also changes the behavior of "snapshot-app-profile" and
"snapshot-boot-image-profile" to pave the way to eventually take over
the legacy PM shell commands.

Bug: 261564086
Test: `adb shell pm art dump-profiles` with a package that has multiple
  splits.
Test: `adb shell pm art snapshot-app-profile` with a package that has
  multiple splits.
Ignore-AOSP-First: ART Services.
Change-Id: I67435d0ba63a655e58fe1186bddea3b16e2fa23a
9 files changed