Active display: make sure mNotificaiton is set correctly

Change-Id: I4111ca843e340cca4d6dac4b2c2922ce3039e487
Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0
Revert "framework: Privacy Guard"

Change-Id: I82ab85092e54c577a0817f3bedc85063c9a3054a

Conflicts:
	core/java/android/app/ActivityManagerNative.java
	core/java/android/content/ContextWrapper.java
	core/java/android/provider/Settings.java
	core/res/AndroidManifest.xml
	core/res/res/drawable-hdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-mdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xhdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xxhdpi/stat_notify_privacy_guard.png
	core/res/res/values/cm_strings.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/am/ActivityManagerService.java
	services/java/com/android/server/am/BroadcastQueue.java
	services/java/com/android/server/pm/PackageManagerService.java
	services/java/com/android/server/pm/PackageSettingBase.java
	test-runner/src/android/test/mock/MockContext.java
	test-runner/src/android/test/mock/MockPackageManager.java
Privacy Guard : Reimplement backed by AppOps

Re-implements privacy guard to use appops.

Change-Id: I2b52e8cf0d6e126fb156f83df885b5551503cd9d

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cm_strings.xml
Revert "Active display: register/unregister recievers and listeners when enabled/disabled"

This reverts commit 0661419b26177c19e2d3fd4c08d5ace080de1222.
Fixes
Revert "Set subscription_mode in the database to a default value"

This reverts commit 2e8d1ecaee7f5972a52b20838b56276d75234343.
Revert "base: App crash when select suggestion's length more than specified."

This reverts commit dcf75fbfd06c6a940e4124550edd19e191656047.

Change-Id: I6d236f16e9c428b06caf4423903839d54cf24bd0
Active display: unregister proximity if pocket mode not used or active display disabled
[log]
special thanks to Der-Schubi for helping to fix this

Change-Id: I7c634e1ee48e82024faad53bb1bae8fe19da439d

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Revert "Active display: unregister proximity if pocket mode not used or active display disabled"

This reverts commit 888baa8f349b545b7ec3edb0e5fbee80eafc71ad.
Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0
Active Display: check if recievers and listeners are registered

Change-Id: I1a881aebcbfc2bae92535a4e9ea55ba3789d8b43
Active display: Catch Resources.NotFoundException

This caused the SystemUI to FC when the device was powered and a notification was fired.
Display stayed off and the SystemUI kept restarting until the device was unlocked manually.

Change-Id: Ibfd82242e82aa9ee5c0898f5f0714e490eac0ea9
Revert "Active Display: check if recievers and listeners are registered"

This reverts commit 16384847ed731e25b1a63f4fd921c9b4808ab674.
Active display: Unify (un)registering callbacks and add proper checks.

Change-Id: Ie4c4660a54d2c60831f7a3bcc66b3a9ca1d035f2
Simplify brightness toggle

fixes http://bugs.aokp.co/issues/26

Change-Id: I51a0cdd2604158094cc027e735a6b176deb6d575
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/BrightnessToggle.java
fixed recents menu where the clear and google button would overlap in landscape

Change-Id: I092c1c489a3443e46842904a0a26bb5b282f81cb
Merge branch 'jb3' of https://github.com/CarbonDev/android_frameworks_base into jb3
changed order of G and clear recents so that the clear button is closest to the edge of the screen

Change-Id: I6942690eed04d42c464d9a3b09da949c5cab5d9b
Merge Carbon