telephony : update stk functionality for samsung phones ported from CM9

Description: This update enables sms based stk Apps(Mobile identinty, mobile banking,...) on Samsung phones

* moved CatService.getInstance() from IccCard to GSMPhone and CDMAPhone,
we need to pass iccSmsInterface on CatService startup for sending sms.

Change-Id: I32c89b823cecae711b93a0f6717b9bdb39e9ab7e
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
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
Frameworks/base: Updated italian translation

Change-Id: I2073c8cda0a5a2856b01cfeb6103e8cf904e9df1
Framwork: Add support for variable size pattern lockscreen (Part 1/2)

Changes LockPatternView to use PATTERN_SIZE instead of the hardcoded value '3'.
Adds methods to set and get PATTERN_SIZE via LockPatternUtils and device settings.

With this patch the pattern lockscreen can go from 3x3 to any sane size such as 6x6.
LockPatternView can be taken by itself if settings are not desired, for an easy way to change the hardcoded size.

Patch Set 3: Rebased,
should fix cherry-pick after the "widgets before unlock" commit.

Patch Set 4+5: Fix whitespace
Patch Set 6: Missed one Gremlin. (Fixed for real)

Patch Set 7: Rebased

Patch Set 8: Added missing hide statements

Change-Id: Ibc0d5bfcee9673b1bf049bd69be80d2312602a47
Register naver fonts to system.

Shows naver fonts by default on korean locale. Naver fonts will not
appear on other locales.

Change-Id: I7aeb5b63e9f21814c9a841527b41e0df789ddb1f
Update korean translation

Change-Id: I91560d3cfa6f4feb94c1ab38b525dc77fce00e41
Correct Change I32c89b82

Change I32c89b82 introduced a problem in compiling target FrameworksTelephonyTests.
Two functions were inserted in the wrong files.

Change-Id: I4b9903b64a00a327730c29bfa7d60ff77709534d
Danish translation correction.
Old translation said "Sådan åbner du dine apps." which means "How to open your apps." however, the original text said "Starting apps."

Change-Id: I3980073d4f4bbaf47545f29fac0b1417f72d76ba
Add resource to disable the CM Phone IME selector method (2/2)

The CM IME selector is enabled along side the Android version on tablet devices,
creating duplicate IME selectors. This gives an easy option to disable the CM
IME selector as a resource value for tablet or similar devices.

Thanks to Mike Kasick for the much needed help. :)

Change-Id: I18b60209933350fb624f20307077664ac026bfea
SamsungQualcomm RILs: throttle multiple outstanding SEND_SMS requests

  * Our radio generates a GenericFailure if a SEND_SMS request is sent
    before the previous SEND_SMS has completed.
  * Add a variable to track whether a SEND_SMS is in progress.
  * In sendSMS(), wait for the previous SEND_SMS to finish. Block for
    up to 30 seconds. If this passes with no response, blindly send the
    next SEND_SMS and let normal error handling take over.
  * In responseSMS(), notify that the SEND_SMS is complete.
  * Same thing above for the CDMA RIL
  * Algorithm credit Mike Kasick

Change-Id: I7beadc809a9e35fa100e5823bdfc3e9879ab3233
Porting National data roaming option from CM9. (1/2)

by Robin Morawetz (Rdlgrmpf) and Davor Bertovic (LorD ClockaN)

Change-Id: Ief840d818ecf4b8ebb088fab34f01878d0a9f2d7

Conflicts:

	core/java/android/provider/Settings.java
Framework: Add Quick Message Support (2/2)

This commit makes the two EditText background drawables (holo_light
and holo_dark) publickly available as a resource.  This enabled the
overriding of the EditText background in user code.

Patch Set 2: Added missing @hide statements
Patch Set 3: Removed the @hide statements added by anoter gerrit
             user as they are not used in public.xml

Change-Id: Iff80e4ece16f873e45a84e92c88ebfab752afa1f
Lockscreen: Glowpad Alignment - Multi DPI, Tested on sgs, sgs2, sgs3 and GNex

Change-Id: I162ccdf363df04357f917389e4e453e479122a5c
PT-BR: Added Missing Translations

Change-Id: Iab99f575b7d55eedccbe2b8373ac8a24707fa574
Framework: Remove Quick Message public API change (1/2)

Change-Id: I52b60d03c3696b941552c306eb90d43e5d9268f8