[3/3] frameworks/base: National Data Roaming

Credits: CyanogenMod

Linked commits:
        opt/telephony: https://gerrit.paranoidandroid.co/#/c/3655/
        services/Telephony: https://gerrit.paranoidandroid.co/#/c/3656/

Change-Id: I0280d516067e1ef50f7321355cbee42009657d7e

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

Conflicts:
	core/java/android/provider/Settings.java
Avoid tearing down process groups twice.

The second removal always triggers a warning.

Change-Id: Ieafa8374dbffdaff0d576de004a688cae6f8ac18
[ActivityManager] Fix NPE when start activity

Symptom:
NPE occurs in line 1184 (resultStack.sendActivityResultLocked)
because resultStack is null.

Root cause:
When starting activity with FLAG_ACTIVITY_FORWARD_RESULT flag,
the resultRecord could be updated, but the resultStack is not
updated as well. In that case, the resultStack is still be
null. The exception will occurs if the activity is not
granted to launch due to permission denied.

Solution:
Update resultStack when resultRecord updates.

Change-Id: I91634e4f713c2e8dbd1a71f358a8fd9beed83ec7
SystemUI : Fix clear app data crash in recents panel

Change-Id: I78d48fae2ba6ac9727d4997e24af8e4b134950ab
services: fix memory leak in ColorFade

original patch from
   https://code.google.com/p/android/issues/detail?id=79729#c177

i can not get the email to add proper authorship, but all credits belong
to this person

Change-Id: Ica9a4ae02cd3c8435f46dd9c3bfdb52317f9a7ef
Frameworks: Remove SlimROM's Heads Up
Revert "Frameworks: Be sure heads up view is attached before removing it"

This reverts commit 39b305b90b2e11ae459f8a422a067a89736d08c8.

Revert "Frameworks: Only set package name on user heads ups"

This reverts commit 74cd41cd43165507d26f482ccf62de73f550db6f.

Revert "Frameworks: Slim heads up customizations for LP (1/2)"

This reverts commit 55ef7269311c1c52331a5217ad5857663a2d665c.
Base: forward port Headsup options (1/2)

-Global on/off
-Blacklist and Do not disturb

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
HeadsUp: add timeout option (1/2)
HeadsUp: Swipe options

-left swipe dismiss
-right swipe put into background
-swipe down opens notification drawer and moves the notification into it
HeadsUp: do not show if notification drawer is visible
HeadsUp: fix headsup for incoming calls
[1/2] Frameworks: Doze (ambient display) timeout

Change-Id: I0eb230020da9a306e089b58db9d48b18c9743c0f
Frameworks: port SlimSeekBarPreference to SlimLP

Patchset: materialize slider preference
Change-Id: I84c16cee9162a3fd53c0b62398a2ca03415ce974

Conflicts:
	core/res/res/values/slim_strings.xml