[1/2] Power connect/disconnect notification support

part 1/2: frameworks/base PowerUI and Settings
http://review.cyanogenmod.org/#/c/35241/

part 2/2: packages/apps/Settings Sound settings
http://review.cyanogenmod.org/#/c/35242/

patchset 3:
    shrink a couple of long lines
    remove power_notifications_use_default option (folded into ringtone option)
    load default settings in global instead of system

patchset 5:
    support vibrate toggle
    ignore first power state change (on boot) if it's a DISCONNECT

patchset 6:
    fix ignore first power state change

patchset 7:
    change vibrate to default to off
    simplify first power state change ignore logic

Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
	packages/SystemUI/src/com/android/systemui/power/PowerUI.java
Classic Recents [1/2]

Makes the recents menu like the one from GB.

PS: Code exists in Android base. This commit just invokes it.

Change-Id: I878b4ef70c74ce06884b4e0778c28d4caab08548

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Custom Shortcut Quick Settings Tile (1/2)

This is a slim bean unique feature : multiple QS tile for custom shortcuts
With this feature, we can have shortcuts to:
- An app
- An activity inside an App
- A contact
- A direct call to a phone number
- A specified folder
- A browser bookmark
- A direct sms to a specified user
- etc
The icons can be changed by the user to: default, system icons or from gallery
Thanks for blk_jack and kufikugel for making the task easier for me with their
notification and lockscreen shortcuts

PS2: center the icon on the tile and take the computed size
PS3: added some titles and made the shortcut picker not cancealable by the back button
PS4: now it is called Custom Shortcut with intelligent icon resizing
PS5: improve tile content management
PS6: fix compile error by removing 2 old unneeded files from git
PS7: provide resoures for mdpi, hdpi and xhdpi
PS8: added some details to the commit message
PS9: display contact's photo if shortcut points to a contact
PS10: some code cleaning and optimization
PS11: improve icon management and tile content sharing with settings app
PS12: resources renaming to match quicksettings ones
PS13: more resource renaming
PS14: stretch icon on the tile size if the shortcut points to a contact (except for system icons)
PS15: Show contact photo when choosing a direct call/sms shortcut (with a nice overlay icon)
PS16: change tile label in all translated strings.xml files
PS17: inflate generic tile layout when the icon is smaller than the tile size
PS18:
- change icon handling for normal shortcuts to fit other QS tile UI
  icons are multiDpi resized + text is in a line now
- bigger code cleanup
- rebase on delete fav icon commit
- put out translation strings into seperate commit
- some minor stuff
PS19 + 20:
- calc moved out from updateSettings()
  no need to do it every time let us
  save resources
PS22-24:
- rebase on latest frameworks fix
PS25:
- display quick contact instead of contact app
PS26: white spaces and tabs clean up

- rebase

Change-Id: I36f7807414ff92419ff575d22ed3e0dd73ec1d74

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/dimens.xml
Frameworks: Ehance toggleNotificationShade feature

allows to toggle notification drawer in any situations
on fullscreen mode as well in expanded desktop mode
and on all other features we have
cheers

Change-Id: I56185f2c48700d9f2d69c02585810db4e95e2e32

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
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>
Ripped off by DAGr8 :P

rounding it up ..

Conflicts:
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
PhoneWindowManager: Fix Tablet UI Derps
SystemUI: Fix PhoneStatusBarView Derp
SystemUI: Fix BaseStatusBar Duplicate WidgetView