[1/3] frameworks/base: Add NFC polling setting

Change-Id: I29b4a49d846da3b8eebf6c92cc3745f035034603
(cherry picked from commit 299f851557597f5b551176a7f5094662153ea192)
(cherry picked from commit 1e76f0cef1217e67c5fec00c635024768bd66e4a)
(cherry picked from commit fd7d37d8f8c5c74513eb7de4f45cebf695ddd739)
(cherry picked from commit ec189ceed5dbec34932cdc843aa977b39a1b86f0)
(cherry picked from commit 8bbf0a6a5b84cc45222ce82ce13ae38e2162d6fa)
(cherry picked from commit 7e6ea4464301c69023dc0251c75a5f5a734d6368)
(cherry picked from commit 11edd6ecf9205a8ac234fd31f6531c296aab4c35)
(cherry picked from commit b449150f040d857652d9c8a4e87a9851afb71886)
(cherry picked from commit ce9e199e857b70620f8b642d833be48626e5a51a)
frameworks: Configurable up to user (LTE or 4G) - [1/2]

Credit Daxx for the original implementation

Change-Id: I80711a547851ec94c2391169ca9c2a1da877fac7

Conflicts:

	core/java/android/provider/Settings.java

(cherry picked from commit 3dd73d4c7abdf423fcc202c4d2bacfe10003013b)

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

(cherry picked from commit b85ba552ca1fc933b1248f47e8e35e51f0bb2636)
(cherry picked from commit 371cff32dec9673f44d2e4677f764661ebef7258)
Revert "HOVER: Option to exclude topmost app [1/2]"

This reverts commit 20d245441bd05cd787aa2882fea2496f6ee2e1a6.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/Hover.java

(cherry picked from commit b15c13842106f5bbcf6376796c5c2a8bb9664799)

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/notification/Hover.java
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

(cherry picked from commit 19de750ef526cad2521bd17955e8d5300484d2c1)

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