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

Change-Id: Ibc0d5bfcee9673b1bf049bd69be80d2312602a47
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
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
Added left navbar

The left navbar behaviour is added into framework/base as well as
package/apps/Settings

Note currently that the Navbar setting from CM9 has _not_ been ported to
CM10, hence the setting for this is just thrown under System for now.
Once the settings for the navbar is ported over, it should be simple to
port this over.

There's a slight issue, see comments under regeneratedRotatedView under
NavigationBarView.java. This issue seems very complicated. An easy
user-side fix is simply reboot but still should be addressed.

Change-Id: I4f0f0e72be17764222e3899a445a9ccf93a6042f

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
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
frameworks/base: Add support for QCELP/EVRC formats

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