Clean up and move some resources to the right file.

Change-Id: If5f7c6cebd41f9dd75015b22cdc6750c28ea64a1
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
Revert some of the latest commit.

Revert "Sometimes property service is slow to respond."

This reverts commit ccde0f0b9767753538d761af78cecbde389e8c5f.

Revert "Increase Unlock Gesture Lock interval"

This reverts commit 2e74bffda6294291f074b1b0b14e4005eaf19fba.

Revert "Increase wallpaper crashtime"

This reverts commit f89ab02058c21bbfd27a9c4cef3d9c550f931e82.

Revert "Speedup DropBox Service"

This reverts commit 72e264635f1237b8059bca02bfcd918562ce7479.

Revert "Audio: Fixed system/call stream volume can't adjust with HS connected."

This reverts commit daf54a5b3d92f2fd40f8d9474395897fece7d3f1.

Revert "Insufficient ProcessRecord cleanup when persistent process is killed"

This reverts commit 985452faec095cf6371442a34e57ddf308b47938.

Revert "Increased Compression Quality for Wallpaper Cropper"

This reverts commit 2e73a6f9448bcc343b223c708e9b716cc12c7c5d.

Revert "Increased the amount of document visible in Recent Documents"

This reverts commit b60380a4ce9f32636834f309daf7793513247d06.

Revert "SystemUI: Alpha tuning in recents"

This reverts commit 60a951330b48dfad1d4dd05ea301eb1355afacdd.

Change-Id: Ie97f6f2d934ee1c64159b710f0f8961b0c23e138
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
Cleanup framework-pac-res remnants

This causes warnings as asset manager was still looking for framework-pac-res.apk which was no longer present.

Change-Id: I648ac45c23b443e7b90086867da20abd79e26159
frameworks/base: Fix change propagating issue

destroyLayer() function has been modified in kk. It is not correct
to propagate the UI corruption fix from jb to kk without considering
the new changes made in kk. This change is to make it align with
the new code in kk.

Change-Id: I34d11b230b9390fe8a989ab6f9c7d3a48d586205
Allow configuration of the default screen-off animation style

----------------------------------------------------
PS1: PAC Upload
PS2: Fix the build.

Change-Id: Ib59f8fce45c11193104682b975ff6467df8cfc15
NULL previous background bitmap upon changing wallpaper

Step to reproduce it on Nexus 10 with 4.4.2(KOT49H):
1. Long press on home screen.
2. Choose wallpaper from Wallpapers.
3. Select new wallpaper and set it.
4. Repeat step 1-3 several times.
See black background instead of the wallpaper.

There are two binder objects who hold reference to the
ImageWallpaper$DrawableEngine, which keeps the big chunk
bitmap from being recycled.
One is WallpaperService$IWallpaperEngineWrapper. The client
references went away slowly, maybe several minutes after
changing wallpaper. Then the finalizer has to been executed
to GC it.
The other one is WallpaperService$Engine$BaseIWindow. Don't
know who still held reference to it even after the window
was removed.
Anyway, let the bitmap be GCed first.

Change-Id: I27f6971a3edd26472b69e59b542b27fd7c8e7b90
Signed-off-by: jshe32X<jianchunx.shen@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Don't register methods when there's nothing to register.

Change-Id: I6d0233f79bb90089426d702b4076ec5750e82475
Fix Aapt so that duplicate package ID errors are not incorrectly reported.

Aapt falsely reports package ID conflicts unless base packages are included
in strictly ascending order based on their package IDs. This fix addresses
that issue while still detecting and reporting conflicts correctly when they
actually exist.

Change-Id: Ic8059b87f919641d086df88d1556f5fa0063739f
Get rid of noise during boot.

This log is not an error, it is a warning, don't spam a stack
crawl when it happens.

Change-Id: I6038e3625cc0c16af9e54887b5e7ec451d9f864d
Signed-off-by: houst0nn <houstonn@gmail.com>
Return system theme when SecurityException is caught.

Isolated processes cannot access content resolvers so a SecurityException
will be thrown when calling getBootTheme.  This catches that
exception and returns sSystemTheme.

Change-Id: If4077adef4c657b80ba2c52a6610126dabe4ffdf
idmap: Don't log spam "CREATING STRING CACHE"

Change-Id: Idce5aa5881c8e860eca9749cc85f748303c913c0
Fix a NPE when putting a null-Bundle in an Intent

Happens frequently e.g. with GoogleAccountAuthenticator

Change-Id: I284bf153f40ee9cc3e70bce6efcc3b9e6706361b
Update the GPS tile in the constructor

Change-Id: I985ba2ab769e67c0d43fc67922fe1174bba195f4
Revert "Set some GC parameters only for dalvik"

This reverts commit de4539603e165f8df0d23a21b6a285213d7f712e.

Change-Id: I2fd71b8b8b6e72cdbe929bfc2afe275cb46e6c29
QS: Add TD-SCDMA support to the LTE toggle tile

Recognize TD-SDCDMA LTE modes as valid LTE to light up the tile.

While I'm at it, remove the network checks from the actual toggle
action, since TelephonyManager now ignores the boolean argument
and always toggles, making the checks pointless.

Change-Id: I8e0020def1f091a6fef9dce4d9700478a826e9a3
QuickSettings: fix long press on LTE Tile

Fixes network settings to work on single sim.

Based on http://review.cyanogenmod.org/#/c/62875/

Change-Id: I369bb0f99d8acdad27947e10823bc50bd75f4c28
Bluetooth: Adds check to verify Bluetooth adapter state

This checks whether bluetooth is turned ON or not in
BLE stop scan process. BLE scan apis are called from applications
so need to check if BT adapter state is ON to avoid Bluetooth
crash

Change-Id: Ifc472be9b3f8baf978d6cdca2e4743a75b951635
CRs-Fixed: 634617
Bluetooth:Settings:Handled ACTION_STATE_CHANGED intent at boot time

BluetoothAdapter.ACTION_STATE_CHANGED intent is added to foreground
activity to handle BT sync issue with  Power widget at the boot time

Change-Id: Ib26cb4630c711587da789dc920aa66ded97a9a3b
CRs-Fixed: 576879
Send Media button events as foreground Intent

Send foreground intent for Media Button events to Music Player
so that there is no delay in handling these Intents after the
device is rebooted.

Change-Id: I952a8af93586cb96c0a9f6dc910bfb49287f4b9a
CRs-fixed: 611219
Telephony: Add TD-SCDMA network modes

1)TD-SCDMA Signal Strength support.
2)Add TD-SCDMA network type support in MobileDataStateTracker class
to identify TD-SCDMA as UMTS variant and use the relevant
kernel data stack tcp buffer sizes defined.
3) Add TD-SCDMA to the list of supported network modes.

Change-Id: I158821574484bfaf47d1660406e591e2afb3be5e
CRs-Fixed: 403258, 479310
(cherry picked from commit 2ba1b7292c6b458fb72587c1f29a5c00b70717cd)
(cherry picked from commit d58b065e7e3d84461a3c981e7a7d4673f3567ef5)
(cherry picked from commit 7844d69d3d323b3969766309c2ad5bc80411fbae)