immersive mode: don't unconfirm a package, that's just dumb

* This is very annoying for specialized apps
* See here for a great explanation http://stackoverflow.com/a/20309721
* The fact that it doesn't even notify the user until the NEXT time they
  run it makes it completely pointless in my opinion anyway.

Change-Id: I423611efc07d467e1d81c66d58adcff331be8b38

Conflicts:

	policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java

(cherry picked from commit c6d0d53253519eae32517b174e5519271e6091c4)
Forward Port: Smoother Upload and Download Animation

Change-Id: I6e6409cc85ad951019dbac10156d4aed92f4c5bc
(cherry picked from commit f453a0e17b4db987a385b6f7d36f7446b1a77825)
Keyguard: don't refresh ui when screen off

KeyguardStatusView is doing refresh all the time,
which cause high power when screen off.

PatchSet:
- We turn of the refresh when screen is off which is a good
  idea. But we should force latest next refresh when screen turns
  on. Du that a timechanged refresh maybe comes a bit later.

Change-Id: Icbb9a92bae3cf099417ab820617dd3f17e49f75a
(cherry picked from commit 7675ec42d622fcf4c8481540ee608709ddccd75b)
Only go HOME if screen is fully awake

Avoid going home when hardware home button is used to wake the device on an insecure keyguard

Change-Id: I5d5d8c4fff76967c29e70251f7b165205005ba11
(cherry picked from commit fb940842e4f24ffa7c2682dfd15b66fad1578247)
Frameworks: only send volume key events to the session manager if it is not a wake key

This fixes the problem of volume adjustment when volume wake up is activated and volume rocker
music search disabled.

Change-Id: I04873fd82885134c3674290dae530def269bfb50
(cherry picked from commit 3a24c29654a7ae50438cb069ebbe9283d28a7f87)
Fix getPrivacyGuardSettingForPackage()

Return true only if op mode is not allowed
and is not denied by a user restriction.

Change-Id: I8e58266ea8ed26726a634be523aeeba84adda30f

Patchset: 1
http://review.cyanogenmod.org/#/c/81060/
(cherry picked from commit cf0af2319aedd9bd9b3fbc1d77c241cd2d409578)
Frameworks: Redirect appops strings to string references

Based on strings in:

Author: Steve Kondik <shade@chemlab.org>
Date:   Tue Feb 25 13:11:12 2014 +0100
Relocate and cleanup new app ops features and PGify it
Change-Id: I4eb65f6f88c2f2aecdf054ffd52c31c4d5866900

Change-Id: Iba9a45838ee8eb7f5cb6ec6d29776574c86e84b6

Patchset: 1
http://review.cyanogenmod.org/#/c/81062/
(cherry picked from commit 7b1e0ed230c9fd6fba8762a944ea39a5969cf985)
Revert "[2/2] AppOps: Add alarm wakeup op"

This reverts commit be0c0b14476fb94a99abb1f0c39a80538a0626df.

(cherry picked from commit a9e30f3bcbe0c841dc7b1f8aa05c16c841dd220c)
[2/2] AppOps: Add alarm wakeup op

Port from cm-10.2 / cm-11.0

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Fri Sep 27 21:30:34 2013 -0700
[2/2] AppOps: Add alarm wakeup op
When alarm wakeups are denied/ignored,
the alarm types are remapped as follows:
RTC_WAKEUP -> RTC
ELAPSED_REALTIME_WAKEUP -> ELAPSED_REALTIME
Change-Id: I3a5023e1f6260004319290e776bdb2daf73e9fdf

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Thu May 22 19:54:01 2014 +0100
AppOps: Don't apply OP_ALARM_WAKEUP to system components
System can freely invoke and manage alarms. Preventing it from doing
so interferes with remote components like the backupmanager (backing up alarms)
due to the mismatched uids between the invoking app and the running
service that takes the action.
Change-Id: I079df8d2522642d6d9194781207df7dd67b715b2

Change-Id: I399a7f0d0b20c562b94ec978976d5d8ebff12eac

Patchset: 2
http://review.cyanogenmod.org/#/c/80210/
(cherry picked from commit 2f4a69c565bb701adb0d9babac5f777a1a36f91d)