Swap volume buttons when the screen is rotated (2/2)

Patch Set 7: Hide option if device not supported

Patch Set 8: Fix string derp introduced on ps7

Patch Set 9: Invert the orientation interpretations on tablets

Change-Id: Ie2166a4d50050e7a60933251bfc8cda97c42d419
Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code.

Fixes:

1. Add additional strings to BAND_NAMES array for additional bands from ril.h
2. Fix logic when adding band strings to selection list (for loop ends before entire array is read)

Change-Id: I5ff883a469f757a30c71d7d72c8f6ace19ce7a4d
Signed-off-by: Andrew Xie <andrew.w.xie@gmail.com>
(cherry picked from commit 4845045bb2dfd9b1a67f9f0c62bb44bfc5152284)
Adding configurability of frequency cap (min/max) files' path.

This way those devices that have a special path for
frequency caps can overlay it in the given device's
resources for Settings package.
It's defaulting to the general paths that are used
in most of the kernels.
It's usable for example in endeavoru device tree
where the max cap can only be set through
a different sys path.

Change-Id: Ic3113222580ebe8cc8e43d3dad7a15e041448c53
Wifi: Allow configuration of Ad-Hoc (IBSS) networks

Show Ad-Hoc (IBSS) networks in the list of available Wi-Fi networks and allow
to connect to or create new Ad-Hoc (IBSS) networks.

This requires the IBSS changes in frameworks/base and external/wpa_supplicant_8

Change-Id: Ie44c47753100bbf8e691446e69b8d31659f64e3b
Wifi: Enable IBSS options only if IBSS is supported

Show IBSS network options only if IBSS mode is supported by the Wifi driver.

This makes use of the new API isIbssSupported() of WifiManager. We have to be
careful to make the query only after we reached WIFI_STATE_ENABLED.

WifiSettingsForSetupWizardXL is left out because it does not handle these
states.

Change-Id: I072c5cc6ed36305806b469cf05c4786d22bfd418
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1