Lockscreen: Keep weather info up to date

Now that the timestamp is relative. Also, restrict the condition text
field from being updating while a refresh is active. (so a time
update will not mess up the label)

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

Change-Id: I2073c8cda0a5a2856b01cfeb6103e8cf904e9df1
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
SystemUI: calculate height for tablet status_bar_settings_view

Use the minimum height required for no scrolling. If that height
will exceed the device's display height, reduce it accordingly.

This removes the need for hardcoded height in resource file and
the use of overlays to adjust it.

Change-Id: I0a85f19c2619dedd70a3e686982e0c483f9e3d32
frameworks/base: Add support for QCELP/EVRC formats

Change-Id: I82e4e2c23e6ed3e2421fe54ff8bd4f848768b8c6
ActivityThread: Avoid creating duplicate handlers and reuse mH

sMainThreadHandler is used for notification of changes in
SharedPreferences and refers to a new instance of Handler instead
of the existing instance, mH, of the ActivityThread. Fix to reuse
existing handlers associated with main looper.

Change-Id: I794a5802a9eacdb188bd0619db5e70e3ae89a07d
StorageManager: fix issue that GREF has increased to 2011 in system server with intel stress test.

Issue description:
When run ICS stress test, always meet GREF issue. one of contributor is MountService$MountServiceBinderListener.
log info
19:21:11.609   222 24316 W dalvikvm:        24 of com.android.server.am.ActivityManagerService$AppDeathRecipient (24 unique instances)
19:21:11.609   222 24316 W dalvikvm:       479 of com.android.server.MountService$MountServiceBinderListener (479 unique instances)
19:21:11.619   222 24316 W dalvikvm:         7 of com.android.server.accessibility.AccessibilityManagerService$6 (7 unique instances)
Note: PID 222 is system server.

Issue alaysis:
Everyone can call getSystemService(Context.STORAGE_SERVICE) to get service.
When other service get StorageManager, StorageManager will new MountServiceBinderLister and
register a listener in MountService, which won't be unregistered. It's easy to generate a lot of
instance of unused MountService$MountServiceBinderListener in system server.

Issue fix:
So change the policy to be:
1. Doesn't new MountServiceBinderLister in construction.
2. when other service needs to register listener in StorageManager,
StorageManager will register listener with MountService.
3. When other service needs to unregister listener in StorageManager,
if there is no more other listeners in StorageManager, StorageManager
will unregister listener in MountService.

Change-Id: Iaaf889f44a1a5f62b9f65b3ab1b486c9b7dcaf7f
Author: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare  <bruce.j.beare@intel.com>
Fix SurfaceView notifies on invalid surfaces.

SurfaceView notifies registered callbacks on invalid
Surfaces.

Change-Id: Iddc9a5cd073fb73a0e7e9b9ca64ff4fac0777ca7
Return early when checking divider before child zero.

Previously the `getChildAt` method would be called with an index of -1 which
would lead to an exception being thrown and caught. This is unnecessary since
we know there will never be a divider before the first child. It also avoids
additional object creation since this method can be invoked quite frequently.

Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
Telephony: Add HSPAP to getTcpBufferSizesPropName

When device is camped on HSPAP TCP Buffer sizes need to be configured
properly to support higher data rates. Without this change, default TCP
buffer sizes will be used and throughput will be low.

Change-Id: Ica5884b35851a32e57c82c63b148df5be580ae83
Revert "ActivityThread: Avoid creating duplicate handlers and reuse mH"

This reverts commit 54ec46e0470f121d0c123b593958b940076626b4.
PT-BR: Added Missing Translations

Change-Id: Iab99f575b7d55eedccbe2b8373ac8a24707fa574
Framework: Volume panel cleanup (1/2)

- Hide notifications volume slider when linked with ringtone volume.
- Default to expandable panel style. This was made default on the settings side
in commit Ibd25bd1f058d49ab0560ed073c3b45782d165cbb
- Use a ContentObserver to monitor system settings.
- Moved static final variables out of Settings.java.
- Cleanup of a couple of untidy bits from initial jellybean merge.

Patch Set 2: Fix whitespace.

Change-Id: I738da63a4d59ad5ee52b1aa9e0e4f4c9c93a7576
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 "telephony : update stk functionality for samsung phones ported from CM9" into jellybean
Update korean translation

Change-Id: I91560d3cfa6f4feb94c1ab38b525dc77fce00e41
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