Remove DoubleTapGesture feature from PA and add slim stuff
Frameworks: Port Lockscreen Targets and Shortcuts to SlimKat

First thanks to PA and CM which gave us partly code and some ideas.
Still some parts of the original implementation are/were buggy as well
we needed to ehance it.

Whatever the new Slim version is now ready and seems to be completly bug
free.

- Configurable lockscreen targets...on tablets 8 on phone either 5 or 8
- configurable lockscreen shortcuts only on phones...up to 5 shortcuts
- Centralazing some methods....using now then rounded corner on custom
  images systemwide...means on all other shorcut features we have
- multiDpi compatible
- new settings logic
- instance handling of all dialogs like we do on all other places
  way nicer this way
- tons of fixes

Change-Id: Ib3752204aa6876bd5b9d619c002df78d8e4bd109

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
[2/2] frameworks/base: Enable quick unlock

Automatically unlock the lockscreen when the correct pin/password is keyed.

Change-Id: I3c1df4b573321a9343d1c339055577d5ca737f14
fb: add accessibility events to lockscreen slider and shortcuts (1/2)

beside that it is nicer for ppl using talkback eg and get clear
instructions this solves as well a fc in settings lockscreen targets
when using accessibility services

Change-Id: I03014892d30491b1d126e61a6891393416e4b1be

Conflicts:

	core/res/res/values/slim_strings.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
Frameworks: bring back all lockscreen Widget Settings

this commits brings back adapted versions for 4.4:

- enable permanent maximized widgets
- allow carousel view
- disable camera widget
- disable usibility hints
- longpress lockhandle unlocks screen

cheers gmillz and kufi

Change-Id: Idaca3d770a620c5f07ea389842a680eb7e55b601

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/res/layout-port/keyguard_host_view.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Frameworks: Policy: implement a pin keypad shuffler [1/2]

this is to further prevent people using the tablet guessing your pin based on fingerprints left on the screen
example of the expected outcome - https://www.dropbox.com/sh/r3xb2q53ksaqni9/Oz1Eu8Dm7O

- correct coding style
- added reload button

PatchSet:
- simplify shuffle code
- fix over shifting in some cases
- add reload button functionallity
- add lockscreenutils method to detect only PIN lock
  for settings
- exclude sim and simpuk PIN lock
- add drawables for reload button

PatchSet
- cleanup

PatchSet:
- fix shuffle NumKeyPad even if a theme replaces the xml
  and reload button is not present.

PatchSet:
- add mode disabled/always/on request

cheers

kufi

Ported to new keyguard package on 4.4

Change-Id: I6cf23a70a24ff0d640850d35acd4584e2e8d2192

Conflicts:

	core/java/android/provider/Settings.java
Frameworks: LockBeforeUnlock the new way (1/2)

Due that aosp removed the whole LockBeforeUnlock controll (show slider
lockscreen before an unsecure internal lockscreen) we must try to find another way
without touching the security system itself. Long guess short solution, lmao

here it is, next SlimKat feature

cheers

PatchSet:
- bring eca button to front in lockbeforeunlock mode to make
  it clickable on slider lockscreen

adapted our 4.3 version to 4.4 and smaller fixes/code improvements

Change-Id: I6fa791d7e57b01aaa42a6eca99b07c22e4d83ad8

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
fb: enable haptic feedback for lockscreen shortcuts

more consistent to general lockscreen behaviour

Change-Id: Ic5fd0f82ba9e2a540c4ef3c3306f57fad2b6b56a
Frameworks: Add support for variable size pattern lockscreen (Part 1/2)

Thanks CM

for the base.....ported to new keyguard, moved service and some
new API 19 stuff

Change-Id: Ia506308a111947d20058f86c4ad538bef463afaf

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java
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

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java
Frameworks: Lockscreen Colors and Lock Image [1/2]

PS2: Separate all color elements
	into separate prefs.
	Also colorize bouncer frame
	for secure lockscreens.
PS3: Whitespace

PS?: Add Lock Icon Picker =]
PS?: Add "Colorize Custom Icon" option.

Change-Id: I542dfa01bb1d3d0e401bbf8a5f58b32f08cbfc62

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
fb: fix and pimp custom lockscreen handle (1/2)

problem on current implementation is that it is not
multiDpi compatible. As well it looks a bit weird if
the user set a square image always. This commit does

- introduce central circleimage method to get circle image crops
- before it was assumed that the height of the handle image is
  108px (mdpi base) which is correct but the original handle
  has a lot unused space around to fit better into the view.
  Whatever after messurment of the real height 68px is correct
  of course calculated against the current density
- both above combined results into a always nice looking
  custom circle icon on the lockscreen dpi and device undependent
- saved file in settings calculates the needed image size
  base on the current density.

Patchset:
- use for custom bitmap our colorize methods due that
  the result looks way nicer then the usual colorfilter

Patchset:
- use AntiAlias

Change-Id: Id0321e0e9176f8f765980f69b412658dbb929ef3
Keyguard: let the user drag the challenge down if widgets are disabled

for the system clock widget this does not make much sense but due
that our system default is DashClock it makes a lot sense to
allow it to see more content of DashClock extensions

So allow it for overlay added app widgets if the binding was
sucessfull.

Change-Id: I0365573c6fa88117a47b01ced81eb36f75324342
Keyguard: do not show maximized on simpin and several fixes

- to show a maximzed widget container on first boot when simpin
  or puk is requested does not make any sense. In this case
  show it as normal view
- fix sometimes unresponsive unlock handle on maximized widgets
  and bring it to front (happened only in combination with
  lock before unlock)
- a bit codecleanup and centralize
- fix animation was visible on screnn turn on. Now it is directly
  maximized visible

Change-Id: I9ba5d8f9537c68d3590826eb8d1483a02cfe3266
Keyguard: smooth background change derp fixes

no idea how this could happened. Cleanup, fixes and updates (thanks kyril)

Change-Id: Ia0e4d0000db72b5cdb6fede03791805e34fa311d

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
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: Ifabdde4419a23e919cd52fe77e78ec3160575af1

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java
Return: Always show battery on Keyguard [1/2]

Based on the feature by burnsra in CM7

Authored by Blunden
Tweaked by DvTonder
Tweaked by kufikugel

PS 6 : Fix multi-user

Change-Id: I02cc3a0d996ca1fb3c96c6847865655be5518434

Conflicts:

	core/java/android/provider/Settings.java
Framework: Glowpad Torch (1/3)

PS2: Torch active? Keep screen on.

Change-Id: I39c319b28e31470925f3b3764043c63ce9d3557b

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
Keyguard: fix codestyle

Change-Id: I3f1fbab0ae5434b09766cd69c39a133f4a7039d0
fb: Keyguard disable challenge drag down on slimpin/simpuk screen

On simpin, simpuck and as well account change screen it does not make
any sense to give the user the abillity to drag down the challenge to show
the widget maximized (neither if widgets are enabled or disabled)
Reason: simpin/simpuck widget is not shown due of security reasons
and on account change the next expected behaviour is that the user gets a new
setup. So it does not make in this case as well sense

Just check for current securityscreen selection to block this behaviour. As
well move the enable/disable code to a proper place

Change-Id: I0b16d1e590252b537d6c71c4aa9b133ed832be45