Send out USER_PRESENT broadcast on screen on if lockscreen is disabled.

This makes sure to turn off the notification LED on screen on when the
lockscreen is disabled by profile or e.g. by lockscreen toggle tile.

Change-Id: I0f6a5f9a021abd2799c22c744ab1180cee027409
Don't consider input restricted when the lockscreen is disabled by an
app.

Fixes the secure lockscreen occasionally appearing when disabling the
lockscreen via tile.

Change-Id: I078584d0235c1cc958f89ce12ddf3cc1117a5687
When DPM is updated while lock screen is inhibited, don't
unconditionally enable lock screen.

Change-Id: Iab2af06eb8e41fbcfc6adfbeb5b42a9bbf446fe9
Add an option to allow a (subtle) notification vibration during calls.

this commit replaces the broken mms feature which we revert now.

Change-Id: I8a5e1d15d17d56089158b24f9a4b246ae6e60285

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/NotificationManagerService.java
NotificationManager : Fix security exception

If the call is from a user process, using USER_CURRENT_OR_SELF avoids a security
exception in such cases.

Change-Id: I2f25917ecfabc80d3a193d63020ad11480edf8ec

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
Revert removing FLAG_ACTIVITY_CLEAR_TOP from intent
Removing that flag from the intent provokes some apps not being able to finish pressing the back key.
This change doesn't affect other opened apps.

Change-Id: I81a47f8e648114d8e2144a3b9854ede299d67871
update SystemUI's proguard.flags

Change-Id: I5aa73eddd3fea6cddeddaf94e202d8de870e7df5
Delay closing the notification area after swiping a little closer.

Use the same value as when removing all notifications.

Change-Id: Id11a48bc47487fd7763503dcbc769d9dbf5ad16a
HALO: halo can save last position now

Change-Id: I5a608b02323ab9fdfa3922a3c9844e75c3a1ab09

fix

Change-Id: I00ced429cfcc90507b8cc14b228a74b8902e67e8
framework: Add OnDoubleClickListener to View.

Simple Interface for allowing double click actions on
views. This piggybacks on the current performClick methods.
If a OnDoubleClickListener is set we will allow the double
click listener to handle the event. OnClickListeners will not
get callbacks.

Change-Id: I2244c3272029259e3904fe88011dfb8805dd674a