Lockscreen: provide haptic feedback on longpress unlock

Change-Id: Ie7e32a0e3d410da26095bfce1a8e5ba94f0b5eaf
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SystemUI: fix long-press navring targets not opening in keyguard

Change-Id: I80d63b7a9b8429d19bcad5a15419c9e72def1f70
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: fix current window minimize animation in recents

This is how it's implemented by default on stock

Change-Id: I07ffd8ab7236782e23fba20057232ca518c0a4d1
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Lockscreen: respect global vibrate settings on longpress unlock

Change-Id: I5fd868b89236f1a3ca09d5f79530d841121516d0
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)

This will add the option to disable waking up the device when a charger
is plugged or unplugged.

Change-Id: I3367041a05931510f367dafe412b173c80b89df1
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
SystemUI: respect global vibrate settings in the statusbar

Change-Id: I6df0fe2c6eb00a625e4c0aff6d0c8743979de966
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
LastApp Toggle [1/2]

Creates an action useable by NavBar & NavRing to toggle
between most recent apps.  Will try to ignore the launcher
when possible.  ie, if you've just rebooted and have not opened any
apps, it will do nothing.  if you open 1 app, it will toggle between
that 1 app and the launcher.  Once two apps have been opened, it will
toggle between those two apps.
It's kind of like opening recents and hitting your #2 slot repeatedly

PS 2:  Add Icons from Hoolm.  {Thanks!}
       Re-wrote the logic for selecting next app.  Rather than
toggling back to launcher if only 1 app open, it does nothing.
toggling only occurs now when there are at least two apps open.
One issue that I still need to work out is that 'Recents' is somehow
showing up as a valid target to toggle to.  It shouldn't.

ps 3:  getRunningTasks() does not filter out 'Excludefromrecents'.
Thus we need checks for 'default launcher' and SystemUI.
as I write this, I realize I might be able to query the
ExcludeFromRecents flag of the package a bit more easily.

ps 4: Whitespace fix.
ps 5: one more whitespace fix.
ps 6: remove unnecessary dependency

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: I0b59121b07b9ba44a2837a8db0266441ed82f9a3

Conflicts:
	packages/SystemUI/src/com/android/systemui/aokp/AwesomeAction.java
Remove BigMenu Logic

When BigMenu exists, NavBar assumes you want 'DONT_SHOW' for
left/right little menus.  This had spacing implications for users
that used BigMenu, but few buttons :
http://rootzwiki.com/topic/38274-menu-button-in-navbar/

removing this had little implication on the NavBar itself, but
did force some re-working of the MenuArrowKeys.

Change-Id: I6946d85d2e0a6db26b937a9ced9643c6a2a1ae83
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Lockscreen : Quick unlock (Part 2/2)

Unlock password/pin lockscreen without pressing enter button

Patchset 2 : Remove unecessary intialization

Change-Id: Iecb5ed52ef28234f6adad813906dc885296a157c

Quick unlock : Fix bug

There is an issue where users whose passwords are greater than 8 chars and
have quick unlock enabled will be unable to unlock their lockscreen.
This is due to the logic evaluating anything beyond 3chars as a password attempt.

This change modifies the quick unlock behavior so that when typing the password,
each character is considered an attempt, however if incorrect, is not reported as a failed attempt.
Only when the user presses enter is it considered an "explicit" attempt and a failed attempt is reported.

Patchset 2 : Rename runnable to better reflect its purpose
Patchset 3 : Switch to new behavior
Patchset 4 : Fix padding

Menu unlock (frameworks part)

    	The option in Settings/Security/Lockscreen was
    	added before in some CM commit, but not working
    	and was missing a proper frameworks part

Patchet 3: Done like master Danesh M wanted

p2: Remove menu unlock option
p3: Remove further menu unlock left over code

-----------------

Forward port to AOKP JB-MR1

PS2: allow quick unlock only for PIN and Password Keyguard
     and not for SIM PIN/PUK
PS3: remove tabs to put a smile on KhasMeks face

Change-Id: I359f06055400a716e8b999ca8272476a7c1f5781
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java
SystemUI: transparency control overhaul

Allow more customization. TransparencyManager's responsibility
is to apply the values it is being fed from Settings.System set by
ROMControl.

Tablets do not use transparency currently, but it shouldn't throw
any errors.

Change-Id: I11c1578938e337285d99e9fa1fbbd537a4ee43ec
Signed-off-by: Roman Birg <romanbirg@gmail.com>

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