Refactor ArtFileManager.

This change moves all the options to a class, to make them optional and
allow default values. This makes ArtFileManager more extensible that we
can add more options without changing all callsites.

This change makes it easier to reuse ArtFileManager for committing
Pre-reboot Dexopt files.

Bug: 311377497
Test: atest ArtServiceTests
Change-Id: I6eefaa58b77dcebf75322b16cd10489ba633270c
2 files changed