Double the lock screen goodness

* Add gesture based lockscreen security. [1/2]
* Add support for variable size pattern lockscreen (Part 1/2)

Change-Id: I01d0ced0928595c6a6ec6cb35725ee89a2d4f945
Signed-off-by: scott <scott@ubuntu>
Port forward the app sidebar from chameleon

Change-Id: I12ef29f68e451e7a1b97ad962f6c161d5cc9ff89
Signed-off-by: scott <scott@ubuntu>
fb: do not inflate twice

small derp does not effect anything but as we know inflating is slow

Change-Id: Ie31a5b9dbcab4141aac1b96dbec294d53f818e2e
WMS: fix no thumbnail image of Gallery in the recent tasks list.

When it takes the screenshot of an application, it will calculate
the minLayer and maxLayer first, and if a window is full screen,
it won't deal with the windows below it. However, the surfaceview
is placed below a window but will be displayed at front, this make
the surface view can not be included when take the screenshot of
an application, then it diaplays a black area in the recent tasks
list.

If the currect window is full screen, no need to finish the
calculation.

CR-Fixed:566752

Change-Id: Iaf3e9a3e6520007571ea545ccc9c05d4b1b416fd
Add SMS Middleware layer.

Add fix so ordered broadcasts are delivered to system
apps first in the event of a tie. This works around
the issue where terrible apps steal SMS notifications
from the broadcast queue to simply prevent notifications
that could otherwise be removed by a toggle.

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

Conflicts:
	core/res/AndroidManifest.xml
	core/res/res/values/bs_strings.xml
Revert "Notification drawer custom background & notification rows transparency (1/2)"

This reverts commit 4fdaafbff3c246c0f0331d41ae5beeb042073e08.

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I19db3fe2774ac9e65364f14bc0a875e95a0e1a4f
Frameworks: notification drawer background (1/2)

so after keyguard is mostly done let us start notification drawer
and QS. First one custom background.....either color or picture
with custom alpha and ability to set a landscape picture seperatly
(landscape phone only)

Compared to the 4.3 included version completly recoded and better
integrated. No idea what I thought 1 year ago on the old implementation

cheeers

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fix last commit

Change-Id: I196d3f9d7d366ff43730570751d27c939b72acba
Signed-off-by: scott <scott@ubuntu>
fb: support for keyguard widget carusell on tablets

support it as well on tablets and reduce used memory in general
and remove the not needed view instead of just hiding it.

Change-Id: I573bb120c5e3819488fbac6ec12dc9852d4c9be4
fb: notification transparency (1/2)

this add back notification transparency...compared to 4.3
it controlls as well the notification icon backgound transparency
which felt in the past dissplaced. As well codecleanup of the old
implementation.

largeIcon support I did not add due that google does not support it
as well at current status...it is only a placeholder in
NotificationData

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Back with theme hability for GlobalActions.java removed in this commit: 9a32682ed073216ce8c6fb2e284d0394b283d351

Change-Id: If8c0d6f77c9e563efcacca970ca648bd37f50ece
Revert "Add permission that allows cancelling notifications from other apps."

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

Conflicts:
	core/res/AndroidManifest.xml
Better Expanded desktop icons

- Thanks PA team for the base of the drawable

Change-Id: Ic10ee07d645130c599d65dbb6b7d91891e605ea1
fb: add general torch support for our app

till now we used an settings overlay. At least all our devices
without torch do not compile the package at all. So check
if package exists if user eg want to setup shortcuts to
torch in settings. Due that our app is needed for torch
and the user will not delete it this is an acceptable way.

see @TorchConstants and @SlimActions

Change-Id: I208fb310fbd0596dd9956d6a2c7fe106859bb4d6
AF: Fix display of units.

In Afrikaans we do not put the unit infront of the size ie MB30
should be rather 30MB

Change-Id: I16c1fcf22b3f66a2b14429ff15afa07fcb9e9156
Revert "PhoneWindowManager: Delay setting updates during window animation."

This reverts commit 00295091b558ca8ea17cd5786a08865c57dc6675.

Signed-off-by: scott <scott@ubuntu>

Conflicts:

	core/java/android/view/WindowManagerPolicy.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/wm/WindowAnimator.java

Change-Id: Ice177d099a9865848c9919f3452bb0f1d28ae81a

Conflicts:
	core/java/android/view/WindowManagerPolicy.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Partial Revert "Couple of here and there fixes for IME and volume options."

This reverts commit d2f66f131f5bc1823de6ae5a59044669117febd3.

Change-Id: I83084e4937c645937218bf51239e2e0ac1c87f89
Signed-off-by: scott <scott@ubuntu>
Revert "[1/3] framework: volume wake"

This reverts commit 3d59388cf73d2b4d575ff9b2c10fa5652811c074.

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I6a6e0e6773b809e25a7413cfe3478b2424cf9b12
SystemUI: do not collapse panels if keyevent was canceled.

Change-Id: I9af82e9fa2305142521075938dfd05521adeb9f4
Keyguard: fix statusbar lags when default widget shown.

When statusbar became expanded KeyguardStatusView receives
onKeyguardVisibilityChanged callback and refreshes ClockView.
Because it receives more than one call and every time it reads
new values from resources it cause lags in opening statusbar panel.

Replace this code with BroadcastReceiver and ContentObserver to
refresh it only in case something was changed.

Change-Id: If0dbc1db059536806852661931cb2e6436f2acf4