QuickSettings: fix GPS graphic state logic

Current logic shows the gps_off icon once the requesting
app has terminated (inUse = false). expected graphic is
gps_on. To reproduce:
1. Start with the GPS off. Tile has gps_off graphic and
   off text.
2. Tap the tile, graphic turns to gps_on, text turns to on
   (this is the idle state where GPS is on and available,
   but does not acquire satellites).
3. Start Google-Maps, once GPS is locked, graphic changes
   to gps_locked.
4. Now stop Google-Maps. Graphic will change to gps_off
   though you would expect it to return to state (2) above.

PS2: always set iconId=0 unless we have a GPS fix

Change-Id: Id044635016a848bb6bc02032b87e977ba0782f06
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.

P2: Rebased

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd

Conflicts:

	core/res/res/values/symbols.xml
	services/java/com/android/server/NetworkManagementService.java

Signed-off-by: rohan <rohanmathur34@gmail.com>
Change-Id: Icabf7a1a844c44074bfb07b730d9b0bb90d444f3
Merge "QuickSettings: fix GPS graphic state logic" into jb-mr1
Framework: longpress to kill app for hardware key

original commit - https://github.com/CyanogenMod/android_frameworks_base/commit/139a04bda82eaa93041d3cc653965679de9978bb

P2: Changed runnable to Mike Wilson's version in AwesomeAction
https://github.com/AOKP/frameworks_base/blob/jb-mr1/packages/SystemUI/src/com/android/systemui/aokp/AwesomeAction.java
P3: Removed unnecessary imports

Change-Id: Iaa2de02cfa1b94faabbb1ca86a01f185a55c5e93
Merge remote-tracking branch 'aokp/jb-mr1' into jb-mr1