Gallery2: keep selection mode when deSelectAll

Origin code will call leaveSelectionMode function in
deSelectAll and will not keep in selected status on
this situation.

Add DESELECT_ALL_MODE in AlbumPage and
AlbumSetPage to make stay in selection mode even if
choose deSelectAll.

CRs-Fixed: 342469

Change-Id: Ia8819ba197444c33b1641ad33dd8602ecca0075c
Gallery2: request thumb if fail to get region decoder

When fail to get region decoder in SinglePhotoAdapter, try to
request thumb image rather than return null directly.

CRs-Fixed: 369231

Change-Id: I11fe4b4f3ac10550f10e0391a919c0ea18fe47e0
Gallery2: update time-cluster albums for database change

When in time clustering and picture/video added,the page
is not updated for current cluster album will ignore this
change.

We add to reload cluster albums on this solution,meanwhile
change time clustering method from dynamic to static which
makes same month and same year items into same cluster.

CRs-Fixed: 383896

Change-Id: I59b592d91c045290b4b2a0ff4279f5a95fa83706
Gallery2: update content start/end once getUpdateinfo

When viewing last picture in screenshot album and do screenshot, the
new picture will become the first one in album and the album has
changed, but this time current index and content start/end is still
old value, so user will find change to previous picture from current
one in current page.

To aviod this situation, will update content start and content end
once after getUpdateinfo and then can get correct current index and
item path.

CRs-Fixed: 420908

Change-Id: If0da8f8b2ea25d4aed9b8a73f6050e58aadae5de
Gallery2: if phone is locked, pause the video, if not, start it.

If there was a video playing before locking the phone,
After pressing the emergency call option in lock screen,
and then presses back key, the MovieActivity will resume,
so the video will play background.

Set a listener, if Keyguard is locked,pause the video,
if not, start it.

CRs-Fixed: 427283

Change-Id: Ia825afee691ee53f53eebf1f96efe09ef88ca743