catch NPE error with statusbar brightness

Change-Id: I9bdb249f5126fa66c2f596117f5c19f615c1b3da
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Bluetooth: Fixed memory leak and file handles leak

After next pairing operation with same Bluetooth device
previous BT state machine never stopped, but new one is created.

Change-Id: Ic707d0b72fd98dc1cd9b485f337b7b6fb5a4e826
Signed-off-by: Anatolii Shuba <x0158321@ti.com>
NavBar Fixes
Force NavigationView & Tabletstatus bar to set
System.Settings for NavBar when settings don't exist.
Catch a null on mGlowBG to stop SystemUI FC's

Change-Id: Ie29eba119fee9264527cb4f28066e1fa35e146d2
Signed-off-by: Mike Wilson <mwilson@acesappraisal.com>
Merge "NavBar Fixes Force NavigationView & Tabletstatus bar to set System.Settings for NavBar when settings don't exist. Catch a null on mGlowBG to stop SystemUI FC's" into ics
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 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>
Fix Navbar menu & glow
This should fix the issues with menu button
and legacy apps for tablets & also fix
the navbar glow size.
Signed-off-by: Mike Wilson <mwilson@acesappraisal.com>

Change-Id: I668e5935b2c90764d751e179ac8db7f1262d6ccc
Fix font sizing on Statusbar

Change-Id: Iab334688ce76ca7f08ab6142e4939468375b8c3b

fontfix

Change-Id: I4724c089bdf3f57cdcb727eddebb29a7770a304e

Fix Font sizing on statusbar

Change-Id: I06236b5ca4a33b2772084afa7207b7681cd3d27a
Signed-off-by: Mike Wilson <mwilson@acesappraisal.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>
fix mobile data toggle not updating

Change-Id: Ifd2c16bbc3b7ad545ba094663e0f2875edc3182f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
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
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
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>