Fix gradient. Credit to UBER.
Lockscreen : Hide clock for Chronus/DeskClock

Hide statusbar clock if chronus or the DeskClock widgets
are being displayed

patch set 2 : Add check for Alarm clock widgets
Patch set 3 : Add null checks to be safe
Patch set 4 : More null checks
Patch set 5 : Removed null checks again

Change-Id: I083870b818b6257a3fbdb676c545945438c42fd7
Fix Launcher2 FC's

Made createBitmap not throw an exception when creating a 0x0 bitmap.
Now, it returns a 1x1 bitmap when called with width=0, height=0.

Change-Id: Ifbaee46b8b3ec23b9511c683aae388c2eca4b833
SystemUI: cleaner recents key implementation

Also, I noticed that the RecentsTaskLoader implemented
View.OnTouchListener, so just use that implementation for the button.
Also camelCased some variables.

I can't stand the way AokpTarget looks... so I renamed it to
AwesomeAction :/

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
SystemUI: fix GPS toggle not changing states properly

When turning GPS on/off from outside the toggles (ie Settings),
it would not send updates to the callback implementations.

Change-Id: Ie462a9a160f8e262980bcf326685392546aee1ee
Signed-off-by: Roman Birg <romanbirg@gmail.com>
new toggle: sound state (ring/vib/silent)

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
SystemUI: unlock keyguard to open nav ring apps

Should not launch apps if it's secured with a pin/password/pattern.

Change-Id: I52fd604a15982e9eed465e005425b93ffb2a6e82
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Lockscreen: option to use carousel animation when switching widgets (1/2)

This will add the option to use a carousel animation when
switching betweeen the widgets on the lockscreen.

PS2: rebase
PS3: fix NPE in tablet layout
PS4: fix include name
PS5: DERP!!!!

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

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

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Lockscreen: enable longpress on expand challenge handle (1/2)

If enabled it will be possible to longpress the little lock icon.

If it is an unsecure screen lock then the longpress will unlock the device.
If it is secure then the widget will fade into the background and you need
to enter the pattern, pin, password or whatever.

Change-Id: I901424c8c54d59298d6d77c10154f5410a636b01
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Alternate Signal Layout (1/2)

Provides for an alternate (GB style) signal cluster
that separates the mobile type/traffic from the signal meter.
This will give themers more flexibility in statusbar design & layout.

Patch 2: Remove Log Spam
Patch 3: Graphics cleanup
Patch 4: Cleanup
Patch 5: Additional cleanup
Patch 6: Small xml adjustment
Patch 7: Add a bool value to allow theme to set/use Alt_cluster.  Will not over-ride user setting.

framework: revert data icons back to stock jellybean

The following change - http://gerrit.sudoservers.com/#/c/3293/
altered the data icons in the statusbar and as a result many
were misaligned and funky. This reverts them back to stock.

Alt Signal Layouts

This creates a second set of Data Type, Traffic & Strength icons
for the Alt Signal Layout.  This will allow themers to build options
for either layout without corrupting one or the other.
I also tweaked the layouts a bit for better alignment with various Text/icon combinations.

I also addressed the 'Blue/Grey' DataType icon.  the 3g/4g/H, etc icons should
now properly show blue or grey depending on connectivity, just like the signal bars do.

I also suggest a fair amount of testing since I've redone quite a bit of the logic regarding signal/icon displays.  Don't want this going out the door broken.

Patchset 2:  Layout Tweak
Patchset 3:  Honor theme setting for Alt Signal (or userpref)
Patchset 4:  mdpi/hdpi icons.
Patchset 5:  Force icon update on change & whitespace cleanup
Patchset 6:  Adjust/fix Layout when using SignalText
Patchset 6:  Tweak layout
Patchset 7:  Rebase for 4.1.2
Patchset 8: More layout tweakge

SystemUI:Make alt GB layout look like GB

This changes the alt layout to actually look like gingerbread instead of
just changing the data icons.  Everything has been editted to match ICS+

Screenshot:
https://www.dropbox.com/s/1j3g5sqo7g5w5bn/Screenshot_2012-10-19-21-43-08.png

port forward

Patchset X: add QS full connection & HSPA+ icons

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

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

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Decrease lag generated by autorotation on

There are different issues from what I understand:

1) Discarding of events too close to each others is broken
as mAccelerationTimestampNanos is conditionned by isAccelerating()
on TF101 no events are discarded anymore, and so it creates an update every ~50ms
filing up the android notification message queue quite a bit for nothing and so generating lag.
2) isAccelerating seems incorrect to me too, the code means more that it's accelerating "out of range" and should be discarded in that case.

