Update_SK_quick_settings.xml
(cherry picked from commit 44e7aa343c402453df491d88a37a3cf3fcf2cce3)
RU translation android/frameworks/base

(cherry picked from commit 4cfb577b50d6cca146f77df257f911f73fb75711)

Conflicts:
	core/res/res/values-ru/cr_strings.xml
	packages/SystemUI/res/values-ru/cm_strings.xml
	packages/SystemUI/res/values-ru/cr_strings.xml
Forward port CM Screen Security settings (1/2)
* Lockscreen Vibrate
* Slide Lock Delay
* Menu Unlock
* Home Unlock

Forward port from cm-10.2, adjusted for 4.4

Amended for use in temasek build

(cherry picked from commit 5910c190767ec560ad9a5e211cc3fde42aa95a9e)
Fix one and hide the other warnings from core/jni

Most of the warnings are unused parameter from skia functions.

Change-Id: I9df57718d117c26b96163f751ccb056ca86ac072
(cherry picked from commit 36303e3f70550c60e3e90ccef1842e94fc117cf7)
Don't try to set service.bootanim.exit

init has never allowed the bootanimation code to
set service.bootanim.exit, and has always generated the
dmesg error message

  <3>[   17.644615] init: sys_prop: permission denied uid:1003  name:service.bootanim.exit

Since setting this property has no effect and never worked, delete
the code which tries to do it.

Change-Id: Idacc5467d85479a8cf974702af8895011be585ea
(cherry picked from commit 29315e12ee32c8ae50690df2a86ec8c5f1a6d17c)
Fix to NullPointerException on move back in ActivityStack.

In ActivityTask.moveTaskToBackLocked NullPointerException may occur
when moving back with only current Activity in stack. This due to a
condition that may trigger despite a TaskRecord being null and then
attempt accessing the TaskRecord.mOnTopOfHome variable.

TaskRecord task may be set to null when no resumed activity remain.

Resolved by assuring that flag mOnTopOfHome is instead set to false
for current TaskRecord in case where there are no remaining activities
above home.

The above bug has already been corrected in the following commit,
ada62fca51d314cefe2c5da4e007df5b9abf320d, but it does not set the
cottect value to mTopOfHome for the current taks, see below.

Variable mOnTopOfHome will not be set to false in situations where
stack is of size 1 or less and task is null, perhaps from already
having finished current activity.

To avoid current TaskRecord maintaining value mOnTopOfHome to true
after launching Home this variable is set to false.

Impact should not be major due to correction earlier that makes sure
that there is always a TaskRecord.mOnTopOfHome set to true above Home
activity but if not correctly set for current task still gives a
possibility of bad behavior.

Change-Id: Ie86ad99c188aaa05b0de9d58eaa16c42b6fc4341
(cherry picked from commit 61bb8912a9764cb8f03fd1e1dff33b8f0144114b)
Clean up native AlarmManagerService tabs/spaces and unused parameter warnings

Change-Id: I64da1437dd0ed30957b43450c72b9d3797112a2e
Signed-off-by: Greg Hackmann <ghackmann@google.com>
(cherry picked from commit 1599efbc7a46c198452563a06f26dceae601317b)
DO NOT MERGE - Fix improper declaration/use of pointer.

https://code.google.com/p/android/issues/detail?id=61547

This variable is shadowing the outer "ptr" declaration, resulting in a
potential NULL pointer being passed to the message API.

Change-Id: If96bfae8d5e874e12597182678a180ba137b78da
(cherry picked from commit c081c1768b70e1ea38dabbb2848cd79a0bc32526)
MediaDrm#mNativeContext is a long, not int.

Therefore, we must use SetLongField and not SetIntField.

Change-Id: I2a805dd6b7c8e4905e742d8632d941f381a05930
(cherry picked from commit 7e3ec8223eb5f6808adf89f68e9456c28fc5efb4)
Keydispatching timeout while finish Activity

If there is input to be handled during finish activity we can get a
keydispatching timeout ANR. The reason is that finish activity is some
times not possible, and the activity is instead put on a finish queue.
The activity will then be finished sometime in the future. When we add
the activity to the finish queue, key dispatching is paused, and there
is an ANR timer waiting for it to be resumed again. Since it can take a
long time before the activity is actually finished, we need to resume
the key dispatching to avoid the ANR.

Change-Id: Icea4ab3b5ad05c8bfbadf8f5cece1a59ec621469
(cherry picked from commit 688ec1968cdf13db585f93a9f92680ef60dac2e0)
Framework: QuickRecord Tile (1/2)

Images by kroz (thanks!)
Change-Id: I22f9de88d401a777e987ec2c1bbbf599dc840d5d

(cherry picked from commit db2d9d916f7424fe83bf54a612c7f965e61c9e34)
Framework: Chamber of Secrets (1/2) [WIP]

PS5: Add long settings.
PS6: Remove Chamber if setting
	not active. Also prevent
	alert from retracting
	when device is rotated.
PS7: Whitespace
PS8: Add color-parsing to integers.
	Allows you to use "red",
	"green", "#ff0099cc", etc
	as input-values.  Fancy.
PS9: String Change
PS10: Null string check.
PS11: Null string ::: don't process code.

Change-Id: I47d85ddcfb71c207a983584e08166bc85ab7d588
(cherry picked from commit 77ecbb3f7f3fe868b21bdf4b4bd7464db13d54bc)