Base: change logic for Quick SmartPulldown

taken from cm11

this also fix http://jira.omnirom.org/browse/OMNI-489

Change-Id: I26b97208e47b87ff1b7fe38b093ce78c70be8251
Base: Add OmniUtils

prepare to using One location to check for option support

Change-Id: Id40cb1ca507576e9c5fbd16aa7dff3bdb929c124
TODO: make all option using this
[1/2] Base: QS Ribbon style

Allow choose 3 columns, 4 columns, Dynamic mode, and both (dynamic and ribbon)

Ribbon tiles can customized via OmniGears parts
allow can choose Ribbon tiles to linking with QuickSettings or independent

OmniGears parts taken from CyanogenMod (thanks)

also introduce Flip vertical on Ribbon mode

add new Image for Flip Tile
add Wifi AP enable/disable from WIFI Back tile
Split Ribbon mode and Dynamic mode into separate option

Change-Id: Ic622ae7cc5cefbe0265c504c554bd6c0d27a995a
Base: Add Battery Flip tile

Front tile stay like default
Back tile :
1. temperature
2. voltage
3. condition

Change-Id: I28cdefc65f47de6f07395cdacb7fb708b8d2e76c

Conflicts:

	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsDragListener.java
SystemUI: Forward port Statusbar Clock and Date actions

Port of http://review.cyanogenmod.org/#/c/27795/4

PS2: Cleanup and address comments
PS3: Remove unused variables

Begin old commit message-----------

Patch set 1-2: Initial port
Patch set 3  : Fixes date click action
Patch set 4  : Remove unused import

Includes:
- Add onClick action to notification clock and date
  In expanded StatusBar
  - clicking clock opens alarms
  - clicking date opens calendar - today selected
  Id: I850732dcca0e65af59ce009aaf9f7ba18bcaf915

- Add onLongClick action to notication clock and date
  - As discussed with ciwrl on google+, LongClick opens DateTimeSettings
  - Moved on-touch color change to superior xml solution, as suggested by
    Andrew Boren <preludedrew@gmail.com> here: http://review.evervolv.com/#/c/3676/"
  Id: I1fae71e347ffcb786227ba0b2651a66f2df35e27

- Add SET_ALARM permission for SystemUI
  If one or more third-party alarm clock app is installed, clicking clock should
  open an app chooser for the alarm clock. However, permission for
  com.android.alarm.permission.SET_ALARM is required to make this behaviour
  work properly.

Change-Id: I8006e57a953fe0c4be480e0aa27a4c28c672f982
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
SystemUI: don't crash when user disable default apps

If the user has disabled the default clock or calendar application,
System UI will crash when the user clicks the Clock or Calendar
from the notification bar. This patch fixes the issue.

Change-Id: Icdc3679cdd35b5b3a24086e1ada67d0defabc5cb
Option to disable safe volume warning [1/2]

* This message appears when using headphones and listening to music
* This setting will be applied at boot, so a reboot is necessary

Change-Id: I64e097d548843ca4116373ecc44e45da95c207a8
Gesture Lockscreen [1/2]

Change-Id: I370d40d47459d64adf709d4caee1c27c75922cfd

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/res/values/strings.xml
fb: change alert dialog to new 4.4 UI guidelines and add

Holo / Holo.Light switch to reflect it proper on the
different app styles

Change-Id: I0fb7cd06d19a8eef66551e9f0281d60f33b2efe6
Bye Bye Holo Blue Light
framework-res: Change URLs to be holo gray

Patchset 1: Use holo gray
Patchset 2: Back to holo blue
Change-Id: I7f1ff5885e932f0e51bf56b717f76f662794f23b
Fix remaining dialog dividers

Change-Id: I0b4d2d0706f3393933e40d9c70b62aa3c9b68ed5
Dark images adjustments [TRDS]

Change-Id: Ie038c4a1aa535708c23f099fb5e836407e3d1603
Improve dialogs and menu popups [TRDS]

Change-Id: I54da4ac0236dfe16ee964ccb070944206d0544e2
Consistent glow for menu dropdown and popup [TRDS]

Change-Id: I248872cbd67471495f8b95036d995f25e2ca4459
Privacy Guard Slim version (1/2)

Change-Id: Ifac5724954831a65bde6d0c4e6b9e947dc4f4c39
[WIP] Multi-window

[[[ USE PS 18 IF YOU WANT TO TEST - WORK IN PROGRESS ]]]

This is a big work in progress, which currently has some bugs,
but begins to look okay.

You can already multitask a little bit, by using the
app switcher and long-pressing an icon, then select "Add to
Split View".
Last window touched gets the key focus.

Code is very ugly, I know. Don't merge it, don't use it
for now. Unless you want to make your code ugly.

Enjoy :)

Change-Id: I4a03a84539fd3ac1273f0d3503fe8fafcd16be26