Quiet Hours: Clean up and consolidate code

- Added: Allow disabling of system sounds

Ported from cm-10.2.

Change-Id: I7d2619becb99c336d23896a672136f491d972abd

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/BatteryService.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/VibratorService.java
Revert "PhoneWindowManager: Delay setting updates during window animation."

This reverts commit 00295091b558ca8ea17cd5786a08865c57dc6675.

Conflicts:
	core/java/android/view/WindowManagerPolicy.java
	services/java/com/android/server/wm/WindowAnimator.java
Add xxhdpi versions of our improved tethering icons

Change-Id: If943f81389774a1f8ca0407cab4756687a273be7
hwui: Apply hwui qcom fixes to all adreno-bearing hardware

Even if the device doesn't fully use the qcom stack, changes to
libhwui are generally workarounds for adreno-specific issues and
apply across the board without other dependencies

Change-Id: I10455ebf09c1d00762b06e3c092398604bb39796
Hide new non-standard permission

These were breaking builds due to the public API modification

Change-Id: I603fcf0601f40fb315086859aa03ef5b7ec39248
Enable notification light when screen is on by default
Keyguard: fix statusbar lags when default widget shown.

When statusbar became expanded KeyguardStatusView receives
onKeyguardVisibilityChanged callback and refreshes ClockView.
Because it receives more than one call and every time it reads
new values from resources it cause lags in opening statusbar panel.

Replace this code with BroadcastReceiver and ContentObserver to
refresh it only in case something was changed.

Change-Id: If0dbc1db059536806852661931cb2e6436f2acf4
Revert "Notification drawer background & notification transparency (1/2)"

This reverts commit 2a8663fcc9cb75804978c760f9ca9ee660bd1971.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Frameworks: notification drawer background (1/2)

so after keyguard is mostly done let us start notification drawer
and QS. First one custom background.....either color or picture
with custom alpha and ability to set a landscape picture seperatly
(landscape phone only)

Compared to the 4.3 included version completly recoded and better
integrated. No idea what I thought 1 year ago on the old implementation

cheeers

Change-Id: Id7d0f718acd05d34fab57bb250c29ed944bdcd58

Conflicts:
	core/java/android/provider/Settings.java
fb: support for keyguard widget carousel on tablets

support it as well on tablets and reduce used memory in general
and remove the not needed view instead of just hiding it.

Change-Id: I573bb120c5e3819488fbac6ec12dc9852d4c9be4
fb: notification transparency (1/2)

this add back notification transparency...compared to 4.3
it controlls as well the notification icon backgound transparency
which felt in the past dissplaced. As well codecleanup of the old
implementation.

largeIcon support I did not add due that google does not support it
as well at current status...it is only a placeholder in
NotificationData

Change-Id: Ic5bb8998f64cac573d70005fad909104accc9e96
fb: post time-critical systemui flags to window manager

thanks Kiril for this suggestion. We are already using window
manager for other things in immersive mode....so nice addition
to fix a race condition

Change-Id: I5d818214d7864014fa77c0d562d2908110d93303
fb: add back small bottom margin 1px

2px was to much 0 was to less.....1 seems to be perfect

Change-Id: Iefa3aee39197786da1652c3b372aa46c0ea3a6dc
Fix less notification sounds derp