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>
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>
QualcommNoSimReadyRIL: Support radio state in new generation rils

The radio-state enums in CAF's ICS have changed from GB, radio_on is
now 10

Change-Id: I81f84a551bec0537925c4b34aa158b7c7a037f59
Merge "Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode." into ics
Merge "Fix for too many binder calls in packagemanager" into ics
Merge "Bluetooth: fixed possible NullPointerException" into ics
Merge "fix mobile data toggle not updating" into ics
Merge "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" into ics