Add test to catch "Expression tree too large" SQLite exception

While scanning directories we do not scan non-dirty .nomedia
directories, we add such dirs to an array list mExcludeDirs and later
add it to the SQLite query for us to skip scanning such dirs. As a
result of having too many non-dirty unnested .nomedia dirs, we
started running into
`SQLiteException: Expression tree is too large (maximum depth 1000)`.

Bug: 173371094
Test: atest ModernMediaScannerTest
Test: The new test fails without I336d467ee76a354fce25339062c31b0895681976

Change-Id: I4f30d4cd98e40be78a7c1df8c3805d104a33b52a
2 files changed