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: New Danish strings

Patchset 3: More new strings

Change-Id: I46a04c0007b2ba0173f5cbca7ff415e7206f9935
Added hungarian translations

Change-Id: Icc3f3310f2750bbeb5d5851b98ec164bd8484c02
Added German string for discharging information on lockscreen when enabled

Change-Id: I5b3c0c6c1a6185c2069feffe9bf426acbc7de178
Signed-off-by: andryyy <apeters87@gmail.com>
Fix incorrect log message about finding multiple privacy settings when no privacy settings are present.
Corrected log messages which pointed to the wrong function.
Fix for non-working video recording from M66B (http://forum.xda-developers.com/member.php?u=2799345)
Initial implementation of LruCache into PrivacyPersistenceAdapter
Added functions to which debug controls can be attached in OpenPDroid service.
Added debug functionality to enable/disable notifications, cache, and automatic closing of the privacy database
Added PrivacySettings superclass (PrivacySettingsStub) for caching
Resolved cache returning 'null' incorrectly due to not detecting whether cached item was a stub or not.
Add CollegeDev's preferred credit; add missed PrivacyTelephonyRegistry

Also in frameworks/opt/telephony
(Taken from Mateor's commit)
Partial cherry-picking of development code for release
Disabled logging of all locking, database open/clone and cache operations.
Update Russian Translation-CID head-CM10.1
Show dock battery level if available

Updated for Jellybean.

Change-Id: Iabfd12eb327a9fe32ffa46eea5c9038263e105a9
frameworks: add dock battery drawables for HDPI devices

Change-Id: I8cc2cfc74548693ffbdd48447d7fa414fd451f59
Merge "Show dock battery level if available" into cm-10.1
Merge "frameworks: add dock battery drawables for HDPI devices" into cm-10.1
Cleanup dock battery support

Send an intent as soon as the device is undocked to get a timely update
of the SystemUI.

Adds a proper implementation of dock detection in BatteryService via
"dock_battery/device/ec_dock". This will probably have to be rewritten
in a more generic way to support other manufacturers as well (once we
support other docks at all).

Change-Id: Ib1088c118c8695fd93ba085d976ca1eb374ae71e

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java