Framework: Show advanced reboot menu only if device is unlocked

The advanced reboot menu will only show if the device is unlocked.
Otherwise
the reboot entry will allow the user to simply reboot the phone.

PS2: Reverted changes done to
core/java/android/view/WindowManagerPolicy.java
PS3: Removed tmp file which was created by gedit..
PS4: Only show reboot options if unlocked or not a secure lockscreen

Change-Id: I6f98eca87fa392d2f9aa918f2d3343d1489fa5fd
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>
[1/4] Dialer lookup

Squashed commit of the following:

commit 7802111
Author: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
Date:   Fri Mar 7 17:11:02 2014 -0500

    Add people lookup settings keys

    Change-Id: I2ff9bb7684d04f4f9b640939c7db269873aa3308

commit 0e5ed5a
Author: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
Date:   Fri Jan 31 11:43:10 2014 -0500

    Frameworks: Add settings keys for forward and reverse phone number lookup

    Change-Id: I1c4c7825b4361b7a52dd419f83afd7b9fcbe1494

Change-Id: I68e4214e813695021b64c29ab1d831a944a6275a
Merge "Framework: Show advanced reboot menu only if device is unlocked" into kitkat
Update IT Translation

PS4: Fix derps and update safe headset volume on the spot.
PS5: Conditional for safe volume aswell.

Change-Id: Iabf7613b90d84476405522c2352361d0153ec655
Audio: Fixed system/call stream volume can't adjust with HS connected.

Issue Description:
When headset connected, the system/voice call stream volume can't be
adjusted from Volume bar.

Root Cause:
Currently adjustStreamVolume is applied to stream type alias and the
device for the stream alias. So when headset connected and adjust
volume for SYSTEM_STREAM, the operation will be applied to RING_STREAM
(which is aliased by SYSTEM_STREAM) and speaker. As headset is returned
from getDeviceForStream(SYSTEM_STREAM), but speaker for RING_STREAM.

Solution:
Change the adjustStreamVolume to apply volume to the stream alias and
the device for the stream type exactly.

Change-Id: Icd226d9eb197017cd3c186a0096edaed755680ec
Signed-off-by: Guo Xie <gxie@marvell.com>
PIE: Prevent a rare freeze that appears on quick iterations.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Merge "Audio: Fixed system/call stream volume can't adjust with HS connected." into kitkat
Merge "[1/4] Dialer lookup" into kitkat
Merge pull request #7 from AOSPA/kitkat

AOSPA