Revert: Frameworks: smart pulldown we do not support anymore

No QS nothing smart needed anymore

Change-Id: I5187fd00cf45f28d5749f26acfaefbae45f82be6

(cherry picked from commit 7d3d13d9fb3c48cbb96baade66761868e37f6e91) (reverted from commit edbb03f2d44ace5f362c844d913e951df547fe38)
Revert: Frameworks: Add several Slim helper classes and constants back

Change-Id: Ifeaca783c7b455f6846e20dba1aebf08c9226edd

(cherry picked from commit 2894ebcd8b98be3bd8ea0115dc9d1b6e42a7c4fc)

(cherry picked from commit 27d19377c9f451dbb723dd47a135300e7aee702c) (reverted from commit 95f5a3893fa1ea651894a8c47e60a606d4f8fe90)
Frameworks: Add several Slim helper classes and constants back

Change-Id: Ifeaca783c7b455f6846e20dba1aebf08c9226edd
(cherry picked from commit db73ca1182edf00b446ea1ae2f5f72ad7225c682)
Frameworks: add abillity to use quick settings pulldown on the left side

This commit gives the ability to use quick settings pulldown on the left
or right edge of the statusbar. As well this respects still RTL layouts
where it logically should change to the oposite side.

Change-Id: Ibdf0894347e1ed3871f685afd5a29f47efe23a4b
(cherry picked from commit 250b89410ce990af28873753c10fdc616acd5587)

(cherry picked from commit 21e4cc8cd6a46182a0e6406c393e3466d5dc6204)
Systemui: Recents - do not add search widget on recents if widget is lost.

We have reports that sometimes under special circumstances the widget gets lost
and the view is added nevertheless

Ensure that if the widget loading fails that the id is set back to -1 to remove
the view.

Change-Id: I62f8dcea19817a243a001c80b6a4ab7b1e31a990

(cherry picked from commit b0eb822ec9199c3031b11ea0b3a8e8eb22c6440b)

(cherry picked from commit 436b7a83ffcad643393eb57121cce49b794fe6ec)
Frameworks: Do not allow to access quick settings on secure lockscreen - option (1/2)

    We have a lot security guys as user due of using the phones as business phones...that
    said a lot complains go into the direction of google how it is possible to have
    access to quick settings on a secure lockscreen which is absolutely understandable
    due that you are able to control Wifi BT AirplaneMode data etc.

    This patch takes care on this problem and adds an option to control this behaviour.

    ATTENTION: Due that this is really an UX derp for an average user this feature is
    enabled by default now. User need to disable it explicit in settings to get on secure
    locksreen the original android behaviour back.

    PS2:
    - fix derp

Change-Id: I2056bfd6c6f369b6ba9269c44bd232dfa8e8254e

(cherry picked from commit d0cafca6a20e750690a6f946dd1458750f41beef)

(cherry picked from commit 1f8b4fc04eaaaf9f6a42ff9fa0bfdfa42a9f6972)
Return: Smart Pulldown [1/2]

Adds the ability to directly open the QS panel when there are
no notifications present in the notification panel.
This commit combines the enhancement by HardCorePawn for detectin
notification types for the same.

Credits: kufikugel, HardCorePawn

PS 2-4 : Cleanup

Adapted to LP

Added Jubakubas commit

SystemUI: Smart Pull-Down - Any Notification (1/2)

PS
- fixed logic to go inline with all mode in settings - should be fixed on kk as well

Change-Id: I3c9b048f2616d2b8950930cc5bfac27c2364e826
(cherry picked from commit 646ae7c58183748a69c3ebd603225fd402b56344)

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

(cherry picked from commit 07ac75615457441a04247dc3ff88daaf7bb67eb4)
SystemUI: Reduce activation area a bit of quick pulldown

Change-Id: I06b3a50982930491c6fd4e70ceda3b1ceee28f87

(cherry picked from commit b08aa7fa04a12792e0468347becbeb33f1d8273d)

(cherry picked from commit 3986a68ea9d62f5772271c9a3c9787c15c5084a0)
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 1134781658c271d4c1c16723d8d42025c7e57804)

(cherry picked from commit db4c76c57a081f91f63fc457da090ded380701b6)
Framework: StatusBar Ticker (1/2)

Change-Id: I6135297792c7b42172e08e14acd37b252cb00102
(cherry picked from commit 807e1c27edba1dcbc295e00e8a64486af7398126)

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

(cherry picked from commit 22a57f18e7ed638a2334a06af491fde708b055b1)
Frameworks: inital bringup of slim actions and helper classes

