Gallery2: support loop/single video play mode

(cherry picked new files from commit id
990c6d43ea7c184846e19d41bef0d93aee4e581b)

Change-Id: I0f55dfdfe812262804e7e45c99c7c9bbc5fb7503
Gallery2: Support HSCI screencolor settings use

Support to change HSCI values of the picture from Gallery2 in
screencolor settings, and set a picture as screen color.

Change-Id: If45adfca632083f297a58f3431ce9177bd4433c4
Gallery2: support GIF animation

(cherry picked new files from commit
2b133c9747af26701a12d60caef3e7e14cf55536)

Change-Id: I227cef76cbacd66b7e87bc59b4f07d518b70a859
Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
Gallery2: support GIF animation

This change implements a Java GIF decoder.

Change-Id: I72b6e8eb25572bba77a2a46e1754d8db8c47a0cc
Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
Gallery2: support audio effects during video play.

Porting from kk with fixes

Conflicts:
	res/values/strings.xml

Change-Id: I267c3c7e402fd5cf2bb223547003af491dd8289e
Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
Gallery2: support loop/single video play mode

This change allows a video to be played repeatedly. It also
introduces an extension framework.

Change-Id: I5566192f138c1f0fd889b85496dd27fbf2aed10d
CRs-Fixed: 507973
Gallery2: support stereo/single track play mode

(cherry picked new files from commit id
990c6d43ea7c184846e19d41bef0d93aee4e581b)

Change-Id: I2d7d523ca586a031c3fb139eda321d5073b30589
Gallery2: support stereo/single track play mode

User can select stereo/single track play mode.

Change-Id: I8225739815484f3c288823802f68478cb457725e
Gallery2: support live streaming and bookmarks

(cherry picked new files from commit id
990c6d43ea7c184846e19d41bef0d93aee4e581b)

Change-Id: Idc254cf0f7e8a9b492203313fa63349d07d19d5c
Gallery2: support live streaming and bookmarks

Users can input a URL for streaming display.
URL bookmarking is supported.

Change-Id: Ia69497cdcfee963ba2209119a5b9dc82b64497da
Gallery2: add some video features

(cherry picked files from commit id
990c6d43ea7c184846e19d41bef0d93aee4e581b)

Change-Id: Ifdcc4e9ab14d1f8b273faa97f0f66ba2f4034bea
Gallery2: add some video features

including: previous/next video play mode, screen mode,
fast forward/rewind button, step settings.

Change-Id: I3f4890c4dd95956e0eca889a5fd8b8d83b8d542e
Gallery2: Customize features for regional package

- Support user link to net to see more images.

Change-Id: I4c095bd124057c996d4bf0d3a4a035b6587db640
Gallery2: Fix batches of issues in movie effects

Fix following issues:
- All settings aren't restored to previous state when user cancel
his operations.
- Check the validity to avoid calling member function of an already
released object.
- Recycle effect instance when MovieActivity pauses.
- Don't restore strength from pref when toggling switch.
- Force the Effect's dialog to be uncancelable.
- Fix null pointer and effect leak issue due to CMCC features.
- Fix audio effects dialog display on small screens.
- Recognize bluetooth headset.
- Update visual design.

Conflicts:
	src/com/android/gallery3d/ui/Knob.java

Change-Id: I803897508c0c1a6723170b7691e3ece03680e4f1
Gallery2: suppress proguard false alarm

Change-Id: Ic4ead976a4389d2bf6c28a388e3fcbe5776cbfc1
Gallery2: Fix FC while editing streaming settings in Gallery

The name of apn editing class in settings has been changed
Change the name to the correct one

Change-Id: Ib5b1678bf1b25d7763b2298a47a5e378b1af9485
CRs-Fixed: 732220
Gallery2: Fix the original picture not display after edit.

Not move the origianl picture to auxiliary directory and insert
the edited picture record to the database.

CRs-fixed: 714431

Change-Id: I5b8fce7b24cc812463282d114094356707c2096c
Gallery2: Fix Gallery crash when exit playing gif pic.

When we press back key to exit playing gif pic,the decoder is
free and set to null,which casuse this bug happened.

Add a condition to avoid the NullPointerException.

CRs-fixed: 653709

Change-Id: Iab299554c252c3a1c9352b498cd946cb53e47cc7
Gallery2: Reginal requirement for RTL

Convert left/right layout properties to start/end properties.

Change-Id: Icaa0388cafbf1133fb37933f0ca1452d8d20968b
Gallery2: Reginal requirement for RTL

Add RTL logic in load picture, pick picture, show picture, delete
picture, load album, pick album, show album, show widget, pick
widget, scroll timebar. Change Camera setting to support RTL.

Change-Id: Ica264f624e0f20153280066264943882ad22f2db