Frameworks: Port BatteryBar (1/2)

{x} Adds Battery bar with following features:
{x} location set
{x} color
{x} aligment
{x} thickness
{x} charging animation

Change-Id: Ie9a168121dc569ec3af068a4bda6b46a4e896b2d

Frameworks: update battery bar default color to match kitkat ui (1/2)

Change-Id: I4fc0b51abb29ac0a9f0b86e4d0ad3519f697b0f6
Frameworks: Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
A little Twisted Style
Updated drawables for navbar

Replaced old icons with edited and centered kitkat ones.

Change-Id: I9d996c19763c6e46c5495e790955a35f65cdfde9
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_lights_out_dot_large.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_lights_out_dot_small.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_lights_out_dot_large.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_lights_out_dot_small.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_lights_out_dot_large.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_lights_out_dot_small.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent.png
SystemUI: Allow theming battery via theme chooser

Change-Id: Ifbf128989d26e7b843e5140673405b60c12f90d5
Make notification_header_bg a .9.png for better theming

Change-Id: I477872ac49b1bbb77e44b9aa9bedd4d27643ea4f
Use .9.png images for quick settings tile background.

Change-Id: I17cd77006e8da2fe629d63e0932c88041e81f07c
Advanced reboot enabled by default (1/2)

Change-Id: Ie8ab34ecc532d14d296e33fa568e6cf3ebc681e8
systemui: Use the same color for circle battery than clock color

Patchset 3: Fix code derp

Change-Id: Iaa7b778b705468996079fe600821eeb94a6ecb28
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
modify config values in frameworks and systemUI

Change-Id: I32b884b032e0ddeb701103e361840559daea2a2b

Conflicts:
	core/res/res/values/config.xml
increase touch sensitivity

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80
enable market restore

Change-Id: I79067023cd1b3575bad14fae752049622d11c100
Speed up orientation rotation
Active display: Ability to turn off the screen, when a not clearable notification is present

Removing the last clearable notification in AD turns of the screen. But if there is a not clearable notification, there is no ability to turn it off directly.
This patch adds a power target on place of the 'clear notification' target of AD.

Change-Id: I807cca4c293ed732b441cfdcca50957b427809fa
[1/2] Base: Pimp up ActiveDisplay

This is a squashed commit of the following:

- Active display: turn off display if device gets pocketed again
  https://github.com/CyanKang/android_frameworks_base/commit/3c139633e2cb341452320207e93fd10b480b65ed

- Active display: Option to change display timeout
  https://github.com/CyanKang/android_frameworks_base/commit/31a3c7dced93bda9501915ea87f28f8fd541b650

- Active display: Add some log output
  https://github.com/CyanKang/android_frameworks_base/commit/5be6bd59c27b0994b2459e4fe360d35c43349929

- Active display: Add threshold to proximity sensor
  https://github.com/CyanKang/android_frameworks_base/commit/fc4561bf1e78d656e37b6bc51340767e1ffa03f6

  Display will only be activated if the proximity sensor was covered for 5 seconds or more.

OmniGears part: https://gerrit.omnirom.org/#/c/2818/

Change-Id: Ib934157da195eb307c3c852de3d0549ad06bd004

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active Display: Add some synchronization

Change-Id: I713ab506307efed10f1e1045f0fc2f975fba91cc
Active Display: Sort notifications by newest to oldest

Change-Id: I08aad7743b9c2f793d48266d7e6f648a78432d78

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active Display: Fix Derp

Change-Id: If6c89f3dd7c8f2c6434358750c7ed5732fc88066
fix build
[1/2] SystemUI: Add time-context headers to the notification header

This commit adds image headers to the notification panel header,
based on the date/time. There are pictures for morning, afternoon
and night, as well as special events like Christmas and new
year's eve.
More will be coming, with eventually a way to use an external
(as in, Internet) provider for those pictures.

Change-Id: Ie3321e9a3e0637d6ba8094dd46aee36c41354713

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java