frameworks/base: Disable H/w GL rendering based on property

"ro.nohardwaregfx" can be set to true to have software
rendering.The property could be set for each board by adding
the 2 lines to device.mk file.

PRODUCT_PROPERTY_OVERRIDES += \
            ro.nohardwaregfx=true

Based on ICS patch from Vishal Bhoj <Vishal.Bhoj@linaro.org>

Change-Id: I547258ee021034102fe8d8e7cc0cdfa8a63df298
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Ethernet Configuration Managment for JellyBean (3-1): frameworks/base

Change-Id: I633b9fa94ed5feee269b6364a5d4362fa9a5ee1d
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
Revert "Ethernet Configuration Managment for JellyBean (3-1): frameworks/base"
Temporarily reverting the commit.We need to merge the ethernet patches from multiple projects together.

This reverts commit 7e485f08fa0fe3810d9b2ef4ffeaea578086e4cf
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: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@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

Change-Id: Ia83db6a0be18f52e8f274c581c3b42f031b39247
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Ethernet Configuration Managment for JellyBean (3-1): frameworks/base

Change-Id: Id114c5efa6c45bb49e464f850c3aa0ec28183768
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
frameworks/base: Fix syntax error introduced by ECM patches

Change-Id: I452476e8b07fd72a09d93f58a2899b371aed5c88
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
api/current.txt: Fix 5 more syntax errors introduced by ECM patch

Change-Id: I7ee00e53d2c693fa082f373ebf743f235cd591e2
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
api: Sync the API description with the actual API provided by ECM

Change-Id: I6eab024a4d8f1e7711bdcae5fc557065a6b1bf5c
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Fix error when cpufreq is loaded at runtime

Change-Id: I4691bbfbb1a49b130ba4b9a0ed5ded3601e220fc
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>

Conflicts:
	cmds/stagefright/SineSource.h
	core/jni/android/graphics/TextLayoutCache.cpp
	core/jni/android_util_Binder.cpp
	core/jni/android_view_KeyCharacterMap.cpp
	libs/gui/SurfaceTexture.cpp
	media/libstagefright/OMXCodec.cpp
	services/audioflinger/AudioResampler.h

Change-Id: I185b97f07e89bed93b92546bc0fdf895bd0cc92d
For bug #1042239 ECM doesn't work on Android Jelly Bean

Change-Id: I507059dc843c5d505c44907f003c158002bb2129
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
Revert "For bug #1042239 ECM doesn't work on Android Jelly Bean"

This reverts commit ec3c51bd260bee9342a4a1a9543e2e5304cd2977

This patch caused https://launchpad.net/bugs/1042239.
frameworks/base:(Hack)Print the content displayed with WebView

This hack allows us to print content that displayed with
the loadDataWithBaseURL method of WebViewClassic.java
when ro.debug.loadDataWithBaseURL is set to true.
This allows us to capture the contents of WebView which will help
us capture benchmark results for thirdparty apps
which use loadDataWithBaseURL of WebViewClassic to display results.

Change-Id: Id8e61e072b867501ef2e0e8eb2f6fb30b13206b4
Signed-off-by: Yongqin Liu <yongqin.liu@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.

Change-Id: Ic114fbe8d469ff27df57c585d3af322c703b4b83
Signed-off-by: Yongqin Liu <yongqin.liu@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>
Expanded desktop capability (2/2)

	Originally authored by Jesús David and ported from
	ParnoidAndroid ICS branch
	https://github.com/ParanoidAndroid/android_frameworks_base/commit/06ade9b397356e21a798dfd3f5a6dea9115c0855
	https://github.com/ParanoidAndroid/android_frameworks_base/commit/3b6ee6e7ee0a124eec5841763e05eb57c82422e6

	Abiltiy to hide navigation bar from TeamEOS

	Adds a option to settings to add a expand desktop option to
	the power menu.  By default the option does not show in
	the power menu.  When used it hides the status bar and
	navigation bar (if there's any).

	Screenshots:  https://www.dropbox.com/s/izz57ux01c6hve2/Screenshot_2012-10-14-12-08-24.png
		      https://www.dropbox.com/s/c7fycy3bwpe76np/Screenshot_2012-10-15-12-11-59.png

	Patch set 2:  Fixed commit message

	Patch set 3:  Fixed commit message.

		      Added xhdpi drawable icon.

		      Fixed a typo in GlobalActions.java where it
		      said "only shown if enabled, enabled by
		      default" to "only shown if enabled, disabled
		      by default" since the current setting is to
		      disabled by default.

	Patch set 4:  Fixed name of xhdpi drawable icon.

	Patch set 5:  Fix capitalization of string.

	Patch set 6:  Rebase

	Patch set 7:  Squashed commit: https://github.com/zigackly/android_frameworks_base/commit/48ff745c86bbb16b9d53fb726ff5c1bbe855e960

	Patch set 8:  Whitespace

	Patch set 9:  N/A changed wrong thing.

	Patch set 10: N/A changed wrong thing.

	Patch set 11: Disable show on keyguard when phone is locked

	Patch set 12: Fix to say Expanded desktop

Change-Id: I2dd395c7f27789311b09cd429359915287f97d2d
Merge branch 'jellybean' of CyanogenMod/android_frameworks_base into jellybean