Fix ItemsProviderTest#testGetItems_sortOrder

Previously, testGetItems_sortOrder failed because it didn't create
Camera dir if the diectory didn't exist. This made the file creation
fail. Fixed it by making all test code use a common method to create
files where we ensure parent directory exists before file creation.

Bug: 216774921
Test: atest
com.android.providers.media.photopicker.ItemsProviderTest#testGetItems_sortOrder

Change-Id: Ib047d1bc6bc2640bfd5462b5a0b972fecbc4dafd
1 file changed