FW - User select Tablet Mode [2/2]

Allows user to set UI to one of three modes:

Phone/Tablet/Phablet.

Needs RC commit as well.

Patch 2:  Still having lots of resource issues.  I am just uploading
	this to get a good diff look at what's changed in TabletStatusBar.

Patch3:  Cleanup

Patch 4:  This one at least boots and enables the tablet bar.
	there is a lot of work still to be done to enable the quick
	settings panel, etc.
patch 5:  Implemented the Quick Settings framework.  Haven't tested yet
	(Well, it compiled) - just posting in case I get busy again,
	at least someone can take off where I've stopped.
patch 6: Fix Setting/Notification toggle.

patch 7: Tweak layouts - fix battery/clock

patch 8: Shift Tablet NavRing to left corner

patch 9: add drawables needed for patch 8

patch 10: fix more layouts - various modes now working well

patch 11: Should fix the rest of the notification issues on Tablet mode

patch 12: Fix lockscreen navring and add option to hide compat mode button

patch 13: Re-vamp Notification Title Layout clock/date & buttons layout better
	  Notif Panel goes to Settings if no Clearable Notifications.
	  System Bar responds to NavBar size changes in both land/port
	  Date/Clock actions working

patch 14: Move resources out of sw600/sw720 into "regular" bins. This is
	  needed for dealing with Tablet Mode on phones (< 600dp).

patch 15: Pull in Steve's Sliding Navbar width adjutments.
	  also move a few margins into @dimens.  This will need to be
	  changed on a per device/overlay basis.

patch 16: Fix AokpTarget class into AwesomeAction

patch 17: Move many layout dimens to @dimens files
	  this allows adjustment/tuning of layouts on a per device
          basis.  Most devices will need to override the dimens.

Change-Id: Ia8d8a7ecaaca232587a54c9f7674936de7b05bda
Signed-off-by: Zaphod <mwilson@acesappraisal.com>

Conflicts:
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/res/layout/status_bar_search_panel.xml
	packages/SystemUI/res/layout/system_bar_notification_area.xml
	packages/SystemUI/res/layout/system_bar_notification_panel_title.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Fix ups.
SystemUI: nav bar menu keys as left and right dpad arrows

ps3: null check
ps4/5: more consistent implementation
	now properly hides on lockscreen if keyboard is
	still up. the arrow keys should also work with any
	navigation bar configuration that we support right
	now

Change-Id: Iba75e8f1b19f299a1b7ff607c33679d9788cd925
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
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:
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Sound Toggle: Improve logic with new icons.

Credits Icons: Oliver Geith
Quicksettings: fix updating 2G,LTE and WifiTether tiles

adding an observer to listen for state changes

also move updating torch and navbarhide

Change-Id: I8dc8f9d804fcd47daaec50f0169fd5148d494cc6
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.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>
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 longpress action for tehter toggles

Jumps directly into tether settings.

Change-Id: Ifdc825bb3f816e60d6e9232501935a26f757128c
Signed-off-by: kecinzer <kecinzer@gmail.com>
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>
Lockscreen: remove mAppWidgetContainerHidden instead of hiding it

This will reduce memory usage.

Change-Id: I541ab53a98b84ce919998a322fa2b28a9621a9f9
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.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/carbon/CarbonTarget.java
Remove this.
Added QuickNavbarPanel

Initial commit doesnt build
Change-Id: I161d3859aec0350ffade4371c788efb545106642

Conflicts:
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Conflicts:

	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Conflicts:
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
Voilà, it shows!
A bunchload of fixes

* Now shows, and behaves perfectly nice (except because it needs a click first)
* It's now independent from statusbar (so it can be and will be loaded in any UI)
* Cleaned up functions that we will probably not use
* Holo colors

Ready for partying

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Basic swipe up behaviour
100% working (-:
some more bugfixes
A couple of fixes

* More acuraccy in less space (quicker)
* Remove unused layout
* Remove swipe-up event and work on touch move
* Resources

Conflicts:
	packages/SystemUI/res/values/dimens.xml
Per app color on quick navbar