[WIP]Port Hardware key rebings && Wake device and some key related function fixes:

1.Enbaled:Back/Home/Search/Recent key short/long press actions

2.Add functions for Power/Home key to wake the screen

3.Update the volume key wake screen

4.Update the long press volume key to play next/pre song shen music app is running

TODO:

Setting part related things(these functinos not work on settings part)
1.Need to add the Expaned desktop toggle part
2.Need to add the SystemUI Notification part
3.Need to add the SystemUI QS panel related code
4.Need to add the Widgets viewpager code

[policy] enable phoneWindowManager debug

Expanded desktop mode: Add more style
this commit adds expanded desktop mode. You can decide if only
    navigation bar, only status bar or both are hidden when expanded
    desktop was activated.

clean up

Framework: Bring Long press back kill app toast back

It is now supported thanks to pawitp commiting the context fix for
displaying framework toasts

Change-Id: I8ab1beb49fc3b61355de8bc207482e2f51ff3e2a

Fix Power Shutter

Change-Id: Ifa2bc6e38821b1fd14a6dba99797c469b4b8698a

Hardware key custom rebinding

Forword port Hardware key custom rebinding
extend PreferenceActivity for title text on a single pane mode

startPreferencePanel() ignores titleText on a single pane mode
this commits extends PreferenceActivity by adding EXTRA_SHOW_FRAGMENT_TITLE_TEXT to intent

ported from CM9, http://review.cyanogenmod.org/#/c/14919
AOSP part verified, but not merged

Change-Id: Ie0702dc20b17504148f4da9cc83a6d7865d95423
Allow creating custom dialogs in DialogPreference.

This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.

Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56
Factor out preference-in-storage check to overridable method.

Change-Id: I2fff3192802f8a180330fda66388eda394334a5a
Treat default value that wasn't found as empty value.

Fixes http://code.google.com/p/android/issues/detail?id=33220

Change-Id: If22e8b245f688d922c168aa54c8acf743c0644d7