Add 5 new batteries to sysui for selection in romcontrol
SystemUI Notification bar counter.

Credit to Cyanogen.

Displays number of pending notifications in the status bar.

I changed the ugly red to ics blue. I think it looks awesome.

Change-Id: I656ee96a9960f5ed13888a155a5aa95136dbbbf8
ime switcher notification: remove reboot requirement (1/2)

patch set 2: fix uri, remove old comment, add handler

Change-Id: Ie21fed15c2cc865ae2d164fa485cc44d69ef5452
updated notification overlay image
Commits from linaro to fix builds with newer toolchains and options
frameworks/base: Assorted build fixes

Assorted build fixes for gcc 4.6 and -DNDEBUG

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix aliasing violations

This makes it possible to build the code without
disabling the strict-aliasing optimization in gcc.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libstagefright: Fix aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix various aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

fix build break when using prebuilt toolchain

When doing a build with the prebuilt 4.4 toolchain a duplicate
symbol error is hit. This is due to the fact this symbol is
really defined system/core/include/system/window.h

Change-Id: I9dac8e4f483422a7d42ab0d305ece61197f936b9
Signed-off-by: Andy Doan <andy.doan@linaro.org>

opengl: Enable -flto and -ffast-math

OpenGL can be built with -ffast-math and -flto without
regressions. Enable them for an extra speed boost.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: Iec2950b1d8fef30ef5530551b094e97c7ee91fa7

opengl: Work around linaro-gcc bug 879725

linaro-gcc 4.6-2011.10 ICEs when building matrix.cpp with
-fmodulo-sched when tuning for cortex-a8 (cortex-a9 is ok).
Until the compiler is fixed, disable -fmodulo-sched if we're
targeting cortex-a8 based devices, such as iMX53.

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: I2cd8eee31b6fda507188ca709b3d4c00c6d01404

ensure compiler supports -flto

Change Iec2950b1d8fef30ef5530551b094e97c7ee91fa7 enabled
-flto in all builds. However, not all compilers support this
option. This changes ensures the flag is only used when its
supported

Change-Id: I29c1ae41eac6c5c03c944b1200b22171bcbc0719
Signed-off-by: Andy Doan <andy.doan@linaro.org>

frameworks/base: gcc 4.7 compile fixes

Make sure we can compile even with gcc 4.7's added
strictness

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

stagefright: Fix build with gcc 4.7

Make it build with gcc 4.7's added strictness

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Make sure Singleton instantiations are exported

This fixes using Singletons across shared library borders
with gcc 4.7

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libstagefright: Work around gcc 4.7 bug

When using gcc 4.7, use -O2 instead of -Os to
work around compiler bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52294

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Compile fixes for ISO C++ 11

Fix build in ISO C++ 11 mode (where char16_t is defined and different
from uint16_t)

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libmediaplayerservice: Fix aliasing violation

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

voip: Fix aliasing violation

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

rs: Fix aliasing violation

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

visualizer: Use -fno-strict-aliasing for now

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libmediaplayerservice: Fix crash caused by strict-aliasing fix

long a[] and long *a aren't always the same...

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix build in ISO C++11 mode

Fix various incompatibilities with ISO C++11:
- Assumption that char16_t is defined to uint16_t
- constexpr usage
- macro constructs that could be interpreted as string literals
- enum typesafety

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix build without ISO C++11

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

libeffects/visualizer: Don't hardcode -O2

Only put -O2 into the compiler flags if no other
optimization is requested

Change-Id: I973e27c31c34e9d2cb7dbf2f246646da04462d26
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

base: Fix build in ISO C++ 11 mode

Change-Id: I339847235769ac695acd0bbc7079985a9e2fcb05
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

BluetoothEventLoop: Fix build in ISO C++11 mode

Conflicts:

	core/jni/android_server_BluetoothEventLoop.cpp

Change-Id: I0e1b1467ede8e703e911ac4f06e3fd28e7d7e385
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Evan McClain <aeroevan@gmail.com>

libstagefright: Disable strict-aliasing for h264dec

Change-Id: I786c66a09dccf9434800ea2de76bf855599c9706
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

GLES2_dbg/test: Build with -fno-strict-aliasing

Build GLES2_dbg/test with -fno-strcit-aliasing - the code looks like
more aliasing violations will be added, and performance of tests
isn't overly important

Change-Id: Ib23a0c6a881b78ba79d116efa5a1a859d11426b7
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:

	libs/rs/driver/rsdCore.cpp
	media/libmedia/MediaProfiles.cpp
	media/libstagefright/matroska/MatroskaExtractor.cpp
Framework: Adds option to change Scroller Friction (1/2)

Reducing scroller friction allows scroller to fling longer and harder,
Increasing does opposite.

Change-Id: I80a3fe093672dc14df7e34d367c415878d5a143b
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1
Revert "Framework: Adds option to change Scroller Friction (1/2)"

This reverts commit e3c3d600de3103198384df260e052c5b1109dbc2.
Scroller: Adds options to control scroll friction and velocity (1/2)

I recommend trying 25 for friction and 20 for velocity to
get and idea of what I was looking for.

Do we want to come up with an aokp preset to these?
Right now they are set to stock as default.

Change-Id: I6d15a6bbc25c0acef4928e5c2364de276e91610c

Conflicts:

	core/java/android/view/ViewConfiguration.java
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
Weather: fix weather toast displaying on each refresh / code cleanup (2/2)

Change-Id: Ibabc93b651e6797276366c6c417689cf41a2ad7c
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
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
bluewall firewall (1/2) MAN MERGE

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

patch set 2: default to 0 to disable

Change-Id: Iaf4661f9cda9ab257ec2282f01f2a2f240ed21e7

Conflicts:

	core/java/android/provider/Settings.java
	services/java/com/android/server/NotificationManagerService.java
Remove duplicates from bad cherry
new notif. overlay image
add missing code for notification mute (bluewall)