wifi: Allow configuration of country code for wifi (2/2)

Wifi country code handling is a nightmare - Most retail devices
have region customization in /system for each country a device
is shipped to.

This doesn't work very well for a firmware like Cyanogenmod,
where we try to support all target countries with one firmware
package.  For whatever reason, with newer Broadcom drivers/
firmware blobs, the old trick of using a universal region code
(ccode=ALL in nvram_net.txt) does not seem to work.  Who knows
what the deal is for other wifi chipsets.

The good thing is that wpa_supplicant has a standardized
cross-chipset method for setting the region code, and we
use that here.

Ported from cm-10.2
Framework part: http://review.cyanogenmod.org/54997

Change-Id: Ia9f5133f61f56d89ccb290e37a393f5de507e1cf

Conflicts:

	res/values/cm_arrays.xml
	res/values/cm_strings.xml
Wi-Fi: Manage Wi-Fi AP priorities

AOSP has a basic LRU priority for Wi-Fi networks (last connected has more priority).
This changes added the ability of graphically set the priority of any of the configured
Wi-Fi networks through Settings -> Wi-Fi -> Advanced Settings -> Wi-Fi priority.

Port from cm-10.2:
* Added ic_grabber icons

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ief590e799cdb7ef760b631d0b22d9719f867393f

Conflicts:

	res/values/cm_dimens.xml
Settings: remove force overflow button

As of KitKat, the overflow button is always shown regardless of if
a physical menu button is present or not.

https://android.googlesource.com/platform/frameworks/base.git/+/ea04f3cfc6e245fb415fd352ed0048cd940a46fe

Change-Id: Ia05756248e9f55ac68bf31abdb7327edf6a806c4

Conflicts:

	res/values-de/cm_strings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
settings: bring back volume key cursor control

Framework part seems to have survived the merge.

Move volume key cursor control from language & input
to button settings.

Change-Id: Ice2b266e8fdbcdf805d36d8f2e335b569e57be65

Conflicts:

	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/xml/button_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
Settings: Battery Options

Until we find a suitable solution for displaying the text percentage
on the battery bar, hide the option.

Change-Id: I07cc98d3ee32c037c9dcf1f8b2ecb368c96aab47
Wi-Fi AP priorities: Add RTL support

Change-Id: Ie24f6e4fc37e2ffc9a0e830d4287fbe7b2935a63
Settings: Long Term Orbits (LTO)

Ported from http://review.cyanogenmod.org/#/c/51422/3

Change-Id: Ia1fdf9e0ffa401f64ee9a5c130ed10709d930eb7
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:

	res/values/cm_strings.xml
settings: Enable location mode header switch

Change-Id: I347e769351bc15daa87d3b6d684afe4e80416ecc
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:

	src/com/android/settings/Settings.java
Merge branch 'kitkat' of https://github.com/AOSPA/android_packages_apps_Settings into kitkat
Settings : Add hooks for device specific features

Add support for :

Devices with bluetooth input peripherals
Devices with screen gesture support
Devices with a back touchpad

Conflicts:
	res/xml/language_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
	src/com/android/settings/cyanogenmod/SystemUiSettings.java
	src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java

Change-Id: Ia4835c69a8ba8fb76597e0ab0540f8ef1ed6e322

Conflicts:

	res/xml/system_ui_settings.xml
	src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
Merge branch 'kitkat' of https://github.com/AOSPA-legacy/android_packages_apps_Settings into PAkk

Conflicts:
	res/values/cm_strings.xml