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
Fix Quiet Hours not muting notification sounds

4.2.2 touched the NotificationManager service, and some logic went missing in the merge it seems.
This should take care of it.

Change-Id: Ib3b88c83d2936871fbe25f1acbd10fd60c577944

Conflicts:
	services/java/com/android/server/NotificationManagerService.java

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
 SystemUI: A proposal for a new quiet hours icons

 PS2 added xxhdpi icons
 PS3 removed xxhdpi icons
Change-Id: I87e660210e2089d1bb09da47d39695bbda2889af

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_quiet_hours_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_quiet_hours_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_quiet_hours_on.png
Fix Quick Settings tiles jerking down while animating to notifications view

Patch Set 2: Fixed in code rather than XML

cherry-picked to cm-11: fixes Quick Access Ribbons not appearing
when switching back from Quick Settings

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I1689aa80a0fcb8ad17bcefc290b43a16079f7b88
SystemUI: add CHANGE_NETWORK_MODE permission

Required for 2G/3G quick settings toggle

Change-Id: I72392bd995d12c22388c99f34abb431cd0be8f0d
framework: fix reference leak in activiy manager

Change-Id: If7f27ea35f5a1d1dd7c98fbe5f92729ab9ba0257
Register the ActivityTrigger on all QCOM devices

Change-Id: Iaecb5dd82be64fea5a625cc42243203d0f2f2ce9
Frameworks: Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65

fb: statusbar reflect am/pm based on the global user settings 12h/24h format (1/2)

Change-Id: I7d6eec4d62f0e1072f11e8e131608b78f17539d9

fb: do not call every time settings on clock intents

only needed for configuration change.

Change-Id: Ie6db0e8a3abca83f5ea6c25f39124672e06ac4ff

fb: set correct providers default value am/pm

fresh install shows am/pm on english timezones which
does not fit with the aosp default behaviour. Go inline with
it and hide it as default. User can change it then

Change-Id: I503818a16772f30260222ec5beed15e6654345a1

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java