CMFileManager: Check write operation

Check that write operation writes exactly the expected bytes to the backend filesystem.
Otherway, retry the write operation.

Change-Id: I69911d6ce2260b616ce28614fc9ca3a55d474105
JIRA: CYAN-2129
Issue: https://jira.cyanogenmod.org/browse/CYAN-2129
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
CMFileManager: Add a dismiss listener for the exceptions YesNo dialogs

Change-Id: I73842a09f87fa12ee5b7d7220627e889165c9f54
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Implement showing of apk icon and image and video thumbs in listing

Patchset 8: Move some stuff to MimeTypeHelper
            Add cache
            Add image and thumbail support
            Add setting for this (defaul false for improve performance)
Patchset 9: Fixed icon derp display
            Same size for all drawables
Patchset 10: Async drawable load
             Shrink cache
Patchset 11: Use layout's width and height to scale the images
Patchset 12: Music album thumbs
Patchset 13: Added suggestions
             Fixed FC
Patchset 14: Use content observer for icons
             Keep context in icon holder
             Fix scroll position being reset on thumbnail load
Patchset 15: Additional fixes and optimizations
Patchset 16: Do not saturate the ui with constants redrawing
             Do not send back events while changing to a new directory
             Fix FC on HistoryActivity (creation of a ContentObserver inside of a non-ui thread)
             Added normalized media paths
Patchset 17: Use a HandlerThread to handle the preview loads
Patchset 18: Optimizations
Patchset 19: Fix deadlock
Patchset 20: Remove debug leftover
Patchset 21: Fix whitespace
Patchset 22: Misc. cleanup

Change-Id: I0a4ea801ff0cfbf31dda125b8925e7d35f4c3c99

Conflicts:

	res/xml/preferences_general.xml
Some optimizations spotted during profiling.

Change-Id: Ice5cc24d2574894798370eaaae144713414eb6cf
Fix a number of default locale issues.

See http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Change-Id: I1f1e8dba6bbe862fcefc4bbde7d3eb0dfaf15982
CMFM: NL translations

Change-Id: Ie2fa26f31b85a08d45efbd5d8824149d0f4e8abb
CMFileManager: HU translation

Change-Id: Iebaf8cdf436b0e34529a6c49a64d57bb5b6b5cb4
CMFilemanager: Chinese translation

               Patch Set 2: Merge some translations from http://review.cyanogenmod.org/#/c/47105/

Change-Id: I4937a158222ad64f088b2c58d83e6c78035ac4b4
CMFileManager: SK translations

Change-Id: I62080eac20d81093f1445249487e57f347cdd4e2
CMFileManager: DA translation

Port from cm-10.1

Change-Id: Ib5a6869cb663692648a1ff948a432b3e59ffc599