Update clear all drawables

Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Change-Id: I8ee251b5e2144b2fd62f26cb29a0721d6b3bb72b
Add some kk drawables and update some others (Credits: Rush25) :)

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_qs_torch.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_torch.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_torch.png
reset progressbar defaults to ~ what we had before

Change-Id: I29942eb462bee71299d35f784dfc5b8033d613ea
Reimplement Navigation bar height

This reverts commit 15e8908148bdde3505d830dc17fbd1d705e0face.

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Let's make Navbar height play nicely with Pie
Quicksettings tile derp
SystemUI: prevent NPE on clear recents double press

Pressing Clear all button twice fast or while the list
is clearing but not yet fully cleared causes sysui to crash due to
mRecentTaskDescriptions being null: (http://pastebin.com/2gRFvf8k)

Change-Id: I23d10edfd336041739fe80352ee01987e671dbd7
Immersive mode: don't unconfirm a package, that's just dumb

* This is very annoying for specialized apps
* See here for a great explanation http://stackoverflow.com/a/20309721
* The fact that it doesn't even notify the user until the NEXT time they
  run it makes it completely pointless in my opinion anyway.

Change-Id: I423611efc07d467e1d81c66d58adcff331be8b38

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Quicksettings: Avoid possible NPEs & improve controllers handling

Controller patch based on Clark Sheff's one: recreate controllers at start() only.
https://github.com/CyanogenMod/android_frameworks_base/commit/e95bc124c629cef485bb7ac4ce55137bf500f772

Shutdown all controllers and nullify quicksettings when recreating status bar
view at makeStatusBarView() before a controller and/or mQS instance is called.

Contributors:
@linuxman94
@BigBrother1984

Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I607dacf79f09fe208d481435cba8ca8c072758d6
Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
PIE: On-The-Spot: Apply immersive not only at first ASK_LATER choice, always

PIE's on the spot dialog is handled differently with pie, we have to reset to let observer capture
a second etc ask later choice.

Continue this https://gerrit.paranoidandroid.co/#/c/4347/

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
SystemUI: Fix crash on Recent Apps list

Issue: SystemUI crash is observed when Context MenuItem "App info"
       is selected on the recent apps activity
       1. Open the rencet apps list
       2. Long press on any one/more recent app(s)
       3. Lock the screen using power key
       4. Unlock the screen using power key
       5. select menu item "App info"
       6. SystemUI process will get crashed.

Fix: Changed the code to make sure that only one context
     menu is active at a time and also dismissed the
     context menu on pause of the RecentsActivity

Change-Id: Ia50bed7bfad6fde7beeaec37fa6402177eee1d40
PIE: Revert those null checks, were messing up animation somehow

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
EdgeGestureService: Tweaked values for trigger mask closer to stock ones

Applies to both default navbar and pie immersion.
PIE's diff is that benefits from a custom sensitivity param (MAX).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
TextView: Check also for mLayoutParams before calling checkForRelayout

Cherry-picked from OmniROM.

http://jira.omnirom.org/browse/OMNI-976

This was introduced with
https://github.com/omnirom/android_frameworks_base/commit/b3670c54e60387fde633fb91c649c5b896f8b962

Change-Id: I06c1926c5b8102b336d128d9b411f74a9eff3ded
Conflicts:
	core/java/android/widget/TextView.java
TextView: Prevent more NPEs

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: If710bddace79d67a3c97c10ad591a4024c89e4ef
HOVER [1/2]

Notifications refined:
The way you handle with the incoming notifications defines how much you enjoy your device.
Hover shows you those notifications when you need them in a beautiful card that briefly appears
on your screen. For a detailed look of the notification, you can swipe down to expand some more
info, or you can tap it to open the related app using PA’s floating mode.

Introducing Hover:
https://plus.google.com/107979589566958860409/posts/DC4KyDd1cDC
https://plus.google.com/107979589566958860409/posts/BtWoGpNd8Fq

This is revision 4 of the original base by @D4rKn3sSyS . Hover works by moving the
notification view from statusBar container to Hover’s one and re-themes notifications
in the process. When hover is active it is the owner of the view, special care must
be taken to not  manipulate the statusbar reference while hoveris active.
Hover’s view state is managed by a handler based timer. When any touch event is received
or a gesture completed the timer is restarted, upon expiration of the timer hover is
hidden or will show next notification in the list if there is one (or more) to show.
The timer along with animation listeners  regulates the rate at which Hover can process new
notifications, acting as a spam filter for noisy applications. Upon first run a dialog is
displayed explaining Hover to new users. More infos in code’s documentation.

Todo:
- Swipe up to dismiss only the hover window not the notification in status bar.
- Transparent support has been tweaked a bit but needs a more proper solution
- Edge gap fix for Theme Engine themes overriding notifications draws
- Long press action(s)
- MInor tweaks noted in the code’s comments

CONTRIBUTORS:
@D4rKn3sSyS
@BigBrother1984
@Anu6is
@beerbong
@aaronpoweruser
@David96
@linuxman94

Drawables by @arzbhatia

Signed-off-by: Jesus David <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Signed-off-by: Curtis Mayers <curtis.mayers@gmail.com>
Signed-off-by: Yamil Ghazi <stevewatersy@gmail.com>
Signed-off-by: Aaron Gascoigne <atlrudeboi1@gmail.com>
Signed-off-by: David L.-W. <david.leppla.weber@gmail.com>
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/pa_dimens.xml
	packages/SystemUI/res/values/ras_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationHelper.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/input/InputWindow.cpp