Framework:Power Widget Support (1/4) (Phone)

This commit adds the Power widget for phones.  All toggles should work
except for LTE (disabled for now)

Patch set 2  - Fixes Sync toggle
Patch set 3  - Removes WIP
Patch set 4  - Rebase
               Switch to MultiSelectListPreference

Patch set 5 - 16
- some fixes

Patch set 17
- whitespace cleanup
- added some license text
- remove background on toggles for future ports of slim stuff
- some small cosmetic things

Change-Id: I17669420d9db9a347af182fc398c6426e18534f4

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I104ca847cf004792c4a1b4b0c3b6acace9355fa1

Conflicts:
	core/res/res/values/symbols.xml
	telephony/java/com/android/internal/telephony/ITelephony.aidl
Framework: Forward port Power widget fixes and fix disabling

This commit fixes the ability to disable/hide the power widget on CM10.1, hide
the widget by default and forward ports a few other related fixes:

Author: Danesh
1) Notification Widgets : Fix vibration
The initial value of the array determines how long till the vibration starts,
and second value determines how long to leave it on till.

Since config_virtualKeyVibePattern is in an overlay and we cannot rely on its consitency,
we check the length of the array, and based on it execute the appropriate vibration.

2) NotificationPowerWidget : Snap widgets
Snap widgets in place, rather than allowing partial widgets

3) Framework Track Control : Switch from broadcast to audio service
Ordered broadcast is unreliable. Switch to using the Audio Service's
dispatchMediaKeyWithWakeLockToAudioService as it sends the event to the correct receiver.

4) AutoRotateButton : Minor cleanup
Use setRotationLock to avoid code duplication and staying consistent with framework

Change-Id: I0b5d1853781a7e6541a4a6283e13f8072d9972b3

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/AutoRotateButton.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/MediaKeyEventButton.java
PowerWidget: Re-enable LTE button.

- Implement toggleLTE,
  from CM 10.0: I3f7521f5ec4e9f9106c58afd4d5b10c7086b55fd.
- Support all LTE network modes defined in RILConstants and
  com.android.internal.telephony.Phone.
- Cleanup: Remove unused LTE_MODE, restrict state change to updateState.
- Also use Settings.Global.getInt() for PREFERRED_NETWORK_MODE.

Change-Id: I43bb2491d650d641d243d3cb67ee80bc7c8f5cdf

Conflicts:
	core/java/android/provider/Settings.java
	telephony/java/android/telephony/TelephonyManager.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.
PowerWidget: Soundbutton bugfix

PatchSet1: Initial commit

PatchSet2: fix whitespace errors

PatchSet3: DERB!!!!!

PatchSet4: Buttons are working correctly now.

PatchSet5: whitspace errors --> I HATE VIM; need to set up Eclipse

Change-Id: Ic0d9714c82734e9afac843995bd16d09736f85cf

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/RingerModeTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/SoundButton.java
Fix mobile data button in power widget.

Change-Id: Ide0417768350081250af24518b6831d70196ba73
JIRA:CYAN-1189
Lockscreen : Hide clock for Chronus/DeskClock

Hide statusbar clock if chronus or the DeskClock widgets
are being displayed

patch set 2 : Add check for Alarm clock widgets
Patch set 3 : Add null checks to be safe
Patch set 4 : More null checks
Patch set 5 : Removed null checks again

Change-Id: I083870b818b6257a3fbdb676c545945438c42fd7

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
Have DashClock hide lockscreen clock

Patchset 1) Intial Patch
Patchset 2) Added Market package name also

Change-Id: I099cacc968c8da73ebf4b9ad80f401b39b7eb988
duped
Framework (1): Forward Port CM10 features

This commit includes:
 - Power menu Reboot
 - Power menu screenshot
 - Profiles
 - Quiet hours
 - Notification light customization
 - Battery light customization
 - IME Selector notification toggle
 - Volume Rocker / Wakeup
 - and a few more things to support Settings

PatchSet 2

just changed commit message

PatchSet 3

rebased on initial Power Widget commit

PatchSet 4

rebased
whitespace cleanup
profile airplane mode fix
delete GB drawable on reboot powermenu
small fixes

Change-Id: Ibab71331dbced41ef4b8cb20c1f9aac29a142551

Conflicts:
	core/java/android/app/ContextImpl.java
	core/java/android/app/Notification.java
	core/java/android/provider/Settings.java
	core/res/res/values/config.xml
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	media/java/android/media/RingtoneManager.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	policy/src/com/android/internal/policy/impl/keyguard_obsolete/KeyguardViewMediator.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/VibratorService.java
	services/java/com/android/server/power/ShutdownThread.java
	services/java/com/android/server/wm/WindowManagerService.java
Frameworks: Shitload of fixes (1/2)
(2) Forward port Volume panel style and Linked volumes

Original author ptunstal

Patchset 2-4
rebase

Change-Id: I4359550fabd110ced6359d2bdcd321561b08fae0
even more build fixes