Settings: Advanced low battery indicator options (2/2)

Based on a Slim Roms implementation with a special thanks to @kufikugel
This commit introduces following new modes to indicate low battery.
Accessible through action bar and following PA way of features implementation (clean, simple, functional and beautiful)
     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

PS2 - Swap battery and warning icons on action bar
PS3 - Update commit message

Change-Id: I2d5358962c3bbf7b60c8af19aad9db3a4a8071de
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat
Show "Eject card" for usb storage

Readd the "Eject" options if the SD card is mounted via usb.

Change-Id: I802cf4d20eb3b45ce068f89c22352f79999d593e
MSim Settings: Update UI/UX with user friendly strings

  Hide TuneAway and Priority subscription preferences unless
  config_HasTuneAway is set to true in device overlay.

  This conditionally reverts cea415df0cf19f9eb3dc1fef16d3a8955584c4f9
  as some device RILs don't support it.

Change-Id: I453f0833d80e17f7249d3b7c23fb2cc73ebd4c32

Conflicts:
	res/values-af/cm_caf.xml
	res/values-ar/cm_caf.xml
	res/values-ca/cm_caf.xml
	res/values-cs/cm_caf.xml
	res/values-da/cm_caf.xml
	res/values-de/cm_caf.xml
	res/values-el/cm_caf.xml
	res/values-es-rXA/cm_caf.xml
	res/values-es/cm_caf.xml
	res/values-fi/cm_caf.xml
	res/values-fr/cm_caf.xml
	res/values-hu/cm_caf.xml
	res/values-it/cm_caf.xml
	res/values-iw/cm_caf.xml
	res/values-nl/cm_caf.xml
	res/values-pl/cm_caf.xml
	res/values-pt-rBR/cm_caf.xml
	res/values-pt-rPT/cm_caf.xml
	res/values-ru/cm_caf.xml
	res/values-sk/cm_caf.xml
	res/values-sr/cm_caf.xml
	res/values-tr/cm_caf.xml
	res/values-zh-rCN/cm_caf.xml
	res/values/config.xml
MSIM: Update icon for Multi Sim Settings category

Make it white like all the others

Change-Id: I7aed57b57e0151fcc5eb2418f67baf5e33b21658
Settings: modify AOSP RU translation

Changed "data_usage_menu_metered" and "data_usage_metered_title" to
state it configures Mobile hotspots, not something like APNs.

Change-Id: I40db1da7d6f4a801de5a06c6a5790580da080ebd
settings: Remove "mobile plan"

 * Useless menu item.

Change-Id: I0b35017cb9a52600cde5d31065f007210f916a41
Bluetooth: Release pan proxy object while coming out from tethering menu

A case where user is going into tethering menu & coming out repeatedly
(2000 iterations) irrespective of Bluetooth state(ON or OFF). Setting
application get crashed after 1386 iterations. Each time TetherSetting
& BluetoothPan object were leaked, because connection of the pan profile
proxy to the Service was not closed by tetherSetting while coming out
from tethering menu. Releasing the pan proxy object while coming out
from tethering menu to avoid memory/objects leak.

Change-Id: I06a5e1ed37a024695fddb1e95f62b72fd56510d3
CRs-Fixed: 622489
Bluetooth: Ignore the second button if one already pressed

Ignore the second buton if already one button is pressed,
this case comes when user is trying to press the both
cancel and ok for the pairing dialog.

Change-Id: I77516ec59a972b4451bb8cff69645f7b9089497f
CRs-Fixed: 624285
Fixes error message during pairing of HOGP devices

When incorrect pin key is entered by user in
the pairing pop up while pairing with a HOGP
device, no error message regarding the failure
is displayed to the user.

CRs-fixed: 618905
Change-Id: I1a5a8baf9ef6c71bf285a28b3e1839fe5ddbca95
Bluetooth: Increase allowed duration to connect to a profile

This patch increases the duration allowed between the first device
connection attempt (immidiately after bonding) and profile connection
after service discovery from 5 seconds to 30 seconds to allow
HOGP connections for slow connection conditions.

Change-Id: I5b17bd0bd2b560709e6e67e2d83f9bca7ea2509d
CRs-Fixed: 612105
P2PSetting:Avoid p2p_find on group removal event

Immediately after group termination p2p_find is being issued
from settings and this causing issue whenever user sends
connection request immediately after group_removal_event.

Change-Id: I6ae90a1d710e0e977a1dbc171398fd270dc30183
CRs-Fixed: 622597
Packages : Fix for Softap turn ON/OFF fail issue.

If Softap is enabled using third party applications which make use
of WifiManager APIs, Softap enable fails. This is due to improper
handling of Softap State change event.

To resolve this issue, handle the Softap state change intent with
proper initialization of variable "mWaitForWifiStateChange".

CRs-Fixed: 634896
Change-Id: I63f8845ec3e8ebfa8ec09a7b1a1bc4ee175336cf