Bring back slimactions.

- Most actions are available and adapted to LP (mainly statusbar actions we did on kk need to be ported back again)
- Cleanup of old code
- Renamed classes and methods

and more.....

This is the base for all the comming features now

Change-Id: I0b4458325e248319217b8e41b64e2cf1e45f56cd
(cherry picked from commit 92c09bf67a4cc89a1e7036826bb4e7f607feea3b)

Conflicts:
	core/java/com/android/internal/util/cmremix/SlimActionConstants.java
	core/java/com/android/internal/util/pac/ActionConstants.java
	core/java/com/android/internal/util/pac/SlimActionConstants.java
Frameworks: add all slim shortcut image resources

Importing for now the old one from KitKat. Graphics group is currently
vectorizing and revamping all. When they are finished we overwrite them and
add xxxhdpi ones as well.

Doing this now due that it is stopping the progress on a bunch of features right now

And a small method renaming to be inline with the other methods

Change-Id: If07e2ae19a45712cd537389069d912cf425e9156

(cherry picked from commit 61c315b1971f7cb595621386b010381269c38b71)

(cherry picked from commit cd9434c3ba225bda43b65251e2a7c21127d43db6)
Frameworks: moar shortcut icons by Sven R.

Change-Id: I7d29a044ce2b928cac33bb6482604a984a2e1740

(cherry picked from commit abaf14aa6758a559eb3404e67746f31e1b72e6bb)

(cherry picked from commit d64e8aa407fb6665932739f85a1ace1f077a38f8)
Frameworks: rest of shortcut icons by Sven R.

Change-Id: Ibbf7899e89906530c169c5e24d803aedfcbeb038

(cherry picked from commit 5e0bcc0f469b75f7eec296a1261aef96aa5e8539)

(cherry picked from commit 08a594fe006f878f568de67d7d760a5a34f1a5ca)
Frameworks: add ability to send a custom intent after keyguard is finished

We have and will have some features which need to start intents after the user
has sucessfully entered the credentials. Add for the system public available method
to start an avtivity after the keyguard.

Add as well support on slim Action for it so that our features actually can use this.

Change-Id: I65b32dab7986f8d71a3a94597324412847e4e138

(cherry picked from commit 4aaa106201afc5a3cdbb262f7e6cc50be3f31437)

(cherry picked from commit 36048271c4c0ff42c0581d09c579b879cbfd5134)
CommandQueue: showCustomIntentAfterKeyguard ensure that it gets syncronized

Change-Id: I86be91a09277bfa8b1522fb0088541ac865eb23b

(cherry picked from commit 3446e5d36b6d894163ce976c180fc3b81d92b7c7)

(cherry picked from commit ccecf08a95b5771089c20c002b12487676216daa)
Fix Smart Pulldown

Currently if No dismissible or persistent is chosen, quick setting still appears when persistant notifications are present.  This fixes that.

Change-Id: Id8907a4f888e48ed511dd11b484508eca93fa0b3

(cherry picked from commit 8187989dc30cf27df4888331a4d98ee86028cfee)

(cherry picked from commit baed601c35350b45d87ed95bc4548d300695380c)
Wakelock Blocker [1/2]

Change-Id: I4197ef96e9f05f78cf72b69281ba3109a9e8f0f7
(cherry picked from commit 6d162d0b99b290a374b25cb117798f49458735fd)

(cherry picked from commit ffb36324022faab0629ae82eebe705ea295aafa7)
Frameworks: icon materialization

These are the first few. There are still 23 more shortcut image
        resources that need to be done, and these will come
        sometime next week probably.

Change-Id: Ie10d154914d2e4cfe2e7960791cff6240a1a2765

(cherry picked from commit c2bc7b80066f14b4763c9f904dcaca85f2da71e0)

(cherry picked from commit d26fdf5ffc55addf95a989d03a29818aa3008c68)
Frameworks: Actually start to use HEADS_UP_REQUESTED extra

Prepairing slim heads up feature, we do this here to allow apps to
send a heads up notification no matter what.

Google introduced this flag but is not using it in the actual API

Take HEADS_UP_REQUESTED into account to indicate that this notification
is a good heads up candidate.

How to use it you can see in email or mms app

Change-Id: I4a29404122ae12ab9b95e1d223911078a360b44e

(cherry picked from commit 69f6d7087de409bca8ae88bf417d83f1d74bdacd)

(cherry picked from commit 137c07cff368b7b104aef89e89893dbc52566335)