Fix compass in Gmapps and other apps.
Older devices without Gyros haven't had working compass in certain apps that look for Gyro information. This feed them info from the compass. Credit CM Gerrit.
Signed-off-by: Steve Spear <stephen.k.spear@gmail.com>

Change-Id: I262d317231af9141f09e745cf5a362e68462442e
catch NPE error with statusbar brightness

Change-Id: I9bdb249f5126fa66c2f596117f5c19f615c1b3da
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Merge "catch NPE error with statusbar brightness" into ics
Fix data toggle not updating propely

Reference: http://rootzwiki.com/topic/23450-magurotoromaybe-others-b32-mobile-data-in-data-usage-wont-update-toggle-in-pulldown-menu/

Change-Id: I956d39f9e03eaa6afc2cc775cc372a377864f536
Signed-off-by: Roman Birg <romanbirg@gmail.com>
add lockscreen wallpapers to pattern unlock

Change-Id: Id39fd36518881e1e01601bf2280a75a35d8f9a67
Signed-off-by: Roman Birg <romanbirg@gmail.com>
add lockscreen wallpaper to pin locksceen

Change-Id: I31528d5e5811385dbf480468eb266b4efd22a8f9
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Send a weather refresh intent when SystemUI starts

Weather information disappears after SystemUI restarts,
   use SystemUI instead of BOOT_COMPLETED intent

Depends on http://gerrit.sudoservers.com:8080/#/c/189/
   so that weather doesn't get polled if the user
   doesn't have it enabled

Change-Id: I83ade08592baa7c90d83f35eb7633fc6235e81d2
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Really add NavBar Hide feature this time.
It got squashed somehow in last set of commits.

Change-Id: Ifd5280f99a209078fbe967c031712ec7bddcce89
Signed-off-by: Mike Wilson <mwilson@acesappraisal.com>
Revert "Only turn off torch if it's on"

This reverts commit 6cce039354171ea978027281c0247b518c509905.
Merge "Really add NavBar Hide feature this time. It got squashed somehow in last set of commits." into ics
Merge "Send a weather refresh intent when SystemUI starts" into ics
Merge "add lockscreen wallpaper to pin locksceen" into ics
Merge "add lockscreen wallpapers to pattern unlock" into ics
Bluetooth: added more music players for AVRCP1.3 support

Change-Id: I4c2f38a6a255e1a6fb4a595c5fde1425235bc968
Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode.

Step to Reproduce
1)	Turn off device’s screen. (Sleep mode)
2)	Kill any process.
A.	Engineer Version: kill [PID]
B.	User Version: am force-stop [Package Name]
3)	Foreground activity proceed [Resume] and [Pause] consecutively.

Reason: Since ICS version, activity goes to stopped status when screen turns off.
stopIfSleepingLocked( ) makes activity to stopped status but, pauseIfSleepingLocked( ) was used in GB
and, activity keep paused status and, this problem did not occur.
This change give effect to resuming activity when any process was killed.
Because, resume is proceed without exception for activity status.
The exception only filtered for [ActivityState.PAUSED] in sleep or shutdown mode.
and, resume complete flow when activity status was [ActivityState.STOPPED].

Solution for this issue:
We think that exception’s condition have to change if stopped activity status is intended in sleep mode.
According to activity life cycle, activity can not resume from stop status.

Also check [ActivityState.STOPPING]. :)

Change-Id: Icca3366ac30ffa3b18f6e2393e4d7309089ef26a
Fix for too many binder calls in packagemanager

The packagemanager uses a ParceledListSlice to send back its lists
of installed packages and apps. The list slice has a method append
which, in addition to adding the item to the list, also returns true
if the list has passed a size limit (about 1/4 of the total possible
IPC parcel size) to let the caller know that he should send the
slice. However, when used by the pm, it has an extra ! that makes it
send whenever it ISN'T over this limit instead (and conversely, not
send if it is under). This causes a lot more calls than needed since
it sends tiny one item slices instead of larger ones. This patch
removes the extra ! making it behave correctly.

Change-Id: I8db46d380a25406b55f3214aee1505e81949acc5
fix mobile data toggle not updating

Change-Id: Ifd2c16bbc3b7ad545ba094663e0f2875edc3182f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
don't apply notification icon transparency to status icons

Only set the settingsObserver for icons created with a notification.
This corrects an issue where the "Notification icon transparency" slider was
impacting both notification and status (bluetooth, vibrate, etc) icons.

Change-Id: I8c9dadd337a81d4e109128bd95d64cdc2a94151a
Signed-off-by: Gary D <garyd9@gmail.com>
Bluetooth: fixed possible NullPointerException

Change-Id: I8d91c6e38bc53e30b51e207633862c1848b16dfe
Add back long press home setting/action
This will allow PhoneWindow Manager to obey
the LongPress Home actions if set by
ROMControl.  If no action is set,
it will follow the config_longPressOnHomeBehavior
defined in config.xml

Change-Id: Ieea46f93feb2fe7cc993cbc609d6d332252db930
Signed-off-by: Mike Wilson <mwilson@acesappraisal.com>