Avoid dirty region drawing when EGL Surface object is not updated.

Add state to identify UNDEFINED state when the actual EGL Surface
has been resized but Hardware Renderer is not informed about it.
Avoid the dirty region drawing for 1 frame in this state to fix
corruption.

CRs-Fixed: 354256
(cherry picked from commit 652a6d8e87c7ea130750336885890a9ffd1affbc)

Change-Id: I3543176db36e596178de6d911a7f967b1cdd3b58
Fixed dock battery not showing immediately

There was an issue where the dock batter on the TF300T was not showing when
plugged into a dock with a battery.  This shows the dock battery immediately and
then updates the dock battery to reflect the battery amount.

Change-Id: I66de618f6c65e6056d0e7c31fa5b6c592ca679bd
Signed-off-by: Chuck Haines <chaines@codemonkeyjava.com>
bluewall firewall (1/2)

mutes notification sounds for an application
  for <X> seconds after playing

patch set 2: default to 0 to disable

Change-Id: Iaf4661f9cda9ab257ec2282f01f2a2f240ed21e7
Added support for a fourth audio device - dock

Adding persistant setting to choose to use usb audio

Change-Id: I3860c04c8f14e8e98d79d82a354a92b78565c3d1

Add Deskdock support to WiredAccessoryObserver

After discussion on XDA it appears that Samsung Desk Docks send a signal of 1.
Car Docs send a signal of 2

This change should work with Desk Docks now, routing the audio when the option is checked in the Dock Menu.

I have tested that no regression has occured - Car Dock audio is working.

Change-Id: Ie89a9a1c9738676188b53f9d6b22db92b6894b8c
Compact list view mode for Contacts

Allows the user to use a compact list view mode in Contacts by reducing the size of the contact photo.
Signed-off-by: Gary Danko <gdanko@gmail.com>

Patch-set 2: Add the required @hide annotation per Roman's comment.

Change-Id: I9a03561307b6b018a21a580e7bb6d0acab19a760
PowerSaver: don't switch network mode if the phone is ringing/incall

Change-Id: Iec617a78ef75223c6e4889f6827ab0127996e5cf

Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "Compact list view mode for Contacts" into ics
TF300T Dock Key fixes

Merged in the changes for the asusdec from CM to enable the keys on
the TF300 to work correctly.  This should work for the TF101 and TF201 as well.

Ported to AOKP by termleech from the Cyanogenmod Team

Signed-off-by: Chuck Haines <chaines@codemonkeyjava.com>
Change-Id: I76be8442cdf54117d568a019af8d847bee22ebf1
Merge "Fixed dock battery not showing immediately" into ics
Weather: fix weather toast displaying on each refresh / code cleanup (2/2)

Change-Id: Ibabc93b651e6797276366c6c417689cf41a2ad7c
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "PowerSaver: don't switch network mode if the phone is ringing/incall" into ics
Lockscreen: toggle music layout (2/2)

added an option to toggle between new and old music layout

Change-Id: I9ee18860728e678cc296cb14f1fc19e122ebb860
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "Avoid dirty region drawing when EGL Surface object is not updated." into ics
SystemUI: re-enable statusbar brightness slider by default

for some reason the http://gerrit.sudoservers.com/#/c/1117/
    commit got reverted/squished

Change-Id: I290032fb22fe9ec413e64a81a9b9dabd86da4c7d
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Merge "Lockscreen: toggle music layout (2/2)" into ics
Add a "ProTekk" ringtone. 30 seconds of "Nein nein nein"

Change-Id: Icc37c3d68950b9d2361e806eff5c84f221dff787
Signed-off-by: Gary Danko <gdanko@gmail.com>
add NFC toggle (1/2)

Change-Id: I9ee50676f4d5229ec78e80c876b8d329722fd535
Signed-off-by: sethyx <sethyx@gmail.com>
Fix bootloop on tablets

http://manski.net/wordpress/wp-content/uploads/2011/05/double-facepalm.jpg

Change-Id: Ibbe0f913c6d4164f25635b0de717bbdda355178e
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
bootanim: Don't cache textures if they're expected to use a lot of VRAM

bootanimation cached all the textures generated until the animation
was completed.
For Hi-res animations with lots of frames (like the new CM9 anim on
xhdpi devices), this implied using large amounts of video RAM, more
than most devices actually have available, causing the animation to
stall (and in some cases, gralloc to lock up); so if an animation is
expected to use a lot of RAM (rough estimation based on frame size
and number of frames), disable cache entirely and generate the textures
on demand

Change-Id: I157e5cdde2aab1d82d980d77cbedd9f127c83a1d
bootanimation: performance enhancements

This patch implements two simple performance enhancements, which
might benefit devices. They are completely opt-in by setting
the following variables.

  * TARGET_BOOTANIMATION_PRELOAD: will preload the bootanimation
    zip to memory; this is handy on devices where the storage
    might be slow. By preloading it, we get quick access to the
    zip file, and the animation doesn't stutter.

  * TARGET_BOOTANIMATION_TEXTURE_CACHE: allows maintainers to
    force texture cache on/off.

Also fixes the sign warnings related to int / size_t comparison

Change-Id: Ie92d1b0aa90b43ba39c368a2a33657a60c3a64b5