[1/2] Speed up boot dex opt on multicore devices.

Change-Id: Id42b2bf4a737f93f9ecd9b5819344adbb735f0fb

Patchset: 3
http://review.cyanogenmod.org/#/c/59909/
A background started service is removed from mStartingBackground when timeout.
Fix is to make sure mStartingBackground is updated to remove one.

Change-Id: I0e42beb550d33e6e400349b85bbb89848e18d520
Fix, MountService now only sends one onShutDownComplete

The event onShutDownComplete are sent only when all
volumes are shutdown. (Not one for every volume.)

Change-Id: I6af521ee8285ca581efac7d3c5f013dfbff3ee30
Finish fixing Zygote descriptor leakage problem

In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID.  These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.

This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected.  The CLs need to be approved
together, lest the build break or the software fail to boot.

Round 2: indent change

Bug: 12114500
Change-Id: I090402136a8a8b7d6aad6eb153026e85d7cf6ad3
Sensor: Enable the motion accelerometer for screen orientation change

The screen orientation can be detected by the motion accelerometer
instead of generic accelerometer to save power.

Change-Id: Iaeb3e5958d2ef7cc33080d7091ed8a5462695c67

Conflicts:

	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
Fix Power Shutter Exception 2 of 2

Set protection level to 'dangerous'

Change-Id: I9792f4c543c9ce8a647989ca60cdc9389602551c
Fix SystemUI FC due to missing strings for PIE

The recent clean up of strings by CM removed
the necessary strings for SlimPIE.

Move it to cr_strings!
Revert "[1/2] Speed up boot dex opt on multicore devices."

This reverts commit ce67dca81b64f7ed1170d3108fa89acd90a0c2a8.
Show live wallpapers in the recents view on high-end devices

Change-Id: Iefbf4f292b6a9bfdb516f154cc2976db2ba86cde
Merge branch 'cm-11.0' of https://github.com/temasek/android_frameworks_base into cm-11.0