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>
Lockscreen Camera Switch (1/2)

Change-Id: I1f6dd71c9603b11cf9b0dc39d2404ee9d2a8ed50
Adjust NavBar Transparency Method

Change-Id: I22fac862736537050a335ee2b39b4fc212903405
Revert "Port Lockscreen Custom Image (1/2)"

This reverts commit ad071ef6bd97f5f6610694ac9218effd09b20eb8.
Lockscreen: Add back lockscreen wallpaper (1/2)

Much simper implementation than in previous releases.

Change-Id: Id67bc9fc6613c9d978354556191456e1141344b9
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Remove Lockscreen Smoke

Change-Id: Id802b6b156963e267ed808930522d06e4a669760
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
FW: Hiding NavBar

PS8:
New Structure for Hiding NavBar

ps9 : Fix a few derps.
ps10 : more derps/Try/catch/ etc.
ps11 : Hiding NavBar now Marginall works.
       There are a lot of things that can break this right now.
       it doesn't recover well from toggling itself on/off and
       if you 'hide/show' the NavBar, it doesn't take to that kindly
       either.  One thing the seems have an effect is to change the
       height of the NavBar.  there is something that gets reset in
       PhoneWindowManager by doing the height change that helps.

ps 12 :  Reworked some of the logic.  Added visual hints to indicate where
the swipes should occur.  Also completed landscape (phone) orientation shift
for swipe.  Made several changes in the window layout formulas in
PhoneWindowManager so that NavBar is treated like a real overlay when
in AutoHide Mode.  Otherwise, certain windows and elements were
resizing when the NavBar was shown/hidden.

ps 13:  Add images (button/drag) from NitrozK

ps14:  Start implementation of longpress on handle to launch
       NavRing.  Fix press navbar resets hide timer.

ps 15: add timeout to settings observer
       make searchlight visile on lockscreen even if navbar hide enabled.
Mike and I think there no point in wasting a swipe on the lockscreen lets
just show it all the time since its our version of lockscreen targets. Only
thing thats weird is after unlock the navbar should auto time out and its not.
It wait until you touch outside then acts as it should.

ps 16: Fix hdpi image
ps 17: switched to 9patch's from nitroz
       added options for stretching draghandle/swipe area width (on tested on
              grouper might need tweaking of values)
       added option to make draghandle.invisible (right now if invisible wont
              register clicks, needs fix)

ps 18: moved constants to demins for overlays

ps 19:  Redo some of the weight calcs.  This basically works if you
	keep weight at 100.  not working otherwise
ps 20: Abandoned Weights, now setting Width of handle based on pixel
	calc.  Fixed 'Invisible' setting on Handle.

ps 21: Add quick tile ( needs images), fix crash when phones rotate,
       swap a division for a multiplication. Come on now Mike. ;-)

ps 22: change screenheight to screen width for landscape... still need something for tabs.
ps 23: added logic for phabs and tabs landscape width, set default width to 5
ps 24: add padding to the SlidingChallengeLayout if we hide the navbar
PS 25:  Fixed NavBar staying visible after unlock.
	Fixed IME Offset in Landscape Mode.
ps 26: This *should* fix QS Tile toggle & provide an Opacity control for
	the drag handle.

Change-Id: Ic4ad3d9dec139ebeee2ee1e81d97ec603116f5f9

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Port PA's PieControl and PieMenu w/o Per App Color Featue (1/2)

Change-Id: I9acbd4cb2278ff3c33648b429a592594249308c2

Conflicts:
	packages/SystemUI/res/values/dimens.xml
Prevent audio players starting on startup.

Previously, (at least) Apollo was started on startup (in that it
appeared in the notification bar) because it listens to the AUDIO_BECOMING_NOISY
intent to silence itself in that case. This intent is broadcast by
AudioService when there's a user switch to silence any potential audio
players for the old user. As the system also sends around a
USER_SWITCHED intent on startup, this led to the aforementioned player
startup.
As the intent of AudioService was to act on a user backgrounding anyway,
send out AUDIO_BECOMING_NOISY as reaction to a USER_BACKGROUND intent
instead of the USER_SWITCHED intent.

Change-Id: Iba35844a1274c9dd195f104068304e6a7ffa809e
Fast Toggle : Add option to always display toggle when there are not active notification

Change-Id: If4e3247a5cf28ba7a3d9a0d1cfbd01b3db1c3ffd
Fix Notification Row Alpha Values

Change-Id: Ia22da1f81b72721bef3b0c36a5e7ccd85cff92b5
SystemUI: option to toggle dimming of the notification shade (1/2)

Allow the user to enable/disable dimming of the notification shade
pulldown. Check isHighEndGfx() to respect the default setting that
the device currently supports.

Users on low-end device may want to have this feature, while users
on high-end devices may want to disable it (possible battery life
savings and what not).

Change-Id: I730c0eea266541468d2d38ef88e136d85e1e4bfa
PIE : Gap function (1/2)

Change-Id: I8e9d408f31f7bfc82d772ea30345c195b676e163
PIE Notification (1/2)

Change-Id: Ib8ae7f98d9d586f65f514d2a2a39fc394626975e
Port PA DPI-PER-APP (2/3)

Change-Id: Ie43d1199d3c0718ce4dc5483a03ae400b81f2fa1
Pie Menu and Search Control (1/2)

Change-Id: I0b66ce8f2ef73f335c16bb129df4abbbd30c143e

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen Targets : Make multi-user compatible

Use getStringForUser instead of getString since the framework always run as root user (0)

Change-Id: Ibe8b69cf4c4ad123ca8e68cd8fadcb7eb467b5be
Camera: add additional ISO modes (2/2)

Change-Id: I3460c3de4cbef467430673146a9ddb2fdc8f5032