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/src/com/android/systemui/statusbar/phone/QuickSettings.java
QuickSettings: Harmonize the behavior of the Location tile

Inverts the long-click and click actions to be cohesive with
the other tiles.

Change-Id: I26d11bbdeca9ff31ef3c35127ed72ff3d6c09cbd

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
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
base: added screenshot delete action in notifications

allows deleting a screenshot from the notification
inspired from CarbonRom - initial from CM I guess

Change-Id: I67b7b9a7808ddb8c54ea4f3a45aad6d44833e1df
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
	services/java/com/android/server/wm/WindowManagerService.java
QuickSettings: change signal tile to turn on/off mobile data

There is no method to turn on mobile data with 1-2 touches. Every method
implies that you press 3-4 times, and for me this is annoying.

This commit add the action to turn on/off mobile data on signal tile touch
and long touch to go to data usage.

Change-Id: I17e0041464fabb3cf42faf5680b9945bb63b20d9
base: layout circle battery percent really in the center

There is no need to use strokeWidth in this layout calculation

Change-Id: I68471c5f63b49e815f305bc3d5bd86b67afeb647
PhoneWindowManager: fix navbar behavior in expanded mode after 4.4.2 merge.

Change-Id: I00f814db6c3800b8eb1cf20004ecdfb8d1ee7036
framework: always show the rotation lock in the status bar

Change-Id: I547b201d5abb135cd74a311eff645126f1159da3
Base: QuickToggles (AOSPA) modification

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

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/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/custom_dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java