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
Signed-off-by: Scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
remove duplicate definition

Change-Id: I0332483e3dba5b86bf705906a4f3fa8f97037a97
Signed-off-by: Scott <scott@ubuntu>
Framework: Bring back Volume dialog features (2/2)

Change-Id: Idef106275ae1141e1d6952eea962a692942fdacc
Framework: Bring back Maximize widgets (1 of 2)

Change-Id: I023f079d1761ce99b29886161d150a37dfcc5b1f
Keyguard: Bring back fast unlock

Change-Id: I927426e9078c9cc07cc582c74bc170bff6eb834e
Notification drawer custom background & notification rows transparency (1/2)

Change-Id: Id1509362dc4bd63c6553334c862c7d101af41b10
Customizable Low battery pop-up warning (1/2)

Change-Id: Iacd26b4b111f853853adeaf900c762313aa3e056
Option to enable Notification Light when screen is on (1/2)
This makes possible to enable the Notification LED even when the screen is on

Change-Id: Id939e19563eae1f530f1a2f04aa706dbc9c12567
Alternate default app picker (1/2)
Android 4.4 brings ListView and no more GridView and with this some small changes was made to fit new style

- 99,9% based on @kufikugel 4.3 idea. Thanks!

Change-Id: Iabcecf140e4859c7cdff5ad50ec930007f4bc653
Add network usage stats to status bar (1/2)
PS2:
Get the time delta between updates and use that to show
average bytes per second.

Change-Id: I63771220333a32063f675e6fc38c9aadb6de4274

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/styles.xml
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27
Network stats custom colors (1/2)

Change-Id: I3c95a70273b111c7776f395f7baa60a77cea95dd

Conflicts:
	core/java/android/provider/Settings.java
Network stats: Hide if there's no traffic (1/2)

Change-Id: I8b770c7ad803c063cf995e5f88c8f44e0eeae86a
Frameworks: Slims ElectronBeam get some love (1/2)

Features:
- You can select different crt off animation modes if device overlay does not disable it at all
- disabled
- always horizontal (stock behaviour)
- always vertical (screen collapse from left and right to the middle)
- orientation dependent (means portrait = horizontal animation, landscape = vertical animation)
- some minor fixes/code style improvements to 4.3 implementation

Change-Id: I883d12f1a6e857201f72c6c83e4b974d69769e50
Comment out CyanogenMod electronbean codes to make disable option works
- I've commented beacause maybe i'll return to CM behavior

Change-Id: I18e565268badeee07cf2d6b7be465a41796b054c
fb: add scale down crt animation - thanks a ton to xploidwild

really nice idea...fits perfectly into our animation options
for CRT

Change-Id: I8b3a010a5488bdadf26e94e69e1418d7d81bb905
fb: Add Wifi name to notification drawer when Wifi is connected

compared to 4.3 we do not make this optional any more. If it is connected
it will show up in the notification drawer permanently and behaves same
like the carrier label

Change-Id: I058b6de4e546b4fa9b9cfef6c765664e135de2e2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Status bar brightness control

+ added some fixes to original implementation (thanks mostly cm for that)
+ add multiuser support

Change-Id: Ibc5cc15a9b43eade73670d308d5cc788c93b6210

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fb: add DeviceUtils helper class

for common calls we need later on several places

initial push with only display type support

Change-Id: Ic8856512d8a7540eda3e4ba8d28f3eec3e6961d0
fb: add back notification shortcuts feature + common slim classes

beside our unique slim feature this patch adds

- all system shortcut icons we need for this and other stuff in future
- basice slim helper and constants classes we need later as well
- device utils helper
- preparation for navbar navring and other shortcut features
- and of course our notification shortcuts feature

compared to 4.3 some fixes were added + adapting to 4.4

xxhdpi icons thanks to kroz again

Change-Id: Ie552480007bde649352c699c8ff9ac10e79ed069

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