Cavalcade of smaller bug fixes.
Generate DCF-compliant unique filenames, such as "IMG_1001.JPG"
instead of "IMG_1000 (1).JPG".
Use album artist when media is missing a specific artist.
Avoid matching subdirectories when only scanning a single file; this
fixes an obscure bug where we'd clobber everything unpacked from a
ZIP file into a new directory with the same name.
Gracefully avoid crashing when broadcast intents race with storage
volumes being ejected by the user.
Upgrade thumbnail quality to 90% JPEG.
Bug: 138172571, 137214022, 141255723, 142734495, 144537989
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I73b52a1442cd26ebb026bd737ac519dbbd23cf42
4 files changed