Revert "Lockscreen: fix glowpad alignment"

The lock screen now appears to the right of the center.
See:
http://i48.tinypic.com/672oog.jpg
and:
http://forum.xda-developers.com/showpost.php?p=30773438&postcount=14

This reverts commit c206a07863e134d79e09d4780e7c5cf365417fea
Merge "Revert "Lockscreen: fix glowpad alignment"" into jellybean
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.
Merge remote-tracking branch 'cm/jellybean' into jb-dev
Support GSM AT commands for SMS over bluetooth (1/2)

Modifications required to support the older GSM "AT+" commands for SMS over
the bluetooth transport for use with car radios, etc. This must piggy back
on the existing handsfree code as the spec uses that channel for the commands.
(2 parts: frameworks/base and packages/apps/Phone)

frameworks/base:
Additions to JNI and supporting framework code to allow sending of individual
characters and to receive the PDU stream - neither of which are CR terminated.

IccSmsInterfaceManager.java requires a reversion in sendText() to use
enforceCallingOrSelfPermission() instead of enforceCallingPermission().  This
is apparently the only way Phone.apk can actually send an SMS.  (ICS used the
OrSelf variation while JB changed to use the stricter version.)

Change-Id: Icff0d2c55170e9c47302b21ce3f15ce863c8c756
Signed-off-by: Gary Dezern <garyd9@gmail.com>
Add Center Clock-Framework Part

Change-Id: I80cfef86d556a468925ec22f42dd1638f7c90565
services: Fix tethering (softap) startup

The interface must be started after firmware reload. If it's not
started, the driver is unable to configure it.

Change-Id: I18b255caf961d23c0f7d4d29dfef040761536c2e
NavigationBar : Customization

Allows user to customize navigation bar.

Features :
 - Choose from 1-6 # of buttons
 - Re-arrange / assign buttons

Patchset 1  : Initial commit (No support for Nexus 7)
Patchset 2  : Same as patchset 1
Patchset 3  : Update recentPanel on configurationChange
Patchset 4  : Rebase
Patchset 5  : Add n7 support
Patchset 6  : Fix n7 layout issues
Patchset 7  : Theme change fixes (Update referenced resources on demand)
              Update a few deprecated api calls
Patchset 8  : Disable google now ring in edit mode
Patchset 9  : Fix n7 lowLight alignment issues
Patchset 10 : Fix ordering/button disappearing issues
Patchset 11 : Rework orientation logic (Fixes the small back button issue)

Change-Id: Idc9f5f401f15d207504e49de47666bb5510a06ca
Navigation Bar: Ability to enable on every device 1/2

This adds a new Menu item Settings -> System -> Navigation Bar

Patch Set 5 : Just a rebase

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
Frameworks: Option to control cursor in text fields using volume keys (1/2)

This feature is moved to framework so it also works with third party keyboards.

Change-Id: I8e20240e7bee5351ab20bb3d701eb95a5fd3e112
LockscreenShortcuts : Minor code cleanup

- Reuse pre-existing launchActivity()
  - Now uses correct start flags
- Add check for secure lockscreen and act accordingly.

Change-Id: I6c2c3e1c87239267601d78eb38778d0388f4a41c
Adds ability to answer call with hardware HOME button (preparation to winter time)

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