Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat

PS2: base: Remove deprecated AOSP menuKey (SferaDev)

Signed-off-by: houst0nn <houstonn@gmail.com>

Conflicts:
	Android.mk
	core/java/android/view/ViewConfiguration.java
	core/java/com/android/internal/os/storage/ExternalStorageFormatter.java
	core/res/res/values-fr-rCA/strings.xml
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/ConnectivityService.java
	services/java/com/android/server/power/DisplayPowerController.java
	telephony/java/android/telephony/PhoneStateListener.java
	telephony/java/android/telephony/TelephonyManager.java

Change-Id: Ieadc43146fcc43d78e127238552f54ba887cfd0e
Framework changes for moving applications to external volume

* Add static functions for retrieving external apps volume information
* Determine external apps volume using the 'externalApps' attribute in
  storage_list.xml
* Allow moving applications to an external volume regardless if the
  internal storage is emulated or not
* Check if app moving is disabled

Thanks to Pierre-Hugues Husson for identifying an issue causing the
SD card state to be incorrect (ie. SD card appearing unmounted when a
USB drive is unplugged)

Change-Id: I5561c2cf3f558b729c89663852173a532994a47a
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat

 PS2: add back lost commit 28b10b30d6a1353688ca54f61cf7f7c9df85878d from recent merges
      Default EdgeGestureService to off
      We set this to off by default in Settings but forgot to do so here which was causing derps

      Change-Id: I152792275bf7438a71942be87d580894064d0a78

Change-Id: I9b9a0199268de579a9f236ea7b813fb718d286db
Signed-off-by: houst0nn <houstonn@gmail.com>
UsbDebuggingManager : Handle race condition when toggling rapidly

When toggling adb enable/disable rapidly, you can have the situation where the thread's
run() gets invoked but mAdbEnabled is already set to false, hence listenToSocket() never even
gets invoked in which case mOutputStream/mSocket are both null. This patchset adds checks
around that.

Change-Id: Iba56e7409435e22d690432fa663bc0a04a1a447d
Add a HAF access permission

This is signature protected, and extremely dangerous since it
grants system GID.

Change-Id: I2528813de9341187f18ef708e7251b4e5e4003a3
Merge 'pa_upstream/kitkat' into legacy
Merge remote-tracking branch 'PA/kitkat' into kitkat-legacy-staging

Conflicts:
	Android.mk
	core/java/android/view/ViewConfiguration.java
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/ConnectivityService.java
	services/java/com/android/server/MountService.java
	services/java/com/android/server/power/DisplayPowerController.java
	services/java/com/android/server/usb/UsbDebuggingManager.java