WifiStateMachine: ignore auth-fail event during WPS connection

Disregard auth failure events during WPS connection. The EAP sequence is
retried several times, and there might be failures (especially for wps pin).
We will get a WPS_XXX event at the end of the sequence anyway.

Without this change, the SupplicantStateTracker class will disable
the WPS network we are connecting to after 2 failed authentication events.
Then, even if WPS succeeds, we will never connect to the selected network.

Change-Id: I57c8e508bfd738405b7f2c2c2325df7838e1b4af
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
GNSS: Start SUPL service.

Start SUPL service by adding an entry in SystemServer.java.
This patch also adds dummy SUPL server files since complete
source cannot be added due to liscensing restrictions. Dummy
SUPL server code will be over written when GPS is included in
builds. If GPS is not included in the build, then dummy SUPL
server will not cause any issue.

Change-Id: I10f1d2a1302d3e01f9bb597d6b5b1855ee045754
Signed-off-by: Satish Chandra <x0141690@ti.com>
Signed-off-by: Bindu <bkurian@ti.com>
Merge "WifiStateMachine: ignore auth-fail event during WPS connection" into p-jb-release
Changed settings to show PowerMenu on Tablets

Shows powermenu on Tablet, instead of Instant Off

Removes the need for individual overlays.

Original Change-Id: I47175f53a014e3593834765cc733da4462986416

Change-Id: I258d988b3ded6333ffddf0818dcac7fcca8810e6
Merge "Changed settings to show PowerMenu on Tablets" into jellybean
ProviderMap: remove hashmap when entire user specific entries are removed

User specific entries in  mProvidersByNamePerUser and mProvidersByClassPerUser
isn't cleared when entire user specific providers are removed. Fix is to remove
the user specific hashmap in such cases.

Change-Id: I6edf211ced873e59f3b89ffceb9eceec13ea8f3f
ActivityManagerService: stay away from zombie content providers

When the lowmemorykiller kills a content provider in an unfortunate
moment, an innocent client app can become attached to a zombie provider
and be unconditionally killed moments after, when the dead provider is
being removed.
Prevent this race by addition of isAlive function to Process.java that
determines whether a process is still running and is not only a zombie,
add a check of the state of the provider process to getContentProviderImpl.

Change-Id: Id753b8dab103e4b447c4138468938ca9f5cb857d
ContentProviderRecord: Remove external process reference when finalized

ContentProviderRecords is removed from provider map by activity manager service
when the process hosting the content providers terminates and this causes GC
to free the content provider records but the reference to external process
using the content provider isn't cleared. Fix is to clear the reference and
unlink for death notification.

Change-Id: I67fd10cee57b02257792d0c9b4569fe11dea7648
Added check of ActivityInfo launch mode when starting activity.

When starting a singleTop activity from a singleInstance activity,
the onNewIntent() callback was not called when expected. The
reason for this was that only the launchMode specified on the
intent was checked and not the launchMode specified in the manifest.

Fixes issue 17137.

Change-Id: I1a9bc1007d6f5145bf93a6161534732bf5214b7a
card emulation patch port to JB

Patch Set 2: Added missing @hide statements and rebased

Change-Id: I73fe9aa30830951ea5b9d44e9a9bf83cb720e567
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_base into jellybean
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/frameworks/base into jellybean