Fixed a possible infinite loop in JsonReader#skipValue()

Bug: https://code.google.com/p/android/issues/detail?id=65846

Change-Id: Idaa0e75fc5612550c4b9ccb9afa5535ea5b189df
Prevent a duplicated registration of Observers

If same Observer and same URI are registered, the callback functions are called multiple times
when data identified by a given content URI changes.
It makes system slow and it cause ANR sometimes.
And When run unregisterContentObserver(), just one deleted
but others are remained in mObservers.
So add prevent code to avoid to duplicated registraion of Observers

Change-Id: I5c7845deb682db289ff0d53150ef012174859767
Signed-off-by: muzbit.kim <muzbit.kim@lge.com>
improving translation

Change-Id: Ic4c51d532952d67dc1efbbe088b06e7b834835df
Revert "audio: Inform audio HAL if it is a voice call initiated by Telephony"

This reverts commit e915e22e3fd5714b231fb37db34e400297ac38e5.
Fix camera usage tracking.

When a Camera object is finalized, it notifies the torch service that
it's no longer using the camera. This call used to not check whether the
caller actually is still using the camera and called release() before,
so depending on timing of the finalizer, it could happen that e.g. the
camera app released the camera user record of the torch app, leading to
the torch usage not being detected on next usage of the camera app.

Fix that by checking whether the caller of onCameraClosed() actually
owned the camera prior to releasing the record.
Also fix synchronization between accesses.

Change-Id: Ic01cbc3c89ab8d855e4613bfa1b2f548de919b73
Cleanup
base: disable PhoneStatusBar.DEBUG and PhoneStatusBarView.DEBUG_GESTURE

No idea why this is true?
It just spills the log
Disable some other logs while we are there

Change-Id: I4c1e881a48f181e06efd694ebda006d47ef5143a
base: add roaming for Lycamobile USA

LycaMobile USA (MCC-311 MNC-96) can roam on T-Mobile USA (MCC-310 MNC-26)

http://jira.omnirom.org/browse/OMNI-1086

Change-Id: Ie9201cb7bb9efc4e455f1009a7c9a84336f3a8ad
Revert "frameworks/base/: Fix black wallpaper issue when home pressed."

This reverts commit 9759f13da020a5b8bfeb7f51339704c99df78c6e.
base: don't show global actions if shutdown sequence was started

Change-Id: Icd77aa7529faf438dcc80e45434826465a11aab8
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix toggleLastAppImpl
getRunningTasks causes an NPE. Switch to same behavior as RecentApplicationsDialog by using getRecentTasks and relaunching the last activity if it died.

Change-Id: I18b2b6711bc11f261ca2687a471a3e8bf984c705
Revert "QuickSettings : Register/unregister cast tile one time"

This reverts commit e037c1fe6dbdcd077719f7fc7b1902a887b56c23.
Mark configuration strings as non-translatable.

10 out of 36 strings in config.xml were not marked as non-translatable,
making pseudolocalization handle them incorrectly and leading to
potential issues with unexpected translations. Added translatable="false"
to all of them for consistency.

Change-Id: I55d8b0c24834722e71fa3e89ae508a95839416e9
Out of memory using wallpaperPicker switching wallpapers

Out of memory issues arise when switching wallpapers using
WallpaperPicker quickly, due to not releasing large Bitmaps
before allocating space for new ones.

Resolved by securing that wallpaper bitmaps are set to null
in order to be garbage collected when switching wallpaper.

Added stability correction making sure noone can retrieve
bitmap once it has been recycled by first calling
WallpaperManager.forgetLoadedWallpaper().

Change-Id: I318ee46d8613bec15dd52dd7b61ae950e760e6f6
Lycamobile (MNC04) considered non-roaming on Vodafone (MNC01)

Change-Id: Icff916672e5ed666adf2cdfeb26d24bf43b64683
Vectone/Delight (MNC07) considered non-roaming on NOS (MNC03)

Change-Id: I743935b94bb531d78b784550e3028378cdc01959
Fix confusion about whether or not output() should be const

It probably should be const, but it isn't on master - let's try to
be closer to next upstream

Change-Id: Id26bf19d94a36d83b57488e8bd8d86fa21e784b2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Revert "frameworks/base: vectorize Bitmap operations"

This reverts commit 442910dcf8223bc062c3e07f460b0403a217ca26.
SystemUI: NavbarEditor: Fix saveKeys logic

In landscape, the keys are saved backwards in the for-loop, but it would crash out due from
an IndexOutOfBounds error since it's subtracting i from the array length while i = 0.

Change-Id: I405c5d962d8c575cfee57b09a7e55a8a6efc2d24
Frameworks: apple can do...we can do as well

incredible apple engineers speeded up the overall UI and reduced per default slightly
the animation scales. Well we do as well and reduce it from 1 to 0.75...smooth, looks well
and does not break anything

Change-Id: Icbcc889e49c8d3ab24cf2b1c10bbe0e8bf7e7637