Issue: Foreground activity performs [Resume] and [Pause] when any pro…
…cess 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
[romanbb]

Signed-off-by: travp624 <stygianstudiosdevs@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: I8db46d380a25406b55f3214aee1505e81949acc
[Henrik Engström]

Signed-off-by: travp624 <stygianstudiosdevs@gmail.com>
fix mobile data toggle not updating
Change-Id: Ifd2c16bbc3b7ad545ba094663e0f2875edc3182f
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Signed-off-by: travp624 <stygianstudiosdevs@gmail.com>
Bluetooth: fixed possible NullPointerException
Change-Id: I8d91c6e38bc53e30b51e207633862c1848b16dfe

Signed-off-by: travp624 <stygianstudiosdevs@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>

Signed-off-by: travp624 <stygianstudiosdevs@gmail.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
[rmcc]

Signed-off-by: travp624 <stygianstudiosdevs@gmail.com>
Telephony: Add getLteOnGsmMode() method
Same functionality as the existing getLteOnCdmaMode, but for GSM
LTE devices.
Enable with the telephony.lteOnGsmDevice system property

Change-Id: Ibfb47ca608e51393b99d3308e0a6c66050b3f32e

Signed-off-by: travp624 <stygianstudiosdevs@gmail.com>
Implement gummy rings lockscreen and sense 3.0 lockscreen

Signed-off-by: travp624 <stygianstudiosdevs@gmail.com>