[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off.

Symptom: Unable to start any activity.
Root Cause: ActivityStack.mPausingActivity() points to a destroyed activity of a died process, so that ActivityStackSupervisor.allPausedActivitiesComplete() always returns false.
Solution: Set mPausingActivity to null in ActivityStack.cleanUpActivityLocked().
Reproduce steps:
    a. Turn screen off.
    b. A background service starts an activity X (in process X).
    c. A background service starts a no-history activity Y (in process Y), but the main thread of Y was blocked.
    d. A background service starts Y 3~4 times --> this causes am_failed_to_pause on X.
    e. Main thread of Y is freed finally --> this causes Y crash for android.view.WindowManager$BadTokenException.
    f. Turn screen on, X is shown on screen, but neither back key nor home key can work because mPausingActivity is Y.

Change-Id: I320b3db407e2d4cc745c8ca22a6e548742234242
(cherry picked from commit 8dbc9172abe81e73d9b5c0e4a3c0f1542ebead22)
Mark constructor as accessible in LayoutInflater.

Needed to bypass new access checks for fields, methods, and
constructors.

Change-Id: I8ff0b44a6cb4f4af1c72734bca366d8b89528030
(cherry picked from commit 6f8770b961ed157edc07a678c61bd3e2324ea9eb)
CM11 Themes: Update lights out resources and extra nav buttons

The ImageViews that hold the lights out dots were not being
updated on a theme change as well as the KeyButtonView with
ID of R.id.one

Change-Id: Ieed5f5ba1d822fe47dad3ec934889bf70eb1a3ad
(cherry picked from commit c5148c306ba768ca51fe8d1f2f105cab0ae5fe6e)
Fix typo causing FC on Russian language

Change-Id: I60c1858e3a8c9f3e6457c47e4029bfa8ddf59b90
(cherry picked from commit 8251ee90d02c6b365e8e789027e49e803ae81fd3)
SignalStrength: Hotfix TD-SCDMA

These checks need to be reviewed, they're making unwarranted assumptions
about signal value formats and possible tech combos.
This appears to work for all possible scenarios I was able to test,
but the "LTE checks" shouln't be necessary at all.

Change-Id: I889e17e79ca2b1b5fcaa393741e19bef9d3f4229
(cherry picked from commit 99afe30f438214799049a2f2c54736e3297dff32)
Media process is crashing with NullPointer exception

Sometime, while creating thumnails list of media files in
compose MMS->attach file,  filepath may be null due to
synchronization issue.
Adding NULL check to avoid NUllPointer exception.

Change-Id: Id6cf5612a959b3ae15b44bc60dbbcbe40c624f09
CRs-Fixed: 636494
(cherry picked from commit c320ede8806b75083c67d0247d999cdd9f53a55d)
Revert "Fix to memory leak leaving WallpaperCropActivity."

This reverts commit 7696ded982852ff697acbfee4dab14157a441829.

(cherry picked from commit 7a2336a6fbd7a56a1465382e4d1249f35a246402)
wallpapercropper: OOM issue while opening *.bmp image

This change manages setting of large images as
wallpapers without encountering OOM.

CRs-fixed: 619815
Change-Id: I3a32ec4b42050b146076f0adf6b6e65afd6fae4e
(cherry picked from commit ac253119a5dc5bc2b0836322800cb4b2938f97f9)