Start using MediaVolume in attachVolume()/detachVolume().

These used to take a volume name, which may no longer be unique. This
ripples through into a few other different places, most notably the
scanner and thumbnailer.

Also switch createDefaultFolders() to use the volume id instead of the
volume name, since the latter may no longer be unique.

Bug: 182396009
Test: atest CtsScopedStorageDeviceTest
Test: atest MediaProviderTests
Change-Id: I72a3b4dbceda926c736504f35a7c738a85a3d7d6
5 files changed