QuickSettings : Auto-rotate toggle fixes

Use RotationPolicy to avoid unecessary code and stay consistent
with rest of the system.

Change-Id: Id3532c10db5f6fc9c2a97ffb809c2c3674f16918
QuickSettings : Wifi-AP Tile

Patchset 2 : Cleanup
Patchset 3 : More cleanup and old comment removal
Patchset 4 : Switch to the WifiManager rather than Power Widget
             Better state handling between WiFi AP and WiFi
             WiFi now turns on again if it was on before
Patchset 5 : Revert Power Widget change from Ps1, no longer needed

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QuickSettings : Dismiss notification panel upon toggle

Automatically dismisses the notification panel after selecting a toggle,
if the option is enabled.

Patchset 2 : Rename to "panel"
             Rename onclick/onlongclick to mOnClick/mOnLongClick

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QuickSettings: Add light grey QS drawables for use in Settings

Change-Id: I293aaff06e5c604a01138f30297c01d98de9430e
Quick Settings : Fix Sound tile

This commit removes the deprecated VIBRATE related code and uses
the proper 4.x api/settings to toggle the ringer states.  It also
now shows the proper state on reboot.

Patchset 2 : Remove deprecated (non functioning) VIBRATE_IN_SILENT

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QuickSettings : Cleanup receivers/observers

This patchset borrows the idea of a central observer/receiver
from powerwidgets. This way cleanup is a lot easier.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Quick Settings: Add 'OFF' text to GPS tile when off

Change-Id: I8a81e3cf8419a6c2e4305c844b5f6162ed14055d
Framework: Add Quick Settings Sync tile (2 of 2)

- Adds the QS Sync tile (drawables thanks to Björn Lundén)
- Removes deprecated, pre ICS code in Power widget

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Quick Settings:  Make Lock screen drawables consistent

Credit to Björn Lundén for drawables

Change-Id: I77d1b5072484eb1c0ea0c28a2eb88ef0f75e327d
Quick Settings: Cleanup Torch tile (2 of 2)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Framework: Add NFC Tile to Quick Settings (2 of 2)

Need to figure out how to instantiate a new NFC adapter after the
Tile is created.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Framework: Cleanup Quick Settings Sound tiles

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Framework: Add Screen timeout Quick Settings Tile (2 of 2)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QuickSettingsController.java: remove unneeded casts

mContainerView is final and always an instance of QuickSettingsContainerView,
as provided to the constructor. There is no need to hold a reference to a
super-class of it.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Quick Settings: Actually update resources, when asked

Failure to do so causes the quick settings tiles not to be updated to
reflect system locale changes. The tiles remains at the previous locale.

Patch set 2: Remove unnecessary casts.

Patch set 3: Remove one last cast, only possible now that
             http://review.cyanogenmod.org/29350 has been merged.

Change-Id: I42bf8208a2f82dd0f2441685df6a7af2a81b611b
PowerWidget: fix airplane mode toggle

Settings.System -> Settings.Global

Change-Id: Ic1a874ec694e76153d0838fdb81650fe384bae59
GpsQuickTile : Set label correctly

Apply label onPostCreate

Change-Id: Id7fd61fa9ab37257b81167e53c7976310543ea94
NfcTile: rename setState/updateTileState to setTileState. Submitting on behalf of dvtonder.

Change-Id: I9628e260acf10fb06523c7cb9362ae4eb34a057b
QuickSettings : Cleanup

Change-Id: I044f8c0914c725af5894ffb70e8ac54b6e19dc43
QuickSettings : Filter tiles from default

Filter unsupported tiles from default.
Fixes re-arrange issue found on tablets post reset

Note : Please reset quicksettings after this commit to fix issues.

Signed-off-by: Paul Beeler <sparksco@gmail.com>