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

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.
report jb version

Change-Id: I071ebbce8198025efbb36901bbd1b9fe535a2c31
Signed-off-by: Gergely Szell <sethyx@gmail.com>
Merge remote-tracking branch 'upstream/jb' into jb

Conflicts:
	src/com/android/settings/aokpstats/Utilities.java

	new file:   res/values-af-nokeys/strings.xml
	new file:   res/values-af/arrays.xml
	new file:   res/values-af/strings.xml
	new file:   res/values-am-nokeys/strings.xml
	new file:   res/values-am/arrays.xml
	new file:   res/values-am/strings.xml
	new file:   res/values-ar-nokeys/strings.xml
	new file:   res/values-ar/arrays.xml
	new file:   res/values-ar/strings.xml
	new file:   res/values-be-nokeys/strings.xml
	new file:   res/values-be/arrays.xml
	new file:   res/values-be/strings.xml
	new file:   res/values-bg-nokeys/strings.xml
	new file:   res/values-bg/arrays.xml
	new file:   res/values-bg/strings.xml
	new file:   res/values-ca-nokeys/strings.xml
	new file:   res/values-ca/arrays.xml
	new file:   res/values-ca/strings.xml
	new file:   res/values-cs-nokeys/strings.xml
	new file:   res/values-cs/arrays.xml
	new file:   res/values-cs/strings.xml
	new file:   res/values-da-nokeys/strings.xml
	new file:   res/values-da/arrays.xml
	new file:   res/values-da/strings.xml
	new file:   res/values-de-nokeys/strings.xml
	new file:   res/values-de/arrays.xml
	new file:   res/values-de/strings.xml
	new file:   res/values-el-nokeys/strings.xml
	new file:   res/values-el/arrays.xml
	new file:   res/values-el/strings.xml
	new file:   res/values-en-rGB-nokeys/strings.xml
	new file:   res/values-en-rGB/arrays.xml
	new file:   res/values-en-rGB/strings.xml
	new file:   res/values-es-nokeys/strings.xml
	new file:   res/values-es-rUS-nokeys/strings.xml
	new file:   res/values-es-rUS/arrays.xml
	new file:   res/values-es-rUS/strings.xml
	new file:   res/values-es/arrays.xml
	new file:   res/values-es/strings.xml
	new file:   res/values-et-nokeys/strings.xml
	new file:   res/values-et/arrays.xml
	new file:   res/values-et/strings.xml
	new file:   res/values-fa-nokeys/strings.xml
	new file:   res/values-fa/arrays.xml
	new file:   res/values-fa/strings.xml
	new file:   res/values-fi-nokeys/strings.xml
	new file:   res/values-fi/arrays.xml
	new file:   res/values-fi/strings.xml
	new file:   res/values-fr-nokeys/strings.xml
	new file:   res/values-fr/arrays.xml
	new file:   res/values-fr/strings.xml
	new file:   res/values-hi-nokeys/strings.xml
	new file:   res/values-hi/arrays.xml
	new file:   res/values-hi/strings.xml
	new file:   res/values-hr-nokeys/strings.xml
	new file:   res/values-hr/arrays.xml
	new file:   res/values-hr/strings.xml
	new file:   res/values-hu-nokeys/strings.xml
	new file:   res/values-hu/arrays.xml
	new file:   res/values-hu/strings.xml
	new file:   res/values-in-nokeys/strings.xml
	new file:   res/values-in/arrays.xml
	new file:   res/values-in/strings.xml
	new file:   res/values-it-nokeys/strings.xml
	new file:   res/values-it/arrays.xml
	new file:   res/values-it/strings.xml
	new file:   res/values-iw-nokeys/strings.xml
	new file:   res/values-iw/arrays.xml
	new file:   res/values-iw/strings.xml
	new file:   res/values-ja-nokeys/strings.xml
	new file:   res/values-ja/arrays.xml
	new file:   res/values-ja/strings.xml
	new file:   res/values-ko-nokeys/strings.xml
	new file:   res/values-ko/arrays.xml
	new file:   res/values-ko/strings.xml
	new file:   res/values-land/dimens.xml
	new file:   res/values-lt-nokeys/strings.xml
	new file:   res/values-lt/arrays.xml
	new file:   res/values-lt/strings.xml
	new file:   res/values-lv-nokeys/strings.xml
	new file:   res/values-lv/arrays.xml
	new file:   res/values-lv/strings.xml
	new file:   res/values-ms-nokeys/strings.xml
	new file:   res/values-ms/arrays.xml
	new file:   res/values-ms/strings.xml
	new file:   res/values-nb-nokeys/strings.xml
	new file:   res/values-nb/arrays.xml
	new file:   res/values-nb/strings.xml
	new file:   res/values-nl-nokeys/strings.xml
	new file:   res/values-nl/arrays.xml
	new file:   res/values-nl/strings.xml
	new file:   res/values-nokeys/strings.xml
	new file:   res/values-pl-nokeys/strings.xml
	new file:   res/values-pl/arrays.xml
	new file:   res/values-pl/strings.xml
	new file:   res/values-pt-nokeys/strings.xml
	new file:   res/values-pt-rPT-nokeys/strings.xml
	new file:   res/values-pt-rPT/arrays.xml
	new file:   res/values-pt-rPT/strings.xml
	new file:   res/values-pt/arrays.xml
	new file:   res/values-pt/strings.xml
	new file:   res/values-rm-nokeys/strings.xml
	new file:   res/values-rm/arrays.xml
	new file:   res/values-rm/strings.xml
	new file:   res/values-ro-nokeys/strings.xml
	new file:   res/values-ro/arrays.xml
	new file:   res/values-ro/strings.xml
	new file:   res/values-ru-nokeys/strings.xml
	new file:   res/values-ru/arrays.xml
	new file:   res/values-ru/strings.xml
	new file:   res/values-sk-nokeys/strings.xml
	new file:   res/values-sk/arrays.xml
	new file:   res/values-sk/strings.xml
	new file:   res/values-sl-nokeys/strings.xml
	new file:   res/values-sl/arrays.xml
	new file:   res/values-sl/strings.xml
	new file:   res/values-sr-nokeys/strings.xml
	new file:   res/values-sr/arrays.xml
	new file:   res/values-sr/strings.xml
	new file:   res/values-sv-nokeys/strings.xml
	new file:   res/values-sv/arrays.xml
	new file:   res/values-sv/strings.xml
	new file:   res/values-sw-nokeys/strings.xml
	new file:   res/values-sw/arrays.xml
	new file:   res/values-sw/strings.xml
	new file:   res/values-sw600dp-land/dimens.xml
	new file:   res/values-sw600dp/bools.xml
	new file:   res/values-sw600dp/dimens.xml
	new file:   res/values-sw600dp/styles.xml
	new file:   res/values-th-nokeys/strings.xml
	new file:   res/values-th/arrays.xml
	new file:   res/values-th/strings.xml
	new file:   res/values-tl-nokeys/strings.xml
	new file:   res/values-tl/arrays.xml
	new file:   res/values-tl/strings.xml
	new file:   res/values-tr-nokeys/strings.xml
	new file:   res/values-tr/arrays.xml
	new file:   res/values-tr/plurals.xml
	new file:   res/values-tr/strings.xml
	new file:   res/values-uk-nokeys/strings.xml
	new file:   res/values-uk/arrays.xml
	new file:   res/values-uk/strings.xml
	new file:   res/values-vi-nokeys/strings.xml
	new file:   res/values-vi/arrays.xml
	new file:   res/values-vi/strings.xml
	new file:   res/values-xlarge/dimens.xml
	new file:   res/values-zh-rCN-nokeys/strings.xml
	new file:   res/values-zh-rCN/arrays.xml
	new file:   res/values-zh-rCN/strings.xml
	new file:   res/values-zh-rTW-nokeys/strings.xml
	new file:   res/values-zh-rTW/arrays.xml
	new file:   res/values-zh-rTW/strings.xml
	new file:   res/values-zu-nokeys/strings.xml
	new file:   res/values-zu/arrays.xml
	new file:   res/values-zu/strings.xml
	modified:   res/values/strings.xml
	new file:   res/xml-ar/timezones.xml
	new file:   res/xml-bg/timezones.xml
	new file:   res/xml-ca/timezones.xml
	new file:   res/xml-cs/timezones.xml
	new file:   res/xml-da/timezones.xml
	new file:   res/xml-de/timezones.xml
	new file:   res/xml-el/timezones.xml
	new file:   res/xml-es/timezones.xml
	new file:   res/xml-fa/timezones.xml
	new file:   res/xml-fi/timezones.xml
	new file:   res/xml-fr/timezones.xml
	new file:   res/xml-he/timezones.xml
	new file:   res/xml-hr/timezones.xml
	new file:   res/xml-hu/timezones.xml
	new file:   res/xml-id/timezones.xml
	new file:   res/xml-in/timezones.xml
	new file:   res/xml-it/timezones.xml
	new file:   res/xml-iw/timezones.xml
	new file:   res/xml-ja/timezones.xml
	new file:   res/xml-ko/timezones.xml
	new file:   res/xml-lt/timezones.xml
	new file:   res/xml-lv/timezones.xml
	new file:   res/xml-nb/timezones.xml
	new file:   res/xml-nl/timezones.xml
	new file:   res/xml-pl/timezones.xml
	new file:   res/xml-pt/timezones.xml
	new file:   res/xml-rm/timezones.xml
	new file:   res/xml-ro/timezones.xml
	new file:   res/xml-ru/timezones.xml
	new file:   res/xml-sk/timezones.xml
	new file:   res/xml-sl/timezones.xml
	new file:   res/xml-sr/timezones.xml
	new file:   res/xml-sv/timezones.xml
	new file:   res/xml-th/timezones.xml
	new file:   res/xml-tl/timezones.xml
	new file:   res/xml-tr/timezones.xml
	new file:   res/xml-uk/timezones.xml
	new file:   res/xml-vi/timezones.xml
	new file:   res/xml-zh-rTW/timezones.xml
	new file:   res/xml-zh/timezones.xml
	modified:   res/xml/usb_settings.xml
	modified:   src/com/android/settings/DeviceInfoSettings.java
	new file:   src/com/android/settings/aokpstats/AnonymousStats.java
	new file:   src/com/android/settings/aokpstats/PreviewData.java
	new file:   src/com/android/settings/aokpstats/ReportingService.java
	new file:   src/com/android/settings/aokpstats/ReportingServiceManager.java
	new file:   src/com/android/settings/aokpstats/Utilities.java
	modified:   src/com/android/settings/deviceinfo/Memory.java
	modified:   src/com/android/settings/deviceinfo/UsbSettings.java