=> Discard the sample if outOfRange and don't condition the update of mAccelerationTimestampNanos that way next time we come back "too soon"
the sample will be properly discarded.

3) with events being discarded properly on the WindowOrientationListener
the SensorManager can now update every 20ms instead of 50ms
but that is definitely overkill.
=> add SystemProperty sensor.loop.minms with a default value of 50ms to throttle the notifications.
That way the thread sleeps properly instead of sending events as fast as it can.

(increasing up to 100ms can be ok depending if you want faster response or not.)
This can be positionned on a per device prop too.

4) Add 2 SystemProperties:
one on the SystemSensor side: sensor.magnitude.threshold with a default 0 value(doesn't change the behavior)
one on the WindowOrientationListener: orientation.magnitude.threshold with a 200 (0.2G) default value
These allows to discard the sample if it is too close to STANDARD_GRAVITY (ie not accelerating much)
These can be set on a per device or use the default values.
On the TF101 200 works most of the time. But weirdly when docked the reported gravity seems to have an additionnal offsert of -0.2
maybe some magnetic interference from the dock...

For the moment the 0.2G threshold is positionned on the Orientation code.
Once the cpp sensor poll crazy loop is solved it could be better to use the sensor.magnitude.threshold instead.

That should take care of most of the lag generated by autorotation.

PatchSet2: position default SystemProperties values to do nothing.

Change-Id: I093227f539050a6bad8e6e8d9f533eff7bddd0d6
Fix autorotation sensor loop being reactivated even when off

The sensor loop was reactivated even if turned off after a wake up
=> consider it disabled also if !mEnabled
+ turn debug mode on in case there's another issue.

Since the current autorotation sensor loop is generating 3-4% cpu eating,
we really need a way to turn it off for good for the moment.
System_server now seems to stay at 0.0% cpu with this change & autorotation off on TF101

Change-Id: I5ed3c95809f6d789222819466dacc625ac2d9f1d
A tiny optimalization

Change-Id: Ib2cb773ffe5cb579c2b46bd0e6a5a3f2c55d190d
Fix build.

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Revert "Add some xhdpi drawables needed for that UI Mode commit"

This reverts commit 79b56d21969f64aa60d0f1cdfe20f5080e7178fc.
Revert "Some redefines from PA for few layouts..."

This reverts commit d4efe84d69e0081d41841504774a7135814cdd57.
Revert "Herp derp."

This reverts commit 9eec0c5b9ac6d718f998bde17a3bfe08d2e5a761.
Revert "Fix for tablet ui."

This reverts commit be08cf81c3064cebf5bde51077e6a26d9fd97b4f.
Revert "FW - User select Tablet Mode [2/2] [WIP - DO NOT MERGE]"

This reverts commit 2b26ca1bfdbda28de1f5417bc65cafdf034e50a9.
FW - User select Tablet Mode [2/2]

Allows user to set UI to one of three modes:

Phone/Tablet/Phablet.

Needs RC commit as well.

Patch 2:  Still having lots of resource issues.  I am just uploading
	this to get a good diff look at what's changed in TabletStatusBar.

Patch3:  Cleanup

Patch 4:  This one at least boots and enables the tablet bar.
	there is a lot of work still to be done to enable the quick
	settings panel, etc.
patch 5:  Implemented the Quick Settings framework.  Haven't tested yet
	(Well, it compiled) - just posting in case I get busy again,
	at least someone can take off where I've stopped.
patch 6: Fix Setting/Notification toggle.

patch 7: Tweak layouts - fix battery/clock

patch 8: Shift Tablet NavRing to left corner

patch 9: add drawables needed for patch 8

patch 10: fix more layouts - various modes now working well

patch 11: Should fix the rest of the notification issues on Tablet mode

patch 12: Fix lockscreen navring and add option to hide compat mode button

patch 13: Re-vamp Notification Title Layout clock/date & buttons layout better
	  Notif Panel goes to Settings if no Clearable Notifications.
	  System Bar responds to NavBar size changes in both land/port
	  Date/Clock actions working

patch 14: Move resources out of sw600/sw720 into "regular" bins. This is
	  needed for dealing with Tablet Mode on phones (< 600dp).

patch 15: Pull in Steve's Sliding Navbar width adjutments.
	  also move a few margins into @dimens.  This will need to be
	  changed on a per device/overlay basis.

patch 16: Fix AokpTarget class into AwesomeAction

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

Conflicts:
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>