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

Change-Id: I8e692d468cb36ccc97ca69b8a2eb11afeb711eae

This adds support for switching between UMS and MTP/PTP.
Framework part (this part) will only enable UMS if the config setting is set.
Standard is to enable UMS if the primary volume supports UMS.

It's only porting this http://review.cyanogenmod.org/#/c/21117/
Fix profile's xml

Patch Set 1:
Fix parsing profile's xml for airplane mode and ring mode.
Reading the xml used to turn all settings below airplane mode and ring mode to default.

Patch Set 2:
Rebase
Clean up

Patch Set 3+4:
Rebase

Change-Id: I902318fd4db82bb628e0d157c48c4e86ba30cf71
Notification : Fix app info long-press

Addresses http://code.google.com/p/cyanogenmod/issues/detail?id=7060

Change-Id: I45c0e1b73c08ceffef02db244b947bfcedf3b20a
PT-BR: Update translations

Change-Id: I69b2c520c7bb59b1a3e78e9ace18c03f1ad8d27f
Keyguard: Reduce font size of clock in status keyguard (sw720dp)

When system clock is configure for a 24H clock, times like 22:22, overflows the clock
of the keyguard status view on sw720dp. This change reduces the font size of clock to
allow to fit all time formats.

Change-Id: I1416c2a0f9da039f4beb4cdb77dbc5069dc47671
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
SystemUI QuickSettings: Allow more off-status localizations

Create strings for NFC off and Sync off so that they can be localized
appropriately.

This is a continuation of: http://review.cyanogenmod.org/#/c/30327/

Change-Id: I070310868147af84b10d15c7d872f6d43120434b
SystemUI: highlight quick settings and notification clear buttons

Actually make use of the drawables bestowed upon us by the Google

Change-Id: I54ed68cf529eec0a0b76e9e35599d70a7d38f686
Prevent audio players starting on startup.

Previously, (at least) Apollo was started on startup (in that it
appeared in the notification bar) because it listens to the AUDIO_BECOMING_NOISY
intent to silence itself in that case. This intent is broadcast by
AudioService when there's a user switch to silence any potential audio
players for the old user. As the system also sends around a
USER_SWITCHED intent on startup, this led to the aforementioned player
startup.
As the intent of AudioService was to act on a user backgrounding anyway,
send out AUDIO_BECOMING_NOISY as reaction to a USER_BACKGROUND intent
instead of the USER_SWITCHED intent.

Change-Id: Iba35844a1274c9dd195f104068304e6a7ffa809e
Notification sound-to-vibration conversion toggle

Allows to change the new feature of AOSP 4.2, where all notification are
changed to vibrations on vibrate mode. Instead, allow the old behaviour
to silence sound notifications and to only play vibrations if desired.

Alle credits go to romanbb from AOKP, I just ported it.
Original AOKP-Commit:
https://github.com/AOKP/frameworks_base/commit/c1b2bb9b5d0c33e790973841bb2acaa5ea5d51fe

Change-Id: Id27dd2975d3383f6d7395a0ee995d7832e87ca66

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
Navbar : Fix left over glow

Invalidate all buttons, to avoid nearby glow interference

Change-Id: I83ab05b91bd5db70390a5c9480513768864a2be7
frameworks: base: systemui: modify hdpi & xhdpi drawables for battery_min

* These drawables are to large for the new phablet ui. See screenshot:
  http://i.imgur.com/AR8BUH8.png This change modifies the hdpi and xhdpi
  drawables to the sw720p-mdpi drawables, which look correct in the status
  bar.

Patch Set 4: modify commit message to reflect the change

Change-Id: I4f94dbdd37d0b8d9a7efbe9a78c3816eaa33b173
Grant qcom_oncrpc group to system_server

 * Needed for RPC-based QC GPS

Change-Id: Idebc5f6f8e7f8c136d931d7638338d3611895d8a

Conflicts:
	core/java/com/android/internal/os/ZygoteInit.java
Framework: Enable multi-user support for Quiet Hours

Change-Id: Ica967ff6bf5842a08421583449876ba73de13d51
Framework: Enable multi-user support for Notification light

Change-Id: I4fb84fdb0c9e1592c2a421011c303a789cde8c8c

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
Framework: Fix multi-user support in AudioService

Change-Id: Iddeeeac0734a237103e238bcdaa1e85806a64e4f
Framework:  Fix security exception

Change-Id: I4fa1f55c8209e6890b6cea13b0ed4d781f9f615d
QuietHours Tile (1/2)

Allows user to toggle state of quiet hours

Part 2 : http://review.cyanogenmod.org/#/c/31302/

Patchset 2 : New drawables courtesy of Björn Lundén
         3 : Make multiuser compatible

Change-Id: I10f7b7befbf7405e47247d90bfee0f30c3ecd7c9
Quick Settings: Add visual indicator of ON/OFF Setting of Mobile Data tile

This addresses issue CYAN-221

Change-Id: I7dc0c8943df7a9478655bdde6745662c3831288f
QuickSettings: Better Mobile network tile disabled overlay handling

Change-Id: I0a2b6b570912002d9f1edf5809c1aa532e1531a0
Add back backlight brightness curve adjustment.

Change-Id: I58408111d6366a281303afb469d78588ae88d275

Conflicts:
	services/java/com/android/server/power/DisplayPowerController.java