Merge slim

Change-Id: I114322d1b3b5de0a7192dc70f52ac11668bef505
[1/2] Base: Lockscreen Notifications

PS11:
    Lockscreen Notifications: several fixes

    - fix notification not responding when removed and added in a short period of time (e.g. gravity screen start/stop)
    - just unlock screen on notification click when there's an activity to start
    - fix notification hide animation
    - just wake screen on reposted notifications when it's not ongoing (wake on notification before made the device stay awake for ever when a download/countdown or something similiar was running)

PS12/13:
    Lockscreen Notifications: Bring inline with AOSPAL implementation
    Lockscreen Notifications: Fix possible NPE
    [1/2 ]Lockscreen Notifications: make offset top user configurable & add privacy mode
    Lockscreen Notifications: Copyright
    Lockscreen Notifications: just scroll down in "showAllNotifications"

PS14:
    Lockscreen Notifications: Fix recognizing of settings update

PS15:
    Lockscreen Notifications: make width dynamic (WRAP_CONTENT)

PS16:
    Lockscreen Notifications: make animations a bit faster

Change-Id: I342b9fa6266c4c64f04121a8a2938de6532082b4

Conflicts:

	packages/SystemUI/res/values/strings.xml

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
add missing import and delete mahdi_dimens

Change-Id: Ife8c5b8c808a027b43334820c36479bdf9bf2c75
[1/2] LS Notification dinamic width & blacklist options

- Lockscreen Notifications: disable dynamic width for devices <= xhdpi

- [1/2] Base: Lockscreen notifications: Option to disable dynamic width
from: https://github.com/OmniKang/android_frameworks_base/commit/87d6598b63a1b83e93631b0fcb0822365cf7563b

-  [1/2] Base: Lockscreen notifications: Allow apps to be excluded from being displayed
from: https://github.com/OmniKang/android_frameworks_base/commit/8631349b965f507eeff4b5616c1f581bc4e6e615

 Credits to 0xD34D / ChameleonOS for the original implementation for Active Display

PS3/4: fixes

Change-Id: I796b08cb94185ea17139bd74f1b41d287ba65155

Conflicts:

	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
[1/2] Lockscreen Notifications fixes

- Lockscreen Notifications: make animations a bit faster
from: https://github.com/AOSPAL/android_frameworks_base/commit/5b6e143c4edeb9454650dbc05e597fbbae6b5c26

- Fix ongoing notifications reappearing when hidden & some small animation tweaks again.
from: https://github.com/AOSPAL/android_frameworks_base/commit/ac9bf6a36a7275d1e98e2ae6750723b1e006dd4d

-  Lockscreen Notifications: fix notifications disappearing on orientation change
from: https://github.com/AOSPAL/android_frameworks_base/commit/e9dcb99f0bd3e74a45ee7d15ebc19a99db7a09a2

Change-Id: Id72ec7c6c9e61fc7502299e434e0ba0d12957ec7
Lockscreen Notification: fix default settings derp

Conflicts:

	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java

Change-Id: I07868110f7a7915c0230b044c32632a2cea036c9
Clear All Apps button added in Recent Panel (1/2)

Credits: benjamingoodwin && xplodwild
Mine rearranged, modified and adapted.

Change-Id: I276fa1bf5f99a66626e046f5b697ac66d3da5e5b
Finish fixing Zygote descriptor leakage problem

In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID.  These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.

This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected.  The CLs need to be approved
together, lest the build break or the software fail to boot.

Round 2: indent change

Bug: 12114500
Change-Id: I090402136a8a8b7d6aad6eb153026e85d7cf6ad3
Lockscreen Notifications: Lower alpha

Change-Id: I9d005bbab0614a539c1c302ee4bbde30ad3dd658

Conflicts:
	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java

Conflicts:

	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
Lockscreen Notifications: Custom background color [1/2]

Change-Id: Id5f950a0f6e526b46c0662d14a1b8ca664c0b4f8

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
Deleted KeyguardTestActivity

Change-Id: I683b05ed9a13758515bf04c2079c54821db9e8c4
Add missing import

Change-Id: Ib07609052e8cea027d4c320c9924cb6025f74549