HOVER: Don't process and/or show foreground app notifications

- Don't show notification of foreground app
- Animate the ticker in this case so user can see it

Inspired from changes linked here https://gerrit.paranoidandroid.co/#/c/4453/10

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I9f45e1641a7478c7e460c32133db00bd67f63e75

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/notification/Hover.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/Hover.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
HOVER: A few improvements

- Better touch outside touch input handling
- On touch outside hide both case (expanded and non) in 1.25 secs
- Tweak clear foreground notification when we are on the same app
- Code style
- Tiny cleanup

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Ibb0c7c09ae3256bbf744f359cca651c8cb8112d9
Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/notification/HoverLayout.java
User defined wifi/usb tether network. [1/2]

Change-Id: I1989c5332ba598a04094b03d6a5de32d72f7fa1c
SlimPIE: Configurable sensitivity [1/2]

Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>

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

Change-Id: Ia6ebe8ab40b677b268170a7006de5fc7c79988b8

Conflicts:
	core/java/android/provider/Settings.java
NFC Polling Mode (3/3)

Change-Id: I41c76e6f23642af3daf356daf3788387b396594f
Over scroll effects [1/2]

Change-Id: I4cc67715f8f3bc67674782f08b9e363ee0e8ac9e
Fix Power Shutter Exception 2 of 2

Set protection level to 'dangerous'

Change-Id: I9792f4c543c9ce8a647989ca60cdc9389602551c
Move idmap to frameworks/base [2/2]

idmap depends on libandroidfw, so it should go in frameworks/base.
This follows AOSP which moved idmap to frameworks/base back in
February of 2014.

Change-Id: Ice308a5299a69fd1fbc084a7c76a317c7dec3689
Themes: Load missing style attributes from original style

If a theme overrides a style in an app and does not include all
the attributes found in the original, it is possible for the app
to crash because it cannot locate an attribute it is expecting.

To overcome this we need to check the attributes in the original
style's bag and add any missing attributes to the current bag being
populated.  Currently we have only seen one theme that causes this
behavior, but there could be others out there or we may eventually
see this happen in the wild as apps update and the themes have not
had a chance to incorporate the new additions from the app.

Change-Id: Id44aa83a6c58a0b042d2b32171bed5e794352670
Themes: Avoid NPE when setting text in TickerView

It is possible, with the right timing, to receive an NPE in TextSwitcher
when a notification comes in during recreation of the status bar because
of a theme change.

Change-Id: Ia35ad0346f232df905ecff69158b71f3bf61a163
EncoderCapabilities: Adding HFR entry in EncoderCapabilities and JNI

--Adding HFR entries like max HFR mode, max HFR width & max HFR height
  in the EncoderCapabilities.java and android_media_MediaProfiles.cpp

Change-Id: I544a17e32ddd7ddccb0c48cf07b3199d2c485e09
CRs-Fixed: 589983
video: Add support for extended media listener

Added changes to handle additional message types for
dash playback.

Change-Id: Id07828866de8cae44137f26c1e74417aaa45704f
ifeq QCOM: video: Add support for extended media listener

Bulid fails with error: 'MEDIA_QOE' was not declared in
this scope on other targets
Change-Id: Ic83be8f1acc4188b81fb903911023b39c614775b
Bluetooth: Disable bluetooth only if BT Sevice is connected

Bluetooth service is imidiately disconnected from the adapter
after SSR OR if any bluetooth services is crashed OR framework
is crashed. As Bluetooth  service is not connected OR Bluetooth
is not enabled, So BT disable should be ignored & bluetooth
persist setting should not be changed.

CRs-Fixed: 499116

Change-Id: I19de939346d014cdf918e11711f2d6066e55d054
Display: Dirty region propagation

Pass Dirty region values from HW renderer to Surface Texture.

Change-Id: Ibd121ed398a1319d3daf26f9fd39a03323bba666
frameworks/base: Call setDirtyRect to update dirty rectangle

This change updates dirty rectangle instead of dirty region of a
surface.

Change-Id: Ic5c6e68ff644911a596a2432fd14868edbff9b17
Change longpress action to mobile settings instead of data summary

This never made any sense to me....so is changed now :-)

Change-Id: I459bb4aac6e910c60b489a9b6254736ccd70c119
advanced reboot: add soft reboot option

Adds a "Soft reboot" option which restarts zygote.

Also includes "ShutdownThread: set soft reboot trigger accordingly"
commit by Dan Pasanen <dan.pasanen@gmail.com>

Signed-off-by: Roman Birg <roman@cyngn.com>
Change-Id: Ia6e5ed9b053e1c5ebd1fc55e5692858b97f7e0fc
Revert "(1/2) Add support for using the flip switch (Samsung cover) to turn off the screen"

This reverts commit f9d6f17446fa56e176a1eb068ae3dca6af726eaf.

Change-Id: I82a5d5c82d004c2303a610be10a896c0d64de9d2
framework: Show devices connected to the WiFi hotspot (2/2)

Change-Id: I82af20fe8368f7901e647491769e9b4b9b37e9fc