QuickSettings: Invert long click and click actions

Change-Id: I49acc7d3c473debd33b2491f4dde15d185f59c52

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
QS: Add loading when toggling state, and longpress brightness

Change-Id: Ifa133e15259b45da4c625ce47b3f12209bcd1b94

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
QS: Add flippable tiles

This commit adds support for tiles that can be flipped to reveal
more information, as well as a two flippable tiles:
 - A Wi-Fi back tile displaying the current IP address in case
   you're connected to a Wi-Fi network. Tapping the back of the
   tile opens the tethering settings, if supported.
 - A Bluetooth back tile displaying the number of paired devices,
   and tapping it toggles discoverability.

This commit also moves the loading spinner to the BasicTile, as
it is only supported in basic_tile layout.

Change-Id: Ic08b08a97c3dd999b1915c7bb108c850a2cbcd9b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java

Conflicts:
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
framework: always show the rotation lock in the status bar

Change-Id: I547b201d5abb135cd74a311eff645126f1159da3
Quick Settings: remove unneeded casts, update resources when asked

Ported from:
http://review.cyanogenmod.org/#/c/29331
http://review.cyanogenmod.org/#/c/29350

Change-Id: Id00ebdc4e4c5a2a3e7edc21e2e51468d9bc0d59a
Immersive mode on quick settings based on PA commits

This adds the ability to toggle statusbar / navbar via quicksettings (former expanded desktop), but
using the new 4.4 APIs that allow a swipe-up, swipe-down gesture, to restore bars.

Credits to CM project for the implementation
http://review.cyanogenmod.org/#/c/53468/

Drawables by Arz Bhati

Token from PA

Change-Id: I62f782b7f64c8d320a2364dbff2fdb2dfe617f69

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Base: QuickToggles (AOSPA) modification

this commit base from
https://github.com/AOSPA/android_frameworks_base/commit/1405aca50a1854a4b547fa699efe514a852e5c3c
with major changes to OmniRom

Also squashed commit: SystemUI: Make QS tile reset more user friendly
Author: crondog

Icon Image by CM team

added UsbTether Tile
added Network Type on RssiTile
added dynamic column changes
add back FlipTile
added 2 fingers allowed reorganize (removed in patch set 5)
added long press EditButton to reset
fix AlarmTile clicked after editmode enabled
fix immersivetile on reboot
fix changing textsize in dynamic column changes
fix header
fix RotationTile not showing
added VolumeTile flip into RingerTile
added SyncTile
added SleepTile
added TorchTile
add permission for SYNC
FlipTile works now
rewrite flip logic
change EditButton icon by pulser

video >> https://www.dropbox.com/s/udu0hf7tqfsdlnd/SCR_20131229_202800.mp4

NOTE:
only SleepTile now using basicTile, will change to FlipTile in the future

TODO:
SleepTile Flip into SleepTimeTile
improve animations

Conflicts:
	packages/SystemUI/res/layout/status_bar_expanded_header.xml

Change-Id: If8afe643eac9ed48edd98b6a7d373b257e86d3ef

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java