Gallery2 - add wmv, mpgts, mkv, asf mimetypes

 - adds extra mimetypes so they can be used for playback from Music app

Change-Id: I19a986e4c4e36b668f2436ced3441696fa6052e5
CRs-Fixed: 438167
(cherry picked from commit 2bbc6f5274fca08e769db5fecaccc51c61cac43f)
(cherry picked from commit b9c182d90b364576b7ce221644c3af05ab731ce1)
(cherry picked from commit 80453df71503f345309fe71ad4dfd90a444bfb0c)
(cherry picked from commit 63e936188eef3528b0538fd0efb702084d6d91a5)
Gallery2: Fix crash for unsupported format on mute operation. -Mpeg4 Writer does not support formats other thanmp4/h264/h263. -Need to check in app for unsupported format before starting  mute operation. -Fix is to add condition in app to check for unsupported format  and display toast message.  CRs-Fixed: 514347

Change-Id: Ib2ce48d2b8ebaef80936bc7a446e1c97e3a10c31
(cherry picked from commit 91620395d7a744abccf89a6f774a569bcd24ccad)
(cherry picked from commit 7f4a86b898969c1942f85657937f2def7ed8bbd4)
(cherry picked from commit c74d095615f50655159d49732e47a063f6ed83dd)
Gallery2 - add wmv, mpgts, mkv, asf,avi & divx mimetypes  - adds extra mimetypes so they can be used for streaming.

Change-Id: Iec3c5c55b2268e93807d5c09a4335f00eda99f97
(cherry picked from commit ab5ef79d09c45028580faeb5a774e074c0e572b2)
(cherry picked from commit 8900fb2fc70a9bb95b0da372089f545a9d41e9a7)
(cherry picked from commit 0bf060d565264298912ee9170b602ab266657455)
If the decoding fails, change the inSampleSize to 1.

Issue: Decoding an image whose inSampleSize is greater
than image width/height returns a invalid bitmap width,
height and config value
Fix: If decoding fails for an image whose inSampleSize
is greater than image width/height; decode the imagewith
inSampleSize=1

CRs-Fixed: 527315

(cherrypicked from: I578e362563f3c648b0a2427cf824198af31d2915)

Change-Id: I1fda51cc0489dc3821f76f8e2f122db7ca4f0b30
(cherry picked from commit 9dcaeca9c7d7c9b0ba9549beb90a418b74440d8b)
(cherry picked from commit 0a3f4414b215482971eb46046385cd2d674e22a2)
Merge commit 'android-4.4.1_r1' into merge_branch

* commit 'android-4.4.1_r1':
  Fix the thumbnail generation.
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Fix infinite spinner dialog
  Disable geometry button if tiny planet is here
  fix Gallery crash using crop
  Gallery should show up in recents even when run via shortcut
  Avoid crash if user disables Camera while Gallery is open
  Import translations. DO NOT MERGE
  Add white overscroll assets to Gallery2 for v19
  Consider camera available only if intent resolves to an activity.
  fix crop not supporting non-normal orientation
  Fix crash when exporting with null fx
  Handles export size zero
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Fix wrong applied fx
Merge "Merge commit 'android-4.4.1_r1' into merge_branch"
Merge remote-tracking branch 'caf/kk_2.7_rb1.17' into android-4.4