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>
Remove BigMenu Logic

When BigMenu exists, NavBar assumes you want 'DONT_SHOW' for
left/right little menus.  This had spacing implications for users
that used BigMenu, but few buttons :
http://rootzwiki.com/topic/38274-menu-button-in-navbar/

removing this had little implication on the NavBar itself, but
did force some re-working of the MenuArrowKeys.

Change-Id: I6946d85d2e0a6db26b937a9ced9643c6a2a1ae83
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SystemUI: respect global vibrate settings in the statusbar

Change-Id: I6df0fe2c6eb00a625e4c0aff6d0c8743979de966
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Lockscreen: Add timeout and instant lock option to slide lock (2/2)

  This adds AOSP's new timeout and instant lock options to the
  slide (aka chooser) style lockscreen.

Change-Id: I64b5f53a4e6c4098640b2c0cb3af2a56d6df019f
LastApp Toggle [1/2]

Creates an action useable by NavBar & NavRing to toggle
between most recent apps.  Will try to ignore the launcher
when possible.  ie, if you've just rebooted and have not opened any
apps, it will do nothing.  if you open 1 app, it will toggle between
that 1 app and the launcher.  Once two apps have been opened, it will
toggle between those two apps.
It's kind of like opening recents and hitting your #2 slot repeatedly

PS 2:  Add Icons from Hoolm.  {Thanks!}
       Re-wrote the logic for selecting next app.  Rather than
toggling back to launcher if only 1 app open, it does nothing.
toggling only occurs now when there are at least two apps open.
One issue that I still need to work out is that 'Recents' is somehow
showing up as a valid target to toggle to.  It shouldn't.

ps 3:  getRunningTasks() does not filter out 'Excludefromrecents'.
Thus we need checks for 'default launcher' and SystemUI.
as I write this, I realize I might be able to query the
ExcludeFromRecents flag of the package a bit more easily.

ps 4: Whitespace fix.
ps 5: one more whitespace fix.
ps 6: remove unnecessary dependency

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: I0b59121b07b9ba44a2837a8db0266441ed82f9a3
Fix HTC headset handling.

HTC's headset driver adds additional bits to the switch state, which
we're unable to deal with. Fix that by masking out those bits and
keeping only the valid ones.

Change-Id: I696a863f7f81dd2827d238468d566f62a203aff6
Signed-off-by: rohan <rohanmathur34@gmail.com>
Fix Headset for HTC Devices

Change-Id: Iaaacde3ff63c6d922847cab9e2f9e98d45bcc555