FW: Hiding NavBar

PS8:
New Structure for Hiding NavBar

ps9 : Fix a few derps.
ps10 : more derps/Try/catch/ etc.
ps11 : Hiding NavBar now Marginall works.
       There are a lot of things that can break this right now.
       it doesn't recover well from toggling itself on/off and
       if you 'hide/show' the NavBar, it doesn't take to that kindly
       either.  One thing the seems have an effect is to change the
       height of the NavBar.  there is something that gets reset in
       PhoneWindowManager by doing the height change that helps.

ps 12 :  Reworked some of the logic.  Added visual hints to indicate where
the swipes should occur.  Also completed landscape (phone) orientation shift
for swipe.  Made several changes in the window layout formulas in
PhoneWindowManager so that NavBar is treated like a real overlay when
in AutoHide Mode.  Otherwise, certain windows and elements were
resizing when the NavBar was shown/hidden.

ps 13:  Add images (button/drag) from NitrozK

ps14:  Start implementation of longpress on handle to launch
       NavRing.  Fix press navbar resets hide timer.

ps 15: add timeout to settings observer
       make searchlight visile on lockscreen even if navbar hide enabled.
Mike and I think there no point in wasting a swipe on the lockscreen lets
just show it all the time since its our version of lockscreen targets. Only
thing thats weird is after unlock the navbar should auto time out and its not.
It wait until you touch outside then acts as it should.

ps 16: Fix hdpi image
ps 17: switched to 9patch's from nitroz
       added options for stretching draghandle/swipe area width (on tested on
              grouper might need tweaking of values)
       added option to make draghandle.invisible (right now if invisible wont
              register clicks, needs fix)

ps 18: moved constants to demins for overlays

ps 19:  Redo some of the weight calcs.  This basically works if you
	keep weight at 100.  not working otherwise
ps 20: Abandoned Weights, now setting Width of handle based on pixel
	calc.  Fixed 'Invisible' setting on Handle.

ps 21: Add quick tile ( needs images), fix crash when phones rotate,
       swap a division for a multiplication. Come on now Mike. ;-)

ps 22: change screenheight to screen width for landscape... still need something for tabs.
ps 23: added logic for phabs and tabs landscape width, set default width to 5
ps 24: add padding to the SlidingChallengeLayout if we hide the navbar
PS 25:  Fixed NavBar staying visible after unlock.
	Fixed IME Offset in Landscape Mode.
ps 26: This *should* fix QS Tile toggle & provide an Opacity control for
	the drag handle.
ps 27: try to reset screen size on Autohide change.
ps 28: Change QS icon to match 'Hide NavBar' icon

Change-Id: Ic4ad3d9dec139ebeee2ee1e81d97ec603116f5f9

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
frameworks: Smooth background gradient

Credit to UBER for the images

Change-Id: I3655e9917610348100fa6cb5cede66a63ca82538
Fix Transparency Value not sticked with autohide

PS2: move settings TransparencyManager out of if block

Change-Id: I02f4984144867561955bf2b73291f503d6c1b1e7
Signed-off-by: kecinzer <kecinzer@gmail.com>
SystemUI: unregister ContentObserver

We were leaking memory.

PS2: move instanciating to the SearchPanelView constructor
PS3: more possible memory leaks

Change-Id: Ie9ddf00c698692f418cb8ef473dff2b1aa05135d
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/SignalText.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/WifiText.java
Fix NavButton AlphaGlow when pressed

Note that since users can set the Navbar Alpha, this will be a relative
brightness. In AOSP the button brightens to 1f alpha when pressed (.7f is not pressed).
if user sets alpha to 1.0, then there will be no difference.

Change-Id: I3d2d863bd4ff0cc2be14718afe3a17d795b77729
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Fix Searchlight showing under NavBar at Lockscreen

Ps 2:  Fix SearchLight at Lockscreen for Realz this time.

Change-Id: Ib6ebcaf84f9f9e88872b634c4939adf56021abc0
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
AwesomeAction: Performance update

Use hashmap and switch case, also use containskey() to
bypass switch/case if its a custom app.

oops sorry marc
double oops..

rebase

Change-Id: I90b353df3de035c58e1871b8a3085c82f7d24145

Conflicts:
	packages/SystemUI/src/com/android/systemui/aokp/AwesomeAction.java
Keyguard: fix nasty file handle leak

Change-Id: I47d58392d9d00a2cb843cf8bd51d6390ad1334a7
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Fixes

Change-Id: Ida4d56ffac611619189566844dccd5284fce5b86