Add new dex file support constructor.

The requirement of an r-value for the DexFile constructor made it
hard to use and required a bunch of std::move calls.

Add a constructor that takes a unique_ptr instead.

Bug: 151966190

Test: Build and run art_libdexfile_support_static_tests.
Change-Id: Ie6711be8efce62f591814512f796605e20e1ac89
2 files changed