AF: Fix display of units.

In Afrikaans we do not put the unit infront of the size ie MB30
should be rather 30MB

Change-Id: I16c1fcf22b3f66a2b14429ff15afa07fcb9e9156
Merge "AF: Fix display of units." into cm-11.0
Reimplement expanded desktop on top of immersive mode.

Change-Id: I8ed08afebef0bb08a2694b1dbdd6dd1887b5b065
SystemUI: fix RecentPanel position in landscape mode.

In landscape mdoe we forcing ltr layout direction. This cause
call to resolvePadding too late and discards paddings
computed by fitSystemWindows. To workaround this we can catch
onRtlPropertiesChanged and force executuin of fitSystemWindows
one more time. To fix scroll issue after padding will be setted
we calling scrollTo with correct position.

Change-Id: I0ac10ac3554142b15114ce7588b61debda27235a
SystemUI: fix recents animation in expanded mode.

Change-Id: I63b83763933468c4f1953341aad4317d142e8bb4
NavigationBar : Customization

Includes:

- Allows user to customize navigation bar.
  Features :
   - Choose from 1-6 # of buttons
   - Re-arrange / assign buttons
  Id: Idc9f5f401f15d207504e49de47666bb5510a06ca

- Navbar : Rework logic for determining orientation
  This patch introduces better checks for hybrid ui's.
  This should fix issues of small buttons due to incorrect ui determination
  Thanks Rolf Arne Schulze for testing :)
  Id: If5b61dc4764a98deedb5b801d11451fed2488cba

- Make navigation bar ready for per-user configuration.
  Also clean it up a bit.
  Id: Ic10bd161fce53bf30048a0cb927dcf1e2bfa7774

- Fix layout on N10
- Remove uncessary padding and logic
- Phone fixes
- Phone padding fixes

Change-Id: I8903b85b6ee8581f8564d9dc7b0d40f645d7647a
Revert "PhoneWindowManager: Delay setting updates during window animation."

This reverts commit 00295091b558ca8ea17cd5786a08865c57dc6675.

Conflicts:

	core/java/android/view/WindowManagerPolicy.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/wm/WindowAnimator.java

Change-Id: Ice177d099a9865848c9919f3452bb0f1d28ae81a
frameworks: Report 100% battery level

On devices without battery,the level is
reported as 0 which causes certain apps
which check battery level before executing
to fail.

The patch ensures that such apps work on devices
without battery driver.

Change-Id: I13b056ff52455f27de52ad1e459aa3d8c44b43a0
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
frameworks/base: Fix various aliasing violations

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
frameworks/base:(Hack)Print the content of textview

This hack allows us to print content of Textview
when ro.debug.textview is set . This allows us
to capture the contents of textview which will help
us capture benchmark results for thirdparty apps
which use TextView to display results.

Change-Id: I3500cc35b37c08d93e24ccaf12dcce359fc84da2
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

Signed-off-by: Amit Pundir <amit.pundir@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: Amit Pundir <amit.pundir@linaro.org>
frameworks/base:(Hack)Print the content displayed with Canvas.drawText

This hack allows us to print content that displayed with the drawText
method of Canvas.java when ro.debug.drawtext is set to true.

This allows us to capture the contents on the screeen
which will help us capture benchmark results for thirdparty apps
which use drawText of Canvas to display results.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
base: Fix build after Parcel ABI fix in Binder

Adapt code to the fact that writeString16's first parameter
is now an uint16_t* to match the old ABI

Change-Id: I138af645c877f343f0490152b9702698b7d36582
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
frameworks/base: Fix compile errors

Fix ISO C++11 incompatibility in TextLayoutCache and
aliasing violation in FontRenderer

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
load non opengles wallpapers for platforms without hardware graphics

Platforms without a hardware graphics, frequently get
"Unfortunately, System UI Crashed" pop-up message on boot-up, which
is due to an Android Runtime Exception
"java.lang.RuntimeException: eglConfig not initialized" when SystemUI
fail to load OpenGLES wallpapers.

This patch make sure that Android runtime checks for GPU availability
(by checking a build time property "ro.nohardwaregfx") before loading
opengles wallpapers.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
ProcessStats: Handle changes in the scaling frequnency

Switching from MP to IKS mode results increase in number of operating points
and results in bug #1183781 . The patch makes sure that whenever the available
scaling frequency changes it resets the existing values and sets them as per the
new values.

Change-Id: Ic74cdc2015f3c4ddd61cb116d1f4b4ed1204a3bf
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
frameworks/base: Fix build in ISO C++11 mode

Change-Id: I5d3ba44cc9faa5826a5a0a6b37c8f0eb2872e1ac
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Revert "frameworks/base:(Hack)Print the content displayed with Canvas.drawText"

This reverts commit acd950f8afadf5d8136f0b27c9d65dba6abce2d0.

android.util.Log usage seem to have changed in 4.3
This patch need to be redone.

Change-Id: Ib15b5becf04639f53a6ca48d2119adbb1ff4984c
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
hwui: Fix build in ISO C++11 mode

Make sure log calls can't be confused with C++11 string literals

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