Modified Quicksettings to act just like Power Widget. Fixed Power Widget Sleep toggle with the help of Danesh M and David van Tonder

The code for QuickSettings has been rewritten using quicksettings.QuickSettings and QuickSettingsController classes.

Patch set 1-15: 	Original commits
Patch set 16:   	Re-arrange button order
Patch set 17-20:	Rewritten toggles

Change-Id: I7dcdca925970d816671e60ee01f393d71ce36581

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsContainerView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/LockScreenButton.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/SleepButton.java
Framework: Quick Settings customization (Part 2 of 2) WIP!

This commit will alow loading the Quick Settings tiles layout from
a layout that is configured in Settings.

Patchset 3 - Restore Settings tile to AOSP location

Change-Id: Id4e4353dee68b8ca434dfa64d1f88737792a2e28

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java
QuickSettings : Dismiss keyguard upon ActivityLaunch

Dismiss keyguard if launching activity

Change-Id: I850d719c188faf9e3e06c3944287d817cdacbdd6
QuickSettings : Add torch tile

Patchset 2 : New torch drawables (Björn Lundén)

Change-Id: I0831266d503195ee249a85d0d728bdae321e56cd

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_qs_flashlight_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_flashlight_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_flashlight_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_flashlight_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_flashlight_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_flashlight_on.png
QuickSettings : Add longpress for Torch Tile

Add long press capability to torch tile + Fix string mishap

Change-Id: I760c54b9abfe5e549a29b0f06660a6bf84f1d200
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

Change-Id: I5bd59df37ed3094f5ba253a97fd86aa426b98b39
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

Change-Id: Iec3e59e79c7ed686f8ff33f9cfdeb892ff70b151
QuickSettings : Auto-rotate toggle fixes

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

Change-Id: Id3532c10db5f6fc9c2a97ffb809c2c3674f16918
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

Change-Id: Iaf211db99e45ef464cbc59aa2ee26899f1e44d22

Conflicts:
	core/java/android/provider/Settings.java
SystemUI: Use Settings.Global.getInt to read global settings

Settings.Global.getInt should be used instead of Settings.Secure.getInt
to read global settings.

Change-Id: Icf8b9b2c9f04d4a111e5cc165e090aeb996f91b1

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/NetworkModeButton.java
Quick Settings: Add Network mode tile (part 1 of 2)

Tile drawables credit to Bjorn Lunden

Patchset 1-4 : Initial commits
Patchset 5   : Fix state not showing properly
               Remove old comment
Patchset 6   : Fix comments per Jesús David

This commit also inlcudes a bit of code cleanup and sets the
default tiles to AOSP defaults

Change-Id: I15371989bb2ce977d1b715e52d9c92c27ea108ca

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
QuickSettings : Cleanup receivers/observers

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

Change-Id: I09ff3118cbc1137e2569dcd3e07acb2a3b083eca

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
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

Change-Id: I9f94a1f818ca823c02bb27416bfb047ff4678220

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/SyncButton.java
Quick Settings: Cleanup Torch tile (2 of 2)

Change-Id: Iacd9e58a4e45ed2526bde406c23647e6da9b76ec
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.

Change-Id: I5ad99f1ac8f4730653c9697c2c0d0e86b7d4facd

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
NfcTile: rename setState/updateTileState to setTileState. Submitting on behalf of dvtonder.

Change-Id: I9628e260acf10fb06523c7cb9362ae4eb34a057b
Framework: Cleanup Quick Settings Sound tiles

Change-Id: I45ba7098ef8c58a6e8e232abaa16780cab2df186

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Framework: Add Screen timeout Quick Settings Tile (2 of 2)

Change-Id: I02a7866c83bc9a914ed8bfad12872d5ed1a854f5

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/ScreenTimeoutButton.java
GpsQuickTile : Set label correctly

Apply label onPostCreate

Change-Id: Id7fd61fa9ab37257b81167e53c7976310543ea94