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>
Refactor The Last Commit A Bit
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/
Disable Automatic brightness checkbox if automatic brightness is not available

port from jellybean branch: http://review.cyanogenmod.org/#/c/26134/

Change-Id: Ib32b9af5f79d5c5f7383dd5542891a82a17f3989
Fix the spacing between displayed rotation angles

Before: http://goo.gl/QJ7hE
After:  http://goo.gl/V0alW

My suggestion: http://goo.gl/Sn4R5

Patch Set 1:    * initial commit

Patch Set 2:    * simplify code
                * fix code style issues
                * rename/delete strings
                * remove 'Activated.' before the values
                  when Auto-rotate screen is activated

Patch Set 3:    * remove display rotation unit string
                  and use the degree sign after every
                  value

Patch Set 4:    * code cleanup

Change-Id: I0319f8e84e4b278b2f720cbc77cecc280c82d461

Conflicts:
	res/values/strings.xml
TouchInterceptor: Fixed image cache problems
Fixes the problem shown in this video:
http://youtu.be/piqHych4nJY

Change-Id: I42f35ddd6677afd10187a7c5a390287acd3f39a9
Settings: Make it clearer how SMS Limiting works and add 500 messages option

Change-Id: Ia7458d7e7cde1cfbb6641d4b05fd9caf59d21db8

Conflicts:
	res/values/arrays.xml
Merge branch 'jb2' of github.com:LiquidSmooth/android_packages_apps_Settings into LiquidSmooth-jb2
Merge branch 'jb2' of git://github.com/CarbonDev/android_packages_apps_Settings into jb2