[1/2] base: add custom hardware button mapping

Possible mapping

 0 - Nothing
 1 - Menu
 2 - App-switch
 3 - Search
 4 - Voice search
 5 - In-app search
 6 - home
 7 - back
 8 - toggle last app
 9 - kill app

Overlay required

depending on the number of buttons on your device

<!-- Hardware 'face' keys present on the device, stored as a bit field.
     This integer should equal the sum of the corresponding value for each
     of the following keys present:
         1 - Home
         2 - Back
         4 - Menu
         8 - Assistant (search)
        16 - App switch
     For example, a device with Home, Back and Menu keys would set this
     config to 7. -->
     <integer name="config_deviceHardwareKeys">7</integer>

PS2/3:
-whitespaces
-fix default back mapping
-cleanup debug log

PS4:
-added missing init of mPressOnHomeBehavior
-fixed home button derp

Change-Id: Ie28bda05e80f5c3bfc63c35c0ade8b0875e85e97

Conflicts:
	core/res/res/values/custom_strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
[1/3] base: omniswitch as default recents

OmniSwitch provides broadcast events for showing
and hiding the overlay

We need to make sure that OmniSwitch service is really
running else we will get no recents at all. Also on startup
it will take some time until the OmnISwitch service
has been started.

OmniSwitch will send a service start and stop broadcast
that will guard the usage of OmnSwitch

Change-Id: I31c5ae8839603b6e92b1a4613c793a9427aad2e2

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Base: Disable proximity sensor when screen goes on in ActiveDisplay/PocketMode.

Active Display (in Pocket Mode) currently only switches off the proximity sensor in some cases.
If the user switches on the screen itself, the sensor is left running. This change
stops the sensor as soon as the screen goes on. Active Display already started the sensor each
time the screen goes off.

PS2: In the mode that turns the screen off again when the device is pocketed,
the sensor stays on until you leave ActiveDisplay.

Change-Id: Id7afcd858f341ad929606d302c5741efa99a7c6f
googlebackuptransport: fix for google backup and restore

This fixes restore issues with properly done 4.4 gapps

Change-Id: Ib0cec129d138a195e64f5bba36602ac5fdeda42d