Frameworks/base: Correct Simplified Chinese Translations

The current translation refers to the radio as "收音机", which is the
common name for an FM radio receiver. Based the English strings
(And also based on how AOSP doesn't really have FM radio support),
it's actually referring to the wireless radio, which is translated as
"无线电" in Chinese.

Also submitted to AOSP:
https://android-review.googlesource.com/#/c/46240/

Change-Id: If9578ed285c02873805be2625a85ae8ddc042311
Fix memory leak in SettingsObserver. The observer holds closed activities alive because it registered to ContentResolver.

Move SettingsObserver to DecorView where it is needed and observe/unobserve on attach/detach from Window

Change-Id: I0ca65203bca6c1a3f481ba8cdd58d6d986f9c47b
Fix home/menu unlock with longpress hardware key actions

Also fixes issue where home ACTION_DOWN was waking and ACTION_UP was unlocking the device in a single press.

Patchset 4: mUnlockKeyDown reset properly

Change-Id: Ib4408070fc207c8e2b4230540a551bfed718787d
"Clear all" button on recent apps

    Ported from ParanoidAndroid by zigackly:
    https://github.com/ParanoidAndroid/android_frameworks_base/commit/f8c44e6ef667a3ebe9b658f148fa78a8d4f9a8dd

    Add button to tablet layout ported from Codename Android by zigackly:
    https://github.com/CNA/android_frameworks_base/commit/8d259fe3588c261baa5a17c361255cf28cc82bfe

    Patch set 2: Make the layout consistent, with the button at the top right.

    Patch set 3: Remove the redundant use of removeTask()

    Patch set 4: Top right layout does not work in tablet mode: make it top left for tablets only.

    Patch set 5: Different implementation (No need to keep track of views) - Danesh M

    Patch set 6: Top left layout no longer works for tablet mode with new implementation.
                 Make it bottom left for tablets only.

Change-Id: Iceb86eef41160f1c17e51463b37fd97e27acfb2e
Bluetooth MAP (Message Access Profile) Upstream Changes (3/3)

Incorporates updates to the Bluetooth MAP profile from Code Aurora's
Android Enablement Project since we initially pulled in from their
gingerbread to CM7 last year. This patch addresses bugs with the
current MAP profile, adds a UI request for message access approval
when pairing, and adds additional error checking and logging.
Confirmed to fix date and "Download" function of Ford SYNC Gen1.
Pulled in from the codeaurora jb branch.

Change-Id: I5c7e7396e0e97760bba9bdf4bf848b6bfa58e62c
Update Japanese translation.

  - Add missing translated entries.

Change-Id: I0bc99bd08492078d573103d8cb8f08242bd6f6ac
fix an overflow in the orientation sensor calculations

this would cause the TYPE_ORIENTATION sensor to report NaN after
40 to 800 hours of up-time. this problem only affects the older
and deprecated SensorListener API.

Bug: 7434842
Change-Id: Ie8593cca9c98e4907e417db4106c06151e3ee9a1
Fix infinite recursive loop

FindBugs description:

There is an apparent recursive loop at IntProperty.java
in method set(Object, Integer)

This method unconditionally invokes itself. This would seem
to indicate an infinite recursive loop that will result in a stack overflow.

Change-Id: I3e85911802c54c7a88e0b966e5e0e1896821edf6
Fix: Circlebattery has additional docking battery indicator

As pointed out by Aaron Echols, i forgot about docking batteries.
This patch adds an aditional circle, if a docking battery is attached.

Aaron pointed out, this is important for 10.0.1 release

This patch also fixes a small xml screw up, which created a problem on really high densities.

Patchset 2: Switched position of batteries and cleaned up the code accordingly
Patchset 3: Minor fix of wrong variable name

Change-Id: I2b437bac3428362f3865110d4bb08fad1e5f078c
Merge "Fix: Circlebattery has additional docking battery indicator" into jellybean
Revert "Add simple caching to XML compilation"

This reverts commit 2e39691d11a6559950f05ef8220c57909840675b.
Cache resource ID lookups in aapt

This speeds up certain workloads considerably, particularly
those involved in buildling apps via the SDK.  Windows-based
use should particularly benefit from the change.

Change-Id: I29f4b3a77400b201ee219729cc28a5e359c0c5e8
Changed USB connected icon to feature Cid

Changed the green USB connected Android to blue Cid
and the orange USB mounted Android to orange Cid
Cid has a USB drive hand like the Androids as well

Change-Id: I57386c2d555723adad99cafe8ae6d2e8f6fe8cbd
Changed USB connected page icon to USB logo

Changed the red "Beandroid" on the USB connected page to
a white USB icon.

Change-Id: Iee4c58769369e6dbe8d131eb4a2d9bee49d1e99b
Option to enable gfx effects (2/2)

Allow devices that do not meet ActivityManager.isHighEndGfx(display)
to enable graphic effects such as (in this case) the screen dimming
effect behind an expanded notification panel.

Patch 2: Rebase
Patch 3: Moved observe() before start() so preference boolean is
         set before gfx conditionals are evaluated.
         Still requires restart or reboot for full effect.
Patch 4: Consider high end gfx settings in recents panel

Change-Id: I7f94a00ef3260b66d6d715adbd1b11961ec32ee3

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Clock right or center

Allow clock to be placed either on the right or in the center

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

Thanks to DerTeufel for help with solving all compile issues

Change-Id: If682ae8561e21b771794b06df436be1838c61549
Monitor device storage directly in /data/data

Original change here: http://review.cyanogenmod.org/#/c/9431/

Monitor device storage directly in /data/data.  This could be useful
still on older supported devices.

Change-Id: I121bc05a3938d45b87317c899f79d227f0d07cf7
Longpress hardware key actions in PasswordUnlockScreen

Change-Id: I8e2cf5d839e907344e83c29846bbcb59dfbeabca
Navigation Bar: Ability to enable on every device 1/2

This adds a new Menu item Settings -> System -> Navigation Bar

Patch Set 5 : Just a rebase
Patch Set 6: Rebase
Patch Set 8: Rebase
Patch Set 9: Rebase

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
Framework-res: remove build warning

fixes:
'gsm_alphabet_default_charset' has no default translation

Change-Id: I9043f86f8d3782c0d2ac869351482282355118b1