Power sound notifications: fix ringtone picker title

Change-Id: Ied0a08ec1607b778324e69a7b40bac056235bebf
Settings: MediaScanner behavior on boot (3/3)

Lets you enable/disable/ask (with a notification) media scanning on boot.
Can speed up boot and reduce initial boot lag from MediaScanner

Change-Id: I266f0adc1aaf2b28a7735d5b9cc965e699f06a6c

Conflicts:

	res/values/arrays.xml
	res/values/strings.xml
	res/xml/development_prefs.xml
	src/com/android/settings/DevelopmentSettings.java
straggler
Status bar Auto-Hide [2/2]

Add an option to auto-hide status bar when there are no
notifications.

PS 2 : Reorder a bit

Change-Id: I93b637f9b3e1036522f77ca4b299d385052320e5

Conflicts:
	res/values/strings.xml
	res/xml/status_bar.xml
	src/com/android/settings/carbon/StatusBar.java

Conflicts:

	res/values/strings.xml
	res/xml/status_bar.xml
	src/com/android/settings/carbon/StatusBar.java
fix conflicts and organize list preference to my liking
DataUsageSummary: fix mobile data usage display for sim-less devices

- Don't assume the device has a sim card. Check for a phone number
  instead. Otherwise the mobile data usage screen will not show up
  on sim-less CDMA devices.

Change-Id: Ic6e35dc209ff05e0c89dc990ad82f4ab4d3f337d
DataUsageSummary: fix mobile data usage display for GSM devices with no number

Some providers don't write phone number onto SIM card causing the
phone number check introduced in the partially reverted commit to fail.
Re-introduce the original check with the "or" condition.

This partially reverts commit 4c51b45355b9d6fed973f946738bf455a8b7c9ea.

Change-Id: I69a65a1a421dcdf168c3d0afeb7110cb97790034
SECURITY FIX: Fix package uids being reused between uninstall and reinstall of different packages.
Policies for older packages were being granted to the newly installed package that got the recyled uid.

Change-Id: I6c74cf6762e8da10e09d5cf5d94e9f826e47f24d
Lockscreen see through (2/2)

-credit ParanoidAndroid

Conflicts:

	res/values/strings.xml
	src/com/android/settings/cyanogenmod/LockscreenInterface.java
build fixes galore
Revert "Power sound notifications: fix ringtone picker title"

This reverts commit 18a18f4d6441a8b2c08a8272ad6e45f4ee7d4cdd.
restart systemui on autohide status bar preference
Revert "Revert "Power sound notifications: fix ringtone picker title""

This reverts commit 72135127477448fd65a3017bb0d67beaa6bdcf7a.
Settings: Add Permissions Management to DEMENTED [3/4]
Fix dialog state handling.

Convert ApplicationLightPreference into a DialogPreference to correctly
manage the dialog lifecycle, e.g. when rotating the device. Also save
the user-defined color in case the dialog was open.

Change-Id: Ife00e1c4737fbf6710ccdaa1252def00f2831af3
JIRA:CYAN-914
Settings: Fix color picker ComposeShader view

The shader was not showing the proper combined gradients.  This is a
limitation of the ComposeShader in Android 3+ and has to do with the
hardware acceleration as described here:

'ComposeShader can only contain shaders of differenttypes (a BitmapShader
and a LinearGradient for instance, but not two instances of BitmapShader)'.
But, 'If your application is affected by any of these missing features or
limitations, you can turn off hardware acceleration for just the affected
portion of your application by calling:
    setLayerType(View.LAYER_TYPE_SOFTWARE, null).'

Change-Id: I8d945e37ed97c409a0cc7e9ec5570019545f0f68

Conflicts:

	src/com/android/settings/notificationlight/ColorPickerView.java
Fix dialog not opening for app-specific notification light settings.

Change-Id: I8e8d098bcc07824803b9e9931595f5c4fdbabb7b
Fix NullPointerException at RunningState

getServiceInfo returns null if you have a service defined in the
manifest as: <service android:name=".Xxx" android:exported="false" />
or and in an <application> with no label or icon.
Dont crash the Settings application because of that.

Change-Id: I6f9f69c130e610b7e4ab66426177b7bade1e1515
Check if the Activity is finishing before showDialog()

Check if the Activity is going through its finishing phase before
displaying the Dialog, because Showing dialog once the activity
is no longer in context will cause BadTokenException.

Change-Id: I58940e694f61cd79536abe2df60a0b745a7b806f
not needed