Tunning max allowed background services

The serialize running of background services feature
delay some services startup when system bootup, and
lead some abnormal behaivor at the early of system startup.
Tunning will be disabled after system complete bootup.

Change-Id: I834607d9156253bee13848586a8136e24760fdf4
[1/3] Base: QuietHours (slimRoms)

add support quietHours

Squash Commit from:

 fb: Quit hours 1/2 thanks cm

and added multiuser support

Change-Id: I38e8560297099629aed94ee001da7f1ebaa04dac

by Kufikugel

 Frameworks: Quiet Hours Change Logic (1/2)

12:00am - 12:00am = 24 hours
	(Or any "==" time)

This makes more sense for the user
	if they have the direct ability
	to toggle quiet hours.
	The feature should work as-is
	and in a 24-hour on/off manner
	through using the toggle.

Change-Id: Ib10ab5c1ac9278ab1f195d48f88de7357722979c

by Jubakuba

 fb: refactor QuietHours code

thanks to ivisiblk for the idea

Change-Id: I56e2b4a1945a4b93251b9937b701c86168b732b4

by Kufikugel

 Quiet Hours Ringer (2/3)

Change-Id: Id58ffb24f0d0d57d8446265c899ec4124fe00c70

by Jubakuba

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: Icce9e3a804ab8be753b8a23a28668ef1358540b1

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/NotificationManagerService.java
[1/3] Base: update Quiet Hours

SystemUI: Remove broadcast from QH toggles

Obsolete per this patch:
	https://gerrit.slimroms.net/#/c/5814/2

PS3:
-added pause and start now
-use start/stop broadcast to update active state

PS4:
-cleanup

Change-Id: Ie8990c96cd7cbf5e8c490da0240a4166d9dd5ed0

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
Base: add QuietHour Tile

Conflicts:
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java

Change-Id: I920ccc83e7ef217a3430a8c3b5aed12a347aeaae

Conflicts:
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileFlip3d.java
Reduce memory leaks by removing all views.

Change-Id: I1c7d3647ae0d40aa214108ea22e007e3cb3191b9
CM11 Themes: Use 32bit hash to decide if idmap should be created

Using the last modified time of the package to determine if an idmap
should be created is not always valid for system packages.  We have
observed some packages having a time stamp of 08/01/2008 even if the
package has changed.  This causes system packages, such as
frameworks-res.apk to not be properly mapped if IDs changed in this
package.

This patch will generate a 32 bit hash code based on the file's
MD5 sum.  This hash code is then provided to idmap for writing these
values into the idmap header for future comparison.

This patch requires the following change found in frameworks/native
http://review.cyanogenmod.org/62566

Change-Id: Ie9e0273aef96217f06b08774623dd5f1b290a3da

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java
CM11 Themes: Allow forcing idmap (re)creation.

Change-Id: I9f5938e9b1052da83b7f2cd7b1ff6f1ed270db6b
Media process is crashing with NullPointer exception

Sometime, while creating thumnails list of media files in
compose MMS->attach file,  filepath may be null due to
synchronization issue.
Adding NULL check to avoid NUllPointer exception.

Change-Id: Id6cf5612a959b3ae15b44bc60dbbcbe40c624f09
CRs-Fixed: 636494
Revert "Fix Power connect/disconnect notification"

This reverts commit c2be76dc422dd9c2cab0bbaf368164f5d0ddc9c5.

Revert "[1/2] Power connect/disconnect notification support"

This reverts commit 60504b1598cbd7c0a55bef92036175eb0080f217.