SurfaceTextureClient : Reset buffer size to 0 after setting geometry

Buffer size has to be reset to 0 after setting geometry , otherwise
the new request may get the buffer with wrong size.

CRs-Fixed: 337041
(cherry picked from commit 9b3ebedad4f53b7348135dac827392a39b01f69f)

Change-Id: Id9afe01c80912d3245c2f37ddac51f550c896dce
libstagefright: LPAPlayer: Fix choppy playback on BT.

-Music playback on BT A2DP device is choppy/glitchy
-Decoder thread hogs the CPU this starves A2DP thread from data.
-Fix is to use small buffer(64k) only in the case of A2DP playback.

CRs-Fixed: 33353851
(cherry picked from commit e64bb36f81b22c93d3af156451b1236966c99ea4)

Conflicts:

	media/libstagefright/LPAPlayer.cpp

Change-Id: I2e9450a2be6f9e79e68d525d2119d33154d132b7
Add missing symbols for HTC 8660 camera HAL.

Change-Id: Ia542981bc07cfb22da1bae75af5a4554f7100ef5
camera: Add parameters for HTC msm8960

Enable with QCOM_HARDWARE.
Add MIN_SATURATION, MIN_SHARPNESS, MIN_CONTRAST, CONTI_BURST modes.

Change-Id: Ia744e32620629967e1fc17fa4c3c08016bdaa370
Set landscape orientation prop

Set sys.orientation.landscape to 1 when in landscape and to 0 when
in portrait orientation for devices that have rotating capacitive
buttons.

Change-Id: I5cf86834d3e09ead515e9de31391904d5aff3107
Signed-off-by: Evan McClain <aeroevan@gmail.com>

Conflicts:

	core/res/res/values/config.xml
Turkish: Weather Forecast

Change-Id: I769fe32561ec3cca5a19f0267739fb00218a539b
Enable Dock Battery Percentage

Displays the dock battery percentage while docked, according to the users system settings.

Change-Id: I68b3739e2ccbaf0f4a1b64ec4aca27466ed4c11a
pt-pt: added missing translations
few corrections from pt-br to pt-pt

Change-Id: I7c1263f75c0d1c55bad2463d95c691d7ab9c4e96
libstagefright: Fix MPEG4 timestamp

MPEG4 timestamp needs to be stored with the classic Mac OS epoch not
the unix epoch. Header needs to be changed to version 1 to support
64-bit timestamp which is needed to represent the time.

Change-Id: Ie86c62349edaa96dd9c5c5cb8e2bdb89794ebb5f
Weather spanish translations - typos & strings shortened

Change-Id: Idf0058075d2d72031a6721e202f8b7211807912f
surfaceflinger: Fix top-bottom UI composition with S3D.

-Fix the scissor computation for top and bottom frame in S3D.
-Fix the artifacts seen in top-bottom case by clearing the
 color buffer with scissor applied.

CRs-fixed: 346986
(cherry picked from commit 241b5b6b41fa4e1b2eca3565fd27b454a6aff262)

Change-Id: I8fb98007f67351009762c4494e260142b998ddb5
Fix wrong include on tablet layouts

We're including keyguard_screen_status_land on portrait keyguard.
This fixes it

Change-Id: I11c5d7db669968a69e8ae3ee4e538b0b7380063d
Remove duplicate notifications

Acrux=Antares and Bellatrix=Betelgeuse.

I'm guessing these are duplicate due to differing
names. I believe Antares and Betelgeuse are the names
in AOSP, so leaving those two.

Change-Id: Ie58b20039bb4343c9907fc5bc31e099fd942bb87
FileInputStream is not closed in "UserManager.java : readUserList()"

Change-Id: I50f54c70c8b6bc808fa59ce589b0480780cc811b
String on Toast notification does not aligned to center

If length of the string being showed on Toast is short (less than 8 chars),
it is aligned to left rather than to center.
Added attribute android:layout_gravity="center_horizontal" on the TextView where Toast's message are shown to fix issue.

Change-Id: I77669fd8a11d1ec8f6b082348eb818671ce158bb
Signed-off-by: Taeho Kim <jyte82@gmail.com>
stagefright: Turn off verbose logging in LPAPlayer

Change-Id: I3e90fad0b93b594fda4357a8b7094d94a3b22469
SurfaceFlinger: Set the transform value correctly

When using the transform value, read only last 4 bits
of it regarding the change of
transform value in Layer::setGeometry().

Change-Id: Icdb2c9d8c283867a273e9633a7a563516f6af637
Depends-on: 120066
Remove references to removed notifications.

Remove references to files deleted by patch: http://review.cyanogenmod.com/#/c/16913/

Change-Id: Ic40ad7aa1cd43843effc4456c52b6c3fe52b7165
Revert "Added Statusbar IME Switcher toggle (1/2)"

This reverts commit 0396bc3c808cef0157d5e52418464d52dcb5f39c.

Conflicts:

	core/java/android/provider/Settings.java
Option to hide IME switcher (2/2)

Change-Id: I210c1db65f8b5c41dcbcd559c0e7e0a53dd2df7f