providers/Settings: getBoolean and putBoolean methods

- We'll use them in AOKP custom animation and may use in other features

(cherry picked from commit 2d05c0875a0e7e18508228294b124d0c22fefcba)
AOKP custom system animations (1/2)

- Work by AOKP team and ported by @cristianomatos @crdroidandroid

(cherry picked from commit 36272d98ef508402cdc8b204d391ce15196464a0)
[ActivityManager] Reset ActivityRecord's waitingVisible

Symptom:
The ActivityRecord's waitingVisible is not set to false for
all cases when the ActivityRecord is removed from
mStackSupervisor.mWaitingVisibleActivities.

Solution:
Set the waitingVisible to false when it is removed from
mStackSupervisor.mWaitingVisibleActivities

Change-Id: If0f0683971d70a6866b0167e91dd95feebaac178
(cherry picked from commit a87ac043291c7e087ea9d03e73094ee59bf98709)
Correct a mistyped word "MSG_SET_CLEINT" to "MSG_SET_CLIENT"

"MSG_SET_CLEINT" is mistyped, so correct it.

Change-Id: Ib5eeaf7071e95db8b2375ca09d10420a5a445543
(cherry picked from commit 1528ec8f144b7ee8ff0a9944f13a940bf136aecb)
AOKP animations: Add an entry for TRANSIT_TASK_OPEN_BEHIND [1/2]

(cherry picked from commit e00311cdfb05f0bc09d4d82471579a74f181e0e6)
Fix "pm list permissions" crash if resource string missing

The "pm list permissions" command lists detailed information about
each permission on the system, including its label and description,
both of which can be stored as translatable resource strings in APK
files.  However, it is possible that the resource identifiers for
these strings point to non-existent resources.  When this happens, the
loadText() method throws Resources.NotFoundException, causing the "pm"
command to abort prematurely, simply printing "Killed" to stdout and
a stack trace to logcat.

This commit fixes the crash by explicitly catching the
Resources.NotFoundException exception in loadText() and returning null
if it is thrown.  The loadText() method already has the potential to
return null so none of its callers need be modified.  This fixes the
crash and simply shows "label:null" and/or "description:null" in the
output if the string resource is missing.

Change-Id: I92273399e1dac6029163750d004940ee1da67428
(cherry picked from commit dcb9d960873500f6c36d7cba5aa6de1cbdf0d981)
Fixed grammar in the comment that introduces the Debug.MemoryInfo class.

Change-Id: Ic021e689b7a8c55367277875b321358535c04e6a
Signed-off-by: justinmuller <justin.muller@acm.org>
(cherry picked from commit 1f379dce53a3bfb63b158ca96219062871e5b72f)
[WIP] Cleanup battery style code (Updated to PS10)

* Cleanup commented out code
* Fix landscape battery icon padding
* Fix landscape battery icon charging indicator
* Fix circle battery frame color on some black backgrounds
* Fix percentage not shown while charging
* Fix landscape battery icon percentage indicator
* Fix circle battery artifact on low percentage
* Fix battery icon showing after reboot on text/hidden modes

Change-Id: Ic56878c26e9a3416149eaaa8a9325d56d664e22e
(cherry picked from commit f4d8afbc3e69beea4252ff1d33ab1c957ab799a9)