Prevent MediaScanner infinite loop with invalid path

including double slash  "/storage/sdcard0/xx//xxx/xxxx"

Change-Id: I112a70c88b5ec662482b79c3151310b9b9b52e40
Fix one wifi and ethernet concurrency bug

enable wifi and connect to a AP while ethernet cable plugged in.
wifi will be teared down.But driver is not stopped.After unplug
ethernet cable.It will failed to auto reconnect wifi.fix it here.

Change-Id: I1b0156cf89f26747ce67ebad2b4138e8d61f30df
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
FileUtils: add method to get UUID of a volume

Change-Id: I41b76c5e01c82a2f8e67b33133a76947877a2814
SystemUI: always use transparent notification shade

Devices with less than 512MB of memory have a solid
black notification shade. Remove the isHighEndGfx()
check to force a transparent notification shade on
all devices.

Change-Id: I9a68a2a8b0d36685f8899f3bbed43bb6bccb47b1
Improve resolver layout in case package name is shown.

Change-Id: Ib2bd0c19727194205b6e4114c34bf96663030d5f
Fix error when cpufreq is loaded at runtime

Change-Id: I4691bbfbb1a49b130ba4b9a0ed5ded3601e220fc
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
android_os_FileUtils_getVolumeUUID: Fix the incorrect logical for call blkid_get_tag_value.
    There are two problems in here.
  1. For the function blkid_get_tag_value third parameter is should be the device, not the mount pointer, in the MediaPrivader.attachVolume, it will pass the mount path to call this function.
  2. The UUID for device is hex, so call atoi is not right. I think call strtol is better than atoi.

Change-Id: I76598a0993f08add3e9c7541cbc082d8d85e9af4
Fix for Concurrency issue reported in  525529

List of services mainted by ActivityManager may get
updated/iterated concurrently if serviceTimeout() is
scheduled simultaneously with launch/stop of new services
for the same package.To fix the issue ,iteration of
proc.executingServices set in serviceTimeout() is synchronized
with same lock used by updating the set during
start/launch of service.

CRs-fixed: 525529

Change-Id: Ic230ad0d16e6ec64a20cf394aa1c1ce777c37a2b
services: Fix the bug in NFC shutdown logic

nfcOff should be checked for NFC shutdown instead of radioOff,
which is used for radio status.

Change-Id: Iafd620dc89ae8bed7855e313676527d4de32cb7c
frameworks: Make Spinner widget request the itemtype of the adapter

Prior to that change the itemtype is ignored, this prevent Spinner to
work with adapter containing multiple itemtype.

Change-Id: I1554f5bfd04c972f4eddb6da9d611b7f7ef4e0e7
card emulation patch port to JB

Change-Id: I73fe9aa30830951ea5b9d44e9a9bf83cb720e567
when locale is non-Enligh, sometimes month spinner needs a number IME

When locale is non-English like korean, chinese, etc.,
month displayed string is started with number.

So, It's better to use Number IME for month selection.

Change-Id: If0444d62679b1f31d98fdedd2f06c2d445cade2a
Don't ANR when no windows are touchable.

If the user touches a portion of the screen in which all of the windows
have FLAG_NOT_TOUCHABLE set, handle this as a failed event injection,
so that it doesn't result in ANR.

Change-Id: I6437e3dd1641005b8ac80f6cf7d20b14b97fcc7b
Make ActivityManagerService.systemReady thread safe

During boot of the framework, two threads execute code in
ActivityManagerService and ActivityStack, respectively. At one point
in time, the latter thread checks the internal state of the first
thread, but if for some reason that thread has stalled for an
unexpected amount of time, the state has not been updated (yet).

An example of the above is when one of the services started from
SystemServer (eg AppWidgetService) takes unexpectedly long to start.
This causes the framework to boot without broadcasting
BOOT_COMPLETED, which in turn has ramifications for the entire
system.

Change-Id: I14b5f6fcb320be01596a2e04db3f724a43f4fbe1
Check if intent can be resolved before starts

Change-Id: Ib9ef20f9480b1ad2093955fffb34298d493015d6
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Fix a copy/paste typo in ViewPropertyAnimator

Change-Id: I149351f062e874fc11da61f416da5cfa5b1cb444