Global Actions, Expanded Desktop framework Eos and CyanogenMod Profiles removed from global actions.

Summary: Change-Id: Ic48b46a4009f194fdb6993474d82622b885df449

Test Plan: Implement AOSP mode, clean up if needed

Reviewers: Mustaavalkosta, michyprima, rlasalle15, randall.rushing, synergy, Roach

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D235

Conflicts:

	core/java/android/provider/Settings.java
	core/java/android/view/IWindowManager.aidl
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/wm/WindowManagerService.java

Change-Id: Ic48b46a4009f194fdb6993474d82622b885df449
Screenshot scaling framework

Summary: Change-Id: I65f341b1ccc52178af0f6b462f3351f8025fe06c

Test Plan: Depends on D252

Reviewers: Mustaavalkosta, michyprima, rlasalle15, randall.rushing, synergy, Roach

Differential Revision: http://review.codefirex.com/D253

Conflicts:
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
Fix rotation issue when using config_lidOpenRotation

=> only use the config_lidOpenRotation condition if docked.
Because when undocked now the LID is considered "OPEN" and the config_lidOpenRotation is being used at all time if >=0
Only the asus tablets are using that option, so it should be pretty safe to go with that.
It shouldn't change the previous behaviour.

It was working before we integrate the lidpatch into the TF101 kernel,
most likely because the lid was considered "CLOSED" when undocked.
Now with the lidpatch, the logic is inverted compared to before.

config_lidOpenRotation is still needed to have the proper
orientation when docked and prevent the screen from rotating,
so we shouldn't discard that option on devices with docks.

Change-Id: Ia7f9ed79b04dd91440d883c2f53e839258dacb02

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
config: add missing hasTouchpad bool

Change-Id: I01c3ab36d47a63a182aa840e9a671afaf5873b43
SystemUI: add style for battery/dock battery text

Change-Id: Iaf4c1619efc92786449e9a5ae164f749d55a871b
Revert "config: add missing hasTouchpad bool"

This reverts commit c660767722b9ab0ada09a8a4b9702263fa3df1f4.
PORTED: Add dock special key functions support

Missing: Notifications & brightness+/-
Credits: Donald Munn

Change-Id: I669be1ef6eead96354bdaa587f4c35ae90a431c5

Conflicts:

	core/res/res/values/symbols.xml

Conflicts:
	core/java/android/view/KeyEvent.java
	include/androidfw/KeycodeLabels.h
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardViewBase.java
Fix missing imports in BatteryController

Change-Id: I1db8e8c0743971fb0d2bfacfa413b560b8df1d00
services: power: fix sony illumination bar

Change-Id: I0519b316b723add6d92292dd50e5ea27a53c1a9c
Hot reboot support

Change-Id: Ie6f1f6602f1495c18c2fb3f67353a0ee67b278e6
Add dock battery support

Change-Id: I6571c409da721bdfc4360d89383c2abd592b2b99

Conflicts:

	core/java/android/os/BatteryManager.java
	services/jni/com_android_server_BatteryService.cpp
Add Brightness+/- function support for dock keys

Change-Id: Ib9d9b04c9a2bb9fd2bf2052ad984590b918d5406
tf101: Fix Photosphere FC

Photosphere is setting a few parameters "blindly"
while the API says it should check the device capabilities first.
On TF101 the camera HAL doesn't handle FLASH_MODE & SCENE_MODE
and so it sends the required RuntimeException for these which makes PS to FC

=> check device capabilities & ignore these 2 parameters if the device doesn't support them.

Change-Id: I4848f6f144c5b1f56238b7d3893020483f434dbd

Conflicts:

	core/java/android/hardware/Camera.java
Fix system crash when changing dock keyboard layout

(ctrl+space shortcut)
http://code.google.com/p/teameos/issues/detail?id=259

That should prevent the crash and allow the feature to work
Can see about adding the Toast later on maybe.

Change-Id: I53e8b35be1695b2d8957e07e93f916fcb4c6e475
Fix clock digit cut on lock screen for large tablet

Change-Id: I06877163864d5def8241dfef3276081a45940c64

Conflicts:

	core/res/res/values-sw720dp/dimens.xml
Fix autorotation sensor loop being reactivated even when off

The sensor loop was reactivated even if turned off after a wake up
=> consider it disabled also if !mEnabled
+ turn debug mode on in case there's another issue.

Since the current autorotation sensor loop is generating 3-4% cpu eating,
we really need a way to turn it off for good for the moment.
System_server now seems to stay at 0.0% cpu with this change & autorotation off on TF101

Change-Id: I5ed3c95809f6d789222819466dacc625ac2d9f1d
Add config to allow to decrease suggested wallpaper size

Current suggested wallpaper size is big on TF101
and it is responsible for some launcher scroll lag.
This will allow to make the wallpaper behave a bit and reduce the lag.

Conflicts:

	core/res/res/values/symbols.xml

Change-Id: I162436d4ed9196b6f516c202ca362abc755f9010
Modify BatteryController to be generic + add Dock Battery support

Change-Id: I19475cc03ab27edb0a0e7fbb58c0f1a8b5ac2368

Conflicts:

	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
Add hard keyboard layouts for live switching

(adds the working layouts from EOSCC)

Change-Id: I235870633ab6f17061f476220b283c4d871be7d7
config: add missing hasTouchpad bool

Change-Id: I01c3ab36d47a63a182aa840e9a671afaf5873b43