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
PowerSaver: don't switch network mode if the phone is ringing/incall

Change-Id: Iec617a78ef75223c6e4889f6827ab0127996e5cf

Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
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>
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
move weather images to framework-res

- decreases size of systemui
- allows for access throughout the system without
      duplication

Change-Id: I06e90d39d365587ee15bf1b566ec81b39f79d3b0
telephony: when building apn list, use preferred apn if it can handle requested type

GsmDataConnectionTracker::setupData() does not consult TelephonyProvider when it
picks an APN for mms. It just uses apnContext.getNextWaitingApn() which picks the
first one in the list. On AT&T it picks wap.cingular, which is wrong for LTE.

Since the data connection is made properly, setupData() stops scanning and never
tries the correct APN (pta). The result is sending of the mms just hangs.

This change causes GsmDataConnectionTracker::buildWaitingApns() to first try the
currently active APN if it can handle the type of APN being requested, then it
tried the preferred APN and then the rest of the APN's, in that order.

This fixes the MMS problem since the correct APN (pta) is chosen.

Change-Id: I076b88d42f59241cf468d678ad0e628d0f2d9e8d
Merge "telephony: when building apn list, use preferred apn if it can handle requested type" into ics
Merge remote branch 'upstream/ics' into ics