Revert "SurfaceTexture: returning the current transform value"

This reverts commit 5b73abb0e9bf59145a751d816b9b50ea684c6beb.
Revert "SurfaceFlinger: Return the current transform value when queried"

This reverts commit 4d02c3d1e9b798211b340dfb02d1ad081673fa96.
SurfaceFlinger: Return the current transform value when queried

When an application queries the transform hint,
SurfaceTexture returns the value based on the previous
queueBuffer function. When query() is called before any
queueBuffer() calls, it doesn't return the current transform.
Make sure to get the current transform from a layer
whenever query() is called.

Change-Id: Id86c931dc72285cf754cc6c77219434388fc0d69
Handling EGL_BAD_ALLOC egl error as return from swap

Some GL apps are not closing properly espacially while
forcefully closed.Cause unnessary swap command from
GLSurfaceView and returing EGL_BAD_ALLOC as error that is
not handling in GL thread and leads to uncaught exception

CRs-fixed: 335039
(cherry picked from commit 46cc8d1f506fabd04e3e192511ab715a22ff92ea)

Change-Id: I92d08b6328a0055687ad99b9413a97ec7025e0cd
Surfaceflinger: Add Src orientation for the layer

hwcl->transform contains the final transform, add source transform
to it, so that the source transform can be used for setting correct
orientation for Secondary display.

Change-Id: I9dd6ab9495991b01211711f55b9380a3a53cf0f0
CRs-fixed: 341691, 330719, 342199, 344308
(cherry picked from commit ec2226ef4e8c9bbf5d255d26f9677d7e36fc6ea2)
SurfaceTexture: Reset buffer values on disconnect.

When the surface texture client disconnects, reset the values set
for buffer width, height, transform and format. This is to ensure
that the same surface texture can be used by another client with
different parameters without any corruptions.

Change-Id: I1e158f4641d7b06cea9976ad2827c7b12c95f538
CRs-Fixed: 347382
frameworks/base: surfaceflinger: Enable dither if needed

SF is checking if dithering is required but not enabling it.
Enable for layer drawing and  also for screenshot for 16bpp
framebuffer only.

CRs-fixed: 333721
(cherry picked from commit 85c02ed97b4a1d0cc343a452959570b379928d59)

Change-Id: I599fe5b9683db208c8b32a1d3d395d5203f78fd3
SystemUI: enabling hardware acceleration for tablets

Enables hardware acceleration for tablets and uses sw rendering for phone ui.

CRs-Fixed: 350897
(cherry picked from commit 8c79141a14e6c5d344b0fadcbbf22498c8763522)

Change-Id: Ib643ec0293094515f14f6aea8efa02600a0cc128
Merge commit 'themes-4.0' into 'ics'

Change-Id: I11e340ce7d56c8e18ed3c4d2ae0040c29aee0b45
Protect Mms app from oom kill when its service is working

- incoming sms may become lost if the Mms app process is killed
by oom killer before the SmsReceiverService manages to process and save
the received message to db

Change-Id: I5cb3bda40649dc6310b3ed46a61c645277226716
Recent apps: add Sense4 style task switcher (2/2)

This is based on the code provided by evilisto

http://forum.xda-developers.com/showthread.php?t=1589963

Change-Id: Ie54081a4c7d0090e201661db4c130ce120721854
Add "Pulse low battery light" switch.

Cleaned up gerrit commit
Synced with new frameworks.

This accompanies I5946578d4ab2c7e4affbbd834ccdfbb8beca0a25
Change-Id: Ie7a12e2aa1acc8176d79e8e9cbfe7a17ee16526a
Update Translation
further theme engine integration

1) reset clock color to theme default when switching themes

2) handle alternate toggle notification in the code to dynamically
  change the color of the "on" background image. cleaned up some
  toggle code in the process.

3) use holo_light color for weather text to match theme

patch set 2
- update signal/wifi text to reset to proper color
- reset colors with tablet statusbar too

patch set 3
- use a common method to reset colors on theme change

patch set 4
- reset nav bar colors and re-make the nav bar to
   reflect the changes

Change-Id: I2fd3adb88771b2dc65664187ead1bbda403ae876
fix reboot/recovery options on powermenu for p99x devices

(Credits to doniqcc)

Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>
Change-Id: I4e2c85f8632b4cffc5d26ed5d6a04cd88ea51da5

Conflicts:

	core/java/com/android/internal/app/ShutdownThread.java
increase defualt nav bar glow speeds for better UX

By default, I think it would be better to have them a little faster
  (if not even turn them off by default), as it does cause a little
  lag when they're animating.

Change-Id: Ia2fb7ccf30caca208cf39f89fcf2edd0d4ac8b48