Revert Added Added Torch Tile, CM Torchapk and Torch Constants
Revert "Remove ringer mode silent from quicksettings"

This reverts commit 1c3741a4ac08240499c08fb3f303ec602ee26a31.
Revert Added Sound-Tile to Quicksettings
Revert "Location tile invert one click-long click"

This reverts commit 3ba7bedb03b830a7392a87e08753b49675a5a57d.
Revert Added Screen-Off tile and reordered tiles
Revert "Always expose rotationLockTile"

This reverts commit cc204850c84f879c5d4aeedbbebb0f8345fc5e5f.
Revert "Always show rotation tile"

This reverts commit 40b6d65db39290f21a36fae7801c430d2b3c0a59.
Quicktoggles - Credit to AOSPA
Immersive mode on quick settings

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 Bhatia

Patchset 2: Rebase
Patchset 6: Fixes from CM

Change-Id: I1f694d87f0364aed7b6951714ea2bfbfd8555064

Conflicts:
	core/java/android/print/IPrintDocumentAdapterObserver.aidl
	core/java/android/provider/Settings.java
	core/res/res/drawable/ic_notification_cast_connecting.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Fix quicksettings issues

Also add rotation tile

Change-Id: I315745ee60030eb8ead4ee1798940b45af91449a
QuickSettings: Immersive: Collapse panels on click

Most of the time users will want to enable immersive mode and go right back to the app.  This simplifies this process by closing
the quicksettings panel after immersive is activated or deactivated.

Change-Id: I7bb154941405e8efb568cf5c3cce92e963539ff8
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Quicksettings: Immersive: Fix collapse panel animation.

Right now it collapse after the ui goes into immersive mode so the collapse animation is not showed.
First collapse the panel then go into immersive mode so we see the animation.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: Icf2925fa517fc077929e02d1f96a8cd51163b809
Fix immersive mode recents animation.

Inspired on this https://github.com/CyanogenMod/android_frameworks_base/commit/be9c31709e2b90bc85ef1814b22df1785515d23d

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
WindowManagerService: Fix application transitions in immersive mode.

Change-Id: If7d3fc3ab566dedc3a5b38cd0a6dc3185f494e20
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Quicksettings: Long press actions.

* Long click action for user tile (opens sync settings).
* Long click action for rotation tile (opens accessibility settings).
* General cleanup.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
PhoneWindowManager: fix navbar behavior in expanded mode after 4.4.2 merge.

Change-Id: I00f814db6c3800b8eb1cf20004ecdfb8d1ee7036
QuickSettings: Tile Actions

    Mobile Data Tile:
        - Click to toggle mobile data
        - Long press to enter data usage statistics

   Alarm Tile:
	- Fix launching alarm on click

PS1: Edit mobile data tile actions
PS2: Fix type in commit message
PS3: Fix bug in Alarm tile implementation

Change-Id: I21eef91114a3119834db7181dc3b35d4eb56c90b
[1/3] Frameworks: Add Network Tiles & Lightbulb Tile

      Add an LTE tile and a 2G/3G mobile network tile.

      The LTE tile requires that at least one (1) of the following configs
      be present in the device's build.prop in order to show:
          telephony.lteOnCdmaDevice=1
          telephony.lteOnGsmDevice=1

      The 2G/3G tile toggles between 3G Only, 2G Only and 2G/3G.

      If LTE is turned on the 2G/3G tile is disabled (shows unknown).
      The reverse is also true, turning on the 2G/3G tile disables LTE tile.

PS1  : Network tiles (LTE & 2G/3G)
PS2-3: Clean up
PS4  : Add Lightbulb tile
PS5  : Add lightbulb icons & permissions
PS6  : Check for LTE support only after device boot completes

Linked commits:
      frameworks/opt/telephony
      packages/services/Telephony

Change-Id: Id64c061227efd557416de312c4e5972725c29e71

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Quicksettings: Sleep tile.

* Click goes to sleep.
* Long click opens display settings.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I3eeae514535e9edff72f233e18d8f8dfaadf3517
[1/2] Frameworks: Combine LTE & 2G/3G Tiles

This combines both network tiles into one tile.
2G -> 3G -> 2G3G -> LTE

Linked commit: packages/services/Telephony

Change-Id: Ia0d8edaec0e920b9ba174ec6ce49c5e7b832a5ab