Scan and resolve hidden file media type as MEDIA_TYPE_NONE

Previously, ModernMediaScanner skipped hidden files and files in hidden
directories or directories with .nomedia file. ModernMediaScanner also
removed all hidden files from MediaStore database.
To provide support for accessing hidden files through MediaStore APIs,
ModernMediaScanner should start scanning hidden files.

Added support for scanning hidden files in ModernMediaScanner. Media
type of hidden files are set MEDIA_TYPE_NONE

Added new tests and modified existing tests to verify the new behavior
of ModernMediaScanner.

Test: atest packages/providers/MediaProvider
Bug: 148585977
Change-Id: I9ae9a1af30f05c3cad50c1bc4ac7813892ae9e30
2 files changed