Camera: Adds support for meta data callbacks

- This change adds a new type of callback
  that will be called when there are pending
  meta data notifications.

Change-Id: I84f5cbafe4f023c7b0efa9ec8620756b0eaa428d
Prevent EventHub from adding input device twice

When Android first starts up, it scans /dev/input for input devices.
In some rare instances, the EventHub gets another notification that
some device nodes are created. It then proceeds to add the same
input device again. This causes the system to get two events per
touch or key stroke.

This adds a check to prevent adding the same device if the operation
is triggerd by inotify.

Change-Id: I68b02594f1c7f14067611735db0b3763378ec7ea
Signed-off-by: Daniel Leung <daniel.leung@linux.intel.com>
IntentService: Fix to run with a lower priority flag.

Added extra contructor to start IntentService with a diferent priority.

Change-Id: I4224ca56ae7eee2c099140bf0242be33b8690ad8
Signed-off-by: Gonçalo Ferreira <monxalo@gmail.com>
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>
Prevent MediaScanner infinite loop with invalid path

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

Change-Id: I112a70c88b5ec662482b79c3151310b9b9b52e40
FastScroller: Fix to use appropriate index

Fix FastScroller to use appropriate index to determine the
the position of a section while calculating the y coordinates
of thumb. In case of last section, use totalItemCount to determine
next section position.

Change-Id: I89bfd483949b5c14f85303b50380a73b4a4e635e
framework-res: Remove gingerbread scrolls

Change-Id: I74dbac134c701c7b0253130191ad4d9e3519b097
fix Typo on OpenGLRenderer (libhwui) Properties

See: http://code.google.com/p/android/issues/detail?id=60165

In file

https://android.googlesource.com/platform/docs/source.android.com/+/master/src/devices/tuning.jd

Line 109 says property is called "texture_cache_flush_rate" however in the code it is called "texture_cache_flushrate". See that in file

https://android.googlesource.com/platform/frameworks/base/+/master/libs/hwui/Properties.h

Change-Id: I4b6aff888608e9d7c9de66421f68114081250b9b
Merge pull request #2 from PAC-man/cm-10.2

Upstream