Fix renameForFuse method in MediaProvider

Previously, rename restrictions for secondary volume wasn't imposed
correctly, this happened because we used same volume name for both
emulated and public volume. Changed the code to extract volume name
from the path.

Also fixed case insensitivity issue in file path comparison in
renameForFuse code.

Fixed rename restrictions so that files and packages cannot be moved
directly in the media directory outside the package directories.

Bug: 177049768
Test: atest ScopedStorageDeviceTest#testRenameFileToExternalDir
Change-Id: If9f9b597dab01895fbb570e3b0e9db4626ee230e
1 file changed