Add option for switching between UMS and MTP/PTP mode. (2/2)

Change-Id: I6cf50a41a9a82e40e702f5231ce663636c149613

This adds support for switching between UMS and MTP/PTP.
Settings part (this part) adds option in USB settings (statusbar/notification drawer) for enabling UMS,
and adds setting in Storage menu to enable / disable UMS, this since the USB settings page disappears when enabling UMS.

It's only porting this http://review.cyanogenmod.org/#/c/21115/

Conflicts:
	res/values/strings.xml
	src/com/android/settings/deviceinfo/Memory.java
	src/com/android/settings/deviceinfo/UsbSettings.java
Settings - add an AlertDialog before to delete APN to avoid fails

patch 1: fix blank space
patch 2: remove FR translation and change NegativeButton string
patch 3: improve the NegativeButton (thank you, David)
patch 4: remove create()

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

Change-Id: If4185f9eec0adfa47a6741eb21111b6cdafac008
Apn Settings : Fix panel title

Show appropriate apn editor title

Change-Id: I1f9dbce5dbf464db79d7c2fbedb8f833e4b46468
SoundSettings: Show DSPManager

Change-Id: I199150b82c6f5eb72f419dc8c70fb27ed24fbfda
Use API Level 16 method for creating a MIME NDEF record

When writing a profile ID to an NFC tag to have it trigger a profile change,
use the NdefRecord.createMime()-method instead of manually creating the NDEF
record.

Change-Id: Iaa1f105c3f0b46a1d672e96224eafea4fd99d7d5
Profile: fix airplane mode

Entering ProfileConfig used to flip back airplane mode settings to "deactivate".

Change-Id: Ib8f267f588ca756b51035ae7ca3eb0e2ecf1bfe5
Adds ability to answer call with hardware HOME button (preparation to winter time)

Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec
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.

Patchset 2: Move WiFiPriority from cyanogenmod folder to wifi folder
            Remove double quotes in SSID name
Patchset 3: Fixed code issues

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

Conflicts:
	res/values/strings.xml
One does not simply become a Developer

Change-Id: I64ab4d7ab9d8334275d2e4d493b716a8fc73ab4e

Conflicts:
	res/values/strings.xml
Bluetooth MAP (Message Access Profile) Upstream Changes (2/3)

PORTED FROM CM10: http://review.cyanogenmod.org/#/c/26393/

Incorporates updates to the Bluetooth MAP profile from Code Aurora's
Android Enablement Project since we initially pulled in from their
gingerbread to CM7 last year. This patch addresses bugs with the
current MAP profile, adds a UI request for message access approval
when pairing, and adds additional error checking and logging.
Confirmed to fix date and "Download" function of Ford SYNC Gen1.
Pulled in from the codeaurora jb branch.

Change-Id: Ie35067f389ced8e86433a991776b4a8e1f1ce963
Performance: BootReceiver: set CPU min/max freqs before CPU governor

When setting certain combinations of CPU governor/freqs on boot , the
max frequency needs to be changed first in order for some settings to
work correctly.

Example: changing from a default governor of ondemand and frequency
of 1GHz to interactive governor and 1.2GHz frequency , hispeed_freq
will get stuck at 1GHz unless the max frequency is set prior to the
governor.

Change-Id: I302739893470ec0fa27197c122ebed4795347d61
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

Conflicts:
	res/values/config.xml
	src/com/android/settings/carbon/BootReceiver.java
ic_grabber drawables

Change-Id: I713a05dbc7c8e98252d3c933501b2c1368bf72c6
Correctly remember MAP access selection.

Previously, the MAP access notification used to pop up on every BT
connection. 'Don't ask this again' didn't work. Fix that by correctly
remembering not only the PBAP access selection, but also the MAP access
selection.

Change-Id: I8fb9bedc02f696c9247861eb57ad64c4a8f5f6fa
Reenable split action bar for profile settings.

Change-Id: I5af3f0fd7cafaab6f2d9152df943658170fc58ce

Conflicts:
	src/com/android/settings/Settings.java
Some additions needed for wifi priority

Change-Id: I5d0abf4eddc5ffcd4901c6a3b4a0779af0a357f5
Settings : Fix accessibility shortcut

Shortcuts like accessibility, have preferences with titleText rather than
titleRes as their title. Settings only had a override for titleText, which caused
preference screens inside accessibility to not work. This commit addresses that.

Reproducable via :

1. Create a settings accessibility shortcut.
2. Launch shortcut and try to open an of the services

Expected behaviour : Appropriate ToggleAccessibilityServicePreferenceFragment should open
Observed behaviour : Same Settings instead gets relaunched instead

Change-Id: I89b7539672cd7278d51f9e88bac1948669940e59

Conflicts:
	src/com/android/settings/Settings.java
Revert "Settings : Fix accessibility shortcut"

This reverts commit 62fb18ed4bdd6335470f4be56dad93ed2a01ef31.