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 coding style.

Change-Id: Ia3d84f0ed6174234e07b1a5faa244cd63b4f6b4c
Fix code formatting issues.

Change-Id: I5c3cde249cd5b514c616b8c42b8eb2549de247a6
Keyguard: remove duplicated code

Patchset 2: fixed whitespace error
Patchset 3: a few more tiny changes
Patchset 4: some code moving, removing an unnecessary member
Patchset 5: make toggleSilentMode() a bit easier to read
Patchset 6: revert most of the cleanup
Patchset 7: fix syntax error
Patchset 8: fixes pointed out by Danny Baumann

Change-Id: I4e5f8c92b223c1260891472dbf807d5ff53e5721
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
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>
Add a long-click target (display settings) to the brightness tile

Change-Id: I538cda0ecf999467d7b6a30501807c0c52fb59b6
AudioService: allow volume control on analog dock

This re-enables volume control on some Motorola docks.

Change-Id: If7751867de2c0cefb5a8518b5a6a607a9676b946
Re-implement magnetic targets

This reverts commit 8d037a2ded2edafc2ecafad2a8d799cb3f82f629.

Change-Id: I26da0ab2c9d65828bf9cd16a82dad7d1c50dc891