Clean up cursors in try/finally

Make sure we release cursor resources.

Change-Id: Ia122100b1350ae5db4804f8f0e95c49785ab645b
Deactivate the MiniThumbFile when it is not needed.

Issue description:
Unable to use camera after deleting all files in internal storage from PC
with MTP. The toast message "Connect USB storage before using the camera"
is poped up when we launch camera after deleting all files in internal storage
from PC with MTP.

Steps to reproduce the issue:
1. Launch Camera and take a picture.
2. Connect device to PC with MTP mode.
3. Delete all files on Internal stoage from PC.
4. Launch Camera after step 3 finished.
Then we find that we are unable to use camera and the toast message is poped
up.

Root cause:
The .thumbdata3--xxxxx in /sdcard/DCIM/.thumbnails/ is opened in
android.process.media process when we take picture in step 1. But the file is
never closed. So camera cannot create the directories(/sdcard/DCIM/Camera)
it needs to store captured pictures because "Device busy" error.

Solution:
Deactivate the MiniThumbFile when it is not needed.

Change-Id: I0faab5ffd95c5626f7f9ef1bc02b2ae56e2eb19b
Signed-off-by: hanpengx <pengfeix.han@intel.com>
MediaProvider: Avoid issue of android.process.media stop

"OK" and "Cancel" button's click event response at the same time
lead to FATAL EXCEPTION. Make the click events do not happen at
the same time.

Change-Id: I92fc1dc15be42d0bd9fe54f41fdbb26b3ca4b85c
CRs-Fixed: 513752
MediaProvider: Add feature to support group music by folder path

There is no support to group music by folder path.

Add extra query sql statement for supporting group music
by folder path.

CRs-Fixed: 620983

Change-Id: If0036efe8c9ebbea11c7aca1752e1d12b2287955
MediaProvider: support streaming bookmark

Add bookmarks table and bookmark URI.

CRs-Fixed: 637282
Change-Id: I4414a1619066efe58457350a82394d56d26d41bb
MediaProvider: Make folder music change when delete music

Lack the register for folder music uri,which cause the data
not change we obtain the change from uri.

Register uri for folder music to make correspoing cursor
change when data change.

CRs-fixed: 661198

Change-Id: I3b36851e0592efee66ae107b73ce3c43153b3913
MediaProvider: Structure and sanitize input in AUDIO_FOLDER logic from CAF.

Change-Id: I6f43630c0c262383da6a656205a09fd048b60f2a
Merge "MediaProvider: Avoid issue of android.process.media stop" into du44
Merge "MediaProvider: Add feature to support group music by folder path" into du44
Merge "MediaProvider: support streaming bookmark" into du44
Merge "MediaProvider: Make folder music change when delete music" into du44
Merge "MediaProvider: Structure and sanitize input in AUDIO_FOLDER logic from CAF." into du44