Power menu: allow enabling user switcher

Change-Id: I089efbf2bec2339cb2630e597aa3778b6100c9c0

Conflicts:
	core/java/android/provider/Settings.java
Framework: Forward port Power widget fixes and fix disabling

This commit fixes the ability to disable/hide the power widget on CM10.1, hide
the widget by default and forward ports a few other related fixes:

Author: Danesh
1) Notification Widgets : Fix vibration
The initial value of the array determines how long till the vibration starts,
and second value determines how long to leave it on till.

Since config_virtualKeyVibePattern is in an overlay and we cannot rely on its consitency,
we check the length of the array, and based on it execute the appropriate vibration.

2) NotificationPowerWidget : Snap widgets
Snap widgets in place, rather than allowing partial widgets

3) Framework Track Control : Switch from broadcast to audio service
Ordered broadcast is unreliable. Switch to using the Audio Service's
dispatchMediaKeyWithWakeLockToAudioService as it sends the event to the correct receiver.

4) AutoRotateButton : Minor cleanup
Use setRotationLock to avoid code duplication and staying consistent with framework

Change-Id: I0b5d1853781a7e6541a4a6283e13f8072d9972b3

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Framework: Forward port Battery light support and fixes

Change-Id: Ic81d3ffb7548c7b7e34ffecd2f9db781f13b705d
Forward port Status Bar interface

Patch Set 1: Signal / Clock / Battery / Notification Count
Patch Set 2: Updated commit message

Change-Id: Iecd4bb06b95b14888916331f5d36327f3206aeef

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
4.2 Transition: Notification Header datetime click

- Fixes tiny clickable area for much smaller 4.2 date string
- remaps clock behavior:
  - click does open deskclock now - same as clicking clock widgets now does
  - long click jumps directly to alarm setup

Change-Id: Ic4e3f623ef7b6bf4116242b479c681f2866b4c9c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java
Fix status bar Clock events

Change-Id: I675d92d8f9bb497c9299867f62873d309def4fc4

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
[Frameworks] Add clock styles and Clock color picker (1/2)

This commit is a combination of CM AOKP and SLIMROMS work

features:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- Fully customizable date in style and format
- Fully dynamic settings

Patchset 2
- cleanup

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
Fix update am/pm style on statusbar

- change works now on the fly not only after reboot

Change-Id: I2c202c35086878008ae23303ed07abc28614ffca
Fix Notification Clock Click events

Open clock when clicked on Time and Calendar on date
Opens Alarms when long clicked on Time and Date and Time Settings
when long clicked on date.

PS3 : Tabs!

Change-Id: Id9cf405a631a8122230e8585a13187d39a3cabda

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/ClockStock.java
[Framework] Port BatteryBar (2/2)

- Adds Battery bar with following features
- location set
- color
- aligment
- thickness
- animation

- dynamic slim settings

Change-Id: Iacb3e38505b0ab30bb3f9df54231aeb2c79c20f1

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Prefs.java

Minor fix.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Prefs.java
Frameworks: Optimize more and fixes

Batterybar this time

- unregister observe
- fix another old old glitch in center mode
- code cleanup

cheers

Change-Id: Icddcfe7664b24dfb54ea45c34ce1b179fc368ef2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryBarController.java
Fix Battery bar 2dp and 3dp graphics glitch

and a bit codestlye

cheers

Change-Id: I7e01c351fdfc3e3f5adfaab9eba870a4b022cb47

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryBarController.java
Port Dotted Circle Battery (1/2)

Fixed the tabs hopefully

Patchset 4
- fixed last tabs

Change-Id: I842929b74116cadbfbbbbf221c9cccc0dc885838
Change batteries to AOKP.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/res/layout/system_bar_notification_area.xml
	packages/SystemUI/res/layout/system_bar_notification_panel_title.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java

Change-Id: Ieb8c55597e2a034ae776647ef7d038aed30c7fbb
RootBox Speedometer Battery Icons (2/2)

All Icon credits: @olivergeith
RootBox SquareMod Battery (1/2)

Icon Credits: @olivergeith
Add circle gear to display options [2/2]

PS1:  Fixed whitespaces and tabs
PS3:  Resized hdpi icons to 27 pixels
ps4:  for x in `find packages/apps/SystemUI/res/ -name '*.png'`; do optipng -nc -nb -o7 $x; done

Change-Id: I46c4baa636ecc09b80f85fbb667a2228e4551536
Add CM skinny battery back.
Fixup battery text so offset battery looks how it should and cm battery does also.
Carbon battery [1/2]

Thanks to @olivergeith for the drawables!

Signed-off-by: Andros Rosa <andros2011@gmail.com>