Remove the navigation camera icon in keyguard if disabled by DPM

The logic here is incorrect: the camera shortcut is/should be accessible
even with a secure lock screen. As a result, a device with the lock
screen camera disabled by DPM and an insecure lock screen would still
display the unfunctional shortcut.

Change-Id: If1d172932c6c2af596c38e623521c992fdf95402
BluetoothManagerService: fix enabling/disabling BT from Quictsettings under second user,

Change-Id: I8173559b2c734968ef4a8d86fddaa3a73d5c2b1e
Base: Fix for fix ActiveDisplay (Emergency)

this an emergency fix for last patch was merger

using another logic to determine, when need to hide Statusbar and Navigationbar
we dont want systemui visibility reset if lockscreen still enable and ActiveDisplay force to Turn Off

Correct ActiveDisplay visibility when launch Ongoing Notifications

fix Back button navbar cant work on some conditions

since AD detect User Activity, we dont want to override UserActivity inside View, so do only if AD visibilty are Gone

also add patch to keyguard, do not reset if ActiveDisplay visibility Visible
taken from Lockscreen Notification by David L.-W <david.leppla.weber@gmail.com>

Change-Id: I9d4001870db28ee04bdd622fa7147543b658251f
Add option to view rambar in GB instead of MB 1/2

Credit goes to chrisc93 for the code.  I simply added necessary code
to make this a configurable option from settings menu.

Change-Id: I4c01a78baa9955b0e3b8d39443394bfe59f83107
Signed-off-by: scott <scott@ubuntu>
change color to match 4.4 UI

Change-Id: Ic92f6daf90256c18a3679d8223a9aa35ad6e02cb
Signed-off-by: scott <scott@ubuntu>
Lockscreen transparency, blur and rotation

ps2: i spelled if incorrectly
ps3: fix blur disable
ps4: smooth background change
ps5: fix transparency

Change-Id: I247bf8ae1fd637d70183c40b83d6bb486e3cfcf9
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java
lockscreen: update lockscreen blur only when keyguard is not locked

handle with try/finally to make sure bitmap gets recycled if keyguard somehow
shits the bed.

-VanirAOSP

Change-Id: Iae119bd577505926aaa6d457a52e84bc9856290a
DisplayPowerController: reorder conditions for keyguard blur

Check the value of the blur setting LAST. If either of the two other conditions are false, then we save having to do a settings get.

Change-Id: I8cb2862bdf9349ec18a1486d374db543f347d0c5
Lockscreen blur: after the screenshot is taken, handle the rest of the bitmap preparation async with display state change

Change-Id: Ieade432a561a012f442d8cde2f2f11f5e52f749a
lockscreen blur: update/fixup

fix an overflow error credit to David96
fix image scaling & remove navbar/statusbar from image -> David96
fix blur animation

Change-Id: I28ea2fb2de733d48c916ec5cf32bdecdb03c4c12
adjust nav bar size

Change-Id: Idf359d702972f63008271c8a3505b0894d5bd7cb
Signed-off-by: scott <scott@ubuntu>
Limit QC camera features to post-ICS HALs

ICS blobs don't support longshot, and have a different API/method enum
for histograms

Change-Id: I6704b9302344ae2ae6386312b68de669bb5c11f2
enable desertcase dream

WTF not?  code is already there.

Change-Id: I942af313ab804504a40eceac2c41e02f9ef3514b
BatteryMeter: Make <15% text color less orange

ps2: use arrays and the existing level==>color code to affect
    the same change as the previous PS's java fix (that broke the text
    updating below 15%)

-Vanir

Change-Id: Ia2db9afcd424bc6a703ea0ff34b3d44dbcf88276
squashed commit of signal icon fixes from Winner00

commit 5637045f4c618bf398715ce70ad82394ba2e7061
Author: winner00 <TOverturf@gmail.com>
Date:   Wed Dec 18 16:29:45 2013 -0700

    Fix last signal bar being a pixel to high.

    Thanks Adam!

    Change-Id: Ic22c91c0f381d64e0f6cbb8dd341e919b9762047

commit c95caf95fc05315e396545a53ae168a0cd9954b4
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Dec 31 16:18:37 2013 -0500

    adjust navbar size

    since the DT days on 4.0 the favored size has 36dp on phones.  Lets
    try drop down to 42 from 48 and split the difference

    Change-Id: I6cdadcacbf2fa9a50c3ac68b30e56e4e5deda7da

Change-Id: I43995d901ab770377ac97dc0482d9d786ff2af84
Music transport on lockscreen

forward port from jb43

Change-Id: I5f88cd4037a63f2b722c7df9e4c3df14d5a3d90e
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
WifiController: fix high perf lock sometimes not respected

When the device screen is turned off, the state is DeviceActive for
15 minutes. In this time, high perf lock is not respected and
Wi-Fi power-saving mode will be turned on because screen is off.

Fix by adding a new DeviceActiveHighPerfState.

Change-Id: I71074beec4d41286dea0861107d7931da205aca2
JIRA: CYAN-2860
AppOps: track op persistence by name instead of id

On XML write, include the op name.  On XML read, map
the name back to op id (if it exists).

Persistent AppOp state now follows the op name instead
numeric id.  This allows upgrades between versions of
android that have different code<>name mappings.

Change-Id: Iffc02095b6838a34ff999f8db51c2c6739dd0db8
frameworks/base: remove some duplicate ringtones/notification sounds

PS2: Start mk file cleanup
PS3: Remove empty mk files
PS4: Remove more dupes and unused audio

Change-Id: I7a091218e41b3cf7eea9738d9ea569d9cb3ee91d
Merge remote-tracking branch 'upstream/kk44' into kk44

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/layout/busy_dlg.xml