PackageManager: Let system-defined permissions take precedence over settings

If a permission was already present in the device's settings due to having
no prior system definition, and the system tried to take it over
(after a version upgrade, for example), it'd fail, since the saved
value would clobber the one previously read from the permissions XML.

This breaks system-behavior changes (gid grants, in particular) unless
the user performs a factory reset after upgrading, which isn't acceptable.

Change-Id: If2e44110f6db735ad29cdf1086e814bd1299e290
SystemUI: don't crash when user disable default apps

If the user has disabled the default clock or calendar application,
System UI will crash when the user clicks the Clock or Calendar
from the notification bar. This patch fixes the issue.

Change-Id: Icdc3679cdd35b5b3a24086e1ada67d0defabc5cb
Audio: Fix abnormal keytone playback during silent mode changing

Change-Id: Icfc4003c9756b3c33578c137e59dc4a2b4f25647
Author: Chenyang Du <chenyang.du@intel.com>
Signed-off-by: Ertao Zhao <ertaox.zhao@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 19084 4898
Merge "PackageManager: Let system-defined permissions take precedence over settings" into cm-10.2
Merge "SystemUI: don't crash when user disable default apps" into cm-10.2
Changed USB page icon from Android to Cid

Change-Id: I57386c2d555723adad99cafe8ae6d2e8f6fe8cbd
Set QS panel opening to outer 15% of statusbar

Prevent accidental opening of QS panel in stead of notification bar

Change-Id: Ibe5f6504333af2ce124be1efbd463fb56a51c2dd
framework: add RAM Bar to Recents

Updated version with improvements in calculations and translation

Conflicts:

	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: I1a310f797632f45f7d46b596f250241753bc3b66
SystemUI: Option to display Quick Settings when there are no ongoing notificaions

Added member function hasClearableNotifications to class
PhoneStatusBar. This function returns true when clearable
notifications are present on the status bar. Also, onTouchEvent in
NotificaionPanelView now flips to Quick Settings if there are no
ongoing notifications, and the QS_QUICK_PULLDOWN is set accordingly.

Change-Id: Ia77f90b19c7b408b7fc9376b6914e3173b734655
Add FastCharge toggle and powerwidget button

Originates from SLIM
Some improvements by fishears

Change-Id: I585aafacba766fd0a8b2a86e265a2357c358d415
Double the pie detection time

Change-Id: I3f7cb6e1113226e07defdba5bece05f22c2dd71d
Missed Call Breath (2/3)

Credits: @Kroz for the icons and idea!

This will give your Missed Call notifications a breathing effect in the statusbar instead of an static icon.

Change-Id: I8e93a7b99c6e361372fba63a6080cd8283b95046
Move breathing SMS into Settings (1/3)

Change-Id: I0b5813c28771ad1c86c3df1753bee7f329180681
Allow theming of lockscreen

Change-Id: I10799482e0b393746b4c9818f94862109fac6006
Framework: Development setting to enable navbar (1 of 2)

This adds the framework support for enabling the Navigation bar
on devices with hardware keys.  Intended for development use.

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
framework: Battery bar (1/2)

For educational purposes
Based off of: http://review.cyanogenmod.org/#/c/31912/
Change-Id: I479a296e04ac7ef9463616e73a02fab10eec8b5c
Fix navbar HDPI landscape layout

Before: http://i.imgur.com/89SmFbX.png
After: http://i.imgur.com/UbuAggD.png

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I6623cb97881313886de39a67baa98f7bd4b0696a
lockscreen battery status: add off option (2/2)

Change-Id: Ie10015865f161e783dc394d467e456d51dc9fbbc
KeyguardViewMediator: Play lock screen sound sooner

When the screen is locked, there is a long pause before the lock
sound actually plays.

This makes that sound happen much sooner.

Also modified Lock.ogg slightly to remove the initial silence.

Change-Id: Iede7a5d22291d1ada98800d2b380c255547df61d
 SystemUI: A proposal for a new quiet hours icons

 PS2 added xxhdpi icons

Change-Id: I87e660210e2089d1bb09da47d39695bbda2889af