Fix switching running/cached apps with memory bar

Fixes upstream issue #38735
http://code.google.com/p/android/issues/detail?id=38735

Ported from CM10
http://review.cyanogenmod.org/25775

This patch is already submitted to AOSP. No feedback from them yet.
https://android-review.googlesource.com/45993

Change-Id: I484e30d3fd4f5425e174911ae22bb2def170e6b8
FindBugs: Call to equals() comparing different types

Change-Id: If4185f9eec0adfa47a6741eb21111b6cdafac008
settings: Add option to toggle the pointer icon when using stylus

Forward-port to CM-11.0

Change-Id: Ib9c22ecb05cc698ead5bfffa34d2a2ffa9c21e13

Conflicts:
	res/values/cm_strings.xml
	res/xml/language_settings.xml
	src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
Port "Option to hide Adb notification icon"

Change-Id: I7c50e50be86c654c77d6c2a385860d97279ed621

Conflicts:
	res/values/cm_strings.xml
settings: fix exception in BatterySipper.getQuickNameIconForUid

placeholder

Change-Id: I4da880532788de78debffe594faf08eee0389014
Settings: fix led pulsespeedoff disable behaviour

Keep led pulsespeedoff disabled if pulsespeedon is
disabled.  This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false.  Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.

Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8
Bluetooth: Don't set a null alias before unpairing

* This causes the unpair action to throw a null pointer exception and
  bring down the Settings app. Don't do this.

Change-Id: I0c60437f5ea934385a037a464743e24c9d341aca
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat
Settings : Update gesture preference check

Move the gesture outside the stylus dependency check and remove the
preference category if no children are found

Change-Id: I05ecf71dc84f5244200e3030b5ee524944339145
(cherry picked from commit f6a43a4bc50f6fba64f55c08adff16f8bdcb1c44)
Dont show "Erase SD Card" when there is none

On devices with physcal, external SD Cards, the "Erase SD card"
option in in Settings/Storage is available even when there is
no SD card present, this dont make much sense since you cannot
erase a card that is absent. With this change the erase option
is bound to the mount toggle which leads to the following
consequences:

 Card present and mounted -> Erase enabled
 Card present but unmounted -> Erase enabled
 No card present -> Erase disabled
 Card present and MTP attached -> Erase disabled

Change-Id: I756ae8af3e0565febaf940df5f4991dd89105bd9
Allow tablets to send SMS if enabled in device overlays (1/2)

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

Change-Id: I426ae034b0d50a2a7a1e65f9652d63bd76375cda
Bluetooth: GAP: Avoid adding device to cached device list

Change will ensure that devices will not be added to the cached
device list if profile connection state is STATE_DISCONNECTED
or STATE_DISCONNECTING. Otherwise, devices will be added to cached
list and while inquring device will not be listed in available
device list.

CRs-Fixed: 586975
Change-Id: I60bc01c0f2cb5ea87f3c633bcec2f04c90939d67
Bluetooth: HID: Use proper values of connection status

This patch fixes issue in retrieving correct connection status when
more than one hid device was connected to DUT. In such situation
current implementation was sending STATE_DISCONNECTED as connection
state because of wrong check of matching device as 1st device in
connected device list. Instead of this now actual connection state
device is retrieved from HidService.

Change-Id: I2c766e9fc6eb9e97c3745016e38fa5c374c16539
CRs-Fixed: 593065
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into legacy3

Conflicts:
	res/values/pa_strings.xml

Change-Id: Ib47db327000fa2dce7fcbcfb11b4e895b8f57d6b
Settings: use CMHW serial number

See http://review.cyanogenmod.org/57164

Change-Id: If328ca7b487435b88246d1f8c47b04770183f09e
Adds ability to answer call with hardware HOME button

preparation to winter time

Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec
Fix LTO availability check.

Change-Id: Ifb8ab65584df2f8b638b6e178e134b5e3a61cfce
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat
Bluetooth: disable scan icon when BT state is off

Usually onScanningStateChanged function should take care
of disabling the scan icon when the scan is completed.

But When the BT scan is going on and try to switch of the
BT, as onScanningStateChanged function doesn't have the
reference for scan icon it will not disable it, so disabling
is taken care in BluetoothSettings on receiving BT Off state.

On receiving BT Off state, disable the scan progress icon only
when available device category is present.

CRs-Fixed: 543777,596214
Change-Id: Ib827903d4f5c80eeb6ac8a06fb1a945140dd20c9