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
Framework: Fix button label toasts when layout is RTL

Google have decided to set their gravity "relatively", while they measure only from the left.
The result? Toasts appearing in the wrong side of the screen.

Change-Id: If5e9d5fc2751fbef3eb058b241168fb9d8bf4b98
SystemUI: Fix dock battery visual glitch

Hide dock battery views if device don't support dock battery status

Change-Id: If470e00a9afc2233865302bf3fa13367a77c6191
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Camera: add additional ISO modes (2/2)

Change-Id: I3460c3de4cbef467430673146a9ddb2fdc8f5032
Merge "Camera: add additional ISO modes (2/2)" into cm-10.1
Changed profile selection to single-tap action

The behavior taken from reboot (choose action, select okay) was
inappropriate for profile selection, which has no big impact at all.

so now, simply selecting a new profile will toggle the action and close the dialog.

this patch is needed for the power menu qs tile (WiP)

Patchset 2: Remove cancel button and title to stay consistent with power
menu

Change-Id: I474d5ba4753e7d6cd21a916f2e2aaf8ddb224fd2
Merge "Framework: Fix button label toasts when layout is RTL" into cm-10.1
[2/3] mediaeditor: Allow custom DOMX source instead of Google DOMX default

Part 2 of 3 patches: To allow omap4 devices to use custom "domx" source
via a new BoardConfig.mk item:
TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx

This setting provides for 3 changes during the build:
1. In hardware/ti/omap4xxx this settings stops standard Google domx
source from being built and changes the domx reference for tiutils.
2. In frameworks/base it changes the default openmax references for
frameworks/base/media/jni/mediaeditor/Android.mk to the new location
3. In frameworks/av changes the openmax references in 5 places, and adds
new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp

This commit is based on cherry-pick from omapzoom (with a more descriptive
BoardConfig setting name):
http://www.omapzoom.org/?p=platform/frameworks/base.git;a=commit;h=f7f929ff477955333bf7e7413a81a66d683d1f3f

Change-Id: I76e558ce840ea45eec14194f2e9107fb83cebf8f
Signed-off-by: Hashcode <hashcode0f@gmail.com>
frameworks/base: Added English UK keyboard layout for physical keyboards

Change-Id: Id6feb128964c76ebd74b3e0d67d8f90fedb91dda
Fix for ambiguous and broken disk formatting dialog

This patch ensures that the path-string from StorageNotification is converted
to the appropriate StorageVolume so that it can be correctly passed to the
formatting class. It also displays this path to the user so that it is clear
what will be deleted.

While trying to use a USB flash drive over OTG, the drive's FS somehow got
corrupted, so Android gave me a notification to re-format it. Okay, so then
a dialog pops up that doesn't specify what volume/device it will format, and
I incorrectly assumed it would be the USb drive. However this activity defaults
to the main internal memory for some reason, and wiped my data. Thank God for
them internets... (Dropbox)

Change-Id: I5621dff3cfd12a173b0d793398cf729333f97263
Re-implement magnetic targets

This reverts commit 8d037a2ded2edafc2ecafad2a8d799cb3f82f629.

Change-Id: I26da0ab2c9d65828bf9cd16a82dad7d1c50dc891
Status Bar: Fade CM widgets on Low Profile mode

CyanogenMod's status bar widgets do not fade (Circle battery, signal
text, etc), when low profile mode is entered.

This makes them behave.

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

This re-enables volume control on some Motorola docks.

Change-Id: If7751867de2c0cefb5a8518b5a6a607a9676b946
SystemUI: always use transparent notification shade

Devices with less than 512MB of memory have a solid
black notification shade. Remove the isHighEndGfx()
check to force a transparent notification shade on
all devices.

Change-Id: I9a68a2a8b0d36685f8899f3bbed43bb6bccb47b1
Add a long-click target (display settings) to the brightness tile

Change-Id: I538cda0ecf999467d7b6a30501807c0c52fb59b6
PowerManagerService: Implement setButtonBrightnessOverrideFromWindowManager method

Differs from Android 4.1 (and earlier) implementation in that the
overridden button light still turns off after BUTTON_ON_DURATION instead of
staying on until screen off.  However, button lights are annoying, and
really the purpose of this is to allow apps (e.g., Screen Filter) to
_disable_ the button lights altogether.
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/
Merge "Fix profile's xml" into cm-10.1
Merge branch 'cm-10.1' of git://github.com/CyanogenMod/android_frameworks_base into jb-mv

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

Change-Id: I6f5d8e9e777583478e67735a66129d39a741f98b