SystemUI: Alpha tuning in recents

* Equalized the Alpha's in Constants
* Reduced Fade in and Fade outs at 1/5

Change-Id: I834b50fe5ab4a4cbd527f36346f61bf2d27203e2
[2/2] Add lockscreen rotation as an optional rotation setting

Taken fom Omni: https://gerrit.omnirom.org/6440
Who takes it from: http://review.cyanogenmod.org/#/c/55016/

PS2: Fix patch set info in commit message

Change-Id: Icfd4344ffaf6987fe51b2a28df47593d9b3b3c0c
Reduce warning verbosity in aapt

- Attributed source of problems to the correct file.
- Only verify string localizations against valid
  locales.
Bug:13140015
Change-Id: I9dabc5efa0510649caee8af0c8ebb803d6f48269
Increased the amount of document visible in Recent Documents

* Visible upto 100 recent documents
Change-Id: I4c1f921f85b7afa995db690c9d829a8d961b0437
Fix lockscreen rotation bug (see pic below)

http://i.imgur.com/y8EkOk1.png

Change-Id: I9e5dfdb12df522dc7dd50c26f35aba26b9bbe99e
Merge "[2/2] Add lockscreen rotation as an optional rotation setting" into pac-4.4
Merge "Reduce warning verbosity in aapt" into pac-4.4
Merge changes I4c1f921f,I834b50fe into pac-4.4

* changes:
  Increased the amount of document visible in Recent Documents
  SystemUI: Alpha tuning in recents
Increased Compression Quality for Wallpaper Cropper

Change-Id: I9688bd4887af381a8eb61f56a403b35730851ea8
Proper security labeling of multi-user data directories.

This patch covers 2 cases. When an app is installed
and the resulting data directory is created for all
existing users. And when a new user is created and
all existing app data directories are created for
the new user.

Change-Id: Iaba7c40645bc7b6cc823d613da0c3782acf6ddd5
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Volumes in Settings/Sound is slow to start

There is a delay after pressing volume menu item
there is a delay until the Volume popup is shown.

The reason for this is that the initialization of
the different seekbars is slow and run in the main
thread. More specifically the call to get the
ringtone from the RingtoneManager is causing this
delay.

Moving the call to the ringtone manager to the
handler thread used to play ringtones to make
the launch of the volume dialog a bit snappier.

Change-Id: I76da0226592468debd542d67164b37b2b59897c7
Base: Check ProcessesReady before broadcast

Most of the time testIsSystemReady is used to know if we are allowed to broadcast intents.
But in broadcast intent method we check mProcessesReady flag (not mSystemReady).
If we broadcast after systemReady flag but before ProcessesReady flag, system will crash

Adding condition to check if system & processes are ready fix that race condition
Signed-off-by: Fabien DUVOUX <fabien.duvoux@gmail.com>

Change-Id: I2eec1c4f280daf29f4741919a7636b02da341e32
Insufficient ProcessRecord cleanup when persistent process is killed

When persistent process with Service restarts, ActivityManagerService
does not reset ProcessRecord#hasClientActivites to false
(because ProcessRecord of persistent process is continued using
after killing).

It disturbs updating LRU list in ActivityManagerService, and then,
when new process calls ActivityManagerProxy#publishContentProviders,
SecurityException happens because of no entry in the list.

Bug: 13517358

Change-Id: I46b064f71a4f7025ade1bf117801352a7ab22e6a
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>
Revert "Privacy Guard : Reimplement backed by AppOps"

This reverts commit a646c5527fb3da70fb3297099c28fed2bf4871b2.

Conflicts:
	core/java/android/app/AppOpsManager.java
	core/java/android/provider/Settings.java
	services/java/com/android/server/am/ActivityStack.java

Change-Id: I94d3e099fc8a1b2748e20d486246ee6dbbe9392a
Privacy Guard Slim version (1/2)

Change-Id: Ifac5724954831a65bde6d0c4e6b9e947dc4f4c39